/platty:platty-retrievalfrom platty
Searches local Platty SOT outputs, generated docs, graph traces, code search, and source-grounded project evidence through the full Platty operator plugin.
Ships in platty. 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.
Use this skill when a user asks a question that should be answered from local
Platty evidence through the full platty operator plugin.
Remote read-only MCP retrieval is handled by the separate
platty-mcp:platty-mcp-retrieval skill. Do not use this local retrieval skill
as the MCP transport entry point.
Platty projects a single source of truth (the DB) into a read-only Markdown tree at
~/.platty/sot/<projectId>/. Discovery and static relations live in that folder
(grep/read). Computation, cross-layer traversal, and writes escalate to the CLI.
The split is not "MD vs CLI" — it is enumerable/static (MD wins) vs computed/traversed/mutated (CLI wins):
question
-> resolve projectId -> ~/.platty/sot/<projectId>/ (folder is the map)
-> read overview.md + catalog/*.md (orient; solve unknown-unknowns)
-> use project overview/personas + catalog/epics.md (choose candidate EPIC + purpose doc)
-> read epics/<id>/overview.md when it exists (compact epic routing context)
-> choose BR / DD / DESIGN / UCL by question intent (business-doc routing)
-> list connected source-near specs before opening details
-> read the source-near detail before code search (API/screen/event/schedule)
-> stay on the EPIC spine: use epic ids/docs as the semantic route map before final synthesis
-> use `sot resolve` when holding an id (epic/doc/item/model -> specs/models/trace seeds)
-> grep catalog/*.md by name/summary (discover candidates — ids are opaque)
-> read epics/<id>/*.md and specs/<kind>/<fileId>.md (detail)
-> follow frontmatter ids to the next MD (static relations, no CLI hop)
-> escalate to CLI ONLY for: (graph trace / code search / memory write)
-> pass the Completeness Gate (3 axes) before STOP (depth / width / macro — not a partial answer)
-> answer with validity (freshness)
When the evidence at a step is enough, STOP there; when it is not, go one step deeper. But before any STOP, run the Completeness Gate (3 Axes) (see Stop Conditions) so a plausible partial answer doesn't pass for the authoritative one — go down to code where the answer lives (depth), expose a split question instead of silently picking one branch (width), and for a multi-target question build the spec/BR map first and let code only verify it (macro). A pure definition / naming question is exempt.
If the SOT folder does not exist yet, use the advanced recovery CLI graph
walk below only when local CLI access is appropriate. For MCP retrieval, route
to platty-mcp:platty-mcp-retrieval instead of falling back to local files or
CLI.
platty-retrieval is the local operator retrieval skill:
using-platty -> platty-retrieval
using-platty-mcp -> platty-mcp-retrieval
Discovery starts from the local SOT Markdown projection at
~/.platty/sot/<projectId>/, and computed traversal or writes escalate to
Platty CLI commands such as platty sot resolve, platty graph trace,
platty code search, platty code snippet, or platty memory add.
Do not silently switch from MCP questions to local SOT files or local CLI. Route
remote MCP questions to platty-mcp:using-platty-mcp.
Keep this file as the router and common evidence rules. For case-specific depth, read the linked reference before answering:
| Question shape | Required reference |
|---|---|
| concept, term meaning, ambiguous Korean/English term, "how are these different?" | references/concept-search.md |
| exact endpoint, response shape, params, API side effects, "what does this API do/return?" | references/exact-api.md |
| screen, page, route, UI entry point, screen spec | references/screen-search.md |
| screen-to-api, api-to-screen, DB impact, event flow, external integration, batch, blast radius | references/impact-tracing.md |
| source file, symbol, snippet, code location, concrete implementation | references/code-search.md |
| business rule, policy, permission, eligibility, documented constraint | references/business-policy.md |
| "what must change", "what breaks", "where do we patch this", add/change a field/type/status/category/classification | references/design-change.md |
| bug, incident, root-cause investigation, regression suspicion | references/bug-diagnosis.md |
| negative evidence, "does this exist?", graph gap, missing docs, coverage boundary | references/negative-evidence.md |
| cross-epic, cross-product-area, multi-area flow | references/cross-epic-flow.md |
If a reference applies, load it. Do not rely on memory of its checklist. If no reference clearly applies, use this SKILL.md's common State Gate, Query Class Routing, Completeness Gate, and Answer Contract. When the same uncovered shape causes repeated misses, promote it into a new reference file and add a row here.
The commands below are local-transport-only. In MCP mode, use configured
resolver/read tools such as epic_get, document_get,
document_spec_resolve, spec_get, spec_document_resolve, or
spec_impact_resolve. If the MCP server cannot expose an equivalent
resolver/read path, stop with a configuration/boundary gap. Do not read
~/.platty/sot/ or run local platty commands from MCP mode.
When you already have an EPIC id, document id, item key, or model id/name and need connected APIs, screens, events, schedules, models, or graph-trace seeds, use the resolver before graph traversal:
platty sot resolve --project <project> --epic <epicId> --json
platty sot resolve --project <project> --document <documentId> --json
platty sot resolve --project <project> --item <documentId#stableKey> --json
platty sot resolve --project <project> --model <modelId-or-name> --json
Resolver output is a machine-readable routing layer. It does not prove business
claims; it chooses connected specs, models, and safe next hops. After resolve,
assert exact behavior only from source-near specs and, when needed, graph
trace/source code. Treat source-near API/screen/event/schedule traceIds as
the normal first trace seeds. Treat model db:<table> traces as broad impact
tools, not as the default next hop for business/concept retrieval.
Use the default resolver output first. It is intentionally compact for agents.
For shared models such as User, Workspace, Channel, Order, or Project,
model-only resolve may be too broad. If the question already has an EPIC or
document context, scope the model resolve:
platty sot resolve --project <project> --model <modelId-or-name> --within-epic <epicId> --json
Use --detail full only when you truly need the complete machine inventory.
Do not use full detail as the default search path.
If a model-only resolve returns a shared-model warning, do not jump straight to
graph trace --from db:<table>. First scope the model with --within-epic, read
the connected source-near specs, then trace from the returned API/screen/event/
schedule ids. Use --detail full or a DB-anchored trace only for explicit global
table/field impact questions.
The numbered flow below is the local-transport SOT projection path. In MCP
mode, mirror the same judgment through configured MCP tools such as
context_status, epic_list, epic_get, document_search, document_get,
document_spec_resolve, spec_get, spec_document_resolve, and
spec_impact_resolve. If the MCP server cannot expose the required overview,
catalog, document, or resolver surfaces, stop with a
configuration/boundary gap instead of reading local files or running local CLI
commands.
Before choosing a retrieval strategy, classify the project state from generic SOT structure.
projectId and locate ~/.platty/sot/<projectId>/.overview.md when present and catalog/epics.md to choose the
candidate EPIC route. Do not use README.md as retrieval evidence; it is
layout/freshness audit only.platty sot glossary search --project <project> --query "<raw term>" --json
instead of expecting a glossary Markdown file. Do not guess English terms before glossary search.documentCount > 0 and generated files exist under epics/<epicId>/ such as overview.md, br.md, design.md, data_dictionary.md, or usecases/ucl.md (usecases/ucs.md only when exported), use Business Index Mode for business, planning, policy/rules, journey, and concept questions. Project overview.md / personas.md when present and epic overview.md docs are coarse route maps: they choose an EPIC and purpose docs, not exhaustive API/screen/event/schedule evidence.references/design-change.md even when business docs exist: start with targeted static catalog grep + graph traces when the question is already anchored to an implementation entity or asks for code/impact, then use business docs for semantic scope and constraints when available.Never use fixture names, repository names, source paths, EPIC titles, or domain-specific terms as activation conditions. The mode decision must be based on the generic SOT layout and catalog fields.
Before glossary routing, preserve the raw user phrase and check memory overlays for user-confirmed aliases. This handles domain slang, abbreviations, Korean/English mixes, and team-specific words that generated docs may never contain.
epics/<epicId>/memory.md after candidate EPICs are known.memories when already on a source-near spec.친구 when the user says 응원친구,
but they do not prove a business rule.alias: 응원친구 -> canonical: 친구, grep/search 응원친구, 친구,
and likely code-language equivalents from glossary hits.platty memory alias add --project <project> --epic <epicId> --term "<raw>" --canonical "<canonical>" --json.
If no EPIC is known, ask one clarifying question and find the candidate EPIC
before recording. In MCP mode, do not recommend a local alias write; stop and
report a configuration/boundary gap, and route the user to the full platty
operator plugin for alias recording. Alias memory is query normalization, not
business proof.Before answering, decide and state the evidence boundary in one or two sentences:
This is not citation polish; it prevents false product claims. If business docs are absent, a product/planning question can still get an implementation-structure answer, but it cannot get retrieved business intent, policy, priority, or a complete journey. If graph trace returns no confirmed edge, say there is no confirmed graph evidence for that anchor/depth/kind set, not that there is no impact.
For exact behavior, permissions, response shape, DB writes, event emits, external calls, policy/rule enforcement, and negative source-absence claims, generated business docs are only the route map. Confirm through the connected source-near spec first (specs/api, specs/screen, specs/event, or specs/schedule), then inspect original source code using the spec path, graph trace, code search, docs show code evidence, or direct worktree reads. Assert from the source-near spec/code; cite business docs only as the index that located it.
Before declaring that a handler, source file, permission check, response field, write, emit, or external call is absent, confirm the intended project repository id/path from the SOT catalog row, spec frontmatter, graph/code evidence, or docs show evidence. Do not search a sibling repo, tutorial variant, generated example, or adjacent monorepo package and conclude the project lacks the behavior.
Use business docs as detailed routers when the question is business-contextual, ambiguous, or asks about a capability, rule, data area, user journey, or design area. They narrow the search inside an EPIC:
rules, design, data, terms). They intentionally do not enumerate
every API/screen/event/schedule; use catalogs or the EPIC Technical Index for that.traceId. This is the preferred bridge from
business context to source-near detail.Business-doc ladder for ambiguous or domain-term questions:
overview.md plus catalog/epics.md candidate EPIC rows.epics/<epicId>/overview.md routing context.When using these docs, prefer item-level docLinks, items[].docLinks,
source_mapping[].documentId, the EPIC Technical Index, and linked catalog rows
to choose the relevant api_spec, screen_spec, event_spec, schedule_spec,
and source files. Business-doc prose is routing evidence, not final truth.
Bypass business docs when the question is already anchored to a specific endpoint, specific file, specific symbol, specific model field, screen, event, schedule, trace id, or exact implementation fact. In those cases, go directly to the relevant catalog/spec and source code. In short: go directly to the relevant catalog/spec and source code when the question is already source-near, then use business docs only if semantic scope or cross-feature context is still needed.
After the State Gate, route by question shape before reading details. This keeps retrieval bounded and prevents the "CLI is available, so trace first" failure mode.
| Question shape | First hop | Drilldown gate | Stop rule |
|---|---|---|---|
| concept / term meaning | sot glossary search, then catalog/epics.md | candidate epic.md / design.md | stop before graph unless implementation is asked |
| planning / product direction | catalog/epics.md | design.md, br.md, usecases/ucl.md | stop after business docs when supported |
| policy / business rules | catalog/epics.md | br.md, usecases/ucs.md, data_dictionary.md | do not infer policy from code alone |
| user journey / screen flow | catalog/epics.md plus catalog/screens.md | design.md, usecases/ucl.md, screen specs | separate journey from implementation |
| precise API / screen / table impact | static catalog row (apis.md, screens.md, tables.md) | graph trace from traceId / serviceMapNodes, then source snippet | state graph limits and candidates |
| data field / carrier impact | catalog/tables.md or field docs | DB-anchored upstream trace with accesses_db,calls_api, then source grep | check read carriers as well as writes |
| code location | glossary search codeTerm or static catalog | code search -> nodeId -> optional trace/snippet | never pass codeTerm directly to graph trace |
| ambiguous domain term | sot glossary search and catalog/epics.md | read 2-3 candidate epic folders | qualify or ask if candidates remain tied |
| negative evidence / missing graph links | static catalog anchor | targeted graph trace returning 0 confirmed | say "no confirmed graph evidence"; never say "no impact" |
| business docs absent | static catalogs only | graph/code only for static structure | explicitly stop before business policy, journey, or intent |
[regen]).
Never edit a file under ~/.platty/sot/. To change knowledge in local mode,
write to the DB with the CLI (platty memory add ...) and re-run
platty sot export. The next export regenerates the MD. In MCP mode, do not
touch local projection files or attempt memory writes; use only server-exposed
read tools, or stop with a configuration/boundary gap when the needed surface
is unavailable.docs ask / docs investigate, and do not pass a natural-language
question to a legacy term-search command.name/summary, never on ids. Frontmatter id values are opaque/large
(doc:<projectId>:<type>:<hash16>, doc:<nanoid>, nanoid epic ids). grep readable text;
follow ids only after you have the file.You, the agent, read the catalog, grep terms, follow frontmatter links, choose escalations, and synthesize the answer.
STOP if you catch yourself thinking any of these:
| Excuse | Reality |
|---|---|
"I'll just use a legacy term-search command/LIKE for the term and answer from the hit" | The SOT folder is right there. grep catalog/*.md for the concept (name/summary), then read the detail MD. A term-match hit is not evidence; answering from titles and a score is fabrication. |
| "I can't read the catalog (folder missing / read failed), so I'll guess from memory" | Do not fabricate. In local mode, either run platty sot export --project <project> to (re)create the folder, or fall back to the local advanced recovery CLI graph walk. In MCP mode, stop and report a configuration/boundary gap; do not fall back to local files or CLI. |
| "The question terms are clear, skip glossary search" | The user may ask in Korean while docs use English, Japanese, or code identifiers. sot glossary search maps raw terms and aliases to candidate EPICs and code terms — skipping it is how you pick the wrong EPIC. |
| "There are hundreds of MD files, I'll open them all to be safe" | Don't brute-force the tree. Use catalog/*.md to narrow, read only the named detail files, and for cross-layer reach use graph trace — high-cardinality code nodes are intentionally NOT in the MD (use code search). |
| "The doc is stale/orphaned but probably still right — present it as fact" | State validity from frontmatter. In local mode, recommend sync + sot export. In MCP mode, stop and report a configuration/boundary gap, and route refresh work to the full platty operator plugin. Do not hide stale evidence. |
| "I'll edit the MD file to fix the wrong value" | The MD is a [regen] projection. Edits are lost on next export. In local mode, write via platty memory add then platty sot export. In MCP mode, retrieval is read-only: do not edit local MD or attempt memory writes. |
"I found the codeTerm in glossary search, I'll pass it straight to graph trace --from" | A codeTerm is a code identifier, NOT a service-map node id. graph trace --from needs a node id — first code search --symbol <codeTerm> to get the nodeId, then trace from that. Passing the raw codeTerm is a dangling-input error. |
| "I have an epicId/BR id/model id, so I'll pass it directly to graph trace" | EPIC ids, business document ids, item keys, and model ids are not necessarily graph node ids. Run platty sot resolve first. Prefer returned source-near traceIds. Use model db:<table> traces only after explicit scope/full-detail or when the question is a global table/field impact question. |
| "The query is Korean but I know the English word, I'll skip glossary and trace from my guess" | Cross the language bridge through sot glossary search first. Guessing the English/code term skips the canonical/codeTerm mapping and traces the wrong (or non-existent) node. |
| "Business docs exist, but graph trace feels faster, so I'll start there" | Wrong mode for business/planning/policy/journey/concept questions. When valid business docs exist, treat them as the semantic index first for those questions. For development/design-impact questions already anchored to implementation or asking code/impact, use the 4-axis path: targeted static catalog grep + graph traces first, with business docs as semantic scope/constraints. |
| "The business doc says it, so I'll assert it as fact" | Business docs are an index, not ground truth. LLM-generated business docs (usecases/ucs.md, design.md, br.md) can overclaim — an authenticated user written up as owner/member-only/participant-only, a minimal "ok" response written up as a returned/created record — or lag the source. Before asserting a behavior, actor/permission, response shape, or rule from a business doc, drill into the connected specs/api/<id>.md / specs/screen/<id>.md (via relatedDocs/serviceMapNodes/traceId, only the related ones) — and code via graph trace/code search when the spec is thin — and confirm it there. Assert from the source-near spec/code; cite the business doc as the index that located it. If they disagree, surface the gap. |
| "The connected spec says the handler persists/broadcasts/returns X, so I don't need to inspect the source" | Specs are source-near but still LLM-authored. If the source handler body is empty, only logs values, returns no value, or is a stub/TODO/not implemented shell, source code wins: report that the implementation is not confirmed. Do not trust a spec claim that a stub delegates to a service, persists data, emits events, enforces permissions, or returns a business result unless the code or included shared-module evidence shows it. |
| "I grepped nearby repos and did not find it, so the project lacks it" | Wrong boundary. Before any absence claim, verify the repo id/path from SOT catalog/spec/code evidence and search only the intended project repository or explicitly state which repo scope was searched. Sibling examples or alternate implementations are not negative evidence for this project. |
| "Business docs are missing, so retrieval cannot answer anything" | Wrong mode. Static catalogs, graph trace, and code search still answer static-analysis questions; just avoid inventing business rules. |
| "This domain term means business-doc mode should be active" | Wrong mode. Mode selection comes from generic SOT structure and catalog fields, never domain, fixture, repository, source-path, or EPIC-title terms. |
| "The glossary/BR already lists them, so that's the complete set — STOP" | Depth gap. An enumeration / "what types/values exist" question answered from a glossary or BR list is an abstraction or partial list, not the authoritative set. The authoritative enum/constant usually lives in code. Verify against the code enum/constant once (code search --symbol <EnumOrConstant>) before STOP. |
| "The question is clear enough, I'll answer the most likely reading and STOP" | Width gap. If a core noun is polysemous, or the intent level is undecided, or a cross-cutting flow spans several targets, the question reads two+ ways. Expose the split first ("this reads N ways: (a)… (b)…"); never silently pick one interpretation. For a cross-cutting flow, count the applicable targets (enum/grep) before answering. If the answer makes the discarded alternatives invisible, that is a width violation. |
| "It's a multi-target question but one grep hit covers it, so STOP" | Macro gap. A single code grep matches one mechanism and misses the set boundary (missing pages, hidden call sites, other mechanisms). For "all / every / which screens / across / each / list of …" questions, build the full map from spec (relations.navigation / relations.api_calls) / BR first, then use code only to verify and fill that map. Going straight to code for a multi-target question is how you deep-dive one mechanism and falsely report "I saw everything". |
id you followed does not resolve to any catalog entry or MD file (dangling link): stop, do not invent the target. Report the mismatch. In local mode, recommend platty sot export because the projection may be stale relative to the DB. In MCP mode, stop and report a configuration/boundary gap, and route export/recovery to the full platty operator plugin.id appears in more than one document (catalog or frontmatter): stop and report the ambiguity instead of picking one — the projection or DB is inconsistent.validity: orphaned (or status: deleted): stop treating their content as evidence; report that the docs no longer map to analyzed sources. In local mode, recommend regeneration + re-export. In MCP mode, stop and report a configuration/boundary gap, and route regeneration/export recovery to the full platty operator plugin.The core rule is: when the evidence is enough, STOP; when it is not, go one step deeper. But before any STOP, pass these three checks so a plausible partial answer doesn't pass for an authoritative one. The axes are depth (did you go down to code where the answer lives), width (did the question split and you answered only one branch), and macro (is it multi-target but you saw only part of the set). A pure definition / naming question is exempt from all three.
Depth — enumeration / exact-value / structure questions go to code.
platty code search --project <project> --symbol "<EnumOrConstant>" or worktree grep) before STOP.Width — expose ambiguity before answering (do not silently pick one). A question is ambiguous if any of these hold:
When ambiguous, in this fixed order: (a) expose the split in one line first ("this reads N ways: (a)… (b)…"); (b) for a cross-cutting flow, count the applicable targets before answering (enum/grep: is it one target or several?); (c) then either answer both briefly (if cheap) or answer the most likely reading while naming why it was chosen, naming the discarded reading, and offering to switch. Forbidden: silently choosing one branch and finishing. If the discarded interpretation is invisible in the answer, the width axis failed.
Macro — multi-target questions build the spec/BR map first, code verifies. Triggers (any one ⇒ multi-target): "all / every / which screens / across / each / list of / the whole flow / categorize / …" — if the target set is not exactly one, it is multi-target. Mandatory order:
relations.navigation / relations.api_calls) or BR — fix that as the expected target list.glossary_translate, then spec_list/spec_search with specKind and scope filters, and then exact *_get calls.Resolve these before retrieval:
platty project list --json (or platty project use <project>). The SOT
path is ~/.platty/sot/<projectId>/.project_list or context_status. Do not resolve it by reading local SOT
paths or running local CLI commands.business, data, development, design, or mixed.This section is local-transport-only. In MCP mode, use the configured MCP search/get/resolve tools that expose equivalent SSOT, document, spec, glossary, and status surfaces. If the server lacks an equivalent surface for a required step, stop with a configuration/boundary gap instead of reading local files or running local CLI commands.
platty project list --json # or: platty project use <selector>
Build the absolute path ~/.platty/sot/<projectId>/. If it does not exist, run:
platty sot export --project <project> --json
sot export writes the whole tree atomically (temp + rename) and prints
{ outDir, lastExportAt, sourceCommit, counts, skipped }. If sync reports the
DB is stale, run sync first; a failed sync means the existing MD stays — treat
its validity as the freshness signal.
Read these first to get the map and solve unknown-unknowns (you don't need to know the term yet):
~/.platty/sot/<projectId>/overview.md # project-level business/context map when present
~/.platty/sot/<projectId>/catalog/epics.md # epicId | name | summary | documentCount | memories | path
~/.platty/sot/<projectId>/catalog/apis.md # apiId | traceId | name | repo | epicIds | validity | status | memories | detailPath | source
~/.platty/sot/<projectId>/catalog/screens.md catalog/events.md catalog/schedules.md # 동일 스키마 (screenId/eventId/scheduleId | traceId | …)
~/.platty/sot/<projectId>/catalog/tables.md # modelId | name | validity | repoId | traceId
~/.platty/sot/<projectId>/catalog/external-services.md
~/.platty/sot/<projectId>/project/glossary.index.json # machine glossary index used by CLI/fallback only
~/.platty/sot/<projectId>/README.md # layout/freshness audit only, not retrieval evidence
README.md is layout/freshness audit only. Do not use README.md as retrieval
evidence for product meaning, EPIC selection, business rules, APIs, screens,
models, or code behavior.
source=static means node-only; source=doc means an LLM spec enriched the row (then detailPath, epicIds, validity/status are filled). apiId is empty for static-only rows.traceId is the graph trace --from seed. grep a row by name/repo, then trace its cross-layer/cross-repo connections (callers, DB) with platty graph trace --from <traceId>. To read the actual source code, go traceId → graph trace (source location), NOT the catalog row.detailPath points straight at the detail MD file when a doc exists (empty for static-only) — read it directly, don't reconstruct the hashed filename. The memories column flags entities with human knowledge worth reading before you assert.grep the catalog for the user's concept, and use glossary search for raw terms or aliases:
grep -in "환불\|refund" ~/.platty/sot/<projectId>/catalog/*.md
platty sot glossary search --project <project> --query "환불" --json
Pick 1-3 candidate epics/specs by the readable name/summary columns — not by a single matching word, and never by id (ids are opaque). The catalog is the table of contents; the Excluded (orphaned/deleted) section lists audit-only entries you must not treat as live.
Before expanding or guessing terms, extract domain terms from the user question and cross the language bridge through deterministic glossary search. Include the raw term, obvious aliases/synonyms, and Korean/English variants when asking the CLI, but treat all glossary hits as routing hints only. Do not guess English terms before glossary search.
Run sot glossary search for the raw query term first. Its matches map the
raw term to candidate EPICs, aliases, canonicalTerm, and codeTerm when
the generated glossary exposed a code identifier bridge:
platty sot glossary search --project <project> --query "<raw term>" --json
platty sot glossary search --project <project> --query "환불" --json
If the match has a codeTerm, do NOT pass it to graph trace --from. A codeTerm
is a code identifier, not a service-map node id — graph trace --from expects a
node id. Resolve the node id first, then trace:
platty code search --project <project> --symbol "<codeTerm>" --json # -> get the nodeId
platty graph trace --project <project> --from <nodeId> --direction upstream|downstream --json
If there is no codeTerm, use aliases/canonical terms from the matches to expand docs/code search
candidates only — do not assert. The aliases/synonyms widen discovery; they are not
themselves evidence and do not bridge to a code node.
Open the named files. Business docs nest under the epic; technical specs are pooled under specs/:
epics/<epicId>/epic.md # epic body + relatedDocs (id + role + path)
epics/<epicId>/br.md design.md data_dictionary.md
epics/<epicId>/usecases/ucl.md epics/<epicId>/usecases/ucs.md
epics/<epicId>/memory.md # human memories anchored here ([regen])
specs/api/<fileId>.md screen/<fileId>.md event/<fileId>.md schedule/<fileId>.md
specs/memory/<fileId>.md # spec-anchored memories ([regen])
Each file's frontmatter carries id, name, type, scope, scopeId, validity, status, sourceCommit, items[], relatedDocs[], and serviceMapNodes[].
Static doc↔doc, item↔item, and item↔model relations are encoded in frontmatter — follow them by reading the next MD, not by calling the graph CLI:
epic.md relatedDocs[] -> {id, role, path}; read `path` directly (the spec filename is a hash)
items[].docLinks -> <docId>#<stableKey>
items[].modelLinks -> <modelId> (see catalog/tables.md) or <modelId>#<field>
relatedDocs[].path and the catalog path column give a direct file to read —
the filename is a hash of the id you cannot recompute, so use the supplied path.
The destination's frontmatter id confirms identity. If a supplied path (or a
followed id) resolves to no file, that is a Stop Condition (dangling link) —
do not invent it; re-run platty sot export.
Only these need the CLI; everything static stays in MD:
# Cross-layer / multi-repo service-map traversal. --from is any service-map node id:
# a spec frontmatter `serviceMapNodes` id, OR a catalog id you can grep directly —
# external-services.md `serviceId` (e.g. external_service:azure_blob) or tables.md `traceId`
# (the db:<table> id). No spec is needed to start an upstream trace from an external service.
platty graph trace --project <project> --from <node-id> --direction downstream|upstream --depth <n> --json
# High-cardinality code symbols (intentionally omitted from MD). Matches return
# filePath / lineStart / lineEnd / signature (the field is `filePath`, not `file`).
platty code search --project <project> --symbol "<identifier>" --json
platty code snippet --project <project> --repo <repo-id> --file <path> --lines <start>-<end> --json
# Record human knowledge, then re-project so the MD reflects it.
platty memory add --project <project> --document <doc-id> [--item-type <item-type> --item-key <stable-key>] --content "<text>" --kind why|correction|constraint|context --json
platty sot export --project <project> --json
graph trace is known static service-map impact, not complete impact: it returns
omittedEdgeClasses (ORM includes, indirect writes, event side effects, dynamic URLs) and
candidates (unresolved edges). Assert only confirmed edges; treat candidates as
leads to cross-check with code search; skip omitted. With --depth N it accumulates
per hop and reports truncated/truncatedBy — never report a trace as an exhaustive blast radius.
relationCandidates are separate non-traversable recall hints from business/docs or
unresolved relation gaps. They are not confirmed impact. Use them after confirmed edges
for missing-evidence investigations, ambiguous implementation follow-up, or candidate
code searches. Prefer compact trace output; use --verbose-candidates only when the
candidate evidence text is needed in the final answer.
Graph evidence tiers:
.data.confirmed; mention relationCandidates only as follow-up checks.relationCandidates after confirmed edges.relationCandidates into confirmed impact without source/code validation.For requests like "add a field", "change response field", "DB column impact", or "design the implementation impact", do not stop at the first screen/API hit:
catalog/screens.md, the API from
catalog/apis.md, or the table/model from catalog/tables.md.design.md, br.md,
data_dictionary.md) to capture semantic constraints and product wording.graph trace from the screen/API for confirmed screen -> API flow.catalog/relation-candidates.md plus targeted code search. Do not conclude
"no impact" from an empty table trace.relationCandidates for side-effect classes: analytics_event,
cache_access, navigation, external_service, notification,
event_publish, and db_access. Report them as "candidate checks", not
confirmed impact.Default candidate output should be grouped and capped. Use the CLI default
candidate limit (20) for normal impact answers, lower it only for explicitly
brief summaries (--candidate-limit 10), and raise it for side-effect
completeness checks (--candidate-limit 50 or a purpose-specific higher cap).
Group by kind and a normalized target label, report
relationCandidatesReturned / relationCandidatesTotal, mention
relationCandidatesTruncated when true, and use --verbose-candidates only
when the final answer needs candidate evidence text. If candidates duplicate
confirmed edges or each other, summarize them as corroborating hints instead of
separate impacts.
Read .data.confirmed (flattened across all hops), not .data.hops[0] alone — the
first hop only holds direct neighbors, so reading it alone undercounts multi-hop entry
points (e.g. a controller two layers above an external-service call). Each confirmed edge
also carries sourceFile / sourceLineStart / sourceLineEnd (the source handler's
location, joined read-time), so you get the entry point's file:line from the trace itself
— no separate code search per entry point.
Invariant: the serviceMapNodes id in a spec's frontmatter is exactly the --from
input graph trace expects. If they disagree, the projection is stale — re-export.
Trust the frontmatter validity (fresh | stale | orphaned) and status:
fresh: assert normally, cite the file path + frontmatter id.stale: usable as a clue; state it may not reflect the latest source. In local mode, recommend sync + sot export. In MCP mode, stop and report a configuration/boundary gap, and route refresh work to the full platty operator plugin.orphaned / status: deleted: do not assert; these are excluded from the body tree and live only in catalog audit sections. In local mode, recommend regeneration. In MCP mode, stop and report a configuration/boundary gap, and route regeneration to the full platty operator plugin.Use this when the State Gate finds live EPIC rows with generated business documents and the question is about business meaning, planning, policy/rules, user journeys, or concepts. Business docs are the semantic index: they define intent, scope, constraints, journeys, rules, and field meaning. Technical specs and graph/code are drill-down surfaces for implementation detail, impact analysis, or gaps.
Verify business-index claims against the connected spec (index ≠ ground truth). A business doc routes you to the right entity; it does not certify its own wording. LLM-generated business docs can overclaim — an authentication-only guard written up as owner/member-only/participant-only, a minimal "ok" response written up as a returned/created record — or lag the source. So do not assert a behavior, actor/permission, response shape, or rule from a business doc alone. For each such claim, follow item-level links first: items[].docLinks, items[].content.source_mapping[].documentId, items[].content.detailPath, then document-level relatedDocs/serviceMapNodes/traceId. Read only the connected specs/api/<fileId>.md or specs/screen/<fileId>.md for that item — never open specs in bulk — and confirm it there; drill to code via graph trace/code search when the spec itself is thin. If item-level links are empty for the relevant claim, treat the business doc as an unverified index clue: say the item has no direct source link, use catalog/spec grep to find the nearest source-near evidence, and do not assert the business-doc wording as fact. Assert from the source-near spec/code, citing the business doc as the index that located it. If the connected spec contradicts the business doc, surface the gap and route a correction (see Memory Rule); never assert the index's wording over the source.
For development/design-impact questions ("where do I add/change this", "what breaks", code location, precise screen/api/table impact), do not override Development Design Questions (4-Axis). If the question is already anchored to an implementation entity or asks for code/impact, start with targeted static catalog grep + graph traces as that section requires, then read available business docs for semantic scope and constraints.
Discovery order:
sot glossary search when raw terms, aliases, or translated concepts may affect EPIC selection.catalog/epics.md to identify candidate rows by readable terms, summaries, and documentCount.epics/<epicId>/epic.md files on the first pass.items[].docLinks, items[].content.source_mapping[].documentId, items[].content.detailPath, then relatedDocs, serviceMapNodes, or traceId, only when technical detail is required.Purpose-to-document routing:
| Purpose | Read first |
|---|---|
| concept | sot glossary search, epic.md, design.md |
| planning | design.md, br.md, usecases/ucl.md, usecases/ucs.md |
| policy/rules | br.md, usecases/ucs.md |
| user journey | design.md, usecases/ucl.md |
| data/fields | data_dictionary.md, catalog/tables.md, catalog/model-links.md |
| code location/implementation | when anchored to code/API/screen/table, use the 4-axis path first; otherwise read business docs for intent and constraints, then specs -> graph trace -> code search/snippet |
| impact radius | when asking precise screen/API/table impact, use the 4-axis path first; otherwise read business docs for semantic scope, then graph trace and code search for graph-invisible leads |
Token/speed budget:
catalog/epics.md candidate rows, chosen epics/<epicId>/, and the selected
business docs (br.md, design.md, usecases/*, data_dictionary.md)
that support the answer.codeTerm.Use this when business docs are unavailable, incomplete, or not exported. Do not stall looking for business docs. Static catalogs, graph trace, and code search still support retrieval over observed screens, APIs, tables, external services, schedules, events, and code primitives.
Discovery order:
sot glossary search when raw terms, aliases, or translated concepts may affect candidate selection.catalog/screens.md, catalog/apis.md, catalog/tables.md, and catalog/external-services.md plus relevant static events/schedules.name/summary/repo fields, not ids alone.traceId or serviceMapNodes when cross-layer relationships are needed.Static-only answers must not invent business rules. Distinguish observed static evidence from product inference, and say when a conclusion is only an implementation or structural observation.
For product/planning questions in Static Analysis Mode, use this exact boundary:
catalog/apis.md, catalog/screens.md,
catalog/tables.md, static specs when present, graph trace, code search/snippet).sync/sot export or generation. In MCP mode, stop and report a configuration/boundary gap,
and route refresh/generation work to the full platty operator plugin. Do not widen into
unrelated source reads to fabricate a business answer.Memories are human-recorded knowledge (why, corrections, constraints), projected to
epics/<id>/memory.md and specs/memory/<fileId>.md as [regen] files:
sync/regeneration. In MCP mode, stop and report a configuration/boundary gap if resolving the conflict requires refresh, regeneration, or memory mutation. Never silently prefer either side.anchorStale: true is anchored to an item that no longer exists (renamed/dropped on regen) even though its parent doc may read fresh — do not assert it as current; surface it. In local mode, recommend re-anchoring (memory update/re-add). In MCP mode, stop and report a configuration/boundary gap, and route re-anchoring to the full platty operator plugin.README.md reports a memory/unrouted.md count (memories whose epic/doc anchor was deleted or regenerated), read that file — its memories are NOT reachable from any epic/spec memory.md. Surface them. In local mode, recommend re-anchoring. In MCP mode, stop and report a configuration/boundary gap, and route re-anchoring to the full platty operator plugin; do not assume the rest of the tree covers them.memory add is invisible here until the next sot export. If you just wrote memory, treat memory.md as behind until you re-export. To record, use platty memory add (with --export-sot) then never edit memory.md directly. See platty-memory.For "where do I add this", "how do I change this", or "what breaks if I touch this", a single
read is not enough. Start cheap and targeted: grep the catalog (apis.md/screens.md/tables.md)
to fix entry points + traceIds first, then run a few targeted graph traces. Spawn subagents only
when grep + targeted trace genuinely cannot cover it — fanning out one subagent per repo is the main
cause of slow, token-heavy runs (it does not improve recall over the checklist below). This whole protocol runs on static-analysis output alone — catalog/*.md + the service-map graph + code search — so it works even when no business/technical docs have been generated. Investigate four axes:
specs/<kind>/<fileId>.md + epics/<id>/*.md when those exist; otherwise catalog/{apis,screens,tables}.md + code search (static-only projects have no generated docs).epics/<id>/memory.md / specs/memory/<fileId>.md (constraint/correction/why).platty code search --symbol for similar handlers/utilities to reuse.platty graph trace --from <serviceMapNodes-id> --direction upstream --depth <n> (who calls/depends on it). AND, for a changed table/column, anchor on the db node and trace the READ path too: platty graph trace --from db:<table> --direction upstream --kinds accesses_db — this surfaces the data carriers: read handlers that SELECT the entity and map it into a response for a frontend. To enumerate the affected screens cross-repo in ONE trace, extend that same db-anchored trace with calls_api and a depth: platty graph trace --from db:<table> --direction upstream --kinds accesses_db,calls_api --depth <n> returns, in a single call, both the backend handlers that read the entity and the frontend screens that call those handlers — across every repo. This is the graph's headline value: do not grep each frontend repo for endpoint strings by hand when the trace already joins DB→API→screen for you. (The screen hops can include weaker suffix_match/navigates edges — those are medium-confidence; keep calls_api as the backbone and verify the medium hits.) Fixing only the write path while missing the read carrier means the new field is stored but never reaches the frontend (the screen component can be edited but the response payload still lacks the field). Read all .data.confirmed (not .hops[0]); each edge's sourceFile/sourceLineStart/sourceLineEnd gives the entry-point location directly. Carry omittedEdgeClasses + candidates forward.Graph-invisible leaks (hybrid check). A refactor scope is not complete from the graph alone. graph trace only sees nodes joined by a service-map edge; code that bypasses DI has no edge and never appears in the trace — a bootstrap/singleton SDK client, a service imported across a module boundary, a process.env.<X> read inside a usecase, a polluted/wrong import. This is exactly what omittedEdgeClasses warns about. So after the trace, also: platty code search --symbol "<SDK client / class>" to surface direct call sites, and — when the analyzed source tree is reachable — grep its imports and process.env.<PREFIX>_ directly. A trace with zero leaks is not proof there are none; it is the half of the picture the graph can see. Label trace findings (connected impact) vs grep findings (graph-invisible) separately.
Completeness checklist (run before synthesizing — apply whichever items fit the change). Recurring blind spots a write-path-only trace misses:
accesses_db edge) is graph-invisible (see the hybrid-check rule above). Cross-check with a keyword grep for the change's intent (export / report / download / stats / batch) so a carrier the graph missed still surfaces; never conclude "no export/report path" from the trace alone.Then synthesize: concrete change points (repo + file + node + layer), the reusable pattern (axis 3), an impact map labeled known-static-not-complete (axis 4), a constraint check against axis-2 memories, and a clear separation of observed structure (evidence) vs recommended design (proposal).
sot glossary search when used).ids; for code, cite repo + file + line.validity for any stale/orphaned evidence.sot export, sync, code search, or regeneration. In MCP mode, name only configured MCP read tools; if the answer instead requires refresh, export, generation, or memory writes, stop and report a configuration/boundary gap, and route to the full platty operator plugin.End with the Platty handoff card. Evidence lists the MD paths / ids / commands used.
Recommended next is one of: a sharper follow-up from the same evidence surface; in local mode,
sync + sot export to refresh or platty-generated-docs if outputs need (re)generation; in
MCP mode, stop and report a configuration/boundary gap, and route refresh/generation work to the
full platty operator plugin.
When ~/.platty/sot/<projectId>/ does not exist and you cannot/should not export it
in the local transport profile, retrieve directly from the CLI (this is the
legacy EPIC-centered graph walk). In MCP mode, stop and report a
configuration/boundary gap instead of falling back to local CLI or local files:
Advanced recovery commands:
platty docs glossary digest --project <project> --json # term unification (aliases)
platty epics list --project <project> --compact --json # EPIC catalog (table of contents)
platty epics show --project <project> --epic <id> --include-docs --json
platty docs show --project <project> --document <id> --json
platty docs related --project <project> --document <id> --json
platty docs targets show --project <project> --id <entry-point-id> --json
The same Red Flags, Stop Conditions, Freshness, and Memory rules apply. Legacy term-search
commands are hints only — read the catalog before trusting them; answering from a score is fabrication.
Prefer running platty sot export and using the Markdown discovery flow above when possible in
local transport only. In MCP mode, stop and report a configuration/boundary gap, and route export
work to the full platty operator plugin instead of suggesting local CLI recovery.
Behavioral checks for this skill. npm run check:* only verifies file structure — these
scenarios verify the skill actually changes behavior under pressure. Each scenario names the
PASS path and the Red (failure) paths it must prevent.
Input: A Korean query (e.g. "환불") asking where the corresponding logic lives in code.
PASS path:
platty sot glossary search --project <project> --query "환불" --json.codeTerm when present (e.g. refund) and candidate EPIC path.platty code search --project <project> --symbol refund --json → obtain the nodeId
(with filePath/lineStart/lineEnd).platty graph trace --project <project> --from <nodeId> ... --json using that node id.Red (any of these is a failure):
codeTerm directly into graph trace --from (e.g. --from refund) — a
codeTerm is not a service-map node id.sot glossary search entirely and guessing an English term to search/trace.codeTerm, yet the answer asserts a code location anyway instead of
using aliases/canonical terms only to widen docs/code search candidates without asserting.Input: A product/planning question for a project whose SOT state has static catalogs but no
generated business docs under epics/<epicId>/.
PASS path:
Red (any of these is a failure):
Input: An enumeration question ("what kinds of X are there / list all X") for a project that has both a glossary/BR list of X and an authoritative enum/constant in code.
Trap: The glossary or BR shows a readable list, so the answer STOPs there and reports that list as the complete set. The glossary list is an abstraction / partial list; the authoritative set lives in the code enum/constant, and the two can disagree.
PASS path:
platty code search --project <project> --symbol "<EnumOrConstant>" (or worktree grep).Red (any of these is a failure):
Input: A question whose core noun is polysemous (one word, two domains), or whose intent level is undecided, or whose flow is cross-cutting across several targets.
Trap: The answer silently picks the single most likely reading and finishes, so the discarded interpretation never surfaces and the user can't tell a choice was made.
PASS path:
Red (any of these is a failure):
Input: A multi-target question ("all / every / which screens / across / each / list of …") whose target set is spread across several pages / call sites / mechanisms.
Trap: A single code search / grep matches one mechanism, returns hits, and the answer concludes
"that's all" — missing the other pages, hidden call sites, and other mechanisms that make up the set.
PASS path:
relations.navigation / relations.api_calls)
or BR — fix it as the expected target list.Red (any of these is a failure):
Input: A business question whose answer touches a behavior, actor/permission, or response shape
that a business doc (usecases/ucs.md / design.md / br.md) states more strongly than the source
supports — e.g. the doc reads "only the workspace owner can manage members" while the connected API
spec shows the route only checks an authentication guard, or the doc says an upload "returns the
created record" while the endpoint returns "ok".
Trap: The business doc reads cleanly, so the answer asserts its wording verbatim as fact and STOPs,
never opening the connected specs/api|screen/<id>.md the doc points to. Business docs are an index;
their claims are LLM-generated and can overclaim or lag.
PASS path:
relatedDocs / serviceMapNodes / traceId).specs/api/<fileId>.md or specs/screen/<fileId>.md (only the related one), and when it is thin, drill to code via graph trace / code search.correction (Memory Rule).Red (any of these is a failure):
Input: A question about an API whose connected specs/api/<fileId>.md claims implemented behavior, but the source handler body is empty, only logs, returns nothing, or is a stub/TODO/not implemented shell.
PASS path:
Red (any of these is a failure):
references/bug-diagnosis.md (opens in a new tab)references/business-policy.md (opens in a new tab)references/code-search.md (opens in a new tab)references/concept-search.md (opens in a new tab)references/cross-epic-flow.md (opens in a new tab)references/design-change.md (opens in a new tab)references/exact-api.md (opens in a new tab)references/impact-tracing.md (opens in a new tab)references/negative-evidence.md (opens in a new tab)references/screen-search.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
platty, source-of-truth, project-evidence, code-search, graph-traversal
npx claudepluginhub paradigmshift-labs/platty --plugin platty13 skills in this plugin
/platty-cli-routerUse when deciding which Platty CLI root command, project workflow, repository workflow, analysis workflow, document workflow, or Platty skill should handle a request./platty-docs-target-curationUse when listing, filtering, including, deprecating, or reviewing Platty technical documentation targets before docs generation./platty-generated-docsUse when generating, validating, reviewing, resuming, or repairing Platty generated outputs through the public generate-docs workflow./platty-mcp-server-setupUse when configuring, starting, validating, or troubleshooting the Platty context backend that exposes a read-only MCP endpoint./platty-memoryUse when recording, updating, or removing human knowledge (why, corrections, constraints) anchored to Platty epics, documents, or document items./platty-onboardingUse when Platty CLI and agent skills are already installed and a user wants the first end-to-end project journey from repository registration through static analysis and generated SOT, or wants to resume that multi-phase onboarding journey.Other plugins' skills for the same job