What problem does it solve?
When entering an unfamiliar repository, LSP and grep only reveal symbol-level and text-level relationships, leaving convention-layer connections (MCP tools, skill manifests, API routes, workflow callbacks) invisible. This Skill provides a methodology to discover repo-specific conventions and build a queryable graph that answers "what breaks if I change X" with freshness and provenance tracking.
Core Features & Use Cases
- Discovery Protocol: A seven-step workflow covering boundary definition, explicit anchor identification, domain definition, extractor TDD, engine integration, baseline comparison, and gap reporting.
- Convention Graph CLI: Commands like
pnpm convention-graph:index and pnpm convention-graph:code-consumers to index a repo and query consumers of MCP tools, skill manifests, or FastAPI routes with freshness status.
- Quality Gates: Every edge carries provenance (extractor, version, source file, line, confidence), and queries report stale state when indexed files change, preventing blind edits on outdated graphs.
- Use Case: Before renaming an MCP tool, run the code-consumers query to find all convention-layer consumers, verify freshness, and compare against grep/LSP results to catch missed references.
Quick Start
Ask the AI to map the convention graph of the current repository and find all consumers of a specific MCP tool before modifying it.