Skip to content

Latest commit

 

History

History
451 lines (353 loc) · 119 KB

CLAUDE.md

File metadata and controls

451 lines (353 loc) · 119 KB

CLAUDE.md — Asimov

This repo is Asimov — a marketplace for Claude Code and Codex publishing one plugin (asimov-plugin, one plugin folder both tools install) that ships L3 workflow tooling. Slash commands, subagents, definitions, and document templates for the Design → Spec → Code → Review+Test stages of the L3 pipeline, and the Project frame around them: the engagement the stages run inside, with its own column (asimov-project, the project artifact skills, pm-advisor, the product repo's project/).

You are working on the toolkit. Commands and subagents built by the toolkit run in product repos; this repo is where their definitions, prompts, and templates live.

Quick map

.claude-plugin/marketplace.json                ← marketplace manifest (declares asimov-marketplace)
.agents/plugins/marketplace.json               ← Codex marketplace manifest (same asimov-marketplace, same plugin folder)
plugins/asimov-plugin/                         ← the plugin (install scope)
├── .claude-plugin/plugin.json                 ← plugin manifest
├── .codex-plugin/plugin.json                  ← Codex plugin manifest (same asimov-plugin; "skills": "./skills/")
├── .opencode/plugins/asimov.js                ← OpenCode V2 plugin (2026-11-16): registers skills/ with the host's skill tool and agents/*.md as subagents (body + role skill as the system prompt, no model, edit denied where tools: has no Write/Edit), and runs hooks/asimov-context in the session hooks; loaded through the repo root's index.js / package.json
├── assets/                                    ← the plugin's icon: asimov-icon.svg (the source) and its 512 px PNG, named by .codex-plugin/plugin.json (composerIcon, logo, brandColor)
├── hooks/                                     ← harness hooks (D100 §4.7)
│   ├── hooks.json                             ← Claude Code: the run log's six registrations (D101-asimov-log) + the two context hooks (D101-asimov-init)
│   ├── hooks-codex.json                       ← Codex, named by .codex-plugin/plugin.json: the two context hooks and the log's five, each with a commandWindows; moves with hooks.json
│   ├── asimov-context                         ← the context hook: bash, builtins only; where asimov.md marks the repo it injects skills/using-asimov cut to the enabled parts
│   ├── run-hook.cmd                           ← polyglot shim: cmd finds Git Bash on Windows, Unix execs bash
│   ├── run-hook.ps1                           ← Codex on Windows runs hooks in PowerShell: pipes the payload through the shim
│   └── scripts/asimov-log.ps1                 ← the log writer: payload in, one line out, a state file; never a skill or a model
├── agents/                                    ← subagent shells: identity + harness fields only; the method is a role skill. One .md (Claude Code) + one .toml (Codex, prototype) per subagent
│   ├── giskard-the-dotnet-developer.{md,toml} ← .NET developer (Giskard) → skills/role-dotnet-builder — D101-subagents
│   ├── daneel-the-angular-developer.{md,toml} ← Angular developer (Daneel) → skills/role-angular-builder
│   ├── calvin-the-test-author.{md,toml}       ← test author (Calvin) → skills/role-dotnet-tester
│   ├── baley-the-code-reviewer.{md,toml}      ← reviewer (Baley) → skills/role-code-reviewer — D101-subagents
│   └── powell-the-verifier.{md,toml}          ← verifier (Powell, Test stage) → skills/role-s102-verifier — D101-subagents roster, D101-build-stage
├── skills/                                    ← skills (shipped; active in any repo). The harness-portable layer: what both Claude Code and Codex read
│   ├── asimov-design/                         ← asimov-skill (model-invocable, a repo gate on asimov.md): the one door of the Design stage — requirements, business design, the stop, the technical design in a second run, an edit, the review path (Step 10: the gap review §8a/§8b, the persona reads, the .review.md notes), and since 2026-11-17 the architecture path (Step 11: the product's D100, one per area); a named legacy .md is rendered to HTML. SKILL.md + agents/openai.yaml (Codex)
│   ├── asimov-spec/                           ← asimov-skill (model-invocable, a repo gate on asimov.md): the Spec-stage planning run — reads the design and the architecture (D100), stops on a part no architecture carries, asks at most five questions in one message, one cut of the whole plan in a writer subagent, the plan check, the cut shown as the plan view, the go that renders the S101 + S102s. SKILL.md + agents/openai.yaml (Codex)
│   ├── asimov-build/                          ← asimov-skill (model-invocable, a repo gate on asimov.md): the Build-stage run, no gate inside it (since 2026-11-17) — establishes the branch, the leftovers commit, the toolchain and the baseline, builds every phase with the Asimov agents, Baley then Powell, commits each on the feature branch; a stop proposes its ruling, a re-plan goes through asimov-spec and the ledger is carried. SKILL.md + agents/openai.yaml (Codex)
│   ├── asimov-init/                           ← asimov-skill (model-invocable; the write plan is its gate): the setup, one run for both harnesses — the asimov.md marker, the Codex shells to .codex/agents/, conventions, project info (through its method file) and site (through its skill); takes back the @asimov.md line and the AGENTS.md region earlier versions wrote. SKILL.md + agents/openai.yaml (Codex)
│   ├── role-dotnet-builder/SKILL.md                ← role skill: the .NET builder method (Giskard's body)
│   ├── role-angular-builder/SKILL.md               ← role skill: the Angular builder method (Daneel's body)
│   ├── role-dotnet-tester/SKILL.md                 ← role skill: the .NET tester method (Calvin's body)
│   ├── role-code-reviewer/SKILL.md                 ← role skill: the changeset review method, all stacks (Baley's body); a vs-spec target and third table when given task specs
│   ├── role-s102-verifier/SKILL.md                 ← role skill: the verifier method (Powell's body): run a built phase's done-whens and checkpoint as written, change nothing
│   ├── artifact-persona-authoring/SKILL.md    ← artifact skill: shows the persona roster, interviews for a custom persona, writes .claude/skills/persona-<slug>/ (both harnesses; replaced /persona-new + /persona-list)
│   ├── persona-poseidon/SKILL.md              ← operational-reality reader
│   ├── persona-athena/SKILL.md                ← technical-feasibility reader
│   ├── persona-hermes/SKILL.md                ← cost/ROI reader
│   ├── pm-advisor/SKILL.md                    ← advises on the delivery model in processes/ (routing table; read-only); the advisor of the Project frame
│   ├── artifact-site-authoring/SKILL.md       ← artifact skill: the documentation site's only writer; runs the script, relays the report, authors nothing
│   │   └── scripts/site.ps1                   ← scans documentation/, reads project/info.html, fills the site templates, writes index.html, _chrome.css, _site/ and the nav blocks whole; -Plan/-Check
│   ├── asimov-project/                        ← asimov-skill (model-invocable, a repo gate on asimov.md): the Project frame's one entry point; the artifact and the action from the message; the risk log its first row and section (verbs, questions, the go, the review)
│   ├── tool-deck-authoring/SKILL.md           ← tool skill (model-invoked): write a slide deck from resources/deck/; triggers on "a presentation", "slides", "a pitch"
│   └── using-asimov/                          ← the standing context the hooks inject: SKILL.md in part blocks (design, spec, build, project), subagent.md beside it; the one skill named for its reader
├── artifacts/                                 ← one folder per artifact the toolkit writes into a product repo; sub-folder = where it lands. Definition, template and method files side by side (-authoring.md, -view.md, -validation.md; scripts/ beside them), read by path, never invoked
│   ├── documentation/                         ← artifacts that land in the product repo's documentation/
│   │   ├── d100-architecture/                 ← the D100 artifact (2026-11-17): the product's architecture, one per area, what a D101 names parts and decisions from and the plan's Foundation realises
│   │   │   ├── d100-architecture-definition.md    ← the bar *current*: every member of contracts/architecture.md, and §5.1 Run true; §3.1 the mapping; the checks D1–D8; placement documentation/D100-<area>.html
│   │   │   ├── d100-architecture-template.html    ← the D101 chrome and CSS verbatim; §2 context, §3 parts (part-id spans, a planned chip), §4 connections, §5 run (locally as one code span, environments), §6 layout, §7 constraints, §8 decisions (ad-id spans), §9–§11 optional, §12 references
│   │   │   └── d100-architecture-authoring.md     ← method file: what the repo answers and what the owner is asked in one message, the rendering, the preview of D1–D8, the invariants; read by asimov-design's architecture path
│   │   ├── d101-feature-design/               ← the D101 artifact: definition, template and method files side by side
│   │   │   ├── d101-feature-design-definition.md  ← the two bars for D101s (§8a business-complete, §8b gap-free)
│   │   │   ├── d101-feature-design-template.html  ← visual + structural standard every D101 follows
│   │   │   ├── d101-feature-design-authoring.md   ← method file: the rendering procedure + authoring invariants + the legacy .md render; read by asimov-design and any hand edit
│   │   │   └── d101-feature-design-review.md      ← method file: the gap review (section walk + §8a/§8b + report); read by asimov-design's review path
│   │   ├── site/                              ← the documentation site (artifact-site-authoring; asimov-init calls it)
│   │   │   ├── site-definition.md             ← the taxonomy, the front page, the card, the nav block, the rules S1–S8
│   │   │   ├── nav-template.html              ← the nav block every page carries between the asimov-nav markers
│   │   │   ├── home-template.html             ← the front page: two sentences, two tables
│   │   │   ├── section-template.html          ← a section or group page and the blocks it is built from
│   │   │   ├── document-template.html         ← the frame a markdown document renders into under _site/doc/
│   │   │   └── _chrome.css                    ← shared site chrome, copied verbatim
│   │   └── conventions/                       ← documentation/conventions/ (asimov-init)
│   │       ├── conventions-definition.md      ← what a per-stack read-list must contain
│   │       └── conventions-readme-template.md ← conventions/<stack>/README.md read-list skeleton
│   ├── skills/                                ← artifacts that land in the product repo's .claude/skills/
│   │   └── persona-review/                    ← the persona review skill artifact (artifact-persona-authoring)
│   │       ├── persona-review-definition.md       ← the reader-persona review standard (one skill per persona)
│   │       └── persona-review-template.md         ← SKILL.md skeleton for a persona review skill (per reader)
│   ├── root/                                  ← artifacts that land at the product repo's root
│   │   └── asimov-md/                         ← the asimov.md marker (asimov-init); the context itself is skills/using-asimov
│   │       ├── asimov-md-definition.md        ← the four asimov-<entry point>: enabled | disabled keys, the default, the opt-out; nothing imports the file
│   │       └── asimov-md-template.md          ← body of the file
│   ├── dot-asimov/                            ← artifacts that land in the product repo's .asimov/ (gitignored working state): the log, the plan, the specs it renders to, the ledger
│   │   ├── asimov-log/                        ← the run log: one text line per harness event, written by hooks/scripts/asimov-log.ps1
│   │   │   └── asimov-log-definition.md       ← the file, the line, the five events, the rules; no template (the definition is the schema)
│   │   ├── asimov-plan/                       ← the plan artifact (Spec stage, 2026-11-17): one file, .asimov/plans/<slug>.md, the whole specification as the writer writes it and the person approves it; rendered into the S101 + S102s by script
│   │   │   ├── asimov-plan-definition.md      ← the bar is what it renders to (S101 dispatch-ready, S102 buildable blind); the Foundation realises the architecture (a planned part scaffolded as D100 §6 says, the checkpoint its §5.1 start), lifecycle, placement
│   │   │   ├── asimov-plan-template.md        ← the S101 header + tree, the six plan sections, one section per task (a yaml block of owns/consumes/produces + the five S102 sections as ###)
│   │   │   ├── asimov-plan-authoring.md       ← method file: cut a design into one plan, tree, plan sections and every task section, in one pass; the plan writer's brief; runs validate-plan on its own output
│   │   │   ├── asimov-plan-validation.md      ← method file: every S101 row and every S102 row on the rendered form, in one report; the script's specification and the fallback without PowerShell
│   │   │   ├── asimov-plan-view.md            ← method file: the plan view a person reads in chat (the cut, ready, in progress)
│   │   │   └── scripts/                       ← plan-lib.ps1 (the parser and renderer both scripts dot-source), validate-plan.ps1 (the one check, before the go), render-plan.ps1 (the S101 + S102s under .asimov/specs/<slug>/ and the approval, at the go; -Approve records it, exit 3 when the approved parts changed)
│   │   ├── s101-implementation-plan/          ← the S101 artifact: the plan part of the specification as the build consumes it, rendered from the plan, never written by hand
│   │   │   ├── s101-implementation-plan-definition.md  ← the dispatch-ready bar; §4.4 checkpoint sentence + check command; §6 the fingerprint rule; §8.1 size thresholds (the scripts' schema); §9 placement
│   │   │   └── s101-implementation-plan-template.md    ← graph once in YAML frontmatter, body by section; the validator's schema for keys, roles, tiers and section titles
│   │   ├── s102-task-spec/                    ← the S102 artifact: one task for one builder, rendered from the plan's task section
│   │   │   ├── s102-task-spec-definition.md   ← the buildable-blind bar
│   │   │   └── s102-task-spec-template.md     ← header copied from the task line + the yaml block; five sections; the validator's schema
│   │   └── s101-ledger/                       ← the ledger artifact (Build stage): the run state of one plan, working state beside the rendered S101, never committed (each phase's commit message carries the one-line results)
│   │       ├── s101-ledger-definition.md      ← the resumable bar; statuses, append-only body, five checks
│   │       ├── s101-ledger-template.md        ← frontmatter as machine state, body as the record
│   │       ├── s101-ledger-operations.md      ← method file: the build ledger — start, position (five checks), record every attempt/report/ruling, close; the only writer of S101-<slug>.ledger.md
│   │       └── scripts/ledger.ps1             ← its method: the ledger operations as one script (PowerShell 5.1 and 7), run inline by asimov-build; the fingerprint computed as the S101 definition §6's awk does
│   └── project/                               ← artifacts that land in the product repo's project/ (the Project frame); one folder per artifact
│       ├── risk-log/                          ← the risk log: definition, template and method files; the page lands at project/risk-log.html
│       │   ├── risk-log-definition.md         ← fields, five states, RL1–RL17, the bar (kept), where it departs from the Risk management discipline
│       │   ├── risk-log-template.html         ← the kept register and the opt-out page; the elements and attributes the script reads back, named in its leading comment
│       │   ├── risk-log-authoring.md          ← method file: the risk log's only writer — what a person said to one change file, returned questions instead of asking; fallback rules without PowerShell
│       │   ├── risk-log-view.md               ← method file: the risk log's fixed 80-column view, through the script; writes nothing
│       │   └── scripts/risk-log.ps1           ← reads, renders, checks and writes project/risk-log.html through a .new and one rename; -Read/-View/-Apply/-Repair/-Finish (PowerShell 5.1 and 7, risk-log.Tests.ps1 beside it)
│       └── project-info/                      ← the project info: definition, template and method file; the page lands at project/info.html, canonical in the repo with the landscape D100
│           ├── project-info-definition.md     ← identity and areas, PI1–PI6, the bar (current)
│           ├── project-info-template.html     ← the two tables the script renders and reads back; an empty asimov-nav pair the site fills
│           ├── project-info-authoring.md      ← method file: the project info's only writer — the answers to one change file; no view file, the site shows the page
│           └── scripts/project-info.ps1       ← renders, reads back and writes project/info.html through a .new and one rename; -Read/-Apply/-Render (PowerShell 5.1 and 7)
├── contracts/                                 ← stage handoffs: what one stage's output must contain for the next stage to consume it. Not artifacts; read by skills by path
│   ├── architecture.md                        ← what an architecture must contain before a feature is planned into it (2026-11-17): context, parts, run, layout, decisions, ids; grounded in arc42, C4, 42010, 4+1, SEI, ADR, 12-factor
│   ├── design.md                              ← what a design must contain, nothing about who reads it or how; a design skill's output, a spec skill's input
│   └── specification.md                       ← what a specification (one plan, one or more tasks) must contain before Build; the line: names and signatures are the spec's, every body and test the builder's
├── resources/                                 ← building blocks shared across artifacts (not artifacts themselves)
│   ├── diagrams/                              ← the 4 standard diagram notations a D101 may use
│   │   ├── README.md                          ← routing table: reader intent → diagram type
│   │   ├── sequence-template.svg              ← UML sequence
│   │   ├── activity-swimlane-template.svg     ← UML activity with swimlanes
│   │   ├── state-machine-template.svg         ← UML state machine
│   │   └── flowchart-template.svg             ← flowchart, ISO 5807 symbols
│   ├── deck/                                  ← the slide-deck skeleton: one HTML file, notes under N, PDF under Ctrl+P, one theme file pasted in
│   │   ├── README.md                          ← how a deck is built, the token contract, where a theme is found, how an artifact template (A100) builds on it
│   │   ├── deck-template.html                 ← mechanics + components + the token contract; its leading comment is the contract
│   │   └── themes/{asimov,light}.css          ← the two shipped themes (dark = the site's palette, neutral light); brand themes live in the product repo
│   └── figures/                               ← the drawing language of an illustration (figure ≠ diagram): glyphs + 7 patterns, for decks, D101 §2 and the site
│       ├── README.md                          ← figure or diagram; the grammar; routing: what the reader must see → scene / track / map / grid / page / roster / terminal
│       ├── glyphs.svg                         ← the symbols in currentColor: person, approving person, agent, document, stack, decision, result, bubble, diff, avatar, chip, window
│       └── <pattern>-template.svg             ← scene (two panels before/after) · track (steps with decisions; timeline variant) · map (parts in lanes) · grid (columns × bands) · page (a document's anatomy) · roster (actors in groups) · terminal (the tool in use)
└── processes/                                 ← the Delivery Model corpus pm-advisor reads (generated export; do not edit here)
    ├── README.md                              ← meta-entry: vocabulary, draft caveat, "start at the framework"
    ├── delivery-model-framework.md            ← the map: the one idea, design principles, phase table
    ├── selection-guide.md                     ← which approach per phase; risky combinations
    ├── disciplines.md                         ← the 28-discipline catalogue
    ├── cross-cutting-layers.md                ← document chain, roles, cadence, level & zone, BVL
    ├── phases/                                ← proposal · scoping · development · operations
    ├── approaches/                            ← scrum · kanban · use-case-delivery · prototyping · launch-hyper-care
    └── disciplines/                           ← one page per discipline
index.js, package.json                         ← the OpenCode entry: a local `plugins` path must be a directory with index.js, a git spec resolves package.json main; both point at plugins/asimov-plugin/.opencode/plugins/asimov.js
documentation/                                 ← repo-level docs (NOT inside install scope)
├── D100-Asimov-architecture.md                ← WHY the toolkit exists + HOW it's built + the L3 process
├── model-choice.md                            ← (stage → command → model) canonical map; maintainer standard, not read at run-time
├── ai-transition-levels-and-zones.md          ← the Levels & Zones vocabulary Asimov uses (L0–L5, Z1–Z3, the nine L3 stages)
├── index.html                                 ← rendered landing page (this repo eats its own /asimov-init output)
├── _chrome.css                                ← rendered site chrome (copy of artifacts/documentation/site/_chrome.css)
├── features/D101-*.html                       ← per-feature D101s (authored as HTML)
└── research/                                  ← research notes that informed design decisions
packages/                                      ← NuGet packages, released with the plugin under the same version (Asimov-Release.yml)
├── Asimov.Packages.slnx                       ← the .NET solution; `dotnet test packages/Asimov.Packages.slnx` is the check (Asimov-PR.yml)
├── src/Asimov.Conventions/                    ← the analyzers a .NET product uses and their whole configuration: build/ (props: the AsimovAnalysisMode knob; targets: forced properties, globalconfig injection, contributors), config/ (Baseline, Style, Formatting, Async, Correctness)
├── src/Asimov.TestConventions/                ← the test layer: Asimov.Test.globalconfig at global_level 110
├── src/Asimov.Conventions.Patterns/           ← Roslyn analyzers for the patterns a product opts into; one folder per pattern (README, one .md per rule, one analyzer per rule); product names are asimov_patterns.* options
└── test/Asimov.Conventions.Patterns.Tests/    ← the pattern analyzer tests (Roslyn test harness)

Key documents — read these first

Doc When
documentation/D100-Asimov-architecture.md Always first — scope, intent, and system architecture (marketplace / plugin / pattern decisions)
plugins/asimov-plugin/artifacts/documentation/d101-feature-design/d101-feature-design-definition.md Before writing or reviewing any D101
plugins/asimov-plugin/artifacts/skills/persona-review/persona-review-definition.md Before authoring or reviewing a persona review skill (the reader-audience review layer)
plugins/asimov-plugin/contracts/design.md Before changing what the Spec stage reads from a design, or adding a design form (research: documentation/research/design-contract-research.md)
plugins/asimov-plugin/contracts/specification.md Before changing what an S101 or an S102 carries, or where the line between the spec and the builder runs (research: documentation/research/specification-contract-research.md)
plugins/asimov-plugin/contracts/architecture.md Before changing what a D100 carries, what the Spec stage reads of it, or what a Foundation realises (research: documentation/research/architecture-contract-research.md)
documentation/model-choice.md Before changing a command's or subagent's model
plugins/asimov-plugin/artifacts/documentation/d101-feature-design/d101-feature-design-template.html When authoring a D101 (its leading comment holds the authoring ground rules + component catalogue)
plugins/asimov-plugin/resources/diagrams/README.md Before drawing any diagram in a D101 (routing table: reader intent → diagram type → template; each template's leading comment holds its notation, node budget and geometry)
documentation/features/D101-codex-support.html Before changing a manifest, a Codex-only skill or how a skill finds plugin files
documentation/features/D101-build-stage.html Before changing how a plan is built: the batches, Baley then Powell, the ledger, the gate, the stops

Conventions

Document codes

  • D100 — architecture doc: this repo's own at documentation/D100-Asimov-architecture.md, and in a product repo one per area at documentation/D100-<area>.html (the D100 artifact, artifacts/documentation/d100-architecture/, since 2026-11-17), the parts, the start and the decisions a D101 names and a plan's Foundation realises
  • D101 — feature design doc
  • plan — the Spec stage's one file per design, .asimov/plans/<slug>.md: the whole specification as the writer writes it and the person approves it (since 2026-11-17); rendered by render-plan.ps1 into the two below
  • S101 — implementation plan: the plan part of the specification as the build consumes it, .asimov/specs/<slug>/S101-<slug>.md; rendered, never written by hand
  • S102 — task spec: one per task, the brief a build subagent receives; .asimov/specs/<slug>/S102-<slug>-NNN-<task>.md; rendered from the plan's task section
  • T100 — test strategy (none yet)
  • A100 — scoping and planning report (planned, 2026-10-27): the first artifact that is a deck, its template built on resources/deck/, its skill over the same resource; the site lists it as planned

L3 pipeline stages

Intent → Design → Spec → Code → Review → Test → Approve → Deploy → Observe. The toolkit covers the AI-assisted middle (Design through Test). See D100 §3.

File naming

  • Commands: commands/<command-name>.md (kebab-case, slash-stripped); Claude Code only, so a new entry point is normally an asimov-skill. None ships since 2026-11-12, when /asimov-init became one, and the folder exists only while a command does
  • Asimov-skills: skills/asimov-<phase>[-<action>]/SKILL.md + agents/openai.yaml beside it (asimov-init for setup, asimov-design, asimov-spec, asimov-build, and asimov-project for the frame); phase-named; a re-check is a path of the stage's skill, never a sibling (asimov-spec-validate was folded into asimov-spec on 2026-10-07, asimov-design-review into asimov-design on 2026-11-13), and a project artifact is a path of asimov-project, never its own asimov-<artifact>
  • Subagents: agents/<subagent-name>.md (kebab-case)
  • D101s: documentation/features/D101-<feature-slug>.html (kebab-case after D101-; authored as HTML)
  • Artifact folders: artifacts/<landing-place>/<artifact-slug>/ (kebab-case; the landing place is where the artifact ends up in a product repo — e.g. artifacts/documentation/d101-feature-design/ for a D101, which lands in documentation/features/; artifacts/project/risk-log/ for the risk log, which lands in project/). Each folder holds the artifact's definition and template side by side; an artifact that is a schema rather than a text (the run log) holds its definition alone. The landing place is the last segment of the folder the artifact lands in, a leading dot spelled dot-: .claude/skills/ → skills/, .asimov/ → dot-asimov/
  • Definitions: <artifact>-definition.md inside the artifact folder — the same <artifact> slug as the folder, so definition and template sort side by side and carry their artifact name when opened alone
  • Templates: <artifact>-template.<ext> inside the artifact folder — the extension is the one the template renders as (.html for D101s and the site, .md for text bodies, .svg for diagrams). Specialised variants: <artifact>-<variant>-template.<ext>
  • Resources: resources/<kind>/ — building blocks shared across artifacts, never an artifact themselves
  • Diagram templates: resources/diagrams/<notation>-template.svg (notation, not section — e.g. state-machine-template.svg)
  • Figure templates: resources/figures/<pattern>-template.svg (pattern, not subject — scene, track, map, grid, page, roster, terminal) plus glyphs.svg; colours as site tokens with dark fallbacks
  • Deck resource: resources/deck/deck-template.html + resources/deck/themes/<slug>.css; a theme is one file, named by its slug, found in the README's order (a path in the message, the product repo's documentation/decks/themes/, the plugin's themes/)
  • Tool skills: skills/tool-<subject>-<action>/SKILL.md — a skill that writes from a resource rather than an artifact (tool-deck-authoring); model-invoked, no model, no arguments; the subject is the resource's folder name
  • Contracts: contracts/<stage-output>.md (design.md, specification.md) — a plain noun for what a stage hands over, no code prefix. A contract lists members only: never its producers, readers, paths or a particular form

Artifact maturity

Every artifact carries one level — assess / trial / adopt / hold (Technology Radar rings) — as a YAML block (artifact, maturity, since) at the top of its definition. The producing skill or command prints the level as one chat line before its first question (nothing for adopt) and never changes it. Levels move on evidence, never time: trial needs one artifact reviewed by a non-author, adopt a second repo plus a revision driven by use; rewriting the bar drops back to assess. D100 §4.5 mirrors the level (hard rule 10). Design: documentation/features/D101-artifact-maturity.html.

Dates

Always YYYY-MM-DD (e.g. 2026-05-21). Never American month/day. Never relative ("last Thursday").

Manifest names vs repo name vs prose names

  • Repo: asimov (GitHub)
  • Marketplace manifest name: asimov-marketplace (in .claude-plugin/marketplace.json and .agents/plugins/marketplace.json)
  • Plugin manifest name: asimov-plugin (in .claude-plugin/plugin.json and .codex-plugin/plugin.json; also the directory name plugins/asimov-plugin/)
  • Friendly prose: "Asimov Plugin" (capitalised, used in headings + sentences)

Codex-only skills

A skill only Codex should run is named codex-<name>. None ships today: codex-asimov-init was folded into the asimov-skill asimov-init on 2026-11-12, which writes both harnesses' targets in one run. The shape stays for the next one. Its frontmatter carries disable-model-invocation: true and user-invocable: false, so Claude Code neither lists nor runs it; its agents/openai.yaml carries allow_implicit_invocation: false. Codex invokes it as $asimov-plugin:<skill-name> ($asimov-plugin:codex-asimov-init). It never uses ${CLAUDE_PLUGIN_ROOT} (Codex does not substitute it) and never a ../../ path (resolved from the working directory): it derives the plugin root from its own file path — two levels above the skill folder, verified by reading the first template, falling back to a Glob under <home>/.codex/plugins/cache/ — as skills/asimov-init/SKILL.md Step 1 does.

How to add a new slash command

A slash command is Claude Code only. A new entry point is normally an asimov-skill (next section); a command remains the right shape only for something Codex should not run. None ships since 2026-11-12 (/asimov-init became the asimov-skill asimov-init), so commands/ does not exist; the first command recreates it, and CI's model check already tolerates the empty glob.

  1. Decide which L3 stage the command belongs to (Design / Spec / Code / Review + Test, or ad-hoc like /conventions-check).
  2. Add a row to documentation/model-choice.md (stage → command → model).
  3. Cover it in the D101 of its artifact family — the Design-stage asimov-skills share documentation/features/D101-design-stage.html; a command for a new artifact gets that artifact's D101, written with plugins/asimov-plugin/artifacts/documentation/d101-feature-design/d101-feature-design-template.html. Run /asimov-design — twice: once for requirements + business design (which lands the file at phase Business design with §6 open), then again for the technical design. Must clear both bars in plugins/asimov-plugin/artifacts/documentation/d101-feature-design/d101-feature-design-definition.md — §8a before you move to §6, §8b before you request review.
  4. Add a row to documentation/D100-Asimov-architecture.md §4.3 Slash commands and asimov-skills.
  5. Author the command file at plugins/asimov-plugin/commands/<command-name>.md with YAML frontmatter (description, argument-hint, model).
  6. Test locally — see "How to test" below.

How to add a new subagent

A subagent is two layers. The role skill at plugins/asimov-plugin/skills/role-<stack>-<role>/SKILL.md carries the whole method — the six-field skeleton of D100 §7.2.1 (Role, Stack competence, Reads, Workflow, Boundaries, Output; plus Target for diff-scoped roles). It is the harness-portable layer: Claude Code and Codex both read it, and a main agent can use it directly where no subagent exists. The shell under plugins/asimov-plugin/agents/ carries only identity and harness fields and points at the skill — one file per harness (<name>.md for Claude Code with skills: preloading the role skill; <name>.toml for Codex, a prototype whose discovery location is unverified). Subagent kinds follow the Accelerate roles — planner / builder / tester / reviewer, planner reserved (see D100 §4.4). Five exist (Giskard/.NET + Daneel/Angular builders, Calvin/.NET tester, Baley/reviewer, Powell/verifier at the Test stage). The Spec stage's one check is the script artifacts/dot-asimov/asimov-plan/scripts/validate-plan.ps1, run inline by asimov-spec through Bash on the whole plan before the cut is shown (asimov-plan-validation.md beside it is its specification and the fallback where no PowerShell exists), and its one writer is the harness's general-purpose agent on Opus at high effort, passed on the call (model-choice.md §1.2).

Naming: role skills are role-<stack>-<accelerate-role> (role-dotnet-builder, role-angular-builder, role-dotnet-tester), subject first like the shells (giskard-the-dotnet-developer) and the conventions folders (conventions/<stack>/). A role that spans stacks drops the stack (role-code-reviewer: only its read-list is stack-specific, so it is not split; role-s102-verifier: the test runner is the repo's). The skill body names roles, never Asimov personas — persona names live in the shells only.

  1. Add a row to documentation/model-choice.md (stage → subagent → model). The model sits in the .md shell; skills declare none.
  2. Cover it in the one subagent D101, documentation/features/D101-subagents.html — a row in its roster and, if the role is new in kind (planner, verifier), its own rules; never a new document per role.
  3. Add a row to documentation/D100-Asimov-architecture.md §4.4 Subagents and, for the skill, §4.6 Skills.
  4. Author the role skill at plugins/asimov-plugin/skills/role-<stack>-<role>/SKILL.md — frontmatter name, description and user-invocable: false (the shell preloads it and the model may invoke it; it is not a / command), description trigger-shaped, narrow and under 300 characters.
  5. Author the shells: plugins/asimov-plugin/agents/<name>.md (YAML frontmatter name, description, model, skills: list, tools if restricted; a three-line body naming the persona, the role and the skill) and plugins/asimov-plugin/agents/<name>.toml (same name/description, developer_instructions telling it to load the skill first, no model).
  6. Test locally — see "How to test" below.

How to add a persona review skill

A persona review reads a design document as one of its intended readers and reports where the document talks to its author instead of to that reader — the concrete form of check 7 in asimov-design's review path. Personas ship as Claude Code skills named persona-<slug>, in two kinds: standard generic archetypes curated in the plugin (plugins/asimov-plugin/skills/persona-*, available on install) and custom product-specific readers authored into the product repo at .claude/skills/persona-<slug>/SKILL.md. A concrete reader is a product entity (hard rule 7), so custom personas stay local; only the form and the generic archetypes ship in the toolkit. The persona- prefix is the namespace (skill discovery is flat — a folder can't group them). Design: documentation/features/D101-personas.html.

What the toolkit owns:

  1. plugins/asimov-plugin/artifacts/skills/persona-review/persona-review-definition.md — the canonical standard: what a persona review is, the five persona fields, the generic fail/reward catalogue, the output shape, and how it relates to asimov-design's review path and Baley.
  2. plugins/asimov-plugin/artifacts/skills/persona-review/persona-review-template.md — the SKILL.md skeleton a persona is authored from. Its leading comment holds the authoring ground rules + an anonymised worked example.

To add a custom persona today: copy persona-review-template.md, fill in every {{PLACEHOLDER}} with the product-specific reader (keep the generic fails/rewards, reorder them, add domain-specific ones), strip the leading comment, and save as .claude/skills/persona-<slug>/SKILL.md in the product repo. The generated skill is self-contained — it inlines the method rather than reading the definition at run-time (a skill is an authored artifact, not a re-running command, so hard rule 3 does not apply to it). The artifact-persona-authoring skill automates this: it shows the roster (standard + custom) first, then interviews and scaffolds. A plain skill, not an asimov-skill, because it calls no other skill; named outside persona-* so the roster glob never takes it for a reader.

How to add an advisory skill

An advisory skill answers questions from a body of reference material shipped in the plugin, rather than performing an action. pm-advisor is the first — it advises on the delivery model in plugins/asimov-plugin/processes/. It is the advisor of the Project frame's column (D100 §3).

  1. Choose the family prefix (pm- for delivery/project-management advice) and a <slug>.
  2. Author plugins/asimov-plugin/skills/<prefix><slug>/SKILL.md with YAML frontmatter carrying only name and description — no model, no argument-hint. The description is the trigger: name the topics and the phrasings that should activate it.
  3. Give the body: a navigation section (which file to read first, how links resolve), an intent → file routing table over the reference corpus, and the rules of engagement (read before advising; recommend don't decide; stay inside the material; advisory only — never writes).
  4. Reference the corpus by path (${CLAUDE_PLUGIN_ROOT}/...), never by inlining its content (hard rule 3).
  5. No documentation/model-choice.md row (skills declare no model). No plugin.json / marketplace.json change (skills auto-discover).
  6. D101 coverage: an advisory skill of the Project frame is covered by the column's D101s (the first is the risk log's) — not one per skill.
  7. Test locally — see "How to test" below.

How to add a project artifact

The Project frame is the engagement the stages run inside (D100 §3): not an L3 stage, never a link in the chain from design to code, kept while the stages run. It is one column with the same four bands as a stage: the entry point asimov-project, you in your own session (no agent), the project artifacts' method files plus pm-advisor, and the product repo's project/, a folder beside documentation/ and specs/, one page per artifact. The risk log is the first artifact, built (its D101, documentation/features/D101-project-management-risk.html; its plan and ledger under specs/project-management-risk/). The project info is the second (2026-11-10, from a hand spike, no D101 yet: artifacts/project/project-info/ with project-info-authoring.md; it has no view file, since the site shows the page). A closure report is the next the risk log names.

  1. Design the artifact in its own D101, documentation/features/D101-project-management-<artifact>.html, with /asimov-design as for any feature. The column has no shared D101: its rules live in D100 §3/§4.3 and here.
  2. Author the artifact pair under plugins/asimov-plugin/artifacts/project/<artifact-slug>/: <artifact-slug>-definition.md (with its maturity block) and <artifact-slug>-template.<ext>, side by side, as every artifact.
  3. Author its method files in the artifact folder: <artifact-slug>-authoring.md (write or change the page) and <artifact-slug>-view.md (show it in chat), a script under scripts/ beside them as the Spec stage's artifacts have. Each names its siblings by file name and anything else as <plugin-root>/…, and calls no skill.
  4. Add the artifact as a path of asimov-project (skills/asimov-project/SKILL.md): the word that names it in a message, the questions, where it waits, what it prints. Never a new asimov-<artifact> entry point: one word for the frame, as one per stage.
  5. Rows: D100 §4.5 (the pair and its method files, with its maturity); documentation/model-choice.md only if the entry point's model changes. The site: site/inside/project-management.html and the Project column of the phase diagram on site/inside/index.html.
  6. The page lands at project/<artifact-slug>.html in the product repo; project/ is a literal of hard rule 9.
  7. Test locally — see "How to test" below.

How to add an asimov-skill

An asimov-skill is an entry-point skill that replaces a slash command: one SKILL.md that both Claude Code (/asimov-<name>) and Codex ($asimov-plugin:asimov-<name>) read. Every asimov-skill is model-invocable since 2026-11-13: a person starts it by name, or the model invokes it because the words of a message matched its description; the four stage skills gate on asimov.md in their Step 00 and ask before working in an unmarked repo, and asimov-init's write plan (its Step 6) is its gate. disable-model-invocation: true and allow_implicit_invocation: false remain the shape for a skill the model must never start; no asimov-skill carries them. It carries the conversation of one run — which file, which questions, where it waits, what it prints — and no method: every cut, write and check is the artifact's method file, read by path (hard rule 3). The layer rule: an asimov-skill composes method files and skills; a method file reads its artifact and calls no skill. asimov-spec was the first, asimov-design and asimov-design-review followed on 2026-10-02, asimov-build on 2026-10-07 and asimov-init on 2026-11-12 (absorbing the last slash command and the Codex-only codex-asimov-init); design and decisions in documentation/features/D101-spec-stage.html §4.2, §4.7, §6.1 and documentation/features/D101-design-stage.html.

  1. Add a row to documentation/model-choice.md §1.3, the model recommended for a session that runs it. The skill declares none (hard rule 2); a model it passes on an agent call goes in §1.2.
  2. Cover it in its stage's D101 (the Design stage shares D101-design-stage.html, the Spec stage D101-spec-stage.html).
  3. Add a row to D100 §4.3 and §4.6.
  4. Author plugins/asimov-plugin/skills/asimov-<name>/SKILL.md: frontmatter name, description (trigger-first: the words that should start it), no disable-model-invocation (every asimov-skill is model-invocable; a stage skill gates on asimov.md in its Step 00, and the flag is for a skill the model must never start), argument-hint, allowed-tools, no model and no effort; a body that narrates first, reads $ARGUMENTS (and says that a literal $ARGUMENTS means Codex, where the input is the text after the invocation), and reads the artifact method files by path, whole, at the step that applies each. Paths as ${CLAUDE_PLUGIN_ROOT}/... plus the Codex derived-root step of D101-codex-support.html §6.2 (cut the root from the skill's own path, verify by reading the definition, search the cache); never a ../../ path, which Codex resolves from the working directory.
  5. Author plugins/asimov-plugin/skills/asimov-<name>/agents/openai.yaml: interface.display_name, short_description, default_prompt, and no policy block (policy.allow_implicit_invocation: false is Codex's switch for a skill the model must never start, the same decision as disable-model-invocation).
  6. A fresh subagent, where the design needs one, is the harness's generic read-only agent (Explore in Claude Code) given fixed text and paths; never a new file under agents/.
  7. Add the entry point's line to skills/using-asimov/SKILL.md inside the part it belongs to: the skill is already in the skill listing, and its line sets its precedence over generic design, planning and execution skills; a new part means a new asimov-<name> key in asimov-md-template.md, in asimov-init's question and in hooks/asimov-context.
  8. Test locally — see "How to test" below.

How to add a stage contract

A contract under plugins/asimov-plugin/contracts/ says what one stage's output must contain for the next stage to consume it, in whatever form that output takes. It is an interface: it lists members, each grounded in a published model, and nothing else. Its users point at it; it never points at them. contracts/design.md (Design → Spec) is the first; contracts/specification.md (Spec → Build) the second, written 2026-10-05.

  1. Research first and write the note in documentation/research/ (what the known models require; the decisions and why). The member list is the shortest the sources support.
  2. Author contracts/<stage-output>.md: the members (required, required-when-present, optional), one line each on what the member must say and the models it rests on, and the rules. No producer, reader, path, skill or form named.
  3. Each producing form's definition gains a "how X meets contracts/<name>.md" table (the D101 definition §3.1 is the model). A form that is not a repo file is normalised by the consuming stage into a shape that stage's definition fixes (S101 definition §9).
  4. The consuming skills read the contract by path (hard rule 3) and the form through its members.
  5. Sync: D100 §4.5 and §5, the quick map above, hard rule 3, and the D101 of the stage that consumes it.

How to add a design form

A new kind of design (a page in another tool, another tracker) needs no new skill. Either its definition states how it provides every member of contracts/design.md, as the D101 definition §3.1 does, or asimov-spec normalises it into specs/<slug>/design.md in the shape the S101 definition §9 fixes. The only code-like change is the fetch: asimov-spec Step 01 says what it can read where; pasted text is the baseline every form has.

How to add a NuGet package

A package is generic tooling a product repo consumes by reference; it carries no product identifiers (hard rules 7 and 8).

  1. Create packages/src/<Package>/ with its csproj; a package with code gets packages/test/<Package>.Tests/.
  2. Add both to packages/Asimov.Packages.slnx; dotnet test packages/Asimov.Packages.slnx must stay green.
  3. A pattern rule goes in Asimov.Conventions.Patterns/<Pattern>/: ASVnnnn-<Name>.md, <Name>Analyzer.cs, a row in the pattern README and in AnalyzerReleases.Unshipped.md, tests beside it. Rules are disabled by default; a product's convention package turns them on.
  4. A product-specific name becomes an asimov_patterns.* option in PatternOptions.cs with a default, never a literal in a rule.
  5. Versions are not set by hand: Asimov-Release.yml packs every package at the release tag and pushes to GitHub Packages.
  6. Sync: D100 §4.8 and §5, the quick map above, and the package README.

How to test the plugin locally

Claude Code

/plugin marketplace add <path-to-your-clone>

Then in any product repo:

/plugin install asimov-plugin

The slash commands become available. To pick up changes after editing:

/plugin marketplace update asimov-marketplace

No auto-reload.

Codex

codex plugin marketplace add <path-to-your-clone>
codex plugin add asimov-plugin@asimov-marketplace

Codex loads the plugin's skills in a new session. A local marketplace is cached per version, so to pick up changes after editing, remove and add again:

codex plugin remove asimov-plugin@asimov-marketplace
codex plugin add asimov-plugin@asimov-marketplace

Then, in a product repo, run $asimov-plugin:asimov-init.

OpenCode (2026-11-16)

OpenCode has no plugin folder of skills and agents: a plugin is a JavaScript module, here plugins/asimov-plugin/.opencode/plugins/asimov.js, reached through the repo root's index.js (a local path) or package.json main (a git spec). In opencode.json (global ~/.config/opencode/opencode.json, or the product repo's):

{ "plugins": ["<path-to-your-clone>"] }

or, once published, "plugins": ["asimov-plugin@git+https://github.com/context-and-oss/asimov.git"]. On load the plugin registers every skills/<name>/SKILL.md with the host's skill tool (id = folder name; a person names one as @asimov-design), registers every agents/<name>.md shell as a subagent (the shell's body plus its role skill as the system prompt, so "preloaded above" holds; no model, so the session's; edit denied where the shell's tools: has no Write/Edit; reached as subagent with agent: "<shell name>"; the agent editor has no add, and update() on an unknown id creates the agent, undocumented on 2.3.0) and, where asimov.md marks the working directory, runs hooks/asimov-context with ASIMOV_HARNESS=opencode and puts the result into the first user message, with a tool mapping after it (the plugin root for ${CLAUDE_PLUGIN_ROOT}, shell for Bash, subagent for Agent with the shell names bare). Verified 2026-11-16 on OpenCode 2.3.0 on Windows: 18 skills and 5 agents listed, the session text in a top-level session, subagent.md in a child session, Baley with his skill preloaded and no write tool, shell allowed. ASIMOV_OPENCODE_DEBUG=1 prints what it registered and injected; opencode run --standalone --print-logs "hello" 2>&1 | grep asimov shows the load. Not in OpenCode: the run log (no session-end event), a model per agent or per call, ${CLAUDE_PLUGIN_ROOT} in the skills (the mapping names the path instead). Untried: a whole asimov-build run. Design still open: documentation/features/D101-opencode-support.html §6 (PR 37).

Hard rules

These are enforcement rules, not style preferences. Violations break the toolkit's contract.

  1. Manifest names and folder names stay in sync. The plugins/<name>/ directory, the name field in both plugin manifests (.claude-plugin/plugin.json, .codex-plugin/plugin.json) and the plugin entry in both marketplace manifests (.claude-plugin/marketplace.json, .agents/plugins/marketplace.json) — all the same string.
  2. Command/subagent model in frontmatter MUST match the row in documentation/model-choice.md — in the same commit (see model-choice.md §1 sync rule). CI checks agents/*.md (and commands/*.md while any exists). No skill declares a model or an effort, an asimov-skill included (since 2026-11-19): it runs on the session's model and passes a model only on the agent calls it makes; CI fails a SKILL.md that carries either. What is recommended per entry point is model-choice.md §1.3.
  3. Commands and skills reference definitions, templates and contracts by path, not by inlining content. A command's or skill's prompt body says "read plugins/asimov-plugin/artifacts/documentation/d101-feature-design/d101-feature-design-definition.md"; it doesn't paste the definition into the prompt. This keeps the doc-in-the-repo as the runtime source of truth (D100 §7.4). The same rule holds one layer up: an asimov-skill reads an artifact's method file by path (<artifact>-authoring.md, -view.md, -validation.md beside its definition) or names a role-* skill, and never restates the method — the method file or the role skill is the single home of the procedure, the asimov-skill owns only the conversation sequence.
  4. D101s mature through two bars, and each bar's verdict belongs to a different person. Business-complete (d101-feature-design-definition.md §2.1, checked by §8a) is the author's call — it's the gate that stops them writing §6 before the business shape holds. Gap-free (§2.2, checked by §8b) is the human reviewer's (≠ author) call. The author runs asimov-design's review path or a self-preview to surface weak sections before requesting review; automating the gap-free verdict would collapse the reviewer-not-author gate. Never review a Business design document against §8b — a deliberately open §6 is open, not a failure. Phase ≠ status. The rendered D101 carries both axes in its top bar: phase (Business design → Full design, moved by the author) and status (Draft → Approved, moved by the business approver, normally only after §6 exists because the estimate depends on it). Neither implies the other; no command ever records an approval.
  5. An accepted deviation never covers a check. A rule of d101-feature-design-definition.md may be deliberately declined and recorded in the D101 (§4.9) — named rule, one-sentence reason, accepter, date, written next to the element it excuses. It may never be written against a check from §8: that would replace reaching the gap-free bar with being excused from it, and the bar is what makes the reviewer-not-author gate mean anything. Two further limits are equally load-bearing: the record never stops the finding being reported (asimov-design's review path prints it as Accepted, which never becomes Pass — the human reviewer must see what they are signing), and it is never stored outside the D101. A review run of asimov-design may honour a deviation but must never write or propose one. Design: documentation/features/D101-design-stage.html (accepted deviations, §4.4 and §6.4).
  6. No drift between D100, D101s, and code/manifests. When you change one, run a quick grep for related references in the other docs. When a D101 is renamed, superseded or its R/NF/AC numbers change, grep for the old file name and the old numbers in documentation/, CLAUDE.md, README.md, plugins/asimov-plugin/** (definitions, templates, skills, commands) and repo config comments such as .gitignore — the definitions ship to every product repo, so a stale pointer there travels with each release.
  7. Don't bake product-specific identifiers into definitions, templates, or command prompts. Path conventions (e.g. documentation/features/) are acceptable shared conventions; product entity names are not (D100 §8.4 reusability).
  8. Reusability across products is a goal, not a hope. When in doubt, name something generically and add an example as illustration.
  9. Path-convention fork point: the path convention documentation/features/D101-* is baked into plugins/asimov-plugin/skills/asimov-design/SKILL.md (the .html output path, the .html/.md listing glob and the legacy .md render path), and into the two D101 method files artifacts/documentation/d101-feature-design/d101-feature-design-authoring.md (its Paths section, including the mockups/d101-<slug>/ sibling) and d101-feature-design-review.md beside it (the mockup path it follows). skills/asimov-init/SKILL.md shares the same documentation/ taxonomy (features/, conventions/, reference/, root D100-*/E100-*) and adds four literals of its own: the asimov.md root location with its four asimov-<entry point> keys (a marker since 2026-11-13, read by hooks/asimov-context, so the template and the hook move together), the <stack> slugs under conventions/, the AGENTS.md managed-region marker pair (asimov:start / asimov:end, recognised now only to remove a region an earlier version wrote) and the .codex/agents/ delivery folder. The context hooks are registered twice, in hooks/hooks.json (Claude Code) and hooks/hooks-codex.json (Codex); a change to one is a change to the other. The D101-<slug>.review.md sibling-file convention (d101-feature-design-definition.md §4.10) is a third literal of asimov-design (its review path the writer, its design path the reader + deleter) and must move with the other two, and so must the documentation/features/*.review.md pattern in .gitignore, which fuses both literals. The D101 template's leading comment and asimov-md-template.md's taxonomy table repeat the documentation/features/D101-* path as authoring guidance. A fork that uses a different layout changes the literal in all of these files — they must stay in lockstep. The delivery-model corpus path plugins/asimov-plugin/processes/ is a fourth literal, and its lockstep partner is not inside the corpus — the corpus never names its own location. The literal lives in skills/pm-advisor/SKILL.md (the ${CLAUDE_PLUGIN_ROOT}/processes/ routing root) and in the vault's export target (export-delivery-model.ps1 -Target plugin, per processes/README.md Refreshing), which writes to this path from outside the repo. A fork that relocates the corpus changes the skill and tells the vault; editing this repo alone leaves the next export writing to the old path. The plan and specs folders .asimov/plans/<slug>.md (with its siblings <slug>.design.md and <slug>.review.md) and .asimov/specs/<slug>/ (with S101-<slug>.md, S102-<slug>-NNN-<task>.md and the ledger S101-<slug>.ledger.md, all working state, none committed) are a fifth literal, shared by skills/asimov-spec/SKILL.md, skills/asimov-build/SKILL.md, the plan artifact's method files and scripts under artifacts/dot-asimov/asimov-plan/ (the scripts derive the repo root from the .asimov/plans/ segment), artifacts/dot-asimov/s101-ledger/s101-ledger-operations.md and ledger.ps1 (the .asimov/specs/ segment), the .asimov/ pattern in .gitignore and in the three-pattern block (with documentation/features/*.review.md and project/*.new) that skills/asimov-init/SKILL.md writes into a product repo's .gitignore (Step 7, item 8) and that skills/asimov-spec/SKILL.md Step 01 and asimov-project append when missing, the plan definition (§6), both Spec-stage definitions (§9), the ledger definition (§7) and the four templates (leading comments), asimov-md-definition.md's table and D100 §5 and §9; asimov-spec also carries the documentation/features/D101-*.html literal as its input path. The log folder .asimov/ (with log/<date>-<session>.log, state/<session>.state and the optional raw/<session>.jsonl) is a sixth literal, shared by hooks/scripts/asimov-log.ps1 (the only writer), the asimov-log definition, the .asimov/ pattern in .gitignore and in the gitignore block the init entry point and asimov-spec write, and D100 §4.7. The project folder project/ (beside documentation/, one page per project artifact, project/risk-log.html first) is a seventh literal, shared by skills/asimov-project/SKILL.md, D100 §3/§5 and the site's phase diagram, and by every method file and definition under artifacts/project/ (today risk-log-authoring.md, risk-log-view.md and risk-log-definition.md under risk-log/, project-info-authoring.md under project-info/), and by the project/*.new pattern (the risk log's write interrupted before its rename) in the .gitignore block the init entry point writes and asimov-project appends. The decks folder documentation/decks/ (with themes/<slug>.css beside the decks) is an eighth literal, shared by skills/tool-deck-authoring/SKILL.md (the default landing path and the second place a theme is looked up) and resources/deck/README.md (the lookup order). The architecture document documentation/D100-<area>.html (with its .review.md sibling; the area from the project info) is a ninth literal, shared by skills/asimov-design/SKILL.md (Step 11), the D100 artifact's authoring file and definition (§7), skills/asimov-spec/SKILL.md (Step 01, the read and the stop) and the site definition (§3.1, one D100 per area). Intentionally not a config — we don't have a config mechanism for one toggle.
  10. A maturity level and its D100 mirror move in the same commit. The maturity/since block in an artifact's definition is the source; the Maturity column in D100 §4.5 is the mirror. Change one, change the other, and name the evidence for a promotion in the commit message. Same shape as rule 2.
  11. Both plugin manifests carry the same version, moved together in one commit. .claude-plugin/plugin.json and .codex-plugin/plugin.json must show the same number, and the repo root's package.json (the OpenCode package, since 2026-11-16) the same again; each tool detects an update by it, so bumping one and not the others leaves that tool on the old plugin. Same shape as rule 2.

Research notes

Design decisions in this repo were informed by research captured in documentation/research/. When you reopen a decision, check whether the research still applies before re-deciding.

  • industry-design-doc-standards.md — DoR, INVEST, Rust RFC, MADR, EARS, Kiro, Augment, etc.
  • L3-spec-format-research.md — format research for a single spec (Markdown + frontmatter, validator authority); two of its decisions revised by the next note
  • S101-S102-spec-stage-research.md — the plan layer: how the field orders and parallelises tasks (Spec Kit, Kiro, OpenSpec, Conductor, superpowers, Beads, agent teams), and the S101/S102 decisions taken 2026-09-25
  • design-contract-research.md — what a design must contain before planning, across twelve traditions (DoR, INVEST, SbE, Shape Up, Google design docs, Rust RFC, ADR, 29148, EARS, Kiro, Spec Kit, PR/FAQ); the decisions behind contracts/design.md, 2026-10-02
  • specification-contract-research.md — what a specification must contain before building, across fifteen traditions (INVEST, Scrum, 29148, IEEE 1016, SbE, Shape Up, Kiro, Spec Kit, OpenSpec, superpowers, Beads, Google, DbC, agent briefs, verification standards), and where they put the line between the spec and the implementer; the decisions behind contracts/specification.md, 2026-10-05
  • additional-command-ideas.md — which community/vendor slash commands fit the toolkit's L3 scope and reusability bar, and which don't

Contributing

The contribution process for people outside the maintainer team is in CONTRIBUTING.md at the repo root (issue first for behaviour changes, D101 before prompt, reviewer ≠ author, MIT in = MIT out). Keep it and this file in step: the hard rules live here, the process lives there.

Current state

Built: the Design-stage asimov-skill asimov-design (with asimov-design-review, 2026-10-02; the two replaced the former /d101-feature-design, /d101-review and /d101-convert-to-html commands, the legacy render a path in asimov-design, the review folded into asimov-design on 2026-11-13) and the setup asimov-skill asimov-init (repo bootstrap for both harnesses in one run; since 2026-11-12 it supersedes the /asimov-init command, the Codex-only codex-asimov-init and, before them, /docs-init), the three build subagents (Giskard/.NET + Daneel/Angular builders, Calvin/tests tester), the reviewer (Baley), the verifier (Powell, 2026-10-07), and the supporting definitions and templates. Marketplace + plugin are scaffolded; D101s are authored directly as HTML.

Subagents are split into role skills + shells (2026-09-28, for Codex support without maintaining each method twice): the method lives in skills/{role-dotnet-builder,role-angular-builder,role-dotnet-tester,role-code-reviewer}, the agent files are thin per-harness shells (.md for Claude Code, .toml for Codex). The .toml shells are a prototype — Codex discovery of a plugin-level agents/ folder is unverified. Design: features/D101-subagents.html (Draft v0.2, 2026-09-28), which supersedes D101-build-subagents and D101-baley-the-code-reviewer. The same principle applied to the D101 commands (2026-09-28): d101-feature-design-authoring.md (a skill until 2026-11-13) holds the rendering procedure, mockup rules and authoring invariants that the then /d101-feature-design and /d101-convert-to-html commands used to inline (and that a hand edit of a D101 never got), and d101-feature-design-review.md holds the section walk, the §8a/§8b run and the report that the then /d101-review command used to run inline. The asimov-skills keep only the conversation — phases, stops, file choice, menu, notes file — and read the method files; the template's leading comment stays the single home of the component catalogue. Skill families: role-* (a subagent's method), artifact-* (the two that are triggers: artifact-persona-authoring, artifact-site-authoring; the eleven others became method files beside their artifacts on 2026-11-13), persona-*, pm-*, asimov-* (entry points, one file for both harnesses; person-only or model-invocable per skill), codex-* (Codex-only entry points), tool-* (a skill over a resource, not an artifact: tool-deck-authoring writes a slide deck from resources/deck/, 2026-10-27), using-asimov (the standing context the hooks inject, the one skill named for its reader, 2026-11-13). Design: features/D101-design-stage.html (renamed 2026-10-02 from D101-d101-feature-design when the commands became asimov-skills), rewritten 2026-09-28 as the one D101 for the whole artifact — commands, skills, phases and axes, accepted deviations, review handoff — superseding D101-d101-review, D101-d101-convert-to-html, D101-accepted-deviations and D101-review-handoff. The pm-advisor skill (over the Delivery Model corpus in plugins/asimov-plugin/processes/) is in; since 2026-10-23 it is the advisor of the Project frame's column.

asimov-design runs in three phases — requirements, business design, technical design — and stops after the business design, writing the file with §6 declared open. The technical design needs a second invocation; a legacy .md named in the message is rendered to HTML instead. Its review path (Step 10, since 2026-11-13) is the review hub: it resolves the phase, then offers and runs the gap review against the matching bar plus the business- and technical-persona reviews (the persona reviews delegated to the persona skills). See D100 §4.3 and d101-feature-design-definition.md §2.

The persona layer is built: its standard, template, and design (persona-review-definition.md, persona-review-template.md, features/D101-personas.html at Full design), the artifact-persona-authoring skill (2026-10-02; it replaced the artifact-persona-authoring + /persona-list commands), and the three shipped standard personas (skills/persona-{poseidon,athena,hermes}). Persona skills are named persona-<slug> — standard generic archetypes shipped in the plugin, custom readers authored by artifact-persona-authoring into a product repo's .claude/skills/.

The accepted-deviation mechanism is built (hard rule 5): d101-feature-design-definition.md §4.9 plus two §7 anti-patterns and the §8 no-check limit, the .accepted markup and ground rule 14 in the D101 template, the Accepted severity and validity branch in asimov-design's review path, the authoring branch in its design path, and the design in features/D101-design-stage.html (§4.4, §6.4). Its live use is NF3 of that same document, which carries the deviation that used to sit on NF2/NF3 of the old review D101.

The review-handoff mechanism is built (d101-feature-design-definition.md §4.10): a review run of asimov-design writes a sibling D101-<slug>.review.md, scoped by prompt discipline, by default after every run; a design run checks for it, offers it against a fingerprint check, folds accepted findings in, and deletes it once a write consumes it. Gitignored, never a record — design in features/D101-design-stage.html (R10–R11).

The artifact-maturity convention is built: every artifact under artifacts/ opens with its maturity block, the three producing commands print the level as one chat line (Step 1b), D100 §4.5 mirrors it, and hard rule 10 keeps the two in step. Design: features/D101-artifact-maturity.html (Full design). Today: D101 trial, everything else assess.

The Spec stage is built (2026-10-02) and untried on a real design: the two definitions (artifacts/dot-asimov/s101-implementation-plan/s101-implementation-plan-definition.md, bar dispatch-ready; artifacts/dot-asimov/s102-task-spec/s102-task-spec-definition.md, bar buildable blind; both assess) and their templates, the four method files (s101-implementation-plan-authoring.md, s102-task-spec-authoring.md, s101-implementation-plan-validation.md, s102-task-spec-validation.md; skills until 2026-11-13) and the asimov-skill asimov-spec (one SKILL.md for Claude Code and Codex plus agents/openai.yaml; its sibling asimov-spec-validate was folded into it on 2026-10-07). Specs land in a product repo at specs/<slug>/, with two gitignored siblings: the S101-<slug>.review.md sidecar and, for a design that is not a repo file, the design.md cache. What a design is is the contract plugins/asimov-plugin/contracts/design.md (members only, grounded in documentation/research/design-contract-research.md): a D101 at Full design meets it (D101 definition §3.1), and a Jira ticket whose thread does is normalised into the cache in the shape the S101 definition §9 fixes, with ids given once. There is no S102 without a plan: a one-task ticket gets a one-task S101 (decided 2026-10-02, D101-spec-stage v0.15). asimov-spec takes its target from the words of the message that names it (a D101 slug or path, a Jira link or key, or pasted ticket text; no flags), reads the design and the repo, asks at most five questions with defaults, writes the S101 draft and shows the cut, then waits for the author's go before any S102 is written; after the go it writes each S102, validates it blind in a fresh read-only subagent (Explore in Claude Code), validates the plan as a whole, and finishes once. A third failed validation of one task, or a finding that names a design gap (design:), stops the run. Update vs rewrite on a re-run is decided by comparing the design's items with the S101's coverage map, then one question. Task tiers (low/mid/high) map to models in model-choice.md §1.1. Design: features/D101-spec-stage.html (Full design, Draft v0.15; §5 is the chat as the UI, with a mockup under features/mockups/d101-spec-stage/). Research: documentation/research/S101-S102-spec-stage-research.md, documentation/research/design-contract-research.md. Open: Q8 (checklist → script if two runs disagree), Q9 (who writes an Angular-only slice's acceptance test), Q12 (can the blind subagent reach Jira itself). Q11 is resolved 2026-10-02: ${CLAUDE_PLUGIN_ROOT} in Claude Code, the derived-root step of D101-codex-support.html §6.2 in Codex.

The Spec stage was re-based on contracts/specification.md (2026-10-05), after the first real run (a Backend ticket, eleven tasks) showed every S102 carrying full method bodies and test classes, acceptance criteria that grepped the spec's own code, and private names fixed as contract. The contract draws the line: the specification fixes scope, the public names and signatures, the behaviour and the check; the builder owns every body, every private name and every test. In its wake: the S101 is a phase tree with one task per line (id, title, role, tier, after, traces; files and contract names live in the S102 headers), a body of six sections (Contracts, Constraints the design imposes, Coverage, Escalation, Review focus, Assumptions) and no phase prose; a tester task precedes the builder tasks in every slice, the Foundation holds the contracts as code plus whatever every slice builds against and never a slice's behaviour, and a close phase after the last slice is allowed. The S102 is five sections (Intent, Behaviour or an explicit none, Done-when, Constraints and stops, Out of scope) with owns / consumes / produces in its header, no code block but Gherkin, no steps, and no done-when that searches the source. The person never reads the S101 file: s101-implementation-plan-view.md renders the fixed plan view in chat at the cut, at the end of a run and for the reviewer (the fifth Spec-stage method file). Template workarounds a run had to make are reported to the sidecar's Template findings, not written into the plan. Research: documentation/research/specification-contract-research.md. features/D101-spec-stage.html still describes the 2026-10-02 shape and is rewritten after the first run on the new form.

The Spec-stage flow was reworked (2026-10-06, D101-spec-stage.html v0.17, Q13): people approve plans, agents approve task specs. The author's go at the cut is the S101's approval, written by asimov-spec into the header as approved: { by, date, fingerprint } (the fingerprint rule is the S101 definition §6: since 2026-10-07 the SHA-256 of what the plan view shows, the phases: tree and §2/§3/§6, 12 hex, never printed; the version is the approval's name); a clean blind check marks an S102 status: validated with the date; asimov-spec sets ready itself when the approval still matches the plan and every S102 is validated, and asks for the approval again when the finalise or a plan-level re-cut changed the S101. Nobody sets a status by hand and no reviewer step remains in the Spec stage (D100 §3 names the exception). The checks run before the cut is shown (a Fail is re-cut unseen, up to three times); every authoring and validation call runs in a fresh subagent (a general-purpose writer, an Explore validator) and the chat shows one line per call; a finding is one line in words and the raw reports go only to the sidecar; every message ends with what happens next. A ready plan named again is the re-check: intact, it offers a blind re-check; edited by hand, it re-validates everything and asks for the approval again. The S101 validation's F5 reads the validated marks instead of receiving reports. The §5 mockup features/mockups/d101-spec-stage/plan-run.html shows the new transcript.

The Spec stage was sized for ticket work (2026-10-07, plugin 0.5.0), after the first ticket-sized run (a two-criteria, two-file bug fix) cost 27 subagent calls and some 2.3M tokens for specs the build then did not use. Ten changes, all in the definitions, templates and skills: the Foundation exists only when the plan needs one (a name shared by tasks that may run together, or something every slice builds against), so a bug fix is one slice of two tasks, tester then builder; two criteria that pass in the same files share a slice and the slice question is not asked for a design with two or fewer criteria; a later slice's tester may come after an earlier slice's builder when they share a file, and maintenance work extends the existing test class; existing code is closed by the repo, never by §1 (an S102 header links it as Name (path), the validators open the path, and §1 lists only names tasks produce for each other; a test name is never a contract); a scenario pinned from the review focus carries @review-focus and does not count toward the scenario threshold; the fingerprint covers what the view shows (the tree, §2, §3, §6, with a Constraints block added to the view), is computed once per approval and never printed, and every write that changes an approved part after an approval bumps the version, which is what the person sees (approved v0.2), while a §1-only change leaves both; the task specs of one batch and every blind check run at once, and the finalise runs only when a task spec was rewritten; task-level Flags reach the chat as a count and a Flag must name what would change; the design gate reports every missing member in one pass with a draft comment per member and says up front that the approval must be renewed. D101-spec-stage.html still describes the 2026-10-06 flow and is rewritten after the next run on this form.

The Spec stage was tuned on the second ticket run's feedback (2026-10-07, same plugin version, uncommitted on top of the ticket sizing), a two-task bug fix that still cost twelve subagents and about 1.1M tokens and whose plan view nobody could read at a glance. Fourteen findings, all in the definitions, templates and skills: a phase carries two fields, checkpoint (one sentence a person reads; the view prints it) and check (the command the verifier runs; never shown), because the validator had rewarded a shell command as the checkpoint; task titles are three to seven words and phase names two to five, the view is 80 columns wide, and the S102 file slug is three to five words of the title; the cut writes a gitignored repo-notes.md beside the S101 (files, names with paths, package types, the test fixture and runner, the commands) that the task-spec writers start from and the validators use only as a map; a Fail means a builder would be stuck or build the wrong thing, and a missing header entry for a name that resolves, a leftover date, a paraphrased generic stop or a restated constraint are Flags that never cost a rewrite; checks 6 and 10 of the S102 are matched line against line on subject and value, never by impression; the tester task carries a slice's scenarios (threshold five) and the builder's §2 is one line naming it, its done-when naming the tester's tests, so nothing is written twice; consumes has a form for a package type (Name (package Id)), a modified test file goes under test, a member of a consumed type needs no entry, and the stale execution-mode sentence left the S101 definition; the finalise runs only when a rewrite changed an S102 header or a plan finding names §1/§3/§6; full-mode validation carries the graph rows when the S101 is unchanged since the cut (graph_passed); the fingerprint command no longer reads awk's $0, which the harness substituted with the invocation's words so the approval silently never matched (the same command sits in the S101 definition §6, asimov-spec, asimov-build and s101-ledger-operations.md); the design contract's "required when they exist" members are read as such, so a ticket with no open questions is not asked to say so; an approval the skill could not read in the source (pasted text) is recorded and printed as unverified, and a proxy approval as who for whom; every line after the go carries [k/n] and the step's time; and both init entry points write the four cache patterns into the product repo's .gitignore. Feedback file: the developer's run notes on the ticket, kept outside the repo. The same day a package-update run listed every packages.lock.json under owns.modify, the only move the header allowed, so the owned set gained a fourth list, owns.regenerates (globs allowed; files a build, restore or generator rewrites because of the task's edits, never edited by hand; outside size and disjointness; the builder runs the tool and never opens them; Baley checks them only for being what the hand edits imply; asimov-build commits them with the phase, resets them on a discard and leaves them out of Powell's tree hash): contracts/specification.md Scope, both S102 artifacts, the S102 skills, the S101 definition §4.3 and validation G4/G7, asimov-build, role-code-reviewer, D101-build-stage.html and the research note's decisions table. And the blind check became a shape check (same day, a developer's report that the validator "builds the entire thing"): s102-task-spec-validation.md answers every row by reading text and looking a thing up (a key, a path, a declared name, an id in the design, a test name in the tester's list, a count), never by running a build or a test and never by judging content; its read list is closed (the template, the thresholds, the three files, the headers beside them, one lookup per named path) and the contracts and the S102 definition left it; both validators run on Sonnet through the Agent tool's model field (model-choice.md §1.2, new) and the fixed call carries a run ban. The one content defect the earlier validator found (a scenario that already passed) is now the author's to see at the cut and the reviewer's at the PR, by design. A second developer's run the same day (a second ticket, seven tasks, stopped after two: fifteen subagents, about 1.5M tokens, zero findings that would have cost anything in the build) turned the shape check into a script, validate-s102.ps1 (now artifacts/dot-asimov/s102-task-spec/scripts/; PowerShell 5.1 and 7; the S102 template is its schema, the thresholds come from the S101 definition §8.1; asimov-spec runs it inline through Bash, no subagent, and the validation file's checklist is now the script's specification and the fallback where no PowerShell exists), and settled four more of its findings: S101 §1 lost its Consumed by column (the S102 header is the only record of consumption; the check is "the name is in §1 and the producer is upstream"), owns takes globs and a parallel overlap is a Flag the build serialises rather than a Fail that re-cuts, a check follows the done-when rule (never a search of the source) and §2 never repeats a CLAUDE.md rule, and the S102 gained a light form (§4.7) for low tasks, all of which one writer writes in one call after the go.

The third run of the first ticket (2026-10-08, on the tree above) measured the shape, not the checks: six cold-start subagents, some 690k tokens and thirty minutes for the same two-task fix, with the script doing its three checks in a second and no finding that mattered. The cut had walked the repo for 64 tool calls to write notes the writers then re-verified, one format Fail (a done-when without a code span) cost a 119k-token rewrite round, and the writers paid to reconcile the two definitions. Five changes: a small plan (a design with two or fewer acceptance criteria, in mode new or rewrite) is cut and has every task spec drafted by one writer in one call (asimov-spec Step 02 composes s101-implementation-plan-authoring.md then s102-task-spec-authoring.md in the same subagent; the drafts sit beside the S101 at the gate unvalidated, are deleted by any re-cut and at a stop, and are checked after the go; the hard rule reads "no S102 is checked or marked before the go, and none is written before it but a small plan's drafts"); the S102 authoring method runs validate-s102.ps1 on its own output and fixes format Fails before returning (its self-check: line), the caller's run being the record; the cut reads the repo by a list, never a walk (the files the design names, the test class, the owned project file, one declaring file per name; about fifteen calls for a ticket), and the task-spec writers take the notes as given; three definition contradictions closed: a review-focus line is pinned to the slice's tester (the file that carries the scenarios), never its builder; a test is named by its class and scenario title, never by a method name (the methods are the builder's, per the contract), in both the tester's and the builder's done-when; and the plan validator's package rule accepts a reference from any project file, as the script does; the S101 template's Stops specific to this plan is a sub-list; and asimov-spec appends the four cache patterns to the product repo's .gitignore when missing, so a repo initialised before 2026-10-07 commits no cache. The same day, the deep dive on where the thirty minutes went (the fixed reading per subagent, 133 KB of standards before the first repo file; two LLM validator cold starts; xhigh thinking across sixty tool calls; writers inheriting the session's model) made four more changes: the plan check is a script, validate-s101.ps1 (now artifacts/dot-asimov/s101-implementation-plan/scripts/; both modes, every G/F row and the ten checks by enumeration; a D101's ids read from its id/ac-id spans, a cache's from its numbered items; identical on PowerShell 5.1 and 7), so a small plan has exactly one LLM subagent; the writers no longer read the definitions or the contracts (the authoring file is the method, the template the shape, the script the bar; the S101 writer reads the template, the §8.1 thresholds block and the design, the S102 writer the template and the plan), and asimov-spec reads only the maturity blocks, §9 and contracts/design.md; the models moved: asimov-spec runs on Sonnet 5.5 at default effort, the plan writer on Opus 5.5 at high (model: opus, effort: high on the Agent call; the one Opus call of a run), the task writers on Sonnet 5.5 (model: sonnet), every writer call passing its model explicitly because a developer's run showed writers inheriting the session's model; model-choice.md §1 and §1.2 and D100 §4.3 carry the new rows. The S101 validation file keeps its checklist as the script's specification; graph_passed is gone, since re-answering every row costs a second.

Two runs of a third ticket (2026-10-12 and 2026-10-13, plugin 0.6.0) tuned the shape again. A four-criteria ticket cost ten subagents and some 817k tokens on the subagent path (eight task writers at a 70k cold-start floor each; one graph-check Fail cost a second Opus cut), and $6.75 over about 35 turns inline, where four task specs failed their first shape check because the installed plugin copy predated the writer's self-check and the writer loaded the S102 definition whole. Changes: the plan writer runs the graph check on its own cut before returning (s101-implementation-plan-authoring.md step 13, a self-check: line), as the task writers do; task specs are written one writer per phase, the tester first and then its builders, so a builder is written with its tester's file in hand (the low batch and the small plan unchanged); the clean task specs and the plan's status are set by skills/asimov-spec/scripts/mark-spec.ps1 in one call per round instead of one Edit per file; the S102 template's leading comment states the shape check's rules (the @review-focus tag per pinned line, a code span plus a result word in every done-when, the tester's class in a builder's done-when, no call or signature in a code span), so a writer with only the template can clear the script; both validators derive the repo root from the S101 path and run from any directory; three noise rules fixed (G8 read the template's own §3 sentence as a signature, so the regex now needs the paren glued to the name and skips the template's lines; S7 flagged framework exceptions and members of owned files; G3 failed an Angular-only slice for having no tester task, so a stack with no tester role now takes its builder test-first: the builder owns its spec file under test, carries the slice's scenarios at the tester's threshold and names its own spec in its done-when, row 5 matches a builder only against a tester of its own stack, and a shared command no longer counts as a shared test name); an OOS id that bounds a task may have a coverage row; a ticket is cut by its test classes, not its criteria; and the historical rationale sentences left the skills for this file. Two decisions the same day, after discussion: every ticket is a small plan (the trigger is a normalised design, or a D101 with two or fewer criteria), so one Opus writer cuts, self-checks and drafts every task spec and the run spends one writer whatever the criteria count; and a maintenance slice (every file exists, the tests extend an existing class) is one test-first builder per stack and no tester task, named test-first in a §6 row the plan check reads, so a bug fix is one task per stack and one phase per stack (S101 definition §3 and §4.4; the owned-file Warn is never a reason to split a fix). Declined: a ticket-sized S102 form lighter than the five sections (the developer's first recommendation); the shape stays, the count moved. The CLAUDE.md @-imports a product repo loads every turn are the product's. Later the same day, on a developer's plan view nobody could read: every phase carries a third sentence, delivers (what the phase adds and why the next needs it, in the product's words; the view prints it under the phase name, the script requires it and flags one that reads as a test result), and the checkpoint example became a product outcome with the tests as the proof instead of "the tests are green"; and the plan writer, the task writer and the orchestrator read the repo in one message as parallel tool calls, because a cut on Opus at high effort spent its four minutes on one read per turn. Not changed, by decision: the models and effort of the cut. A cleanup pass the same evening closed the sentences the maintenance rule contradicted (S101 definition §4.4, S102 definition §4.3, the S102 template's review-focus pin, the S102 authoring file's step 3) and made the repo notes a per-phase-path artifact: the cut takes a notes: full | none input, asimov-spec passes none on a small plan (the session that cut the plan drafts the task specs with the repo in its context, and the scripts never read the notes) and deletes a stale repo-notes.md with the drafts; the file, its gitignore pattern and the S101 definition §9 shape stay for the per-phase path. The three files an agent loads every run were then rewritten for size with no rule changed: asimov-spec 48 to 30 KB (the sidecar shape is a pointer to the S101 definition §9, the hard rules keep only what no step states, the rationale and the chained sentences went), s101-implementation-plan-authoring.md 21 to 17 KB and s102-task-spec-authoring.md 17 to 13 KB; the definitions, the validation files and the templates were left as they are, since no run loads the first two and the templates replaced the definitions for the writers. Run 4 of that ticket (2026-10-13, the first on this tree: one subagent, 197k tokens, zero rewrites, zero flags, go to ready in 41 s) left five changes: G3 matches a builder against a tester of its own stack and a slice task against a Foundation task of its own stack (a builder with no tester of its stack is test-first; a slice of test-first builders alone is a slice; the §6 naming rule is gone), so an Angular builder no longer needs a fake dependency or its own phase; S3 resolves a path inside a command against a --prefix, -C or cd folder on the same line and flags, never fails, one that still does not resolve; a ticket's slice is one test-first builder per stack by default, whether or not it adds a name, and a Foundation that exists only so a tester compiles is cut no more (the pair is what the author asks for: since the same day every ticket run asks one fixed question before the cut, test-first or pair, default test-first, and passes the answer to the writer as slice); a §6 row whose decision changes what a user sees or gets carries behaviour after its How value and the view prints those rows, because the gate hid the three that mattered behind a count; and Step 01 says how a Bug maps onto the contract (summary → Problem, the fix comment → Decision, a list of examples is part of its rule, never an id). Declined: recording planning answers on the ticket.

The Build stage is built (2026-10-07, D101-build-stage.html at Full design) and untried on a real plan: asimov-build takes a ready S101 (approval fingerprint intact, a feature branch, a clean tree) and builds it phase by phase; each task goes to a fresh subagent of the shell its role names with the S102 as its only brief and the tier's model, tasks with disjoint owned files in one batch at once; once a phase is built, Baley reviews its diff against the task specs (the reviewer skill's new vs. spec target and third table) and then Powell, the new verifier (agents/powell-the-verifier.{md,toml}, skills/role-s102-verifier), runs every done-when and the checkpoint as written, the tree hashed before and after; a failed task is rebuilt with the findings, three attempts, the third a stop. The checkpoint is shown and the person's go commits the phase's owned files and the ledger as one commit. Run state is the committed specs/<slug>/S101-<slug>.ledger.md (artifacts/dot-asimov/s101-ledger/, bar resumable, assess; written only through s101-ledger-operations.md and its scripts/ledger.ps1), so a run resumes anywhere and the PR carries the reports (D100 Q5 resolved); the run changes nothing else in the specs but the S101 status ready → in progress → done. Every stop reaches the person, who rules: resume with a note, discard the phase, or stop. execution_mode left the S101: one execution mode, an Asimov agent per task, both harnesses. Open: Q1 fewer gates than every phase; Q2 whether Codex can spawn the copied shells from a skill (a spike before AC3).

Scripts live beside the method they implement (2026-10-20, after the first full spec + build run on a real ticket, feedback in the two 2026-10-19/2026-10-20-*-feedback.md notes; beside the skill then, beside the method file since 2026-11-13): artifacts/<landing>/<artifact>/scripts/<name>.ps1, and the top-level scripts/ folder is gone. validate-s101.ps1 sits under s101-implementation-plan/, validate-s102.ps1 under s102-task-spec/, ledger.ps1 under s101-ledger/; mark-spec.ps1 (under asimov-spec, its only caller) and site.ps1 (under artifact-site-authoring) are the two that stay under skills/; a call from elsewhere names the full path, and each script derives the plugin root from its own depth (four folders above an artifact's script, three above a skill's). New: ledger.ps1, the eleven ledger operations as one script (one Bash call each, text through -TextFile or stdin, the fingerprint computed as the S101 definition §6 awk does, verified equal on LF and CRLF files, PowerShell 5.1 and 7), because the first build run did every operation by hand at a definition read and a whole-file write each; asimov-build now calls the script and loads the operations file's text only where no PowerShell exists. Fixed with it: a bare { … } script block in validate-s101.ps1 G3 that PowerShell printed as source instead of running, so the cross-slice sequencing Pass/Flag never fired. Five small Build-stage fixes from the same run: a builder summary opens with Conventions read: and then built or stopped (a gap is a note, never a stop; asimov-build Step 02.3 stops on stopped and on a conflict only), owns.test in a brief overrides the builder role's "tests are the tester's", Baley's prompt names the conventions and his report opens with the same Conventions read: line (a report without it is sent back once), asimov-build runs the first phase's check on HEAD before start and refuses a baseline that does not build (and warns on a branch over 50 commits behind the default; since 2026-11-17 the check is skipped when a task of the first phase creates what the command runs in, and every agent is waited for in bounded rounds, a hang on an approval the session cannot give being a stop), and a resume note reaches Baley and Powell as well as the builder, so a ruled substitute command is run by the verifier and reported as such.

Agents are continued, not re-spawned (2026-10-20, from the same two runs: a re-cut writer re-read the design, the conventions and the repo for 163k tokens and 38 tool calls to change one tier; a builder's resume and retry re-read everything for 202k; a probe measured the cold-start floor of a general-purpose spawn at 61k tokens before any work). asimov-spec spawns one plan writer per run (general-purpose, Opus, high) at the first cut and sends every later call to it with SendMessage (the re-cuts, the task specs phase by phase after the go, the rewrites, the finalise); the small-plan drafts, the low batch, the per-phase Sonnet writers and the gitignored repo-notes.md are gone (the notes existed only to hand a new writer the old one's reads), and one rule replaces the three paths: a writer over 300k on the harness's figure, or one that says its context is nearly full, rolls over to a second writer for the next phase (300k is a calibration, 2026-10-26: the harness's figure sits near the context size, 163k over 38 tool calls on a re-cut and 197k for a whole small plan with no sign of fullness; the sidecar's Writer line records every run's final figure, and the first D101-sized run re-sets the threshold). asimov-build spawns a builder fresh at a task's first attempt and continues it by message on a retry or a resume in the same session; Baley and Powell are one subagent each per phase, fresh at its first round and continued on its retries, so a retry is read with its findings in hand and no phase through the last one's (per phase, not per run, decided 2026-10-26 on the review of PR 33). Where the harness has no SendMessage (older Claude Code; Codex until resume_agent is verified, D101-build-stage Q2) the skills spawn fresh with the same text; a new session always spawns fresh, and the ledger is what carries over. Measured on the next real run: whether a D101-sized plan fits one writer before the rollover.

The run log is built (2026-10-22, plugin 0.8.0, D101-asimov-log.html at Full design, Draft v0.7; the artifact artifacts/dot-asimov/asimov-log/, assess): hooks/hooks.json fires hooks/scripts/asimov-log.ps1 on SessionStart, a typed /asimov-* (UserPromptExpansion), a Skill call of one (PreToolUse), SubagentStart, SubagentStop and SessionEnd, and the script appends one line, time stage feature who sentence, to the gitignored .asimov/log/<date>-<session>.log under the payload's cwd, with .asimov/state/<session>.state for the stage, the feature and the running agents (a sibling folder since 2026-11-13, so log/ holds only what a person reads). Hooks run in parallel, so the state file is written under a named mutex per session; a state file a SessionEnd could not delete inside the harness's 1.5 s budget is swept by the next SessionStart after twelve hours; only an asimov-* invocation creates the folder, with a self-ignoring .asimov/.gitignore, and every other event logs only where it exists. It is mechanical by decision: no skill and no model writes a line, a line carries only what the payload and the transcript give, the why stays in the ledger. The first logged Codex run (2026-11-16, the demo repo's Home Bar feature: a day of design, spec and build) read started and fifteen times stopped and nothing else, and settled Q1 and Q2 the hard way: id8 is now the last eight characters of the session id (a Codex id is a UUIDv7 whose first eight are a timestamp two sessions in one hour share, so a second session's ended landed in the first one's file); a stop is a round (Codex stops a continued agent once per answer; the state keeps the agent with its counters) and its line reads round <n> (<s> s, <calls> tool calls, <tokens> tokens, <cached> cached, <out> out): <headline>, the counts read by the script from the transcript the payload names (a Codex rollout's cumulative token_count and function_call rows, a Claude Code transcript's usage once per message id and its tool_use blocks; opened with every share, since the harness holds it open; 7 MB in under 100 ms) and the headline the first line of the agent's answer cut at 80 characters, the one model text a line carries (R4 reworded, OOS1/OOS2 became R8); the session line carries the session's totals; in Codex, where agent_type is always default and no invocation word reaches the hook, the name comes from the spawn message (You are Giskard → giskard, Act as the S101 plan writer → s101-plan-writer, kept as a pending spawn until the SubagentStart) and the feature from the first specs/<slug>/ or D101-<slug>.html path a tool input names (R9); a send_input with interrupt logs interrupted; hooks.json's PreToolUse matcher is Skill|Agent|SendMessage so Claude Code's spawns carry model and effort into the started (<model>, <effort>) line; stdin is read as UTF-8 bytes (the console code page turned ’ into ÔÇÖ), and counts print with a decimal point whatever the culture. Verified by replaying the run's raw dump through the script in PowerShell 5.1 and 7, and with synthetic Claude Code payloads over a real subagent transcript; the ASIMOV_LOG_RAW=1 dump is how a payload is read. The init entry point and asimov-spec add .asimov/ to the product repo's .gitignore. Since 2026-11-13 hooks.json also carries the two context hooks (D101-asimov-init); Codex reads hooks-codex.json, which carries the context hooks and, since 2026-11-13, the log on the five events Codex may fire, each with a commandWindows straight onto the script; Codex fires SessionStart, PreToolUse (every tool), SubagentStart, SubagentStop (once per answer) and SessionEnd, and a $asimov-plugin:x call shows only as the read of its SKILL.md (Q2 closed 2026-11-16); SessionEnd's timeout is 3 s, the most either harness allows.

The Project frame has its column (2026-10-23, feature/project-frame): the fourth column on the phase diagram of site/inside/index.html, D100 §3/§4.3/§4.6/§5/§9, this file's "How to add a project artifact" and hard rule 9's seventh literal. Decided: one entry point for the frame, asimov-project, with each artifact a path of it (the risk-log D101, written before the frame, named asimov-risk and documentation/project/; PR 34 brought it onto the frame); the frame's pages land in project/ beside documentation/, and the specs moved out of documentation/ to specs/ the same way (the second commit of the branch, 37 files; a plan cut before that date must have its folder moved, since the scripts derive the repo root from the specs/ segment); pm-advisor belongs to the column, so the "planned pm-* family" is gone. Of the column's code only the entry point exists: skills/asimov-project/ (2026-10-26) is a skeleton that fixes the form (frontmatter, the Codex root step, the artifact table of Step 01 with one row per artifact, the rules every artifact section follows) and, with an empty table, lists nothing and stops. The risk log (its row and section, risk-log-authoring.md, risk-log-view.md, artifacts/project/risk-log/) arrived with PR 34; see the next paragraph.

The risk log is built (2026-10-30, PR 34, D101-project-management-risk.html at Full design): the Project frame's first artifact, planned by asimov-spec (11 phases, 16 tasks, every task human, since no role skill fits PowerShell, Markdown and HTML) and built through asimov-build's loop in the session, Baley and Powell per phase, the ledger committed with each phase. The page project/risk-log.html is written only through risk-log-authoring.md and its script scripts/risk-log.ps1 (read, render from the template, check against what the page held, rename; -Read, -View, -Apply, -Repair with a git merge read from :2:/:3:, -Finish; 79 Pester 5 tests on PowerShell 7 and 5.1), shown through risk-log-view.md, and kept through the risk log's row and section in asimov-project; the definition and template sit in artifacts/project/risk-log/ at assess. Rulings during the build: a review of a register holding an identifier twice is refused and points to the repair; an empty area shows as area none written. Not yet done: the hand run of the conversation in Claude Code and Codex (after the merge), and asimov-spec's Step 01 block still appends four patterns, not project/*.new.

The Asimov context comes from the plugin's hooks, not from a file in the repo (2026-11-13, D101-asimov-init.html v0.8, D101-codex-support.html v0.14): hooks/asimov-context (bash, builtins only, through the polyglot hooks/run-hook.cmd, and through hooks/run-hook.ps1 on Codex-for-Windows, whose hook shell is PowerShell) fires on SessionStart and SubagentStart in both harnesses and, where asimov.md marks the working directory, injects skills/using-asimov/SKILL.md into the session or subagent.md into a subagent, cut to the entry points the marker enables — asimov-design, asimov-spec, asimov-build, asimov-project, each enabled or disabled, absent meaning enabled, all four disabled the opt-out, no frontmatter (the old context file) all enabled — with /x or $asimov-plugin:x for the harness, the repo name from the folder and the stacks from documentation/conventions/. asimov.md is now that marker: four keys and three lines for people; the @asimov.md import in CLAUDE.md and the AGENTS.md region are gone, and asimov-init removes them where an earlier version wrote them. Why: both files went stale with every plugin release, the text stood twice, and each write touched a developer's file; the hook follows the plugin version and touches nothing. Verified 2026-11-12 in Claude Code (--plugin-dir, main session and subagents, Explore included) and in the Codex desktop app, which cost four findings now in D101-codex-support §6.8: Codex runs Windows hooks in PowerShell (commandWindows), sets CODEX_SHELL/PLUGIN_ROOT and no CODEX_HOME, trusts hooks per hash, and caches registrations until restarted; the Codex app lists hooks by statusMessage, so hooks-codex.json carries the two context hooks alone, named. Open: Mac/Linux, opencode (PR 37 must align with the marker), the first run of asimov-init itself, and the skill-description budget (a brief in the repo root, 2026-11-13).

asimov-design is the one door of the Design stage (2026-11-13): model-invocable, with a repo gate in its Step 00 that asks before working in a repo without asimov.md; asimov-design-review folded into it as Step 10, the review path; using-asimov sets its precedence over generic design and planning skills instead of forbidding the model to start it. Why: the skill-listing budget brief of 2026-11-13 in the repo root, and the model where a description is a trigger and a skill is something the model may invoke. The other four followed the same day: asimov-spec, asimov-build and asimov-project with the same repo gate in their Step 00, asimov-init with its write plan (Step 6) as the gate; no asimov-skill carries disable-model-invocation or allow_implicit_invocation: false now, and using-asimov sets every stage's precedence instead of naming who may start it. The eleven artifact-internal skills are method files beside their artifacts (2026-11-13): <artifact>-authoring.md, -view.md, -validation.md and s101-ledger-operations.md under artifacts/<landing>/<artifact>/, their scripts under scripts/ there; an entry point reads one by path at the step that applies it. Why: a method file is never a trigger, so it has no place in the skill listing; the listing drops by about 7,700 characters and sits under the budget of the 2026-11-13 brief. artifact-persona-authoring and artifact-site-authoring stay skills, since a person asks for them. The description pass followed the same day: every skill and agent description is trigger-first, under 300 characters, with no ": " inside it (YAML reads that as a mapping and drops the frontmatter); the five role-* skills carry user-invocable: false; the listing is 18 skills and about 5,000 characters, against the 8,000 of the brief.

The Spec stage writes one plan, and the specs live under .asimov/ (2026-11-17, plugin 0.14.0, after the Codex Home Bar run of 2026-11-16, whose transcripts showed the writer paying for the S101/S102 split: every plan defect surfaced one task spec at a time and each cost the person a re-approval, while the split is justified only by the builder's need for one brief per task). The plan artifact, artifacts/dot-asimov/asimov-plan/, is one file, .asimov/plans/<slug>.md: the S101 header and tree, the six plan sections and one section per task (a yaml block of owns, consumes, produces and the five S102 sections as ###). One writer (Opus, high) writes it in one call and self-checks it with scripts/validate-plan.ps1, which renders the plan in memory and answers every S101 row and every S102 row in one report (the rows that compared files, S2, F2 and F5, hold by construction); asimov-spec runs the same check before the cut is shown, re-cuts a Fail unseen, shows the view, and at the go runs scripts/render-plan.ps1 -Approve, which records the approval (name, date, the S101 fingerprint as ledger.ps1 computes it) in the plan and the S101, writes the S101 and one validated S102 per task under .asimov/specs/<slug>/, and bumps the version when an approved plan is approved again after a change; without -Approve it keeps an approval that still holds and refuses (exit 3) one that does not. The S101 and S102 artifacts keep their definitions, templates and bars as the build's data model and lost their authoring, validation and view method files and scripts (validate-s101.ps1, validate-s102.ps1, mark-spec.ps1 are gone); the three Spec-stage artifact folders moved from artifacts/documentation/ to artifacts/dot-asimov/, because that is where they land. The specs folder moved from specs/<slug>/ to .asimov/specs/<slug>/ and the ledger with it: none of the plan, the specs or the ledger is committed any more, and each phase's commit message carries the checkpoint sentence and Baley's and Powell's one-line results (asimov-build Step 06). Two rules from the run: a greenfield stack (no project file for a stack the design names) gets a fixed bootstrap question before the cut (roots, solution file and format, target framework, template and test commands, defaults read from the installed SDKs) and a scaffolding Foundation task that owns its template's output as globs, so template files are owned, never review findings. asimov-build changed only in paths, the dirty-tree refusal (anything listed, since .asimov/ is ignored) and the commit step; D101-spec-stage.html still describes the 2026-10 shape and is rewritten after the first run on this form. Tried on the Home Bar plan from the Codex run (assembled by hand into one file): validate, render, approve, change, refuse, approve again, and ledger start on the rendered S101 all behave; the first spec run on a real design through the skill is the next test.

The architecture is a contract and a document, and the build has no gate (2026-11-17, plugin 0.15.0, after the first Codex run through the one-plan Spec stage and the Build stage on the Home Bar demo: twenty-two person turns for one phase built twice, nine of them approvals of things just asked for, a Foundation whose two projects each ran their tests and could not be started together, and the model off-script implementing F5 outside the plan after "build it"). Two causes. First, no artifact in the chain said how the product runs or where its parts live: the feature design is per feature, the conventions are per stack, the plan asked in chat and took defaults. contracts/architecture.md (members: context, parts at C4's container level, run as a command or an IDE action, layout, decisions as AD<n> records; grounded in documentation/research/architecture-contract-research.md) and the D100 artifact (artifacts/documentation/d100-architecture/: definition at assess, template on the D101 chrome, authoring file) now carry it, one D100 per area at documentation/D100-<area>.html, written or updated by asimov-design Step 11 (defaults for a product that does not exist yet, recorded as its first decisions). asimov-spec reads the D100 with the design, stops on a part no architecture carries, never asks for the design's approval (a D101 at Full design provides it, definition §3.1) and asks its remaining questions in one message; the plan's Foundation realises the D100 (a planned part scaffolded exactly as §6 says, the checkpoint the §5.1 start made true), and the bootstrap question and input are gone; asimov-init's stacks question of the same morning was taken back, since conventions follow the Foundation. Second, every gate inside a stage was reasonable alone and unbearable in series: a person decides at the handoff between stages (the D101 at Full design, the plan's go, the PR) and never inside one. asimov-build was rewritten from scratch on that rule: it establishes its preconditions (a feature branch, a leftovers commit, the toolchain checked in the session, the baseline run or skipped) instead of refusing, builds every phase in order, Baley then Powell, commits each on the feature branch without a go, and stops only when it cannot continue, proposing its ruling so the next invocation resumes without a question (retry <note>, discard, re-plan <words>, done T<nnn>, stop); an environment failure (a tool off PATH, a sandbox refusal, an agent hung on an approval) is a stop that counts no attempt; a re-plan goes through asimov-spec and its go, and ledger.ps1 carry moves the ledger to the new fingerprint keeping the committed phases whose tasks are unchanged (stop -Note records the proposal, position prints it, ruling takes retry | discard | re-plan | stop). D101-build-stage.html and D101-spec-stage.html still describe the earlier forms and are rewritten after the next run; Q1 of the build D101 (fewer gates) is answered: none. The first spec run on this form (the same afternoon, one writer call, no question) closed two gaps the plan showed: a serving command (dotnet run, ng serve, npm start) is never a check or a done-when, since the verifier reads an exit code (the plan definition, the authoring file, the S102 template, the S101 definition §4.4 and validate-plan.ps1, which fails one); and a stack with no conventions folder yet (conventions follow the Foundation) gives Conventions read: none (<stack> has no conventions folder) in the builder and tester skills, which asimov-build accepts and names once at the end. A superpowers plan cut from the same design the same afternoon showed two more: a scaffolding task names its template commands in its §4 (the plan check's row 6b fails one that owns a folder whole and names none), and a criterion no test can prove (a width, a touch target, a flow walked by hand) is a human task, never a builder's unit-test claim.

No skill pins a model (2026-11-19): the five asimov-skills lost model (and asimov-design its effort: xhigh), a leftover from when they were slash commands. Only Claude Code read the pin, it changed the model mid-session when the model started a skill on the words of a message, it lowered a stronger session to Sonnet for spec and build, and a full model id went stale with every release. The agent shells keep theirs, and so do the calls that pass one (the plan writer, the builders by tier). model-choice.md §1.3 holds the recommendation per entry point; CI fails a SKILL.md with model: or effort:. Not measured: whether Claude Code held a skill's model beyond the turn that started it.

Not built yet: /conventions-check — D100 §9. No slash command ships: /asimov-init became the asimov-skill asimov-init on 2026-11-12, one file for both harnesses that writes the same targets in one run (untried in either harness).

Codex support (2026-10-01): the same plugin folder installs in Codex. Built: the Codex marketplace manifest .agents/plugins/marketplace.json (same asimov-marketplace, same plugin folder as .claude-plugin/marketplace.json); the Codex plugin manifest plugins/asimov-plugin/.codex-plugin/plugin.json (same asimov-plugin, "skills": "./skills/") beside .claude-plugin/plugin.json; and the setup entry point, since 2026-11-12 the asimov-skill skills/asimov-init/ ($asimov-plugin:asimov-init; until then the Codex-only codex-asimov-init beside the /asimov-init command). In Codex it derives the plugin root from its own file path (Step 1); in either harness it writes the same targets: the asimov.md marker, byte-for-byte copies of the plugin's agents/*.toml into the product repo's .codex/agents/, the documentation/conventions/<stack>/README.md read-lists, the project info and the documentation site, and it takes back the @asimov.md line and the AGENTS.md region earlier versions wrote (since 2026-11-13; see the context paragraph below). pm-advisor uses ${CLAUDE_PLUGIN_ROOT} alone and so finds its corpus only in Claude Code; a method file needs no derived root: it names its siblings by file name and the rest as <plugin-root>/…, three folders above it (since 2026-11-13; the artifact-d101-* skills derived the root themselves from 2026-10-02). Codex does not load commands/; no slash command ships. Design: features/D101-codex-support.html.

Plugin layout is per artifact, not per file kind (restructured 2026-09-10; the former definitions/ and templates/ folders are gone). artifacts/<landing-place>/<artifact-slug>/ holds an artifact's definition and template together, grouped by where the artifact lands in a product repo; resources/ holds the building blocks shared across artifacts. model-choice.md is a maintainer standard no command reads at run-time, so it lives outside install scope next to D100.