Agent skill

Lat Md Knowledge Graph

by stevesolun in stevesolun/ctx

Design or audit a repo-local markdown knowledge graph with wiki links, source-code backlinks, drift checks, and searchable sections.

MITAuto-check passedKnowledge Management

Install Lat Md Knowledge Graph

skills CLI
$ npx skills add stevesolun/ctx --skill lat-md-knowledge-graph -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install stevesolun/ctx lat-md-knowledge-graph --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/stevesolun/ctx.git skills-src && mkdir -p .claude/skills && cp -r skills-src/imported-skills/lat-md/skills/lat-md-knowledge-graph .claude/skills/lat-md-knowledge-graph && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
lat-md-knowledge-graph
GitHub stars
588
Token cost
~466 tokens
SKILL.md length
224 words
Files
1
Skills in repo
26
Repo updated
First seen
Licence
MIT

At a glance

Design or audit a repo-local markdown knowledge graph with wiki links, source-code backlinks, drift checks, and searchable sections.

  • Works in 6 steps: Create a repo-local knowledge directory… → Split pages by durable concepts:… → Link concepts with [[wiki links]]. → …
  • AGENTS.md/CLAUDE.md is too flat for a large codebase
  • SKILL.md covers Purpose, When to Use, Design Pattern and ctx Fit, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Lat Md Knowledge Graph is an agent skill from stevesolun/ctx. 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.

Its SKILL.md is about 470 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Knowledge Management, covering Knowledge graphs, Link building and Agent instruction files. The repository describes itself as: CTX Fit finds the cheapest AI coding setup that reliably works on your repository, then applies the winner as a reviewable change. The licence is MIT.

When your agent uses it

  • AGENTS.md/CLAUDE.md is too flat for a large codebase
  • A custom harness needs durable structured project memory

Example prompts

  • “/lat-md-knowledge-graph”

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Create a repo-local knowledge directory such as lat.md/ or docs/knowledge/.
  2. Split pages by durable concepts: architecture, domain rules, workflows,
  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
  6. Add a check that fails on broken links, missing backlinks, stale indexes, or

What it can do on your machine

Read from SKILL.md and the folder at commit 11b582a. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Lat Md Knowledge Graph loads about 466 tokens when it runs. Until then it costs about 71 tokens; SKILL.md has 224 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~71
When it runs · the whole SKILL.md, loaded when a task matches
~466

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from stevesolun/ctx at commit 11b582a, republished under its MIT licence (© stevesolun). 224 words, ~466 tokens.

