克劳德·梅塔斯基尔
Claude Code技能,使Claude成为配置Claude Code的专家
Claude Code使用元技能来熟练地指导您创建技能、子代理、钩子、权限和MCP服务器集成。安装后,Claude将成为您的配置专家。
 
______________________________________________________________________
快速安装
打开Claude Code并运行以下命令:
/plugin marketplace add werkamsus/claude-metaskill
/plugin install claude-code-config完成。克劳德现在知道如何配置自己了。
______________________________________________________________________
这个技能有什么作用
安装后,Claude Code会自动使用此技能提供以下方面的专家指导:
- ✨ 创造技能 -文件结构、SKILL.md格式、最佳实践
- 🤖 建立子代理 -YAML配置、工具权限、模型选择
- 🪝 配置挂钩 -保存、通知、验证时自动格式化
- 🔐 管理权限 -允许/询问/拒绝模式、安全最佳实践
- 🔌 设置MCP服务器 -Context7,剧作家,Postgres集成
- 📚 真实世界的例子 -生产就绪配置和模式
- 🔧 故障排除 -常见问题和解决方案
安装
选项1:通过SkillsMP.com(推荐)
- 访问 SkillsMP.com
- 搜索“克劳德metaskill”
- 单击安装并按照说明进行操作
选项2:通过插件市场
# Add the marketplace
/plugin marketplace add werkamsus/claude-metaskill
# Install the skill
/plugin install claude-code-config选项3:手动安装
全球(所有项目):
git clone https://github.com/werkamsus/claude-metaskill.git
cp -r claude-metaskill/skills/claude-code-config ~/.claude/skills/项目具体:
git clone https://github.com/werkamsus/claude-metaskill.git
cp -r claude-metaskill/skills/claude-code-config .claude/skills/用法
安装后,当您询问Claude Code配置时,该技能会自动激活:
"How do I create a new skill?"
"Set up a subagent for code review"
"Configure Context7 MCP"
"Add a hook to auto-format TypeScript files"
"Set up permissions to block .env files"或者明确地调用它:
"Use the claude-code-config skill to help me create a test generator subagent"包含什么
主要指南(SKILL.md)
- 完整的配置参考
- 目录结构和文件格式
- 分步说明
- 快速参考表
- 故障排除部分
示例库(Examples.md)
- 现实世界技能(PDF处理器、API文档生成器、数据库迁移)
- 生产子代理(安全审计员、性能优化器、测试生成器)
- 高级挂钩配置(自动格式化、验证、通知)
- 复杂的权限模式(开发、生产、只读模式)
- MCP服务器设置(全栈,API开发)
- 项目特定配置(Next.js、Django)
示例场景
创造你的第一技能
You: "I want to create a skill for processing markdown files"
Claude: [Uses claude-code-config skill]
Let me help you create a markdown processing skill.
First, I'll create the directory structure:
~/.claude/skills/markdown-processor/SKILL.md
[Creates skill with proper YAML frontmatter and instructions]设置上下文7 MCP
You: "Help me set up Context7 to get up-to-date library docs"
Claude: [Uses claude-code-config skill]
I'll help you install and configure Context7 MCP server.
Here are the steps:
1. Add to your settings.json...
2. Get an API key from context7.com...
3. Configure permissions...构建代码审查子代理
You: "Create a subagent that reviews code for security issues"
Claude: [Uses claude-code-config skill]
I'll create a security-focused code review subagent.
[Creates ~/.claude/agents/security-reviewer.md with:
- Proper YAML configuration
- Security checklist
- Tool restrictions
- Clear instructions]文档结构
claude-metaskill/
├── skills/claude-code-config/
│ ├── SKILL.md # Main reference guide
│ └── examples.md # Real-world examples
├── .claude-plugin/
│ └── marketplace.json # Plugin marketplace config
├── README.md # This file
└── LICENSE # MIT License贡献
发现问题或想添加示例?欢迎投稿!
- 分叉存储库
- 创建功能分支
- 添加您的示例或改进
- 提交拉取请求
涵盖的主题
- 技能:创建、结构、最佳实践、激活触发器
- 次级代理商:YAML frontmatter、工具权限、模型选择
- 钩子:预工具使用、后工具使用、停止、通知事件
- 权限:允许/询问/拒绝模式、安全配置
- MCP服务器:Context7、剧作家、Postgres、自定义服务器
- 设置:层次结构、优先级、环境变量
- 命令:/config、/agents、/plugin管理
官方文件链接
许可证
MIT许可证-您可以自由使用、修改和分享!
作者
由Nick Raziborsky创作
致谢
基于以下知识构建:
- Anthropic的官方克劳德代码文档
- 社区最佳实践
- 真实世界的配置模式
______________________________________________________________________
让Claude Code真正属于你 -使用Claude MetaSkill进行主配置✨
