Discovers, designs, and maintains repository architecture using YarraMate documents and CLI. Maps codebases, proposes evidence-backed models, and visually explains architecture choices.
Ships in yarramate-architecture. 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 one repository-native lifecycle for discovery, design, and maintenance:
evidence or design conversation
-> native-document proposal
-> deterministic CLI checks and projections
-> Git review
-> declared architectural intent
-> later evidence and reconciliation
Native YarraMate documents are canonical. Generated graphs, Markdown, JSON context, and diagrams are derived. Never promote evidence into declared intent automatically.
When a workspace already exists, orient first with one call before choosing:
yarramate ask <workspace.yaml>
It reports the check verdict, the reconciliation summary, the open
design questions, and the backlog — planned subjects in dependency
order. ask <workspace.yaml> --subjects lists every concept;
ask <workspace.yaml> --kinds lists the declarable vocabulary;
ask <workspace.yaml> "<free text>" returns the model slice matching
your words; ask <workspace.yaml> --where "<free text>" returns the
evidence-verified code locations of matching subjects — prefer those
over searching when the subject is modeled, and use your own search
tools beyond the coverage boundary the output states.
Read references/journey-checklists.md for the minimum evidence and design questions. Read references/native-authoring.md when native document, projection, evidence, or architecture-state syntax is needed. Read references/modelling-patterns.md for the named solutions to recurring modelling problems: invocation chain, delivery with content, one answer many subjects, descoping by retirement, and hosting a component. Open it when a relationship is rejected, when one answer touches many subjects, or when a subject leaves scope, and cite the pattern by name when explaining the resulting model.
yarramate init .. Do not overwrite an
existing .yarramate/.yarramate apply batch
(yarramate/operations/v1): any invalid operation rejects the whole
batch, so the model never holds a partial edit. Edit YAML directly
when states or several related declarations make that clearer.yarramate apply batch as the model
they observe (add-observation, update-observation,
delete-observation) — the loop that keeps a partial edit off disk is
the loop that keeps an unevaluated observation off disk..yarramate/likec4-project.yaml.yarramate check .yarramate/workspace.yaml --json
yarramate export graph .yarramate/workspace.yaml
yarramate reconcile .yarramate/workspace.yaml
yarramate ask .yarramate/workspace.yaml .yarramate/projections/<projection>.yaml
yarramate export markdown .yarramate/projections/<projection>.yaml .yarramate/workspace.yaml
yarramate-likec4 check .yarramate/likec4-project.yaml --json .yarramate/workspace.yaml
yarramate-likec4 map --sync .yarramate/integrations/likec4/subject-mapping.yaml .yarramate/workspace.yaml
yarramate-likec4 export-project .yarramate/likec4-project.yaml .yarramate-out/likec4 .yarramate/workspace.yaml
yarramate design .yarramate/workspace.yaml
Each invocation serves exactly the top open question with its subject
slice, materiality, and progress — the catalogue is internal; never pass
or read catalogue files. The step carries the question's trigger
(its machine-readable answer shape), and the human output includes a
prefilled operations skeleton when the trigger maps onto one
operation — start from that skeleton instead of authoring the batch
from memory. Answer one question at a time: questions the
model or evidence can answer, answer from your authority; questions
marked human, relay verbatim with their materiality. Land each answer
as subjects and relationships in one atomic batch (yarramate apply <operations.yaml> .yarramate/workspace.yaml), never as description
alone. Then re-run design — the next question is recomputed from the
model, so the loop is resumable across sessions and agents with no
handover. Use --subject <id> to focus the interview on one element.
When a step reports many openSubjects sharing one question (ownership
is the classic case), do not interview N times: collect the policy
answer once — "who owns what, by area" — and land it across every listed
subject as one apply batch.
After motivation, work the interaction wave (hops, mechanism, payload,
trust, reliability, capacity) before ownership and hygiene. Policy
subjects (authentication-constraint, rate-limit-constraint, and
siblings) live in a document that selects yarramate/[email protected]; hops
bind them with qualified constraints[].ref. One batch may create and
bind. When design --json returns a step whose wave is not
interaction for the slice in focus, stop, render the brief, and do not
drain owner-missing. The interview is complete when design says so.
5. Create:
.yarramate/likec4-project.yaml.yarramate check .yarramate/workspace.yaml --json
yarramate export graph .yarramate/workspace.yaml
yarramate ask .yarramate/workspace.yaml .yarramate/projections/<alternatives>.yaml
yarramate ask .yarramate/workspace.yaml .yarramate/projections/<target>.yaml
yarramate export markdown .yarramate/projections/<target>.yaml .yarramate/workspace.yaml
yarramate export markdown .yarramate/projections/<flow>.yaml .yarramate/workspace.yaml
yarramate export briefs .yarramate/projections/<target>.yaml .yarramate/workspace.yaml --out <handoff-dir>
yarramate export rtm .yarramate/workspace.yaml --out <rtm-dir>
yarramate export responsibility .yarramate/projections/<target>.yaml .yarramate/workspace.yaml --out <raci-dir>
yarramate export governance .yarramate/workspace.yaml --out <raid-dir>
yarramate ask .yarramate/workspace.yaml --compare <document-id>#<baseline-state> <document-id>#<target-state>
yarramate-likec4 check .yarramate/likec4-project.yaml --json .yarramate/workspace.yaml
yarramate-likec4 map --sync .yarramate/integrations/likec4/subject-mapping.yaml .yarramate/workspace.yaml
yarramate-likec4 export-project .yarramate/likec4-project.yaml .yarramate-out/likec4 .yarramate/workspace.yaml
Skip the two adapter commands only when the user requested semantic-only
output, and report that no visual project was produced.
7. Audit rendering coverage using the same three reporting questions from
discovery. State which omissions are intentional; do not convert partial
coverage into a validation failure.
8. Present alternatives, selected intent, unresolved decisions, and bounded
implementation context. Hand implementation work the brief rendering of
its target slice (yarramate ask <workspace.yaml> <projection.yaml>,
or the export briefs bundle for several implementers) — deterministic
prose composed from the checked model — rather than raw YAML. Do not
generate code until the requested design decision is reviewable.
Use this journey for a deliberate change to a model that already passes its checks, including a renamed subject, resolved gap, changed relationship, or retired concept.
documents, projections, adapterMappings, and
evidence entries;yarramate/likec4-project/v1 document and follow its mapping
field;references[].ref citations;from and to endpoints;subject entries and stable claim targets;native entries;yarramate check .yarramate/workspace.yaml --json
yarramate-likec4 check .yarramate/likec4-project.yaml --json .yarramate/workspace.yaml
--prune only after
confirming that stale native subjects were intentionally renamed or
removed:yarramate-likec4 map --sync --prune .yarramate/integrations/likec4/subject-mapping.yaml .yarramate/workspace.yaml
git diff -- .yarramate
yarramate check .yarramate/workspace.yaml --json
yarramate-likec4 check .yarramate/likec4-project.yaml --json .yarramate/workspace.yaml
yarramate-likec4 export-project .yarramate/likec4-project.yaml .yarramate-out/likec4 .yarramate/workspace.yaml
Use this journey when the answer is a picture the user talks to or edits: "visually explain this architecture", "show how this question relates to the model", "compare these choices visually", "let me fix these names on the diagram". No CLI command is asked of the user; this skill stays the public interface.
request
-> yarramate check, then yarramate-visual request > request.json
-> inspect actual harness delegation/recovery capabilities
-> start yarramate-visual as a managed foreground process
-> capable: delegate a bounded visual agent and await handoff
-> incapable: diagram-only mode; continue the conversation here
-> reviewer edits and commits: the runtime lands them through `apply`
-> End or failure: recover, optionally read the transcript, stop, resume
The canvas itself carries the interview: subjects with open questions wear
a count chip, and the Open questions panel scopes to the selected subject
(workspace-scoped questions show when nothing is selected). Each row offers
the gesture that would answer it, and "Answer via agent", which hands the
question to the delegated child as a question.delegate event; the child
answers with operations.propose, and the reviewer commits the staged rows.
Landing answers through the editor's changeset closes them on the next model
frame.
Read references/visual-conversations.md before starting a session. It owns the request builder and its refusals, the capability test, the exact commands and documents, the delegated child's prompt and authority limits, what a committed changeset writes, and the recovery order. The session renders and edits the checked workspace; Git review still accepts or discards whatever it wrote.
check as deterministic correctness, never as architecture approval,
completeness, or quality scoring.map --sync, use sync only while authoring, and never put sync in a
CI verification gate.yarramate-visual renders
the native model itself.Report:
If YarraMate itself produced confusing behaviour, blocked adoption, lacked a needed capability, or required an awkward workaround, identify that separately as product feedback and direct the user to:
https://github.com/yarrasys/yarramate/issues/new
Issues may contain incomplete ideas or early observations; a proposed fix is not required. Do not create an external issue automatically unless the user asks you to.
What SKILL.md sets; muted values are Claude Code's defaults
/yarramate-architecture:yarramate-architecturefrom yarramate-architecture
npx claudepluginhub yarrasys/yarramate --plugin yarramate-architectureOther plugins' skills for the same job