用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/stevehuang0115/crewly --skill record-learning命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
| name | Record Learning |
| description | Record a learning or insight gained during task execution for team knowledge sharing. |
| version | 1.0.0 |
| category | memory |
| skillType | claude-skill |
| assignableRoles | ["developer","qa","tpm","designer","frontend-developer","backend-developer","fullstack-dev","qa-engineer","product-manager","architect","generalist","sales","support"] |
| triggers | ["record learning","learned that","new insight","knowledge share"] |
| tags | ["memory","learning","knowledge","insight"] |
| execution | {"type":"script","script":{"file":"execute.sh","interpreter":"bash","timeoutMs":15000}} |
Record a learning or insight gained during task execution. These learnings are shared with the team and accumulated over time to improve future work.
| Flag | JSON Field | Required | Description |
|---|---|---|---|
--agent / -a | agentId | Yes | Your agent ID / session name |
--role / -r | agentRole | Yes | Your role (e.g., developer, qa) |
--project / -p | projectPath | Yes | Absolute path to the project |
--learning / -l | learning | Yes | The learning or insight (or pipe via stdin) |
--learning-file | — | No | Read learning from a file path |
To support future automated knowledge synthesis, all new learnings MUST follow the Entity-Centric format. This moves from "logging what happened" to "building a compounding wiki."
[[Entity Name]].✅ CORRECT (Entity-Centric):
[[Fts5IndexService]] SQLite FTS5 rank is a negative double (more-negative = more-relevant). Invert to 100 - rank for score consistency. Learned during PR #320.
✅ CORRECT (Component Relationship):
[[LearningReferenceModule]] injects memory usage instructions via PromptAssemblyService. Related to [[record-learning]] skill. Ref: backend/src/services/ai/prompt-modules/index.ts.
❌ INCORRECT (Log-style):
I fixed a bug today in the FTS5 service where the ranking was inverted. It took me 2 hours because I didn't know SQLite's sign convention.
The LearningReferenceModule (prompt-layer) and the LEARN-1 auto-record subscriber both join learnings on entity references. Free-form prose breaks that join. The [[Entity]] bracket convention also matches the cross-doc linking pattern used elsewhere in the project (mirrors Obsidian/Roam-style backlinks for future synthesis tooling).
# Record a learning
bash execute.sh --agent dev-1 --role developer --project /projects/app --learning "Jest mock resets are required between tests"
# Learning via stdin (for text with special characters)
echo "Don't use git add -A — it catches .env files" | bash execute.sh --agent dev-1 --role developer --project /projects/app
# Learning from file
bash execute.sh --agent dev-1 --role developer --project /projects/app --learning-file /tmp/insight.txt
bash execute.sh '{"agentId":"dev-1","agentRole":"developer","projectPath":"/projects/app","learning":"Jest mock resets are required between tests"}'
JSON confirmation that the learning was recorded.
基于 SOC 职业分类