用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/majiayu000/claude-skill-registry --skill add-lesson命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | add-lesson |
| description | Add a new lesson learned to shared rules and sync to context files. |
| version | 1.1.0 |
| tags | ["lessons","governance","rules"] |
| owner | orchestration |
| status | active |
Add a new lesson learned to the shared rules.
When you discover a bug, mistake, or useful pattern, use this skill to document it so all agents learn from it.
/add-lesson
shared-rules/ and permission to run scripts/sync-rules.py.### YYYY-MM-DD - Brief Title
- **Issue**: What went wrong or was discovered
- **Root Cause**: Why it happened
- **Fix**: How it was fixed
- **Prevention**: Rule or check to prevent recurrence
- **Applies To**: all | claude | cursor | gemini
- **Files Changed**: List of affected files
Gather information:
Add to lessons file:
shared-rules/lessons-learned.mdRun sync:
python scripts/sync-rules.py
Verify propagation:
### 2026-01-22 - Task Tool Token Efficiency
- **Issue**: Spawning Claude workers via subprocess was expensive (~13k tokens overhead)
- **Root Cause**: Full context duplication to each subprocess
- **Fix**: Use native Task tool with context filtering
- **Prevention**: Always prefer Task tool over subprocess for Claude workers
- **Applies To**: claude
- **Files Changed**:
- `.claude/skills/implement-task/SKILL.md`
- `CLAUDE.md`
Lessons should be categorized by:
all - Applies to all agentsclaude - Claude-specificcursor - Cursor-specificgemini - Gemini-specificAfter 30 days or when list gets long:
shared-rules/ content and synced context files (e.g. CLAUDE.md).scripts/sync-rules.py./sync-rules - Sync shared rules into context files