Codemap

From openyida/openyida · View interactive version

Codemap is an AI agent skill from the GitHub repository openyida/openyida. Generate, update, or drift-check agent-facing CodeMaps as progressive code terrain indexes for projects, features, capabilities, functions, modules, or bug chains. Use when Codex needs to inspect an unfamiliar codebase, map a feature/capability from entry to effect, create or update `mydocs/codemap/

How to use this skill

Skill file

Codemap

Core Position

Create CodeMaps for agents, not CodeWiki for humans.

CodeMap saves context attention, not necessarily raw token count. It does not replace source code, tests, logs, or the current Spec. It routes the agent toward the right source-linked evidence, in the right order, with progressive disclosure.

Use a CodeMap as:

Workflow

  1. Restate the requested scope and choose mode:
  1. Before writing a durable CodeMap, tell the user why a map/update is useful, the selected mode, scope, and expected path. Do not silently write persistent maps unless current task approval already covers it.
  2. Read references/principles.md when the output shape, boundary, or CodeWiki-vs-CodeMap distinction matters.
  3. For drift checks, read references/drift-check.md.
  4. For updating an existing map, read references/update-existing.md.
  5. Inspect code with search first (rg, rg --files, language-aware tools if available). Prefer source facts over inferred naming matches.
  6. Build progressive Context Tree Nodes:
  1. Write the map under mydocs/codemap/ when the user requests a durable artifact or the work feeds SDD-RIPER Research:
  1. Keep the CodeMap narrow enough to guide the next agent action. Do not paste large source blocks or turn it into a narrative system document.

Templates

Output Rules

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.