/codebase:seams [<source> [<target>]] [--project <name>[,<name>...]]from codebase
Inspect architectural seams and coupling across packages or repos. [<source> [<target>]] [--project <name>...]
Ships in codebase. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Identify, inspect, and audit architectural seams and module boundaries across packages or across multiple indexed repositories. Combines get_architecture, query_graph, search_graph, trace_path, and get_code_snippet to classify seam types (Object/Interface, Link/Module, Service/IPC, Configuration), measure Martin's Instability ($I = \frac{C_e}{C_a + C_e}$), detect leaky crossings or cycles, and pinpoint concrete Enabling Points (file:line).
| Argument | Type | Default | Description |
|---|---|---|---|
<source> | string | optional | Package, directory prefix, layer, or symbol prefix on one side of the seam (or source project name if --project is omitted). Omit to discover top seams across the repo(s). |
<target> | string | optional | Package, directory prefix, or symbol prefix on the other side of the seam (or target project name if --project is omitted). If omitted when <source> is given, shows all inbound and outbound seams for <source>. |
--project | string | current repo | One or more indexed project names or paths (comma-separated or repeated). |
Examples:
/codebase:seams
/codebase:seams internal/auth
/codebase:seams internal/api internal/db
/codebase:seams api-gateway billing-service
/codebase:seams handlers store --project backend-api
Prefer MCP first. If its tools are absent or the server is unreachable, automatically try the CLI without asking:
command -v codebase-memory-mcp
codebase-memory-mcp cli --json list_projects
Set codebase_transport to mcp or cli. All tool calls below use that transport. For CLI calls, pipe the same JSON arguments to codebase-memory-mcp cli --json <tool> via stdin; inspect isError and read the result from content[] text. Use each tool's --help for supported flags and output formats. Query and indexing errors are not transport failures: report them accurately, not as missing MCP. On a later MCP connection failure, retry through CLI. Preserve project selection, index settings, and consent rules; do not install anything automatically.
Resolve the transport above. Only if neither MCP nor CLI works, explain that seam analysis requires either a configured MCP server or the installed codebase-memory-mcp CLI, then exit.
Read references/freshness.md and follow it for every project in scope. For external projects given via --project, verify each via index_status; warn and skip any unindexed external project while proceeding with indexed ones.
Call list_projects.
--project is omitted:
<source> and <target> positional arguments are supplied, do not match local directory paths in the current repository, and each matches an indexed project in list_projects (using the 3-step matching rules below), treat <source> and <target> as --project <source>,<target> (entering Mode C).git rev-parse --show-toplevel to get the current repository root. Match against list_projects strictly where root_path equals the repository root (or name equals the full derived path slug with leading / stripped and / replaced by -). Never match the default current repo by directory basename alone, because worktrees and renamed clones share basenames.--project <token>[,<token>...] is supplied:
list_projects in order: (1) exact name match, (2) exact root_path match, (3) case-insensitive suffix or basename match on name or root_path.list_projects, and advise running /codebase:index in that repository.1..N) showing name (root_path) and prompt the user to choose using the harness question mechanism.Sanitize <source> and <target> before constructing any Cypher string (strip or reject single quotes ', double quotes ", backslashes \, and control characters).
>= 2 projects via --project or 2-project positional shorthand) and <source>/<target> are either omitted or cross-project filters: Run Step 3c (Mode C — Multi-Index Seam Analysis) (also run Step 3a if no <source>/<target> filters were given and user wants full discovery).<source>/<target>: Run Step 3a (Mode A — Seam Discovery).<source> (and optional <target>): Run Step 3b (Mode B — Targeted Seam Inspection).<source>/<target>)Read references/mode-a-discovery.md and follow it.
<source> and optional <target> within a project)Read references/mode-b-targeted.md and follow it.
>= 2 projects)Read references/mode-c-multi-index.md and follow it.
Read references/present-results.md and follow it.
Read references/share.md and follow it.
What SKILL.md sets; muted values are Claude Code's defaults
Use when the user wants to identify, inspect, or audit architectural seams and boundaries within a codebase or across indexed repositories: 'what are the seams', 'find leaky seams', 'show the boundary between X and Y', 'where can we split or decouple X', 'how does repo A integrate with repo B'. Not for tracing a single symbol's call tree (use codebase:graph) diff blast radius (use codebase:impact), or the whole-system component map and rules (use codebase:architecture).
npx claudepluginhub jskswamy/skills --plugin codebase12 skills in this plugin
/dead-codeFind code nothing uses, with each candidate verified. [<path>]