knowledge-consolidation
11
总安装量
9
周安装量
#28526
全站排名
安装命令
npx skills add https://github.com/learnwy/skills --skill knowledge-consolidation
Agent 安装分布
trae
9
qwen-code
9
codex
9
cursor
9
trae-cn
9
gemini-cli
8
Skill 文档
Knowledge Consolidation
Persist valuable knowledge from AI conversations into structured documents.
Workflow
1. DETECT AI IDE â Check for .trae/, .claude/, .cursor/
2. IDENTIFY CANDIDATES â Scan for knowledge worth preserving
3. CLASSIFY TYPE â Select appropriate knowledge type
4. GENERATE PATH â Run get-knowledge-path.sh
5. WRITE DOCUMENT â Use template format
Step 1: Detect AI IDE
| Indicator | AI Type | Storage Path |
|---|---|---|
.trae/ dir |
trae | .trae/knowledges/ |
.claude/ dir |
claude-code | .claude/knowledges/ |
.cursor/ dir |
cursor | .cursor/knowledges/ |
Step 2: Knowledge Types
| Type | When to Use |
|---|---|
debug |
Bug fixes, crash analysis, error resolution |
architecture |
System design, module structure |
pattern |
Reusable code patterns, best practices |
config |
Build settings, environment setup |
api |
API design, integration details |
workflow |
Development processes |
lesson |
Post-mortems, retrospectives |
Step 3: Generate Path
{skill_root}/scripts/get-knowledge-path.sh -r <project_root> -a <ai_type> -t <type> -n <filename>
Output: {project_root}/{ai_path}/knowledges/{YYYYMMDD}_{seq}_{type}_{filename}.md
Step 4: Write Document
Use template:
# {Title}
> **Type:** {type}
> **Date:** {YYYY-MM-DD}
> **Context:** {Brief context}
## Summary
{2-3 sentence summary}
## Background
{Situation/problem/context}
## Details
{Technical content, code snippets, analysis}
## Key Takeaways
{Bullet points of actionable insights}
Resources
| Resource | Purpose |
|---|---|
scripts/get-knowledge-path.sh |
Generate file path |
references/knowledge-types.md |
Type selection guide |
assets/knowledge.md.template |
Document template |