/lat-md-knowledge-graph
Design or audit a repo-local markdown knowledge graph with wiki links, source-code backlinks, drift checks, and searchable sections. Use when AGENTS.md/CLAUDE.md is too flat for a large codebase or when a custom harness needs durable structured project memory.
$ npx -y skills add stevesolun/ctx --skill lat-md-knowledge-graph --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/lat-md-knowledge-graph
Context preview
The summary Claude sees to decide when to auto-load this skill.
Design or audit a repo-local markdown knowledge graph with wiki links, source-code backlinks, drift checks, and searchable sections. Use when AGENTS.md/CLAUDE.md is too flat for a large codebase or when a custom harness needs durable structured project memory.
SKILL.md
lat-md-knowledge-graph.SKILL.mdname: lat-md-knowledge-graph
description: >
Design or audit a repo-local markdown knowledge graph with wiki links,
source-code backlinks, drift checks, and searchable sections. Use when
AGENTS.md/CLAUDE.md is too flat for a large codebase or when a custom
harness needs durable structured project memory.
lat.md Knowledge Graph
Purpose
Turn durable project knowledge into linked markdown files that agents can search, cite, and keep synchronized with code.
When to Use
- One root instruction file is too large or hides domain decisions.
- Agents repeatedly rediscover the same architecture or business rules.
- Test intent needs explicit specs linked to test code.
- A custom harness needs persistent memory outside conversation history.
Design Pattern
1. Create a repo-local knowledge directory such as `lat.md/` or `docs/knowledge/`. 2. Split pages by durable concepts: architecture, domain rules, workflows, interfaces, test specs, and operational constraints. 3. Link concepts with `[[wiki links]]`. 4. Link knowledge pages to source symbols or files. 5. Add code backlinks such as comments or metadata where the code implements a documented rule. 6. Add a check that fails on broken links, missing backlinks, stale indexes, or test specs without code mentions.
ctx Fit
Use this alongside ctx's LLM-wiki when a project needs its own local memory graph. ctx recommends skills/MCPs/agents from its catalog; the repo-local graph stores project-specific facts that should not live in the global catalog.
Quality Bar
- Page titles and section anchors are stable.
- Links resolve both ways where needed.
- Code backlinks are narrow and reviewable.
- Checks run in CI before merge.
- Sensitive facts stay out unless the repo already allows them.
- The graph explains current behavior, not a speculative roadmap.
Read more
name: lat-md-knowledge-graph description: > Design or audit a repo-local markdown knowledge graph with wiki links, source-code backlinks, drift checks, and searchable sections. Use when AGENTS.md/CLAUDE.md is too flat for a large codebase or when a custom harness needs durable structured project memory.
lat.md Knowledge Graph
Purpose
Turn durable project knowledge into linked markdown files that agents can search, cite, and keep synchronized with code.
When to Use
- One root instruction file is too large or hides domain decisions.
- Agents repeatedly rediscover the same architecture or business rules.
- Test intent needs explicit specs linked to test code.
- A custom harness needs persistent memory outside conversation history.
Design Pattern
1. Create a repo-local knowledge directory such as `lat.md/` or `docs/knowledge/`. 2. Split pages by durable concepts: architecture, domain rules, workflows, interfaces, test specs, and operational constraints. 3. Link concepts with `[[wiki links]]`. 4. Link knowledge pages to source symbols or files. 5. Add code backlinks such as comments or metadata where the code implements a documented rule. 6. Add a check that fails on broken links, missing backlinks, stale indexes, or test specs without code mentions.
ctx Fit
Use this alongside ctx's LLM-wiki when a project needs its own local memory graph. ctx recommends skills/MCPs/agents from its catalog; the repo-local graph stores project-specific facts that should not live in the global catalog.
Quality Bar
- Page titles and section anchors are stable.
- Links resolve both ways where needed.
- Code backlinks are narrow and reviewable.
- Checks run in CI before merge.
- Sensitive facts stay out unless the repo already allows them.
- The graph explains current behavior, not a speculative roadmap.
ctx is a Python CLI and library that recommends a small, relevant set of skills, agents, and MCP servers for a repository or task. It can use your organization's local/private knowledge or the shipped graph.
Repo: stevesolun/ctx
Other skills on stevesolun-ctx.
- /ctx-dispatch
Coordinate nontrivial work in the ctx repository when a task has independent investigation, implementation, or test lanes; compute-heavy checks; or repetitive changes suited to scripts or codemods. Use for decomposition and concurrency decisions, not simple edits or questions.
Open skill - /ctx-verify
Select proportional validation for changes or reviews in the ctx repository. Use before handing off material code, workflow, migration, documentation, security, packaging, or release changes; before a PR; or when asked whether a change is adequately tested. Do not use for pure
Open skill - /agents-md-protocol
Create or review an AGENTS.md file so coding agents get stable repo-local instructions: environment setup, testing, style, security boundaries, PR policy, and handoff rules. Use when a repo lacks durable agent guidance or when a custom harness needs a predictable context file.
Open skill - /cavecrew
Decision guide for delegating to caveman-style subagents. Tells the main thread WHEN to spawn `cavecrew-investigator` (locate code), `cavecrew-builder` (1-2 file edit), or `cavecrew-reviewer` (diff review) instead of doing the work inline or using vanilla `Explore`. Subagent
Open skill - /caveman-commit
Ultra-compressed commit message generator. Cuts noise from commit messages while preserving intent and reasoning. Conventional Commits format. Subject ≤50 chars, body only when "why" isn't obvious. Use when user says "write a commit", "commit message", "generate commit",
Open skill - /caveman-compress
Compress natural language memory files (CLAUDE.md, todos, preferences) into caveman format to save input tokens. Preserves all technical substance, code, URLs, and structure. Compressed version overwrites the original file. Human-readable backup saved as FILE.original.md.
Open skill