Download SKILL.mdSave it as .claude/skills/lat-md-knowledge-graph/SKILL.md (or your agent's skills folder).
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.

© stevesolun, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in imported-skills/lat-md/skills/lat-md-knowledge-graph of stevesolun/ctx.

Open the folder on GitHubat commit 11b582a

Compare with similar skills

Lat Md Knowledge Graph next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Lat Md Knowledge Graph compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Lat Md Knowledge Graph this skillstevesolun/ctx588—~466Automated safety check: PassMIT
Ontology1mancompany/OneManCompany4402 repos~1.5kAutomated safety check: PassApache-2.0
Basic Memorybasicmachines-co/basic-memory4.1k—~2.9kAutomated safety check: PassAGPL-3.0
Para Memory FilesUndertone0809/rudder292—~2.6kAutomated safety check: PassApache-2.0
MemPalace MemoryMemPalace/mempalace59k—~2.7kAutomated safety check: PassMIT
Cortexdb Memory Hermesliliang-cn/cortexdb274—~1.7kAutomated safety check: PassMIT

Similar skills

  • Ontology

    1mancompany/OneManCompany

    Typed knowledge graph for structured agent memory and composable skills.

    440 GitHub starsUsed in 2 repos~1.5k tokens
    Knowledge ManagementAuto-check passed
  • Basic Memory

    basicmachines-co/basic-memory

    Use the Basic Memory knowledge graph for persistent memory across sessions.

    4.1k GitHub stars~2.9k tokensUpdated today
    Knowledge ManagementAuto-check passed
  • Para Memory Files

    Undertone0809/rudder

    File-based memory system using Tiago Forte's PARA method. An agent skill from Undertone0809/rudder.

    292 GitHub stars~2.6k tokensUpdated today
    Knowledge ManagementAuto-check passed
  • MemPalace Memory

    MemPalace/mempalace

    Gives an agent a local memory palace over MCP: verbatim conversation memory, semantic search and a temporal knowledge graph, with a per-session recall protocol.

    59k GitHub stars~2.7k tokensUpdated today
    Knowledge ManagementAuto-check passed
  • Cortexdb Memory Hermes

    liliang-cn/cortexdb

    Give a Python agent (such as Hermes Agent by Nous Research) durable, local-first memory plus a queryable SPARQL knowledge graph, backed by CortexDB through its gRPC sidecar and the cortexdb-client…

    274 GitHub stars~1.7k tokensUpdated yesterday
    Knowledge ManagementAuto-check passed
  • Cortexdb Memory Openclaw

    liliang-cn/cortexdb

    Give a Node.js agent (such as OpenClaw) durable, local-first memory plus a queryable SPARQL knowledge graph, backed by CortexDB through its gRPC sidecar and the cortexdb-client npm package.

    274 GitHub stars~1.6k tokensUpdated yesterday
    Knowledge ManagementAuto-check passed

More from stevesolun/ctx

All 26 skills in this repo
  • Diagnosing Bugs

    stevesolun/ctx

    Diagnose hard bugs and performance regressions with reproducible evidence, focused hypotheses, and proportional instrumentation.

    588 GitHub stars~596 tokensUpdated 4 days ago
    Auto-check passed
  • Repo Stats Autoupdate

    stevesolun/ctx

    Keeps README badge + inline counts in sync with the real number of skills, agents, graph nodes/edges, communities, converted pipelines, and test inventory.

    588 GitHub stars~724 tokensUpdated 4 days ago
    Auto-check passed
  • Code Review

    stevesolun/ctx

    Review a Git diff against repository standards and its originating requirements.

    588 GitHub stars~466 tokensUpdated 4 days ago
    Auto-check passed
  • No Mistakes

    stevesolun/ctx

    Validate committed feature-branch changes through the no-mistakes pipeline: intent, rebase, review, test, docs, lint, push, PR, and CI.

    588 GitHub stars~458 tokensUpdated 4 days ago
    Auto-check passed
  • Skill Router

    stevesolun/ctx

    Repo-aware recommendation manager for ctx. An agent skill from stevesolun/ctx.

    588 GitHub stars~2.4k tokensUpdated 4 days ago
    Auto-check passed
  • Codebase Design

    stevesolun/ctx

    Design or improve module interfaces using deep-module heuristics.

    588 GitHub stars~662 tokensUpdated 4 days ago
    Auto-check passed

Questions about Lat Md Knowledge Graph

What does Lat Md Knowledge Graph do?

Design or audit a repo-local markdown knowledge graph with wiki links, source-code backlinks, drift checks, and searchable sections. Lat Md Knowledge Graph is an agent skill from stevesolun/ctx. Design or audit a repo-local markdown knowledge graph with wiki links, source-code backlinks, drift checks, and searchable sections.

When should I use Lat Md Knowledge Graph?

Lat Md Knowledge Graph fits situations like: AGENTS.md/CLAUDE.md is too flat for a large codebase; A custom harness needs durable structured project memory.

How do I install Lat Md Knowledge Graph in Claude Code?

Run `npx skills add stevesolun/ctx --skill lat-md-knowledge-graph -a claude-code`. Or copy the skill folder (imported-skills/lat-md/skills/lat-md-knowledge-graph in stevesolun/ctx) into .claude/skills/lat-md-knowledge-graph in your project. Claude Code loads it when a task matches its description.

How do I install Lat Md Knowledge Graph in Codex?

Run `npx skills add stevesolun/ctx --skill lat-md-knowledge-graph -a codex`. Or copy the skill folder (imported-skills/lat-md/skills/lat-md-knowledge-graph in stevesolun/ctx) into .agents/skills/lat-md-knowledge-graph in your project. Codex loads it when a task matches its description.

Can I use Lat Md Knowledge Graph in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add stevesolun/ctx --skill lat-md-knowledge-graph -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/lat-md-knowledge-graph, .gemini/skills/lat-md-knowledge-graph, .github/skills/lat-md-knowledge-graph and .opencode/skills/lat-md-knowledge-graph in your project.

What does Lat Md Knowledge Graph need to run?

SKILL.md names no scripts, command-line tools or credentials: Lat Md Knowledge Graph is instructions for the agent only.

Does Lat Md Knowledge Graph access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Lat Md Knowledge Graph safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Lat Md Knowledge Graph use?

Lat Md Knowledge Graph is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Lat Md Knowledge Graph use?

About 466 tokens (SKILL.md is roughly 1.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Lat Md Knowledge Graph?

Skills that share tags, products or a category with Lat Md Knowledge Graph: Ontology (1mancompany/OneManCompany, 440 stars), Basic Memory (basicmachines-co/basic-memory, 4.1k stars), Para Memory Files (Undertone0809/rudder, 292 stars) and MemPalace Memory (MemPalace/mempalace, 59k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Lat Md Knowledge Graph?

stevesolun (a GitHub user) maintains it in stevesolun/ctx, which has 588 GitHub stars. The repository holds 26 skills in this directory. The repository was last updated on October 4, 2026.

Source: stevesolun/ctx on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.