skills-index-snippets
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseMaintaining Skill Index Snippets (AGENTS.md / CLAUDE.md)
维护技能索引片段(AGENTS.md / CLAUDE.md)
When to Use This Skill
何时使用此技能
Use this skill when:
- Adding, removing, or renaming any skills or agents in this repository
- Updating
.claude-plugin/plugin.json - Creating copy/paste snippets for downstream repositories (OpenCode, Claude Code, etc.)
- You want a compact, always-on index that improves skill utilization
当出现以下情况时使用此技能:
- 在本仓库中添加、移除或重命名任何技能或Agent
- 更新
.claude-plugin/plugin.json - 为下游仓库(OpenCode、Claude Code等)创建可复制粘贴的片段
- 你需要一个紧凑、随时可用的索引来提升技能利用率
Goal
目标
Make skills and agents easy for coding assistants to use by removing the decision point.
Instead of hoping an assistant will "remember" to invoke a skill, provide a small router snippet inside / that:
AGENTS.mdCLAUDE.md- Tells the assistant to prefer retrieval-led reasoning
- Provides a task->skill/agent routing index
- Defines lightweight quality gates (optional)
通过消除决策环节,让编码助手能够轻松使用技能与Agent。
不要寄希望于助手“记住”调用某个技能,而是在 / 中提供一个小型路由片段,该片段需实现:
AGENTS.mdCLAUDE.md- 告知助手优先采用检索驱动的推理方式
- 提供任务到技能/Agent的路由索引
- 定义轻量级质量门(可选)
Source of Truth
事实来源
- Registry:
.claude-plugin/plugin.json- Skills are listed as directories (each contains )
SKILL.md - Agents are listed as markdown files in
agents/
- Skills are listed as directories (each contains
- Skill IDs: the field in each
name:frontmatterSKILL.md - Agent IDs: the field in each agent frontmatter
name:
When writing snippets for downstream repos, always reference skills/agents by their IDs (frontmatter ), not by local filesystem paths.
name- 注册表:
.claude-plugin/plugin.json- 技能以目录形式列出(每个目录包含)
SKILL.md - Agent以markdown文件形式存放在目录下
agents/
- 技能以目录形式列出(每个目录包含
- 技能ID:每个前置元数据中的
SKILL.md字段name: - Agent ID:每个Agent前置元数据中的字段
name:
为下游仓库编写片段时,始终通过ID(前置元数据的)引用技能/Agent,而非本地文件系统路径。
nameMinimal Snippet Template (Readable)
最小化片段模板(易读版)
Use this in target repos to route common tasks:
markdown
undefined在目标仓库中使用此模板来路由常见任务:
markdown
undefinedAgent Guidance: dotnet-skills
Agent Guidance: dotnet-skills
IMPORTANT: Prefer retrieval-led reasoning over pretraining for any .NET work.
Workflow: skim repo patterns -> consult dotnet-skills by name -> implement smallest-change -> note conflicts.
Routing (invoke by name)
- C# / code quality: modern-csharp-coding-standards, csharp-concurrency-patterns, api-design, type-design-performance
- ASP.NET Core / Web (incl. Aspire): aspire-service-defaults, aspire-integration-testing
- Data: efcore-patterns, database-performance
- DI / config: dependency-injection-patterns, microsoft-extensions-configuration
- Testing: testcontainers-integration-tests, playwright-blazor-testing, snapshot-testing
Quality gates (use when applicable)
- dotnet-slopwatch: after substantial new/refactor/LLM-authored code
- crap-analysis: after tests added/changed in complex code
Specialist agents
- dotnet-concurrency-specialist, dotnet-performance-analyst, dotnet-benchmark-designer, akka-net-specialist, docfx-specialist
undefinedIMPORTANT: Prefer retrieval-led reasoning over pretraining for any .NET work.
Workflow: skim repo patterns -> consult dotnet-skills by name -> implement smallest-change -> note conflicts.
Routing (invoke by name)
- C# / code quality: modern-csharp-coding-standards, csharp-concurrency-patterns, api-design, type-design-performance
- ASP.NET Core / Web (incl. Aspire): aspire-service-defaults, aspire-integration-testing
- Data: efcore-patterns, database-performance
- DI / config: dependency-injection-patterns, microsoft-extensions-configuration
- Testing: testcontainers-integration-tests, playwright-blazor-testing, snapshot-testing
Quality gates (use when applicable)
- dotnet-slopwatch: after substantial new/refactor/LLM-authored code
- crap-analysis: after tests added/changed in complex code
Specialist agents
- dotnet-concurrency-specialist, dotnet-performance-analyst, dotnet-benchmark-designer, akka-net-specialist, docfx-specialist
undefinedCompressed Snippet Template (Vercel-style)
压缩片段模板(Vercel风格)
Use this when you want maximum density (small context footprint):
markdown
[dotnet-skills]|IMPORTANT: Prefer retrieval-led reasoning over pretraining for any .NET work.
|flow:{skim repo patterns -> consult dotnet-skills by name -> implement smallest-change -> note conflicts}
|route:
|csharp:{modern-csharp-coding-standards,csharp-concurrency-patterns,api-design,type-design-performance}
|aspnetcore-web:{aspire-service-defaults,aspire-integration-testing}
|data:{efcore-patterns,database-performance}
|di-config:{dependency-injection-patterns,microsoft-extensions-configuration}
|testing:{testcontainers-integration-tests,playwright-blazor-testing,snapshot-testing}
|quality-gates:{dotnet-slopwatch(after:substantial new/refactor/LLM code),crap-analysis(after:tests added/changed in complex code)}
|agents:{dotnet-concurrency-specialist,dotnet-performance-analyst,dotnet-benchmark-designer,akka-net-specialist,docfx-specialist}当你需要最高密度(最小上下文占用)时使用此模板:
markdown
[dotnet-skills]|IMPORTANT: Prefer retrieval-led reasoning over pretraining for any .NET work.
|flow:{skim repo patterns -> consult dotnet-skills by name -> implement smallest-change -> note conflicts}
|route:
|csharp:{modern-csharp-coding-standards,csharp-concurrency-patterns,api-design,type-design-performance}
|aspnetcore-web:{aspire-service-defaults,aspire-integration-testing}
|data:{efcore-patterns,database-performance}
|di-config:{dependency-injection-patterns,microsoft-extensions-configuration}
|testing:{testcontainers-integration-tests,playwright-blazor-testing,snapshot-testing}
|quality-gates:{dotnet-slopwatch(after:substantial new/refactor/LLM code),crap-analysis(after:tests added/changed in complex code)}
|agents:{dotnet-concurrency-specialist,dotnet-performance-analyst,dotnet-benchmark-designer,akka-net-specialist,docfx-specialist}Regenerating the README block
重新生成README块
If the README contains the markers below, the generator can update it automatically:
<!-- BEGIN DOTNET-SKILLS COMPRESSED INDEX -->
...compressed snippet...
<!-- END DOTNET-SKILLS COMPRESSED INDEX -->Run:
bash
./scripts/generate-skill-index-snippets.sh --update-readme如果README包含以下标记,生成器可以自动更新它:
<!-- BEGIN DOTNET-SKILLS COMPRESSED INDEX -->
...compressed snippet...
<!-- END DOTNET-SKILLS COMPRESSED INDEX -->运行:
bash
./scripts/generate-skill-index-snippets.sh --update-readmeHow to Update Snippets After Skill Changes
技能变更后如何更新片段
- Update to include/remove skills and agents.
.claude-plugin/plugin.json - Ensure each skill has correct frontmatter (used by OpenCode and others).
name: - Run .
./scripts/validate-marketplace.sh - Update your snippet routing lists:
- Add new skills to the right category
- Remove deleted skills
- Keep names exactly matching frontmatter IDs
- If you maintain a downstream /
AGENTS.mdsnippet, regenerate it and re-copy into dependent repos.CLAUDE.md
- 更新以添加/移除技能和Agent。
.claude-plugin/plugin.json - 确保每个技能的前置元数据字段正确(供OpenCode等工具使用)。
name: - 运行。
./scripts/validate-marketplace.sh - 更新你的片段路由列表:
- 将新技能添加到对应分类
- 移除已删除的技能
- 确保名称与前置元数据ID完全匹配
- 如果你维护下游仓库的/
AGENTS.md片段,重新生成并复制到依赖仓库中。CLAUDE.md
Recommended Categories
推荐分类
These are snippet categories (not necessarily repository folder structure):
- C# / code quality
- ASP.NET Core / Web (incl. Aspire)
- Data
- DI / config
- Testing
- Quality gates
- Specialist agents
Keep the snippet small; it should be a router, not documentation.
以下是片段分类(不一定与仓库文件夹结构一致):
- C# / 代码质量
- ASP.NET Core / Web(含Aspire)
- 数据
- DI / 配置
- 测试
- 质量门
- 专业Agent
保持片段简洁;它应该是一个路由工具,而非文档。