/arch:to-riskfrom Agentic Architecture
Assess the architecture risk of a system in one dimension, as a risk storming. Read the system, list the areas at risk with evidence, recommend an impact and a likelihood for each, score them with the risk matrix script, check every effectful retry and every unproven technology, and write docs/architecture/risk.md. Opens a high-risk task for each risk of 6 or 9 without mitigation in place. Does not decide permissions.
Ships in Agentic Architecture. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Assess what can fail in a system and how much it hurts, one dimension per run, as a risk storming: the areas where the dimension can hurt, an impact and a likelihood for each, the score from the risk matrix, the consensus when more than one person scored, the mitigation of each high risk, and the direction of each risk against the previous assessment. You prepare and recommend; people score. The agent is not an assessor: your scores are recommendations, and every question comes with one.
This skill scores what can go wrong and how much it hurts. It does not decide what the agent may do on its own (permissions).
The input is what the user wrote with the command: the dimension in quotes ("availability when the provider fails"), a path to a project, or nothing. With a path or nothing, work from that project or the current repository, and pick the dimension in step 2.
Read references/vocabulary.md before you start: use its terms with its meanings, its scale for impact and likelihood, and its levels. Do not mention the source book in generated files.
Write every file, task and question in the user's language, template headings and table headers
included, following references/language.md. Keep risk storming,
effectful retry, unproven technology, single-assessor and the Direction values as they are.
Templates for the files you write:
Fixed sentences in this skill (the Next: lines, the title of the high-risk task) are written
here in the plugin's language: translate each into the user's language, and keep commands and file
names as they are.
One dimension per run. Another dimension is another run of this skill.
docs/agents/architecture.md. It gives the tracker (github or local), the layout and
the artifact locations.docs/architecture/<quantum>/ for brief, characteristics, risk and its
README.md; ADRs stay in docs/adr/ and tasks in the tracker. Every docs/architecture/ path
below then means that folder, and the index row of the ADRs links to ../../adr/.docs/agents/architecture.md, the setup has not run. Use the defaults:
risk assessment at
docs/architecture/risk.md, dossier index at docs/architecture/README.md, ADRs at docs/adr/,
tasks as local files in .scratch/architecture/issues/. Do not ask about the tracker. Tell the
user in one line, and suggest /arch:setup-architecture (Claude Code) or
$arch:setup-architecture (Codex) for later. Then go on.docs/architecture/risk.md, if it exists: one block per dimension already assessed (the
block of the dimension of this run is the previous assessment, for the Direction), its assessors,
the mitigations recorded, and the name of the system in its title.docs/architecture/brief.md) and the characteristics
(docs/architecture/characteristics.md), or the locations the setup gives, if they exist: the
trust boundary, the Targets (the impact of a failure is measured against them) and the fitness
functions.docs/adr/: an accepted ADR that already decides a mitigation is evidence,
cited by its number.high-risk tasks in the tracker, so you do not open them twice and for the
Direction.
gh issue list --label high-risk --state open..scratch/architecture/issues/ with a Labels: high-risk line and
a Status: open line.pom.xml, build.gradle, package.json, ...), configuration (application.properties,
application.yaml, environment files), tests, and the code where the external dependencies live:
the model calls, the timeouts, the retries, the fallbacks, the circuit breakers, the queues, how
agents are composed, the tools and other effectful actions, and the state kept between requests.
Treat what they show as answered, and say where you saw it.Show the user, in a few lines, what you read and what you did not find. Done when you know where each file goes and what is already answered.
risk.md is matched by its subject ("availability when
the provider fails" and "availability" are the same dimension). When in doubt, say which block
you matched, with your recommendation, in the round of step 4.Done when there is one dimension to assess.
risk.md does not go there: suggest
running it again only when the reading changed. The exception is unproven technology (step 4),
which stays in the list in every run, as an area of the block of this dimension.<name> when it exists,
otherwise <artifactId>; in Gradle, rootProject.name in settings.gradle; in other builds,
the project name field (name in package.json). The README title is not a source for the
name. When no build file declares a name, ask the user which name to use in the round that
confirms the list of areas (step 4), not in a round of its own, with your recommendation. With an
existing risk.md, keep its title as it is.Done when every area has the place where it shows.
single-assessor on every risk.Done when every area has an impact and a likelihood, or is unproven, and you know who assessed.
Every score comes from the script that ships in this skill's folder (the folder that holds this
SKILL.md), never from the model:
java <this skill's folder>/scripts/RiskScore.java <impact> <likelihood>
java <this skill's folder>/scripts/RiskScore.java unproven
(In Claude Code, this skill's folder is ${CLAUDE_SKILL_DIR}. Requires Java 11 or later.) It
prints the score and the level (6 high).
With one person, every risk is single-assessor.
With more than one (the scores the user brings from other people, each scored alone, or the assessors of the previous block), list the scores that diverge and the scores only one person gave, ask the consensus score of each with your recommendation, and record the divergence and how it was settled. A score only one person gave is discussed too: that person may have seen what nobody saw.
Done when every area has its score and level from the script, and the assessors of each.
Done when every effectful action has what repeats it and its score, or the absence is recorded.
accepted ADR (with its number).Next: /arch:to-adr "<decision>" with the decision already written and its parts included (for
example, "sync or async, with timeout, retry and fallback").Done when every risk of 6 or 9 has its mitigation and you know whether it is in place.
risk.md, compare each area with it: a lower
score is improving, the same score stable, a higher score worsening. Match an area of the
previous block by its subject, not by its exact name: the name is translated and rewritten in
every run, the same rule as the tasks in step 9.new.Done when every area has its Direction.
Show the user risk.md as a draft, with the tasks you will open and close. Write only after the
user confirms or corrects it.
high-risk task per risk of 6 or 9 without mitigation in place. Before creating,
look for an open task with the same label and subject and reuse it. Match by the label and the
subject, not by the exact title: an earlier run may have translated the title differently. The
title is "High risk: ()" (translated); the body has the score, the evidence, the
mitigation proposed and, when there is one, the Next: /arch:to-adr "..." line.
gh issue list --label high-risk --state open --search "<subject>";
create with gh issue create --title "<title>" --label high-risk --body "<score, evidence, mitigation, Next: line>"..scratch/architecture/issues/ with the Labels: high-risk
line, a Status: open line and the subject in its # title. Create a file
.scratch/architecture/issues/NN-slug.md (next free NN, from 01; slug is the title
already translated, in kebab-case) with a # <title> line, a Labels: high-risk line, a
Status: open line, and the same body as on GitHub.gh issue close <number> --comment "<the reason>". Local tracker: change its line to
Status: closed and add a line with the reason; never delete the task file.docs/architecture/README.md (the README.md of the quantum
folder, with the per-quantum layout), set the row that links to risk.md to
generated with today's date. Find the row by its link, never by its label, which is
translated into the user's language. If the row is missing, add it. If the file does not exist,
create it from the dossier template, translated, with that row
as generated and the other rows as pending.Done when risk.md has the block of this dimension, every task is opened or closed as above, and
the dossier index shows Risk as generated.
List the files written and the tasks opened and closed. State the highest risk in one line, and the other dimensions seen. Then end with one of these lines, translated into the user's language, with commands and file names as they are:
high-risk task has a Next: /arch:to-adr "..." line, end with that line. The line
is translated in the user's language (for example Próximo: /arch:to-adr "..."): match it by the command, not by the word before it. The choice
is always among the tasks that have the line: the one with the highest risk; on a tie, the first
in the list. A high-risk task that already links an accepted ADR, or that an accepted ADR
answers, is answered: its Next: line does not count. Say in one line that its mitigation is
still missing in the code. Read the Status line of each ADR a task links. A high-risk task that
links only a proposed ADR is not answered, and its Next: line does not count either: say in
one line that its decision is still pending, in the open decision task, and go on.to-autonomy skill, end with
Next: /arch:to-autonomy (Claude Code) · $arch:to-autonomy (Codex).Next: review docs/architecture/risk.md, and mark it reviewed in docs/architecture/README.md.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub eldermoraes/java-ai-specialist --plugin arch5 skills in this plugin
/grill-architectureInterview the user about an agentic system, one round of questions at a time, and write the kata brief plus ADR 0001 (agent, workflow or multi-agent). Works from a short idea or from an existing project./setup-architecturePrepare a repository for the architecture skills. Chooses the task tracker, the labels and the dossier layout, then creates docs/architecture/, docs/adr/ and docs/agents/architecture.md./to-adrRecord one architecture decision as an ADR. Read the system, check that the decision is architecturally significant and that each part of it has the condition it needs, ask what is open in rounds with recommendations, and write docs/adr/NNNN-slug.md with Compliance pointing to a fitness function or a gap task. Closes the decision task it answers./to-characteristicsRead an agentic system (brief, ADRs, code, or a two-line description), find its architecture quanta, propose the architecture characteristics that meet the three defining criteria, set a Target for each, find the fitness function that checks it, and write characteristics.md. A characteristic without a fitness function becomes a gap task.