knowledge-consolidation

Consolidate and persist knowledge from AI conversations into structured documents. Use when user asks to summarize, consolidate, save knowledge, document insights, or preserve learnings. Triggers on: '总结一下', '记录下来', 'save this knowledge', 'document this', 'we figured it out', 'that was hard to solve'. Saves to .trae/knowledges/, .claude/knowledges/, or .cursor/knowledges/ based on AI IDE.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "knowledge-consolidation" with this command: npx skills add learnwy/skills/learnwy-skills-knowledge-consolidation

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

IndicatorAI TypeStorage Path
.trae/ dirtrae.trae/knowledges/
.claude/ dirclaude-code.claude/knowledges/
.cursor/ dircursor.cursor/knowledges/

Step 2: Knowledge Types

TypeWhen to Use
debugBug fixes, crash analysis, error resolution
architectureSystem design, module structure
patternReusable code patterns, best practices
configBuild settings, environment setup
apiAPI design, integration details
workflowDevelopment processes
lessonPost-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

ResourcePurpose
scripts/get-knowledge-path.shGenerate file path
references/knowledge-types.mdType selection guide
assets/knowledge.md.templateDocument template

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

memory-manager

No summary provided by upstream source.

Repository SourceNeeds Review
General

english-learner

No summary provided by upstream source.

Repository SourceNeeds Review
General

trae-rules-writer

No summary provided by upstream source.

Repository SourceNeeds Review