/swe-guidelines:arch-new-aspectfrom swe-guidelines
Incorporates a new aspect into a guideline repository, cascading it through lenses, skills, docs, and README with a named release level.
Ships in swe-guidelines. 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.
A guideline grows one aspect at a time, and each aspect lands in more than one file: the guideline states it, a lens makes it checkable, a skill applies it, the docs record it, and the release names it. This skill takes a brief description of an aspect and does the whole landing, in the guideline's voice, so the person supplies the idea and reviews the result rather than chasing the cascade by hand.
The current working directory must be a checkout of the guideline
repository: architecture.md, lenses/README.md, AGENTS.md, and a
Makefile with the gen-toc, gen-skills, and check targets all
present. Otherwise stop and say so. The copy at ../.., from this
skill's folder as realpath resolves it, is the installed plugin, not
the checkout being changed; read and edit the checkout's files, never
the plugin's.
The arguments describe the aspect in a sentence or a paragraph: optionally a proposed title, a proposed place, and the questions it should answer. Examples: "Why have we named specific technologies? How does a project override one? Clarify and guide." or "Add a 'Reference Implementation' pointer at the end". Empty arguments: ask for the aspect in one message and stop.
AGENTS.md end to end, the guideline's Contents, and the group
table in lenses/README.md. Read the sections the aspect touches
in full, and grep the guideline for the nouns the aspect uses, so
every existing mention is known before anything is written.> **Principle:**
callout and a lens;Next:), which stays last. A pointer goes after any
rationale already there. Which existing places should mention it, with a
named anchor link, at the first place a reader needs it? A
rationale or a pointer placed at the end is linked from the
introduction, so a reader who does not reach the end still finds
it.lenses/README.md says what each group covers)? New lens
or sharpened lens? A new lens takes the next id in its group and
cites the new section by title.scripts/check_leaks.py lists
the terms make leaks refuses. Its product group holds hardware
vocabulary, not product names, and is refused in the guideline and
the lenses; its history group is refused in the guideline and
the scaffold. An
agent is an agent; say so. When the aspect needs a refused term,
rephrase and say so in the report rather than widening the list.make gen-toc.make gen-skills, driven by
lenses/README.md.checkers/src/arch_check/lenses.py, for every lens added,
removed, or re-rated: its id and its severity, equal to the
lens file.GROUPS in
checkers/src/arch_check/model.py. Its skill goes in the group
list of skills/arch-review-full/SKILL.md, and its name in the
group list of agents/arch-reviewer.md. Its lens file goes in
the vendor loop of docs/adopting.md. Every count of the groups
moves with it: the description, the procedure, the Groups
line, and the By-group table of arch-review-full; the
description of the agent; arch-explain; the id prefixes in
lenses/README.md; and README.md. A group the checker decides
in part gets its module under checkers/src/arch_check/rules/
and its tests in tests/test_arch_check_<group>.py.Created or Changed table gains, or a section a section
list gains. Read every arch-scaffold-* skill for it, and
grep them and agents/ for every identifier the aspect
renames.skills/_shared/scaffold-conventions.md, which every scaffold
follows, and scaffold/acme_root/, the core a new tree copies:
its code, and its operational skills under .agents/skills/.
A rule that changes what the core holds, what a scaffold
writes, or what an operator runs lands there too.docs/adopting.md, when an adopter must do something or gains
a place to look.README.md, when a count or a summary changes.AGENTS.md, when a new invariant appears.CHANGELOG.md, since the release pull request writes the
changelog. The report carries the release note the release
pull request copies, in the style of the latest sections of
CHANGELOG.md: one bullet under Added, Changed, Removed, or
Fixed, naming the section title in quotes and the lens ids, then
stating the change for a reader who adopts the guideline. It
names no file and lists no cascade; the level is its own field.
A reversal opens with **Reversed.**.
A new or sharpened rule is minor. A removed or
reversed rule is major; before 1.0.0 it bumps the minor number,
and the entry names the reversal, as CONTRIBUTING.md states.
A pointer, a rationale, or a wording change that states no new
rule is patch.# ... line where a pattern repeats. When a term the aspect uses
is defined elsewhere in the document, link its first mention to
that section.lenses/README.md defines. Then
make gen-toc and make gen-skills; record under Cascade whether
any review skill was rewritten (a pointer or a rationale leaves all
eight unchanged). Then the hand-written skills the aspect affects,
the docs, and the README.git diff --stat lists the files touched so far): a second
snippet with the same pattern, a second place that mentions the
same noun without the link, a second table that lists what the
first one lists. Fix them in the same change.make check and fix what it reports: the first run plus at
most 3 reruns, then stop and say which gate fails and why. Report a
pre-existing failure and stop rather than editing unrelated files.Never commit. Never edit a file outside the checkout. Never add a rule the aspect does not state.
A short report, and nothing else:
# New aspect: <title>
**Kind.** rule | clarification | rationale | pointer
**Shape.** <section | subsection | paragraph | sentence>, placed <where>
**Mentions.** <existing places that now link to it>
**Lenses.** <ids added or changed, with their groups>, or none, and why
**Cascade.** <files changed outside the guideline and the lenses>
**Release note.** <Added | Changed | Removed | Fixed>: <one bullet: the section title in quotes, the lens ids, and the change stated>
**Level.** <minor | major | patch>, and why
**Vocabulary.** <terms rephrased for the leak checker>, or none
**Text.** <the first sentence of the guideline text added; the reviewer reads the rest in `git diff`>
**Check.** `make check` <passed | failed: what>
**Open.** <questions the person should answer, or none>
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub baristaze/swe_guidelines --plugin swe-guidelines22 skills in this plugin
/arch-benchmarkRun a benchmark scenario (a skill, a command, or a question) in a declared runtime and have frontier models score it against the rubric. Use to measure a change to a skill or the text./arch-benchmark-browserRun the benchmark prompt in the chatgpt.com, claude.ai, gemini.google.com, and grok.com products, signed in, and save each answer with its conversation URL as proof; in a checkout of this repository, also check the run in, redacted, with its row./arch-deviateRecord a deliberate deviation from the guideline as an ADR under docs/adr/: the rule quoted, the decision, the consequences. Use when a finding is accepted as intentional.Other plugins' skills for the same job