Knowledge Operations
Manage a multi-layered knowledge system for ingesting, organizing, syncing, and retrieving knowledge across multiple stores.
Prefer the live workspace model:
- code work lives in the real cloned repos
- active execution context lives in GitHub, Linear, and repo-local working-context files
- broader human-facing notes can live in a non-repo context/archive folder
- durable cross-machine memory belongs in the knowledge base, not in a shadow repo workspace
When to Activate
- User wants to save information to their knowledge base
- Ingesting documents, conversations, or data into structured storage
- Syncing knowledge across systems (local files, MCP memory, Supabase, Git repos)
- Deduplicating or organizing existing knowledge
- User says "save this to KB", "sync knowledge", "what do I know about X", "ingest this", "update the knowledge base"
- Any knowledge management task beyond simple memory recall
Knowledge Architecture
Layer 1: Active execution truth
- Sources: GitHub issues, PRs, discussions, release notes, Linear issues/projects/docs
- Use for: the current operational state of the work
- Rule: if something affects an active engineering plan, roadmap, rollout, or release, prefer putting it here first
Layer 2: Claude Code Memory (Quick Access)
- Path:
~/.claude/projects/*/memory/
- Format: Markdown files with frontmatter
- Types: user preferences, feedback, project context, reference
- Use for: quick-access context that persists across conversations
- Automatically loaded at session start
Layer 3: MCP Memory Server (Structured Knowledge Graph)
- Access: MCP memory tools (create_entities, create_relations, add_observations, search_nodes)
- Use for: Semantic search across all stored memories, relationship mapping
- Cross-session persistence with queryable graph structure
Layer 4: Knowledge base repo / durable document store
- Use for: curated durable notes, session exports, synthesized research, operator memory, long-form docs
- Rule: this is the preferred durable store for cross-machine context when the content is not repo-owned code
Layer 5: External Data Store (Supabase, PostgreSQL, etc.)
- Use for: Structured data, large document storage, full-text search
- Good for: Documents too large for memory files, data needing SQL queries
Layer 6: Local context/archive folder
- Use for: human-facing notes, archived gameplans, local media organization, temporary non-code docs
- Rule: writable for information storage, but not a shadow code workspace
- Do not use for: active code changes or repo truth that should live upstream
Ingestion Workflow
When new knowledge needs to be captured:
1. Classify
What type of knowledge is it?
- Business decision -> memory file (project type) + MCP memory
- Active roadmap / release / implementation state -> GitHub + Linear first
- Personal preference -> memory file (user/feedback type)
- Reference info -> memory file (reference type) + MCP memory
- Large document -> external data store + summary in memory
- Conversation/session -> knowledge base repo + short summary in memory
2. Deduplicate
Check if this knowledge already exists:
- Search memory files for existing entries
- Query MCP memory with relevant terms
- Check whether the information already exists in GitHub or Linear before creating another local note
- Do not create duplicates. Update existing entries instead.
3. Store
Write to appropriate layer(s):
- Always update Claude Code memory for quick access
- Use MCP memory for semantic searchability and relationship mapping
- Update GitHub / Linear first when the information changes live project truth
- Commit to the knowledge base repo for durable long-form additions
4. Index
Update any relevant indexes or summary files.
Sync Operations
Conversation Sync
Periodically sync conversation history into the knowledge base:
- Sources: Claude session files, Codex sessions, other agent sessions
- Destination: knowledge base repo
- Generate a session index for quick browsing
- Commit and push
Workspace State Sync
Mirror important workspace configuration and scripts to the knowledge base:
- Generate directory maps
- Redact sensitive config before committing
- Track changes over time
- Do not treat the knowledge base or archive folder as the live code workspace
GitHub / Linear Sync
When the information affects active execution:
- update the relevant GitHub issue, PR, discussion, release notes, or roadmap thread
- attach supporting docs to Linear when the work needs durable planning context
- only mirror a local note afterwards if it still adds value
Cross-Source Knowledge Sync
Pull knowledge from multiple sources into one place:
- Claude/ChatGPT/Grok conversation exports
- Browser bookmarks
- GitHub activity events
- Write status summary, commit and push
Memory Patterns
# Short-term: current session context
Use TodoWrite for in-session task tracking
# Medium-term: project memory files
Write to ~/.claude/projects/*/memory/ for cross-session recall
# Long-term: GitHub / Linear / KB
Put active execution truth in GitHub + Linear
Put durable synthesized context in the knowledge base repo
# Semantic layer: MCP knowledge graph
Use mcp__memory__create_entities for permanent structured data
Use mcp__memory__create_relations for relationship mapping
Use mcp__memory__add_observations for new facts about known entities
Use mcp__memory__search_nodes to find existing knowledge
Best Practices
- Keep memory files concise. Archive old data rather than letting files grow unbounded.
- Use frontmatter (YAML) for metadata on all knowledge files.
- Deduplicate before storing. Search first, then create or update.
- Prefer one canonical home per fact set. Avoid parallel copies of the same plan across local notes, repo files, and tracker docs.
- Redact sensitive information (API keys, passwords) before committing to Git.
- Use consistent naming conventions for knowledge files (lowercase-kebab-case).
- Tag entries with topics/categories for easier retrieval.
Quality Gate
Before completing any knowledge operation:
- no duplicate entries created
- sensitive data redacted from any Git-tracked files
- indexes and summaries updated
- appropriate storage layer chosen for the data type
- cross-references added where relevant
Source: affaan-m/ECC → skills/knowledge-ops/SKILL.md
1---
2name: knowledge-ops-2
3description: "Knowledge base management, ingestion, sync, and retrieval across multiple storage layers (local files, MCP memory, vector stores, Git repos). Use when the user wants to save, organize, sync, deduplicate, or search across their knowledge systems."
4category: rag-memory-knowledge
5source_repo: affaan-m/ECC
6source_path: "skills/knowledge-ops/SKILL.md"
7source_url: https://github.com/affaan-m/ECC/blob/HEAD/skills/knowledge-ops/SKILL.md
8metadata:
9 source: https://skillmd.com/skills/thedixitjain/knowledge-ops-2
10---
11
12# Knowledge Operations
13
14Manage a multi-layered knowledge system for ingesting, organizing, syncing, and retrieving knowledge across multiple stores.
15
16Prefer the live workspace model:
17- code work lives in the real cloned repos
18- active execution context lives in GitHub, Linear, and repo-local working-context files
19- broader human-facing notes can live in a non-repo context/archive folder
20- durable cross-machine memory belongs in the knowledge base, not in a shadow repo workspace
21
22## When to Activate
23
24- User wants to save information to their knowledge base
25- Ingesting documents, conversations, or data into structured storage
26- Syncing knowledge across systems (local files, MCP memory, Supabase, Git repos)
27- Deduplicating or organizing existing knowledge
28- User says "save this to KB", "sync knowledge", "what do I know about X", "ingest this", "update the knowledge base"
29- Any knowledge management task beyond simple memory recall
30
31## Knowledge Architecture
32
33### Layer 1: Active execution truth
34- **Sources:** GitHub issues, PRs, discussions, release notes, Linear issues/projects/docs
35- **Use for:** the current operational state of the work
36- **Rule:** if something affects an active engineering plan, roadmap, rollout, or release, prefer putting it here first
37
38### Layer 2: Claude Code Memory (Quick Access)
39- **Path:** `~/.claude/projects/*/memory/`
40- **Format:** Markdown files with frontmatter
41- **Types:** user preferences, feedback, project context, reference
42- **Use for:** quick-access context that persists across conversations
43- **Automatically loaded at session start**
44
45### Layer 3: MCP Memory Server (Structured Knowledge Graph)
46- **Access:** MCP memory tools (create_entities, create_relations, add_observations, search_nodes)
47- **Use for:** Semantic search across all stored memories, relationship mapping
48- **Cross-session persistence with queryable graph structure**
49
50### Layer 4: Knowledge base repo / durable document store
51- **Use for:** curated durable notes, session exports, synthesized research, operator memory, long-form docs
52- **Rule:** this is the preferred durable store for cross-machine context when the content is not repo-owned code
53
54### Layer 5: External Data Store (Supabase, PostgreSQL, etc.)
55- **Use for:** Structured data, large document storage, full-text search
56- **Good for:** Documents too large for memory files, data needing SQL queries
57
58### Layer 6: Local context/archive folder
59- **Use for:** human-facing notes, archived gameplans, local media organization, temporary non-code docs
60- **Rule:** writable for information storage, but not a shadow code workspace
61- **Do not use for:** active code changes or repo truth that should live upstream
62
63## Ingestion Workflow
64
65When new knowledge needs to be captured:
66
67### 1. Classify
68What type of knowledge is it?
69- Business decision -> memory file (project type) + MCP memory
70- Active roadmap / release / implementation state -> GitHub + Linear first
71- Personal preference -> memory file (user/feedback type)
72- Reference info -> memory file (reference type) + MCP memory
73- Large document -> external data store + summary in memory
74- Conversation/session -> knowledge base repo + short summary in memory
75
76### 2. Deduplicate
77Check if this knowledge already exists:
78- Search memory files for existing entries
79- Query MCP memory with relevant terms
80- Check whether the information already exists in GitHub or Linear before creating another local note
81- Do not create duplicates. Update existing entries instead.
82
83### 3. Store
84Write to appropriate layer(s):
85- Always update Claude Code memory for quick access
86- Use MCP memory for semantic searchability and relationship mapping
87- Update GitHub / Linear first when the information changes live project truth
88- Commit to the knowledge base repo for durable long-form additions
89
90### 4. Index
91Update any relevant indexes or summary files.
92
93## Sync Operations
94
95### Conversation Sync
96Periodically sync conversation history into the knowledge base:
97- Sources: Claude session files, Codex sessions, other agent sessions
98- Destination: knowledge base repo
99- Generate a session index for quick browsing
100- Commit and push
101
102### Workspace State Sync
103Mirror important workspace configuration and scripts to the knowledge base:
104- Generate directory maps
105- Redact sensitive config before committing
106- Track changes over time
107- Do not treat the knowledge base or archive folder as the live code workspace
108
109### GitHub / Linear Sync
110When the information affects active execution:
111- update the relevant GitHub issue, PR, discussion, release notes, or roadmap thread
112- attach supporting docs to Linear when the work needs durable planning context
113- only mirror a local note afterwards if it still adds value
114
115### Cross-Source Knowledge Sync
116Pull knowledge from multiple sources into one place:
117- Claude/ChatGPT/Grok conversation exports
118- Browser bookmarks
119- GitHub activity events
120- Write status summary, commit and push
121
122## Memory Patterns
123
124```
125# Short-term: current session context
126Use TodoWrite for in-session task tracking
127
128# Medium-term: project memory files
129Write to ~/.claude/projects/*/memory/ for cross-session recall
130
131# Long-term: GitHub / Linear / KB
132Put active execution truth in GitHub + Linear
133Put durable synthesized context in the knowledge base repo
134
135# Semantic layer: MCP knowledge graph
136Use mcp__memory__create_entities for permanent structured data
137Use mcp__memory__create_relations for relationship mapping
138Use mcp__memory__add_observations for new facts about known entities
139Use mcp__memory__search_nodes to find existing knowledge
140```
141
142## Best Practices
143
144- Keep memory files concise. Archive old data rather than letting files grow unbounded.
145- Use frontmatter (YAML) for metadata on all knowledge files.
146- Deduplicate before storing. Search first, then create or update.
147- Prefer one canonical home per fact set. Avoid parallel copies of the same plan across local notes, repo files, and tracker docs.
148- Redact sensitive information (API keys, passwords) before committing to Git.
149- Use consistent naming conventions for knowledge files (lowercase-kebab-case).
150- Tag entries with topics/categories for easier retrieval.
151
152## Quality Gate
153
154Before completing any knowledge operation:
155- no duplicate entries created
156- sensitive data redacted from any Git-tracked files
157- indexes and summaries updated
158- appropriate storage layer chosen for the data type
159- cross-references added where relevant
160
161---
162
163**Source:** [`affaan-m/ECC`](https://github.com/affaan-m/ECC) → `skills/knowledge-ops/SKILL.md`