Codemap Preflight Protocol banner
samibs samibs

Codemap Preflight Protocol

Development community

Description

# Codebase Comprehension Pre-Flight Protocol > **Run before implementing or refactoring against an existing codebase.** > Sibling to `_env-preflight-protocol.md`: that one pre-flights the *environment*, > this one pre-flights the *code*. This protocol prevents the framework's #1 failure class — the **Frontend-Backend Contract Mismatch** — by giving agents a structural model of the code *before* they write. It is backed by the `sf_codemap` MCP tool (engine: `mcp-server/src/agents/codemap/`). -

Installation

Installs to ~/.claude/agents/samibs-skillfoundry-_codemap-preflight-protocol.md

Terminal
mkdir -p ~/.claude/agents && curl -fsSL https://raw.githubusercontent.com/samibs/skillfoundry/HEAD/agents/_codemap-preflight-protocol.md -o ~/.claude/agents/samibs-skillfoundry-_codemap-preflight-protocol.md

Restart Claude Code, or start a new session, for it to be picked up.

Full documentation available on GitHub

View Source Repository