### Install ledgerly plugin Source: https://github.com/anselmoo/werkstoff/blob/main/test/plugins/fixtures/nacharbeit/tune-manifest-2/README.md Installs the ledgerly plugin from the fixtures source. Run this before using the example prompts. ```bash /plugin install ledgerly@fixtures ``` -------------------------------- ### Install lockstep plugin Source: https://github.com/anselmoo/werkstoff/blob/main/test/plugins/fixtures/nacharbeit/sealed-hooks-1/README.md Installs the lockstep plugin from the fixtures source. Run this before using the example prompts. ```bash /plugin install lockstep@fixtures ``` -------------------------------- ### Install demo plugin Source: https://github.com/anselmoo/werkstoff/blob/main/test/plugins/fixtures/nacharbeit-preflight-mixed/plugins/demo/README.md Install the demo plugin from the fixtures repository using the plugin install command. ```bash /plugin install demo@fixtures ``` -------------------------------- ### Install matrize plugin Source: https://github.com/anselmoo/werkstoff/blob/main/plugins/matrize/README.md Install the matrize plugin using the /plugin install command. For a checkout, use the alternative command with --plugin-dir. ```shell /plugin install matrize@werkstoff ``` ```shell claude --plugin-dir plugins/matrize ``` -------------------------------- ### Install cli-scaffold plugin via marketplace Source: https://github.com/anselmoo/werkstoff/blob/main/plugins/cli-scaffold/README.md Commands to add the plugin marketplace and install the cli-scaffold plugin. Nothing runs on install; the plugin only acts when invoked. ```bash /plugin marketplace add Anselmoo/werkstoff /plugin install cli-scaffold@werkstoff ``` -------------------------------- ### Example output for a bug-fix workflow Source: https://github.com/anselmoo/werkstoff/blob/main/plugins/arbeitsplan/skills/arbeitsplan-start/SKILL.md Shows the exact output format for a task that matches workflow C. Fix a bug, or harden a repo. The mode is Manual or acceptEdits, NOT plan, because the work is edits and a ledger lock is involved. The install line names the missing plugin and its exact install command. ```text arbeitsplan start — "there's a bug in the rate limiter and I want to fix it properly" workflow C. Fix a bug, or harden a repo mode Manual or acceptEdits, NOT plan — the work is edits, and a ledger lock is involved install superpowers (present) + andon@werkstoff (MISSING -> /plugin install andon@werkstoff) prompt "find the root cause before changing anything, then prove the fix" writes analysis/andon/ledger/** hook andon's PreToolUse denies every write outside the ledger while it's in a stop state evidence pending — measured run not yet recorded ``` -------------------------------- ### Install gauge plugin Source: https://github.com/anselmoo/werkstoff/blob/main/test/plugins/fixtures/nacharbeit/sealed-assets-1/README.md Installs the gauge plugin from fixtures using the /plugin install command. ```bash /plugin install gauge@fixtures ``` -------------------------------- ### Prompt to total ledger by kind Source: https://github.com/anselmoo/werkstoff/blob/main/test/plugins/fixtures/nacharbeit/tune-scripts-1/README.md Example prompt to trigger the tally skill after installation. ```prompt "total this ledger by kind" ``` -------------------------------- ### Install weigh plugin Source: https://github.com/anselmoo/werkstoff/blob/main/test/plugins/fixtures/nacharbeit/sealed-scripts-1/README.md Installs the weigh plugin from the fixtures registry. ```bash /plugin install weigh@fixtures ``` -------------------------------- ### Install passung plugin via marketplace Source: https://github.com/anselmoo/werkstoff/blob/main/plugins/passung/README.md Adds the Anselmoo/werkstoff marketplace and installs the passung plugin. No hooks are installed, so nothing runs until a slash command is invoked. ```bash /plugin marketplace add Anselmoo/werkstoff /plugin install passung@werkstoff ``` -------------------------------- ### Install quill plugin Source: https://github.com/anselmoo/werkstoff/blob/main/test/plugins/fixtures/nacharbeit/tune-docs-2/README.md Installs the quill plugin from fixtures. ```bash /plugin install quill@fixtures ``` -------------------------------- ### Install tether plugin Source: https://github.com/anselmoo/werkstoff/blob/main/test/plugins/fixtures/nacharbeit/sealed-docs-1/README.md Installs the tether plugin from the fixtures registry. ```bash /plugin install tether@fixtures ``` -------------------------------- ### Install probe plugin Source: https://github.com/anselmoo/werkstoff/blob/main/test/plugins/fixtures/nacharbeit/tune-scripts-2/README.md Installs the probe plugin from the fixtures repository. ```bash /plugin install probe@fixtures ``` -------------------------------- ### Install fence plugin Source: https://github.com/anselmoo/werkstoff/blob/main/test/plugins/fixtures/nacharbeit/tune-manifest-1/README.md Installs the fence plugin from the fixtures registry. ```text /plugin install fence@fixtures ``` -------------------------------- ### Install spool plugin Source: https://github.com/anselmoo/werkstoff/blob/main/test/plugins/fixtures/nacharbeit/sealed-manifest-1/README.md Installs the spool plugin from the fixtures registry. ```bash /plugin install spool@fixtures ``` -------------------------------- ### Install sentry plugin Source: https://github.com/anselmoo/werkstoff/blob/main/test/plugins/fixtures/nacharbeit/tune-hooks-2/README.md Installs the sentry plugin from the fixtures directory. ```bash /plugin install sentry@fixtures ``` -------------------------------- ### Install tally plugin Source: https://github.com/anselmoo/werkstoff/blob/main/test/plugins/fixtures/nacharbeit/tune-scripts-1/README.md Installs the tally plugin from the fixtures source. ```bash /plugin install tally@fixtures ``` -------------------------------- ### Install arbeitsplan plugin Source: https://github.com/anselmoo/werkstoff/blob/main/plugins/arbeitsplan/README.md Install the arbeitsplan plugin from the werkstoff marketplace. The hook remains inert until a run is in flight, so installation alone changes nothing until a workflow is compiled. ```text /plugin marketplace add Anselmoo/werkstoff /plugin install arbeitsplan@werkstoff ``` -------------------------------- ### Install gatekeep plugin Source: https://github.com/anselmoo/werkstoff/blob/main/test/plugins/fixtures/nacharbeit/tune-hooks-1/README.md Installs the gatekeep plugin from the fixtures directory. ```bash /plugin install gatekeep@fixtures ``` -------------------------------- ### Install wick plugin Source: https://github.com/anselmoo/werkstoff/blob/main/test/plugins/fixtures/nacharbeit/tune-docs-1/README.md Installs the wick plugin from the fixtures repository. ```bash /plugin install wick@fixtures ``` -------------------------------- ### Install werkstoff plugin Source: https://github.com/anselmoo/werkstoff/blob/main/plugins/arbeitsplan/references/approved-workflows.md Adds the werkstoff plugin marketplace and installs a plugin from it. Replace with the actual plugin name. ```shell /plugin marketplace add Anselmoo/werkstoff /plugin install @werkstoff ``` -------------------------------- ### Install drift plugin Source: https://github.com/anselmoo/werkstoff/blob/main/test/plugins/fixtures/nacharbeit/tune-assets-2/README.md Install the drift plugin using the Claude Code plugin install command with the fixtures tag. ```bash /plugin install drift@fixtures ``` -------------------------------- ### Install the three plugin layers Source: https://github.com/anselmoo/werkstoff/blob/main/docs/start/index.md Adds the werkstoff marketplace and installs the three plugins required for most recipes: arbeitsplan, superpowers, and pr-review-toolkit. Run these commands in order; arbeitsplan goes first because it carries the front door. ```shell /plugin marketplace add Anselmoo/werkstoff /plugin install arbeitsplan@werkstoff /plugin install superpowers@claude-plugins-official /plugin install pr-review-toolkit@claude-plugins-official ``` -------------------------------- ### Install Zirkel plugin via marketplace Source: https://github.com/anselmoo/werkstoff/blob/main/plugins/zirkel/README.md Commands to add the Anselmoo/werkstoff marketplace and install the zirkel plugin. No PreToolUse hook is shipped, so installation alone changes nothing. ```shell /plugin marketplace add Anselmoo/werkstoff /plugin install zirkel@werkstoff ``` -------------------------------- ### Install takt plugin Source: https://github.com/anselmoo/werkstoff/blob/main/plugins/takt/README.md Install the takt plugin from the Anselmoo/werkstoff marketplace. The plugin remains inert until a repository declares its beats in .claude/takt.local.md. ```shell /plugin marketplace add Anselmoo/werkstoff /plugin install takt@werkstoff ``` -------------------------------- ### Install burn plugin Source: https://github.com/anselmoo/werkstoff/blob/main/test/plugins/fixtures/nacharbeit/tune-assets-1/README.md Installs the burn plugin from the fixtures repository. ```bash /plugin install burn@fixtures ``` -------------------------------- ### Preflight output example Source: https://github.com/anselmoo/werkstoff/blob/main/plugins/nacharbeit/skills/nacharbeit-preflight/SKILL.md Example output of the preflight inventory. Shows per-plugin unit counts, available checkers, live guard hooks, fix lock status, and state file presence. The 'Next' line suggests nacharbeit-lint and nacharbeit-review. ```text nacharbeit preflight — 3 plugin(s) under plugins andon agent=4, changelog=1, docs=1, hooks=1, hookscript=1, manifest=1, readme=1, reference=3, script=6, skill=6, viewer=1 takt changelog=1, docs=1, hooks=1, hookscript=1, manifest=1, readme=1 lehre agent=8, changelog=1, docs=1, hooks=1, hookscript=1, manifest=1, readme=1, reference=1, script=5, skill=9, viewer=1 checkers: node=yes, claude=yes, pyyaml=yes, viewer_checker=yes, hooks_checker=yes, contract_diff=yes, known_answers=yes, marketplace=yes, docs_root=docs, fixtures_root=yes other guards live in this repository (a fix pass runs under them; a denial from one is reported, never bypassed): lehre marker .lehre/ruleset.json escape hatch: LEHRE_DISABLE_GUARD=1 fix lock: none open state: lint.json=present, args.json=absent, run.json=absent, fix-args.json=absent, fix-check.json=absent Can measure: every family. Cannot measure: nothing skipped. Next: nacharbeit-lint for the mechanical rules (free), nacharbeit-review for the calibrated judgement review. ``` -------------------------------- ### Install a werkstoff plugin via Claude Code marketplace Source: https://github.com/anselmoo/werkstoff/blob/main/README.md Adds the Anselmoo/werkstoff marketplace and installs the befund plugin. Replace befund with any other plugin name (zeugnis, zirkel, cupertino, andon, arbeitsplan, cli-scaffold, passung, takt, lehre, nacharbeit, matrize) to install a different one; each plugin is independent and can be installed on its own. ```bash /plugin marketplace add Anselmoo/werkstoff /plugin install befund@werkstoff ``` -------------------------------- ### Install waves tooling with install_waves.py Source: https://github.com/anselmoo/werkstoff/blob/main/plugins/arbeitsplan/skills/arbeitsplan-waves/SKILL.md Installs the waves tooling for an approved design. Pass --artifact when the repository is itself an installable artefact so the generated tooling is export-ignore'd. The installer resolves a Python >= 3.10 interpreter by probing python3, python, and py -3, or the command given with --python, and writes that interpreter into every command. It refuses to overwrite any file it did not generate, and prints LAUNCH IN A LATER TURN because the agent type is only found from the next turn on. ```bash python3 -B "${CLAUDE_PLUGIN_ROOT}/scripts/install_waves.py" \ --design analysis/arbeitsplan//design.json [--artifact] ``` -------------------------------- ### Install werkstoff with uv or pipx Source: https://github.com/anselmoo/werkstoff/blob/main/tools/werkstoff-cli/README.md Install the werkstoff CLI using uv or pipx. Requires the claude CLI on PATH for list/install/update commands. ```bash uv tool install . # or pipx install . ``` -------------------------------- ### Worked example: core.js and bin/cli.js Source: https://github.com/anselmoo/werkstoff/blob/main/plugins/cli-scaffold/skills/cli-scaffold-interpreted/references/javascript.md Worked example showing the core module (src/core.js) with pure logic and no yargs, and the thin CLI entry (bin/cli.js) that uses yargs with .strict() and .parseSync(). The CLI handles --json, --no-input, NO_COLOR, and exit codes 0, 1, and 2. ```javascript // src/core.js — no yargs function greet(name) { if (!name) throw new Error("name required"); return `Hello, ${name}`; } module.exports = { greet }; ``` ```javascript #!/usr/bin/env node // bin/cli.js — thin const yargs = require("yargs"); const { greet } = require("../src/core"); const argv = yargs(process.argv.slice(2)) .command("$0 [name]", "greet") .option("json", { type: "boolean" }) .option("no-input", { alias: "n", type: "boolean" }) .strict().parseSync(); // bad input -> exit 2 const noColor = !!process.env.NO_COLOR; if (!argv.name && (argv["no-input"] || !process.stdin.isTTY)) { console.error("error: name required"); process.exit(2); } try { const msg = greet(argv.name || ""); console.log(argv.json ? JSON.stringify({ message: msg }) : msg); process.exit(0); } catch (e) { console.error(`error: ${e.message}`); process.exit(1); } ``` -------------------------------- ### Example output of git tag command Source: https://github.com/anselmoo/werkstoff/blob/main/test/plugins/fixtures/nacharbeit/tune-2/skills/tag-list/SKILL.md Example output showing the format of the tag list with dates. The output is a two-column table with tag name and date. ```text v1.4.0 2025-06-02 v1.3.1 2025-04-18 ``` -------------------------------- ### Install andon plugin Source: https://github.com/anselmoo/werkstoff/blob/main/plugins/andon/README.md Install the andon plugin from the Anselmoo/werkstoff marketplace. The PreToolUse hook remains inert until an andon ledger directory exists. ```text /plugin marketplace add Anselmoo/werkstoff /plugin install andon@werkstoff ``` -------------------------------- ### Example report output with inventory and verdict Source: https://github.com/anselmoo/werkstoff/blob/main/plugins/passung/commands/passung-status.md Example output showing the artifact inventory table and the three-line verdict. Use this as a template for the report: fill in the table with the actual artifacts and notes, then end with the three lines for where you are, what's stale, and the next command. ```markdown | Stage | Artifacts | |---|---| | preflight | PREFLIGHT.md (Check 0 answered, Check 6 scope note present) | | scan | CONSISTENCY_SCAN.md, consistency.json | | map | matrix.json, CONSISTENCY_MATRIX.html | | canonize | PATTERN_CARDS.md, CANON.json (3 of 5 dimensions canonized) | | brief | CONSISTENCY_BRIEF.md (Approval Block signed for phases 1-2) | | align | PLAYBOOK.md, ALIGN_NOTES.md (phase 1: pilot done, fan-out complete; phase 2: not started) | | verify | VERIFICATION.md (phase 1: clean) | **Where you are** — 3 of 5 dimensions canonized, 1 of those aligned and verified. **What's stale** — nothing. **Next command** — `/passung-align` for phase 2; its playbook is signed but unapplied. ``` -------------------------------- ### Install Cupertino plugin via marketplace Source: https://github.com/anselmoo/werkstoff/blob/main/plugins/cupertino/README.md Adds the plugin from the Anselmoo/werkstoff marketplace and installs the cupertino plugin. The PreToolUse hook is inert until a .cupertino/ state directory exists in the repo. ```shell /plugin marketplace add Anselmoo/werkstoff /plugin install cupertino@werkstoff ``` -------------------------------- ### Worked example: library and entry script for POSIX sh CLI Source: https://github.com/anselmoo/werkstoff/blob/main/plugins/cli-scaffold/skills/cli-scaffold-shell/references/posix-sh.md Worked example of a POSIX sh CLI: a sourced library with a function and a thin entry script that parses options, sources the library, and dispatches. The entry uses getopts, handles --no-input and --json, and respects NO_COLOR. ```sh # lib/.sh — sourced, NO side effects (only defs), pure POSIX greet() { name="$1" if [ -z "$name" ]; then printf 'name required\n' >&2; return 1; fi printf 'Hello, %s\n' "$name" } ``` ```sh #!/bin/sh # — thin entry, pure POSIX set -eu . "$(dirname "$0")/lib/.sh" usage() { printf 'Usage: [-j] [-n] [name]\n'; } json=0; no_input=0 while getopts jnh opt; do case "$opt" in j) json=1 ;; n) no_input=1 ;; h) usage; exit 0 ;; ?) usage >&2; exit 2 ;; esac done shift $((OPTIND - 1)) name="${1:-}" [ -n "${NO_COLOR:-}" ] && : # no ANSI if [ -z "$name" ] && { [ "$no_input" -eq 1 ] || [ ! -t 0 ]; }; then printf 'error: name required\n' >&2; exit 2 fi if out="$(greet "$name")"; then if [ "$json" -eq 1 ]; then printf '{"message":"%s"}\n' "$out"; else printf '%s\n' "$out"; fi exit 0 else exit 1 fi ``` -------------------------------- ### Worked example: bin/ (thin entry) Source: https://github.com/anselmoo/werkstoff/blob/main/plugins/cli-scaffold/skills/cli-scaffold-interpreted/references/perl.md Thin entry point that parses options with Getopt::Long, handles --help, --json, --no-input, and exit codes. Uses Pod::Usage for usage and JSON::PP for JSON output. ```perl #!/usr/bin/env perl # bin/ — thin use strict; use warnings; use Getopt::Long; use Pod::Usage; use JSON::PP; use lib 'lib'; use App; my ($json, $no_input, $help); GetOptions("json" => \$json, "no-input|n" => \$no_input, "help" => \$help) or pod2usage(2); # bad flag -> exit 2 pod2usage(0) if $help; my $name = shift @ARGV; if (!defined $name && ($no_input || !(-t STDIN))) { warn "error: name required\n"; exit 2; } my $msg = eval { App::greet($name // "") }; if ($@) { warn "error: $@"; exit 1; } print STDOUT ($json ? encode_json({ message => $msg }) : $msg), "\n"; exit 0; __END__ =head1 SYNOPSIS Usage: [options] [name] ``` -------------------------------- ### Probe output format example Source: https://github.com/anselmoo/werkstoff/blob/main/plugins/nacharbeit/skills/nacharbeit-probe/SKILL.md Example output format of the probe run. It shows the cell count, model, arm, estimate, per-prompt verdicts (captured, fired), the simulation-vs-probe agreement, and the unmeasured count with the final summary file path. ```text trigger probe — 2 prompt(s) x 2 repeat(s) = 4 cell(s), model haiku, arm isolated; estimate ~$1.36 at $0.34/cell captured zirkel-clarify-scope measured 2/2 captured by zirkel-solve fired cupertino-backwards measured 2/2 simulation vs probe: 1/2 agree (0.50) 0 prompt(s) unmeasured (excluded from every rate); spent $1.29; wrote analysis/nacharbeit/probe/summary.json ``` -------------------------------- ### Worked example: Program.cs (thin CLI with System.CommandLine) Source: https://github.com/anselmoo/werkstoff/blob/main/plugins/cli-scaffold/skills/cli-scaffold-compiled/references/dotnet.md Thin console entry point that defines an argument and options, sets a handler to dispatch into Greeter.Greet, and invokes the root command. Parse errors return the usage code. ```csharp // Program.cs — thin var name = new Argument("name") { Arity = ArgumentArity.ZeroOrOne }; var json = new Option("--json"); var noInput = new Option(new[]{"-n","--no-input"}); var root = new RootCommand("") { name, json, noInput }; root.SetHandler((string? n, bool j, bool ni) => { // dispatch into Greeter.Greet; format; Environment.Exit(0/1/2) }); return await root.InvokeAsync(args); // parse errors -> usage code ``` -------------------------------- ### Reconcile ledger prompt Source: https://github.com/anselmoo/werkstoff/blob/main/test/plugins/fixtures/nacharbeit/tune-manifest-2/README.md Example prompt that triggers the ledgerly-reconcile skill. Use this plain-language prompt after installation. ```prompt "does the ledger agree with its index" ``` -------------------------------- ### Worked example: lib/.zsh and bin/ entry point Source: https://github.com/anselmoo/werkstoff/blob/main/plugins/cli-scaffold/skills/cli-scaffold-shell/references/zsh.md Worked example showing the two required files for a zsh CLI: lib/.zsh (sourced library with only function definitions) and bin/ (thin entry point). The entry point uses zparseopts to parse --json, -n/--no-input, and -h/--help, exits with code 2 on parse errors or missing required input, and emits JSON when --json is given. NO_COLOR is checked to disable ANSI, and [[ ! -t 0 ]] fails fast when stdin is not a TTY. ```zsh # lib/.zsh — sourced, NO side effects (only defs) greet() { local name="$1" if [[ -z "$name" ]]; then print -u2 "name required"; return 1; fi print -- "Hello, $name" } ``` ```zsh #!/usr/bin/env zsh # bin/ — thin entry emulate -L zsh source "${0:A:h}/../lib/.zsh" usage() { print -- "Usage: [--json] [-n] [name]"; } local -a o_json o_noinput o_help zparseopts -D -E -- -json=o_json n=o_noinput -no-input=o_noinput h=o_help -help=o_help || { usage >&2; exit 2; } (( $#o_help )) && { usage; exit 0; } [[ -n ${NO_COLOR:-} ]] && : # no ANSI local name="${1:-}" if [[ -z "$name" ]] && { (( $#o_noinput )) || [[ ! -t 0 ]]; }; then print -u2 "error: name required"; exit 2; fi if out="$(greet "$name")"; then if (( $#o_json )); then printf '{"message":"%s"}\n' "$out"; else print -- "$out"; fi exit 0 else exit 1; fi ``` -------------------------------- ### preflight_summary.json with all checks passing Source: https://github.com/anselmoo/werkstoff/blob/main/plugins/befund/skills/befund-preflight/SKILL.md Example preflight_summary.json with all 6 checks passing and all skills marked Ready. ```json { "checks": [ {"name": "languages", "status": "pass"}, {"name": "tools", "status": "pass"}, {"name": "smoke_parse", "status": "pass"}, {"name": "house_rules", "status": "pass"}, {"name": "git_remotes_ci", "status": "pass"}, {"name": "docs", "status": "pass"} ], "verdicts": { "befund-arch-health": "Ready", "befund-ci-topology": "Ready", "befund-ui-audit": "Ready" } } ``` -------------------------------- ### Single row design JSON example Source: https://github.com/anselmoo/werkstoff/blob/main/plugins/arbeitsplan/references/design-table-schema.md An abbreviated example of a single design row in JSON, showing fields like id, kind, role, wave, goal, depends_on, where, model, effort, agentType, inputs, writeScope, setup, acceptance, and output_schema. ```json { "id": "w1-parse", "kind": "agent", "role": "builder", "wave": 1, "goal": "Move argument parsing into internal/parse behind the existing public entry point", "depends_on": ["preflight"], "where": "worktree", "model": "opus", "effort": "high", "agentType": "rebuild-cli-builder", "inputs": ["preflight"], "writeScope": ["internal/parse/**"], "setup": [{"runtime": "go", "command": "go mod download"}], "acceptance": [{"runtime": "go", "command": "go test ./internal/parse/..."}], "output_schema": {"type": "object", "additionalProperties": false, "required": ["branch", "baseSha", "notes"], "properties": {"branch": {"type": "string"}, "baseSha": {"type": "string"}, "notes": {"type": "array", "items": {"type": "string"}}}} } ``` -------------------------------- ### Freeze generated files during a review Source: https://github.com/anselmoo/werkstoff/blob/main/test/plugins/fixtures/nacharbeit/tune-hooks-1/README.md Example prompt to freeze generated docs during a review. Creates `.gatekeep/` so the hook starts denying writes to `*.generated.md`. ```prompt "freeze the generated docs while this review is open" ``` -------------------------------- ### bin/ - thin entry point with getopts and JSON support Source: https://github.com/anselmoo/werkstoff/blob/main/plugins/cli-scaffold/skills/cli-scaffold-shell/references/bash.md Thin entry point for the CLI. It sources the library, parses options with getopts (including long options), handles --json and --no-input, and exits with usage code 2 on missing input or invalid options. Uses NO_COLOR guard and prints JSON via printf. ```bash #!/usr/bin/env bash # bin/ — thin entry set -euo pipefail . "$(dirname "$0")/../lib/.sh" usage() { printf 'Usage: [-j] [-n] [name]\n'; } json=0; no_input=0 while getopts ":jnh-" opt; do case "$opt" in j) json=1 ;; n) no_input=1 ;; h) usage; exit 0 ;; -) case "$OPTARG" in json) json=1 ;; no-input) no_input=1 ;; help) usage; exit 0 ;; *) usage >&2; exit 2 ;; esac ;; \?|:) usage >&2; exit 2 ;; esac done shift $((OPTIND-1)) name="${1:-}" [ -n "${NO_COLOR:-}" ] && : # no ANSI if [ -z "$name" ] && { [ "$no_input" -eq 1 ] || [ ! -t 0 ]; }; then printf 'error: name required\n' >&2; exit 2; fi if out="$(greet "$name")"; then if [ "$json" -eq 1 ]; then printf '{"message":"%s"}\n' "$out"; else printf '%s\n' "$out"; fi exit 0 else exit 1; fi ``` -------------------------------- ### Get the approval-ready plan Source: https://github.com/anselmoo/werkstoff/blob/main/plugins/passung/README.md Prompts the passung-brief skill to synthesize discovery into a phased, dependency-first plan with worked before/after examples, entering plan mode as a human approval gate. ```prompt "write up the alignment brief for billing so I can approve it" ``` -------------------------------- ### werkstoff CLI usage examples Source: https://github.com/anselmoo/werkstoff/blob/main/tools/werkstoff-cli/README.md Common werkstoff commands: list, install, update, doctor, and prune. The prune command is a dry run unless --apply is given; it fails closed per plugin and never removes anything any registry entry names. ```bash werkstoff list # show every plugin in the marketplace werkstoff list --json # machine-readable werkstoff install # add the marketplace + install every plugin werkstoff install befund zeugnis # install just these two werkstoff install --no-input # skip the "install all?" confirmation (CI-safe) werkstoff install --scope project # user | project | local werkstoff update # refresh the marketplace cache after editing a plugin locally werkstoff doctor # read-only: report every cached version vs. what's installed werkstoff doctor --json # machine-readable werkstoff prune # dry run: list stale, non-live cached versions (keeps newest 1) werkstoff prune --keep 2 # keep the 2 newest non-live versions per plugin werkstoff prune --apply # actually remove them werkstoff prune --apply --json # machine-readable ``` -------------------------------- ### Worked example: lib/App.pm (no Getopt) Source: https://github.com/anselmoo/werkstoff/blob/main/plugins/cli-scaffold/skills/cli-scaffold-interpreted/references/perl.md Core module with pure logic, no Getopt or @ARGV. Defines a greet function that dies on missing name and returns a greeting. ```perl # lib/App.pm — no Getopt package App; sub greet { my ($name) = @_; die "name required\n" unless defined $name && length $name; return "Hello, $name"; } 1; ``` -------------------------------- ### Rebuild the sample board HTML with build_board_html.py Source: https://github.com/anselmoo/werkstoff/blob/main/plugins/andon/README.md Run this bash command from the repository root to regenerate the demo ANDON_BOARD.html from the committed sample ledger. It passes the fixture ledger directory, the HTML template, the D3 include, the tokens CSS, and the output path. The sample ledger is a real OKF directory tree with first-class frontmatter keys (status, kind, blast_radius, verdict, tier). ```bash python3 plugins/andon/scripts/build_board_html.py \ plugins/andon/scripts/fixtures/sample_ledger \ --template plugins/andon/assets/board-viewer.html \ --d3 plugins/andon/assets/inline-d3.html \ --tokens plugins/andon/assets/tokens.css \ --out /tmp/andon-demo/ANDON_BOARD.html ``` -------------------------------- ### Worked example: src/GreetCommand.php (thin command) Source: https://github.com/anselmoo/werkstoff/blob/main/plugins/cli-scaffold/skills/cli-scaffold-interpreted/references/php.md Thin symfony/console command that handles NO_COLOR, non-interactive input, JSON output, and error handling. Returns exit codes 0, 1, or 2. ```php // src/GreetCommand.php — thin protected function execute(InputInterface $in, OutputInterface $out): int { if (getenv('NO_COLOR') !== false) { $out->setDecorated(false); } $name = $in->getArgument('name'); if ($name === null && (!$in->isInteractive())) { $out->getErrorOutput()->writeln('error: name required'); return 2; } try { $msg = Greeter::greet((string) $name); $out->writeln($in->getOption('json') ? json_encode(['message' => $msg]) : $msg); return 0; } catch (\InvalidArgumentException $e) { $out->getErrorOutput()->writeln('error: '.$e->getMessage()); return 1; } } ``` -------------------------------- ### arbeitsplan preflight output example Source: https://github.com/anselmoo/werkstoff/blob/main/plugins/arbeitsplan/skills/arbeitsplan-preflight/SKILL.md Example output of the arbeitsplan-preflight command. It reports git/worktree support, the test command, toolchain probes, helper runtime, live guards, run lock state, and what the run can measure. The output shows a design not ready because julia is missing and warns that arbeitsplan-compile will refuse to overwrite a hand-written takt.local.md. ```text arbeitsplan preflight — /Users/x/proj git yes (worktrees supported, .arbeitsplan/ is gitignored) test command go test ./... (from the Makefile's `test` target) claude on PATH yes timeout gtimeout (coreutils) nested session YES — the matrix runner will refuse; run it from a terminal toolchains go (go version) ok · shell (sh -c true) ok · julia (julia --version) MISSING helper runtime python3 3.12.3 (>= 3.10) · primary checkout: yes other guards live in this repository (a run executes under them; a denial from one is reported, never bypassed): cupertino marker .cupertino takt marker .claude/takt.local.md (no arbeitsplan provenance key — hand-written) run lock: none open state: workflow.json=absent, run_scope.json=absent, matrix results=absent Can measure: every phase. Cannot measure: nothing skipped. Design not ready: julia is named by node conform-jl and is not installed here. Caution: takt.local.md is hand-written. arbeitsplan-compile will REFUSE to overwrite it. Next: arbeitsplan-compile to turn a problem into a spec. ``` -------------------------------- ### Project layout (Pillar 2: core separation) Source: https://github.com/anselmoo/werkstoff/blob/main/plugins/cli-scaffold/skills/cli-scaffold-interpreted/references/php.md Shows the recommended directory structure for a PHP CLI app, separating pure logic (src/Greeter.php) from the thin command (src/GreetCommand.php) and entry point (bin/). ```text / composer.json src/Greeter.php # pure logic, zero Symfony\Component\Console src/GreetCommand.php # thin Command: parse -> Greeter -> format -> exit bin/ # thin entry that boots the Console Application tests/HelpSnapshotTest.php cli-scaffold.manifest.json ``` -------------------------------- ### Worked example: Greeter.cs (core, no System.CommandLine) Source: https://github.com/anselmoo/werkstoff/blob/main/plugins/cli-scaffold/skills/cli-scaffold-compiled/references/dotnet.md Core logic class that throws ArgumentException for empty name and returns a greeting. This file is listed in core_files and must not reference System.CommandLine. ```csharp // Greeter.cs — core, no System.CommandLine namespace App.Core; public static class Greeter { public static string Greet(string name) => string.IsNullOrEmpty(name) ? throw new ArgumentException("name required") : $"Hello, {name}"; } ``` -------------------------------- ### Prompt: Start a new project so it cannot drift Source: https://github.com/anselmoo/werkstoff/blob/main/plugins/lehre/README.md Triggers lehre-preflight, which reports blank page versus existing tree, what doctrine the repository already declares, and what lehre can and cannot enforce. It is the automatic first step of any lehre pipeline, handing a greenfield repo to lehre-decompose. ```prompt "I'm starting a CLI that ingests CSV from three vendors and writes Parquet. Set it up properly — I don't want the usual mess where everything imports everything." ``` -------------------------------- ### Promote and create stacked worktrees with worktree_pool.py Source: https://github.com/anselmoo/werkstoff/blob/main/plugins/arbeitsplan/skills/arbeitsplan-run/SKILL.md Promote a candidate from an earlier wave to a base branch, then create worktrees for a later wave that stacks on it. The promote command commits all worktree contents (including untracked files) and points arbeitsplan//base/build-w1 at the new commit. The create command reads the workflow spec and, if build-w2 declares base: "build-w1", starts each worktree from the promoted branch; otherwise it starts from HEAD. If the base was never promoted, create refuses and creates nothing. ```bash python3 -B "${CLAUDE_PLUGIN_ROOT}/scripts/worktree_pool.py" promote --run --phase build-w1 --candidate c2 ``` ```bash python3 -B "${CLAUDE_PLUGIN_ROOT}/scripts/worktree_pool.py" create --spec analysis/arbeitsplan//workflow.json --phase build-w2 --count 2 ``` -------------------------------- ### Mark the gate as passed with state.py init and set Source: https://github.com/anselmoo/werkstoff/blob/main/plugins/cupertino/skills/cupertino-backwards/SKILL.md Run these commands after step 4 has passed to create the marker file and store the real structured output. The marker file's existence unblocks later cupertino techniques; the hook only checks existence, not content. Use actual content from steps 1-6 as the JSON values, not a placeholder. ```bash python3 -B "${CLAUDE_PLUGIN_ROOT}/scripts/state.py" init ``` ```bash python3 -B "${CLAUDE_PLUGIN_ROOT}/scripts/state.py" set backwards-done '{"literalRequest":"...","underlyingProblem":"...","statement":"...","techDirection":"...","driftRisks":["..."]}' ``` -------------------------------- ### Run preflight, scan, and map commands Source: https://github.com/anselmoo/werkstoff/blob/main/plugins/passung/README.md Run these three commands to check environment readiness, scan for inconsistencies, and generate a divergence matrix. Each produces a standalone artifact in analysis// so you can stop and review at any point. ```bash /passung-preflight billing # is my environment ready? /passung-scan billing # what's actually inconsistent, and what's out of scope? /passung-map billing # show me the divergence matrix ``` -------------------------------- ### Worked example: exe/ (thin entry) Source: https://github.com/anselmoo/werkstoff/blob/main/plugins/cli-scaffold/skills/cli-scaffold-interpreted/references/ruby.md Thin executable that parses options with OptionParser, handles --json and --no-input flags, reads name from ARGV, and outputs JSON or plain text. Exits with usage code 2 on parse/input errors and 1 on ArgumentError. ```ruby #!/usr/bin/env ruby # exe/ — thin require "optparse"; require "json"; require_relative "../lib/" opts = { json: false, no_input: false } parser = OptionParser.new do |o| o.banner = "Usage: [options] [name]" o.on("--json") { opts[:json] = true } o.on("-n", "--no-input") { opts[:no_input] = true } end begin; parser.parse!; rescue OptionParser::ParseError => e; warn e.message; exit 2; end name = ARGV.shift if name.nil? && (opts[:no_input] || !$stdin.tty?); warn "error: name required"; exit 2; end begin msg = App.greet(name.to_s) $stdout.puts(opts[:json] ? JSON.generate({ message: msg }) : msg); exit 0 rescue ArgumentError => e; warn "error: #{e.message}"; exit 1; end ``` -------------------------------- ### Install superpowers plugin Source: https://github.com/anselmoo/werkstoff/blob/main/plugins/arbeitsplan/references/approved-workflows.md Installs the superpowers plugin from the official Claude plugins marketplace. ```shell /plugin install superpowers@claude-plugins-official ``` -------------------------------- ### Validate constructed examples with zirkel.py calibrate Source: https://github.com/anselmoo/werkstoff/blob/main/plugins/zirkel/skills/zirkel-calibrate-format/SKILL.md Validates a constructed example set with diversity enforcement. The set must include a happy path and at least one edge case, and the boundary example must be marked with near_boundary: true. A non-zero exit indicates a missing happy path, edge case, or boundary example. ```bash echo '{"constructed":true,"examples":[ {"kind":"happy-path","in":"normal","out":"…","near_boundary":false}, {"kind":"edge-case","in":"empty","out":"…","near_boundary":true} ]}' | python3 -B "${CLAUDE_PLUGIN_ROOT}/scripts/zirkel.py" calibrate - ``` -------------------------------- ### Validate real examples with zirkel.py calibrate Source: https://github.com/anselmoo/werkstoff/blob/main/plugins/zirkel/skills/zirkel-calibrate-format/SKILL.md Validates a set of real prior output examples. The guard script is invoked with the calibrate subcommand and a dash to read from stdin. A non-zero exit indicates too few or too many examples. ```bash echo '{"constructed":false,"examples":[{"in":"x","out":"y"},{"in":"a","out":"b"}]}' | python3 -B "${CLAUDE_PLUGIN_ROOT}/scripts/zirkel.py" calibrate - ``` -------------------------------- ### Install zeugnis plugin via Claude Code commands Source: https://github.com/anselmoo/werkstoff/blob/main/plugins/zeugnis/README.md Installs the zeugnis plugin from the Anselmoo/werkstoff marketplace. Both PreToolUse hooks remain inert until the target repository has an analysis/zeugnis/ directory, so installation alone changes nothing until a zeugnis audit skill has run once. ```bash /plugin marketplace add Anselmoo/werkstoff /plugin install zeugnis@werkstoff ``` -------------------------------- ### Check ingest prerequisites with check-ingest-prereqs Source: https://github.com/anselmoo/werkstoff/blob/main/plugins/andon/skills/andon-loop/SKILL.md Run in ingest mode (`gap_source: befund-brief`) before any heuristic steps. If it exits non-zero, `MODERNIZATION_BRIEF.md` or `transform_brief_summary.json` is missing from `befund_output_dir`; stop and tell the user to run `befund:befund-transform-brief` first. On success, use the brief's phases with confidence `befund-backed`. ```bash python3 SCRIPTS check-ingest-prereqs ``` -------------------------------- ### Install nacharbeit plugin via marketplace Source: https://github.com/anselmoo/werkstoff/blob/main/plugins/nacharbeit/README.md Install the nacharbeit plugin from the werkstoff marketplace. The hook stays inert until a fix pass creates analysis/nacharbeit/fix_scope.json. ```shell /plugin marketplace add Anselmoo/werkstoff /plugin install nacharbeit@werkstoff ``` -------------------------------- ### Worked example: thin entry script (bin/.ps1) Source: https://github.com/anselmoo/werkstoff/blob/main/plugins/cli-scaffold/skills/cli-scaffold-shell/references/powershell.md Thin entry script that parses parameters, imports the core module, honors NO_COLOR, handles no-input and JSON output, and maps errors to exit codes. ```powershell # bin/.ps1 — thin entry [CmdletBinding()] param([Parameter(Position=0)][string]$Name, [switch]$Json, [Alias('n')][switch]$NoInput) Import-Module "$PSScriptRoot/../.psm1" if ($env:NO_COLOR) { $PSStyle.OutputRendering = 'PlainText' } if (-not $Name -and ($NoInput -or -not [Environment]::UserInteractive)) { Write-Error 'error: name required'; exit 2 } try { $msg = Get-Greeting -Name $Name if ($Json) { Write-Output (@{ message = $msg } | ConvertTo-Json -Compress) } else { Write-Output $msg } exit 0 } catch { Write-Error "error: $_"; exit 1 } ``` -------------------------------- ### Example JSON output from prose-check Source: https://github.com/anselmoo/werkstoff/blob/main/test/plugins/fixtures/nacharbeit/sealed-2/skills/prose-check/SKILL.md Example of the JSON output format returned by the skill, showing a grammar problem with file, line, kind, text, and suggestion. ```json {"problems": [{"file": "docs/intro.md", "line": 9, "kind": "grammar", "text": "less files", "suggest": "fewer files"}]} ``` -------------------------------- ### Trade-off matrix example (Markdown table) Source: https://github.com/anselmoo/werkstoff/blob/main/plugins/zirkel/skills/zirkel-negotiate-tradeoffs/SKILL.md Example of a trade-off matrix showing what each source branch gives up and what the hybrid preserves. Used in step 1 of the process. ```markdown | source branch | gives up | hybrid preserves | |---|---|---| | Winner | its narrower impact | Winner's higher feasibility | | Runner | its lower feasibility | Runner's higher impact | ``` -------------------------------- ### Build beat graph HTML with build_beatgraph_html.py Source: https://github.com/anselmoo/werkstoff/blob/main/plugins/takt/README.md Run this command to generate the beat graph viewer HTML from the repository. The output is written to /tmp/beatgraph.html. The script uses the repository's live data, which currently compiles zero beats. ```bash python3 plugins/takt/scripts/build_beatgraph_html.py --repo . --out /tmp/beatgraph.html ``` -------------------------------- ### Worked example: discard fate Source: https://github.com/anselmoo/werkstoff/blob/main/plugins/cupertino/skills/cupertino-prototype/SKILL.md Worked example showing a spike that fails: the queue client does not retry, so the spike is discarded. The run output is the empirical observation. ```text Question: Will the queue client retry with jittered backoff, or fail fast on the first timeout? Spike: client = QueueClient(timeout_ms=50) client.connect("unreachable-host:9999") print(client.send({"id": 1})) Run: exit 1, stderr: "ConnectionError after 1 attempt (0 retries)" Observation: no retry occurs — the client fails on the first timeout, contrary to what the docs implied. Fate: Discard. The question is answered; the spike has no further purpose. ``` -------------------------------- ### Install lehre plugin via marketplace Source: https://github.com/anselmoo/werkstoff/blob/main/plugins/lehre/README.md Commands to add the werkstoff plugin from the marketplace and install the lehre plugin. The plugin is inert until a repository declares a doctrine via .lehre/ruleset.json. ```bash /plugin marketplace add Anselmoo/werkstoff /plugin install lehre@werkstoff ``` -------------------------------- ### Worked example: promote fate Source: https://github.com/anselmoo/werkstoff/blob/main/plugins/cupertino/skills/cupertino-prototype/SKILL.md Worked example showing a spike that succeeds: the parser survives but drops malformed rows, so the row-skip logic is deliberately promoted with added rigor. ```text Question: Can the CSV parser handle the malformed rows in last week's export without crashing? Spike: for row in csv.reader(open("bad_export.csv")): try: parse_row(row) except Exception as e: print(row, e) Run: exit 0, stdout: 3 rows printed with "IndexError: missing column 4" Observation: the parser survives but silently drops the 3 malformed rows. Fate: Deliberately promote: the try/except row-skip logic. It still needs error logging, a row-count assertion, and tests before it enters production code. ``` -------------------------------- ### Check readiness first (zeugnis) Source: https://github.com/anselmoo/werkstoff/blob/main/docs/prompt-index.md Prompt to check if zeugnis is set up correctly. Triggers `zeugnis-preflight` — five independent readiness checks, one verdict per domain skill, before any audit actually runs. ```prompt "is zeugnis set up correctly in this repo?" ``` -------------------------------- ### Use arbeitsplan-start directly Source: https://github.com/anselmoo/werkstoff/blob/main/docs/start/index.md A more reliable prompt for cheap models, where the generic question may not trigger the skill. Names the skill outright to improve routing. ```prompt use arbeitsplan-start: I want to add a feature to an unfamiliar repo ``` -------------------------------- ### Business rules extractor worked example (Given/When/Then) Source: https://github.com/anselmoo/werkstoff/blob/main/docs/plugin-authoring/references/output-shape-findings.md Worked example with concrete values showing how to encode a business rule as Given/When/Then. Used before instructing the agent to encode rules. ```markdown Given an account with balance $1,250.00 and APR 18.5% When the monthly interest batch runs Then the interest charged is $19.27 (balance × APR ÷ 12, rounded half-up to cents) ``` -------------------------------- ### Ask which werkstoff workflow fits Source: https://github.com/anselmoo/werkstoff/blob/main/docs/start/index.md Prompts arbeitsplan-start to recommend a workflow, install list, and opening prompt. It only recommends; it never installs, dispatches, or edits, and may answer 'no fit'. ```prompt which werkstoff workflow fits what I am about to do, and what should I run first? ``` -------------------------------- ### Worked example: lib/.rb (pure logic) Source: https://github.com/anselmoo/werkstoff/blob/main/plugins/cli-scaffold/skills/cli-scaffold-interpreted/references/ruby.md Core library module with no CLI framework or ARGV access. Defines a greet method that raises ArgumentError for empty names and returns a greeting string. ```ruby # lib/.rb — no optparse module App def self.greet(name) raise ArgumentError, "name required" if name.to_s.empty? "Hello, #{name}" end end ``` -------------------------------- ### judgement rule example Source: https://github.com/anselmoo/werkstoff/blob/main/plugins/lehre/references/ruleset-schema.md Example of a judgement rule. It is advisory by schema, must carry an asks field, and is never evaluated by evaluate_file. A blocking severity with kind judgement is a validation error. ```json { "id": "handler-owns-no-business-logic", "severity": "advisory", "sourceMode": "scaffolded-default", "authority": { "source": "Clean Architecture (Martin), policy vs transport" }, "rationale": "A pricing rule computed in a handler is the only place that rule lives.", "check": { "kind": "judgement", "paths": ["src/api/*"], "asks": "Does this handler compute a value the domain should own?" } } ``` -------------------------------- ### Completeness score table example Source: https://github.com/anselmoo/werkstoff/blob/main/plugins/zirkel/skills/zirkel-summarize-trace/SKILL.md Example completeness score table for a run where Explore did not run, so 'Approaches weighed' is omitted. Shows the expected format with one row per section and notes. ```markdown | Section | Present | Notes | |----------------------|---------|-----------------------------------------| | What was asked | yes | | | What was assumed | yes | | | Approaches weighed | omitted | Explore did not run | | What ran | yes | 3/3 dag_stages listed | | What was produced | yes | | | What was revised | yes | explicitly states nothing was revised | | What was NOT done | yes | | ```