[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77MCBEH8ZEVVEV5BJE7EVV2":3,"skill-same:01M77MCBEH8ZEVVEV5BJE7EVV2":74},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":36,"commitSha":37,"skillDirectory":38,"forksCount":39,"repositoryHtmlUrl":40,"repositoryHomepageUrl":6,"ownerHtmlUrl":41,"ownerBlogUrl":42,"ownerDescription":43,"updatedAt":44,"install":45,"resources":57},"01M77MCBEH8ZEVVEV5BJE7EVV2","pressure-test",null,"Builds a throwaway interactive terminal app to pressure-test business logic, a state machine, a data model, or an API surface before committing to it. Use when nobody can say yet what the rules do with an awkward sequence of events or an odd record: 'what happens if a refund arrives after the order ships', 'is this transition allowed from that status', 'will this schema fit our odd records', 'which arguments should this call take', 'prototype this reducer'. A pure logic module, liftable into production, sits behind a disposable shell: the terminal app, or a self-contained click-through HTML demo for someone outside engineering. Records the validated answer in a durable note. Visual or design questions: \u002Fprototype:explore-directions.","melodic-software\u002Fclaude-code-plugins","melodic-software","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F58273638?v=4","01M77JVQTXNGKCE4MDFY2BC936","Melodic Software","01M77JVQVN9QDWKAH6W03ANP76",30,"MIT","https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fprototype\u002Fskills\u002Fpressure-test\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\ndescription: \"Builds a throwaway interactive terminal app to pressure-test business logic, a state machine, a data model, or an API surface before committing to it. Use when nobody can say yet what the rules do with an awkward sequence of events or an odd record: 'what happens if a refund arrives after the order ships', 'is this transition allowed from that status', 'will this schema fit our odd records', 'which arguments should this call take', 'prototype this reducer'. A pure logic module, liftable into production, sits behind a disposable shell: the terminal app, or a self-contained click-through HTML demo for someone outside engineering. Records the validated answer in a durable note. Visual or design questions: \u002Fprototype:explore-directions.\"\nargument-hint: \"[observe] [--medium \u003Cvalue>] [scope]\"\nuser-invocable: true\ndisable-model-invocation: false\nallowed-tools: [\"Bash(git branch:*)\", \"Bash(git status:*)\", \"Bash(head:*)\", \"Bash(echo:*)\", \"Bash(${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fdetect-ecosystems.sh:*)\"]\nshell: bash\nmetadata:\n  workflow-stage: plan\n  summary: Throwaway terminal app or shareable HTML demo pressure-testing logic or a data model\n---\n\n**Arguments.** `[observe] [--medium \u003Cvalue>] [scope]`. e.g., \u002Fprototype:pressure-test scheduling state machine, or\n\u002Fprototype:pressure-test observe reservation check in renew or in a guard. A leading `observe`\nselects [Observe](#observe-the-agent-runs-the-fork). `--medium` picks the shell\n([Two shells](#two-shells-tui-default)) and is not part of the scope.\n\n## Repository context. Gather first\n\nCollect these with **individual** Bash calls, one command per call, never combined into a single\ninvocation:\n\n- Current branch, `git branch --show-current`\n- Working tree status (empty = clean), `git status --porcelain | head -10`\n\nThe pipe is the bound and belongs in the command: a read-time cap (\"read only the first 10 entries\")\ncomes after the command has already returned its output inline. What a result returns inline, and\nwhen it arrives as a saved file instead, is [Tools reference § Output limits](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Ftools-reference#output-limits).\n\nTreat a failure (not a repository, git unavailable) as an unknown value and carry on. Keep these as\nseparate body Bash calls rather than pre-compute lines ([gather-block convention](https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fdocs\u002Fconventions\u002Fgather-block\u002FREADME.md#the-pre-compute-block-runs-as-one-shell-invocation),\n\"The pre-compute block runs as one shell invocation\").\n\n## Pre-computed context\n\nProject ecosystems: !`${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fdetect-ecosystems.sh 2>\u002Fdev\u002Fnull || echo \"none detected\"`\n\n## Variables\n\nArguments: `$ARGUMENTS`\n\n## Purpose\n\nThis skill checks a set of rules by running them. It puts the logic in question into a small pure\nmodule, wraps that module in a disposable shell a person drives one action at a time, and shows\nthe whole state after every action. The shell is a terminal app by default, or one HTML file for\na driver who does not use a terminal. With `observe`, the agent runs the variants of a fork itself\nand recommends one.\n\nThe examples in this file follow one case: a library's loan rules. A copy can be on the shelf, on\nloan, overdue or reserved, and the events are borrow, renew, return, reserve and a day passing. A\nrule such as \"a loan can be renewed twice\" fits on one line and still says nothing about the\npatron waiting on a reservation for that copy; the gap appears when someone renews such a copy and\nreads the resulting state.\n\nRead [`${CLAUDE_PLUGIN_ROOT}\u002Fcontext\u002Fdiscipline.md`](..\u002F..\u002Fcontext\u002Fdiscipline.md) first. It holds\nthe rules every prototype follows, the auto-invoke gate, and where the answer gets written down.\nThis file adds only what is specific to the logic facet.\n\nA question about how a screen should look (\"what should this look like\") is a visual\u002Fappearance\nquestion, not a logic\u002Fstate question, and belongs to the other facet: invoke\n`\u002Fprototype:explore-directions` via the Skill tool instead.\n\n## Does the question need a running model?\n\nUse this skill when acting on a running model would settle the question sooner than reading code or\narguing about it. It raises fidelity (how concrete the artifact is) for a question discussion\ncannot settle; the cheapest artifact that answers the question wins. In the loans case:\n\n| What is in doubt | Loans example | Use this skill? |\n|---|---|---|\n| How the rules treat events in an awkward order, including the ones they should refuse | A reserved copy comes back late and its borrower then tries to renew it | Yes |\n| Whether the record shape can hold a case the library really has | One patron borrows two copies of the same title | Yes |\n| What the calls should take and return | Renew by loan id or by copy id | Yes; the module's interface is the draft |\n| What today's code already does | Does the current `renew()` check reservations? | No; read the code |\n\n## Two shells. TUI default\n\nTwo disposable shells can front the same portable logic module (step 2 below), the **terminal\napp** (the default) and a **self-contained HTML demo**. Both run the same process; only the shell\nswaps. Route by audience:\n\n- **The driver is a developer with a terminal** → the TUI (the default below).\n- **The driver works outside engineering** (design, product, or the business side) and will press\n  the buttons, or **no terminal fits the handoff** → the HTML demo shell (next section): one file,\n  nothing to install, opened by double-click.\n- **Explicit override wins both ways**. Ask for a TUI or an HTML demo directly and that beats\n  the default routing.\n- **Then the resolved medium.** With no such request, run the shared medium resolver. This plugin\n  has no `medium` option, so `--option` is empty; add `--argument` only when the reader passed\n  `--medium`, with the value they gave:\n\n  ```bash\n  node \"${CLAUDE_PLUGIN_ROOT}\u002Flib\u002Fview-settings.mjs\" resolve --lane prototype:pressure-test --option \"\" [--argument \u003Cthe --medium value>]\n  ```\n\n  It prints one JSON line, then the report line naming the medium and what decided it, then one\n  line per notice. Print the report line and each notice in the handoff as they stand. Leave every\n  settings file to the resolver. A usage error (exit 2) means the argument named no medium: say so\n  in one line and run it again without `--argument`. When the JSON's `page` is `false`, the medium\n  shows no page: build the TUI. Any other result, a `null` medium, or a resolver that fails (say so in one line) overrides nothing:\n  the medium says where a view goes, not which shell an audience needs, so the audience routing\n  above still decides, and when it picks the HTML demo the page stays a local file, since this\n  skill publishes nothing. Name the source of the shell choice in the handoff: the request, the\n  report line, or \"shipped default\".\n\n## HTML demo shell\n\nWhen the audience routing selects it, the shell is one self-contained `file:\u002F\u002F` HTML page. This\nshell takes the place of step 3 below; every other step holds (in step 4, the run command is the\npage's `file:\u002F\u002F` path). The step 2 module goes into the page unchanged as its own inline\n`\u003Cscript>` block, and step 2's one-way dependency rule applies to the page exactly as it does to\na terminal shell.\n\nThe person driving the page does not read code, so the page speaks the library's language: buttons\nsay \"Renew loan\", fields say \"Days overdue\" with a value beside them, and nothing shows `RENEW`,\n`state.loans[0].due` or a JSON dump. The page has these regions, top to bottom:\n\n| Region | What the driver does there (loans case) |\n|---|---|\n| Header | Reads the title and the step 1 question in one sentence |\n| State panel and free-play buttons | Presses Borrow, Renew, Return, Reserve or Next day in any order, at any time, and watches the copy's status, due date, reservation holder and fine change after each press |\n| Guided walkthroughs | Runs scripted scenarios. Each opens on the same fresh library, says in a sentence what to watch, and lists its presses in order. Include one the rules must refuse (borrowing a copy someone else reserved), one awkward case (renewing on the due date) and one ordinary run (borrow, then return on time) |\n| Validation answer set | The questions this demo exists to answer, each as a forced choice with a small authored option set, every option naming its cost in plain language (what picking it gives up), plus a free-text escape hatch for the answer the options missed. The driver's picks are the demo's real output; pair the set with a copy-out control that lifts the filled answers back out as text to paste into the session |\n| Fake-data disclosure footer | One visible line stating the page is synthetic end to end, that nothing on it reads from or writes to the real app, and, when decided, where the real wiring lives (or will live) and behind which flag; when integration is not yet decided, or no flag is planned, the footer says so explicitly rather than inventing production details. The driver is not reading code; the footer is what keeps a convincing mock from being mistaken for the wired feature |\n\nConstraints (the same set as explore-directions' HTML mockup substrate):\n\n- **Synthetic data only.** A throwaway prototype binds synthetic data, never real or captured\n  values.\n- **No remote fetch by construction.** Vendor everything inline so the page opens straight from\n  `file:\u002F\u002F`. No external scripts, fonts, or data fetches. Enforce this rather than trusting it:\n  emit a restrictive CSP meta tag in the page `\u003Chead>` so the browser blocks any remote resource:\n  `\u003Cmeta http-equiv=\"Content-Security-Policy\" content=\"default-src 'none'; style-src 'unsafe-inline'; script-src 'unsafe-inline'; img-src data:; form-action 'none'; base-uri 'none'\">`.\n  Inline `\u003Cstyle>` and inline `\u003Cscript>` stay allowed (the logic module and the button handlers\n  need inline script); only remote origins, CDNs, web fonts, `fetch`\u002FXHR, are forbidden.\n- **Ephemeral placement.** Generate the page via the platform's temp primitive, never a tracked\n  path and never inside the repo. On Unix\u002FLinux\u002FGit Bash, create a private run directory and\n  write the page inside it, echoing the directory in the same call:\n  `d=$(mktemp -d \"${TMPDIR:-\u002Ftmp}\u002Fpressure-test-XXXXXX\"); echo \"$d\"`, then write to\n  `\u003Cechoed dir>\u002Fpressure-test.html`. Echo it: whether a shell variable carries to the next Bash\n  call is [Tools reference § What persists between commands](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Ftools-reference#what-persists-between-commands).\n  Keep the temp root in the positional template with the `XXXXXX` trailing, and give the\n  page a fixed name inside the generated directory, the mktemp dialect traps behind those two\n  rules (GNU vs BSD `-p`\u002F`-t` divergence, trailing-X-only substitution on BSD\u002FmacOS) are unpacked\n  in [`explore-directions`](..\u002Fexplore-directions\u002FSKILL.md)'s HTML mockup substrate section; the\n  same rules apply verbatim here. On Windows, a user-scoped temp under `%LOCALAPPDATA%\\Temp`. One\n  file per run. The path is handed to the user to open from `file:\u002F\u002F`, so do not delete it. It\n  must still be readable when they open it.\n- **Markdown captures the answer.** Copy what the demo taught into your durable answer (per the\n  shared discipline), then discard the page like any other shell, the validated logic module is\n  the only artifact that outlives the prototype (lifted into production per step 5).\n\n## Observe: the agent runs the fork\n\nWith `observe`, the agent drives instead of a person. Use it for a fork: two or more variants of\nthe same logic, where running each one on the same inputs settles which to keep. In the loans\ncase: the reservation check sits inside `renew()` in one variant and in a guard before it in the\nother, and the question is whether both refuse a renewal of a reserved copy.\n\n1. **Write the question down**, as step 1 below, naming each variant and the inputs that tell\n   them apart.\n2. **Build and run each variant.** Write each one as its own logic module (step 2's rules hold),\n   and drive all of them from one disposable harness script in place of the step 3 shell. The\n   harness feeds every variant the same inputs in the same order. It starts with one command and\n   prints every variant's state after each event.\n3. **Record, per variant:**\n   - **Behavior**: what it accepted and refused, and the state it ended in.\n   - **Output**: what it printed or returned for each input, copied from the run.\n   - **Timing**: the wall-clock time of that variant's own calls, measured separately for each\n     variant and labeled `timing (unqualified)`. It is one run on this machine, with no warm-up,\n     repeats or load control, so it ranks nothing on its own. Qualified timing is\n     `\u002Fperformance:snapshot`'s job.\n4. **Recommend.** Give a recommendation that names the variant to keep and the observed evidence\n   behind it: the input, and what each variant did with it. When the runs do not tell the\n   variants apart, say so and recommend nothing.\n5. **Capture and delete**, as step 5 below: write the per-variant record and the recommendation\n   into the durable answer per the shared discipline, with the variants that lost and why. Delete\n   the harness and the losing modules once the run alone settled the fork or the person accepted\n   the recommendation. While a call is still the person's, or no variant won, leave the\n   placeholder note the shared discipline names and keep the variants.\n\n**Product and preference calls stay with the person.** When the variants differ in what users\nshould get, what reads better or which trade-off the team accepts, record the evidence and ask;\nthe recommendation covers only what the run settled. When the fork is itself a performance target\n(the question is which variant meets a speed or resource goal), hand off to `\u002Fperformance:goal`\n(if the `performance` plugin is installed; otherwise say once that the `performance` plugin would qualify the timing, record it as unqualified, and ask)\ninstead of recommending from unqualified timing.\n\nThe model auto-invoke gate in the shared discipline holds for `observe` too: when nobody asked\nfor a prototype, STOP and confirm scope before writing any variant.\n\n## Process\n\n### 1. Write the question down\n\nFor the loans case the paragraph reads: \"State model: one copy's loan record. Question: can the\ncurrent borrower renew a copy that someone else has reserved, and if so, what happens to the\nreservation?\" Write a paragraph like that before any code, as the opening comment of the module\nfile (for the HTML demo shell, also in the page header). Without it, the build drifts toward\nwhatever question is easiest to answer.\n\n### 2. Build the logic module\n\nWrite it in the host project's language with its existing tooling; a prototype never brings in a\nnew runtime.\n\nDecide what belongs on each side of the split before writing either side:\n\n| | Module | Shell (TUI or HTML page) |\n|---|---|---|\n| After the answer is recorded | Committed to production unchanged | Deleted |\n| Loans contents | The loan record, the borrow\u002Frenew\u002Freturn\u002Freserve rules, the fine | Key or click handling, drawing the state, the sample patrons |\n| Allowed inside | Plain values in, plain values out | Terminal codes, DOM access, printing, reading input |\n| Imports | Nothing from the shell | The module (the one-way dependency rule) |\n\nBefore the shell exists, search the module for terminal codes, DOM access, I\u002FO and any console\noutput that decides a branch, and read its import list. A hit on either means the module cannot\nbe committed unchanged.\n\nThen pick the module's form by asking who holds the loan state between two calls:\n\n| Who holds it | Form | Loans example |\n|---|---|---|\n| Nobody; each call computes from its arguments | Separate pure functions over plain values | `fineFor(daysLate)` |\n| The caller, who passes it in each time | One function from the current record and an event to the next record. When the doubt is which events a status refuses, give it an explicit table of statuses and the events each accepts, which makes it a state machine | `next(loan, \"renew\")`; `overdue` accepts `return`, refuses `renew` |\n| The module itself | An object with a few methods, used only when the caller cannot reasonably carry the state | a `Ledger` with `borrow()` and `history()` |\n\n### 3. Build the TUI shell\n\n(Terminal default. When the audience routing selected the HTML demo shell, that section replaces\nthis step.)\n\nRedraw the whole screen after every action: clear it and print the full frame again, so the user\nwatches one view change in place instead of a log growing down the terminal. The frame fits on one\nscreen and has two parts:\n\n1. **State**, one field per line, with field names in bold and secondary details (timestamps, ids,\n   computed values) dimmed.\n2. **Keys**, listed at the bottom: `[b] borrow  [w] renew  [r] return  [d] next day  [q] quit`.\n\nThe loop: create the state as one in-memory value and draw the first frame; read one key (or one\nline); pass it to a handler that updates the state through the logic module; draw the full frame\nagain, replacing the old one; repeat until quit.\n\nMake it start with one command. Add an entry to the project's existing task runner, so the user\ntypes the equivalent of `pnpm run loans-proto` or `dotnet run --project \u003Cpath>` and never has to\nremember a file path. With no task runner, write the command at the top of a prototype README.\n\n### 4. Hand it over\n\nBefore the handover, run the shared discipline's\n[clean-state proof](..\u002F..\u002Fcontext\u002Fdiscipline.md#clean-state-proof-and-check-list): start the\nprototype from a clean state, drive it yourself through an ordered check list, and leave it clean.\nFor the loans case the list opens: \"1. Start with `pnpm run loans-proto`. Expect: one copy, on\nthe shelf, no loans. 2. Press `b` to borrow. Expect: on loan, due in 14 days.\" For the HTML demo\nshell, the guided walkthroughs supply the list's steps, in the order the person should run them.\n\nGive the user the run command (for the HTML demo shell, the page's `file:\u002F\u002F` path; open the page\nfor them or pass them the file), the check list and what your own run showed, then ask for the\nverdict once they have worked through the list.\n\nSort each remark the user makes while driving into one of two piles:\n\n- **A finding about the rules.** Write down the presses that led to it, in order, and the state\n  the user expected instead. For the loans case: borrow, reserve as a second patron, renew; the\n  renewal went through and the user expected a refusal. These lists feed step 5.\n- **A state the prototype cannot reach yet**, such as a reservation that lapses unclaimed. Add the\n  event to the module, give it a key or button in the shell, and hand the prototype back.\n\n### 5. Capture the answer\n\nWrite down what the prototype showed, per the shared discipline. For the HTML demo shell, carry\nthe filled validation answer set into the durable answer verbatim: the chosen option per question,\nwith the cost the driver accepted, is the record of what was actually decided. Then run the\nshared discipline's [evidence step](..\u002F..\u002Fcontext\u002Fdiscipline.md#evidence-step) over the prototype\nfiles, which writes either a pushed branch and commit SHA or the local path and\n`not pushed: \u003Creason>` into the note. Then move the validated module into production and delete\nthe shell, terminal app or page alike; the module is often worth keeping, the shell never is.\n\n## Next\n\n- The model holds and it settles a type, contract, or boundary: `\u002Fplanning:design`, to record it.\n- The model holds and no design question is open: `\u002Fplanning:plan`, which schedules the logic module's lift.\n- The prototype invalidates the model: `\u002Fplanning:design`.\n\n## Anti-patterns\n\n| Mistake | Why it fails | Instead |\n|---|---|---|\n| Shell code inside the module | A `renew()` that prints to the terminal or reads a form field runs only inside that one shell, so it cannot be copied into production | Let `renew()` take a loan and return a loan; the shell, TUI or page, does all printing and reading around it |\n| Connecting the real database | Every click becomes a real write to the loans table, and storage was not the thing under test | Hold the loans in a plain in-process map that disappears on exit, unless persistence is the question itself |\n| Writing a test suite for the prototype | The renewal rules are meant to change after each answer the driver gives; once it needs a test suite it has stopped being a prototype, and tests would freeze rules still being decided, and the effort belongs to the module that survives | Write tests for the module once it is lifted into production |\n| Building for cases nobody asked about | Interlibrary loans or e-books added \"for later\" blur the answer to the one question asked | Answer the step 1 question and stop |\n| A build step, bundler, framework or server behind the HTML demo shell | The librarian who drives the demo gets a file by email and has no toolchain; a page that must be built or served never opens for them | One HTML file with every script and style inlined |\n| Shipping the shell | The loan screen hard-codes sample patrons and skips every failure case, so the library would run on demo scaffolding | Ship the module; delete the shell |\n","**Arguments.** `[observe] [--medium \u003Cvalue>] [scope]`. e.g., \u002Fprototype:pressure-test scheduling state machine, or\n\u002Fprototype:pressure-test observe reservation check in renew or in a guard. A leading `observe`\nselects [Observe](#observe-the-agent-runs-the-fork). `--medium` picks the shell\n([Two shells](#two-shells-tui-default)) and is not part of the scope.\n\n## Repository context. Gather first\n\nCollect these with **individual** Bash calls, one command per call, never combined into a single\ninvocation:\n\n- Current branch, `git branch --show-current`\n- Working tree status (empty = clean), `git status --porcelain | head -10`\n\nThe pipe is the bound and belongs in the command: a read-time cap (\"read only the first 10 entries\")\ncomes after the command has already returned its output inline. What a result returns inline, and\nwhen it arrives as a saved file instead, is [Tools reference § Output limits](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Ftools-reference#output-limits).\n\nTreat a failure (not a repository, git unavailable) as an unknown value and carry on. Keep these as\nseparate body Bash calls rather than pre-compute lines ([gather-block convention](https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fdocs\u002Fconventions\u002Fgather-block\u002FREADME.md#the-pre-compute-block-runs-as-one-shell-invocation),\n\"The pre-compute block runs as one shell invocation\").\n\n## Pre-computed context\n\nProject ecosystems: !`${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fdetect-ecosystems.sh 2>\u002Fdev\u002Fnull || echo \"none detected\"`\n\n## Variables\n\nArguments: `$ARGUMENTS`\n\n## Purpose\n\nThis skill checks a set of rules by running them. It puts the logic in question into a small pure\nmodule, wraps that module in a disposable shell a person drives one action at a time, and shows\nthe whole state after every action. The shell is a terminal app by default, or one HTML file for\na driver who does not use a terminal. With `observe`, the agent runs the variants of a fork itself\nand recommends one.\n\nThe examples in this file follow one case: a library's loan rules. A copy can be on the shelf, on\nloan, overdue or reserved, and the events are borrow, renew, return, reserve and a day passing. A\nrule such as \"a loan can be renewed twice\" fits on one line and still says nothing about the\npatron waiting on a reservation for that copy; the gap appears when someone renews such a copy and\nreads the resulting state.\n\nRead [`${CLAUDE_PLUGIN_ROOT}\u002Fcontext\u002Fdiscipline.md`](..\u002F..\u002Fcontext\u002Fdiscipline.md) first. It holds\nthe rules every prototype follows, the auto-invoke gate, and where the answer gets written down.\nThis file adds only what is specific to the logic facet.\n\nA question about how a screen should look (\"what should this look like\") is a visual\u002Fappearance\nquestion, not a logic\u002Fstate question, and belongs to the other facet: invoke\n`\u002Fprototype:explore-directions` via the Skill tool instead.\n\n## Does the question need a running model?\n\nUse this skill when acting on a running model would settle the question sooner than reading code or\narguing about it. It raises fidelity (how concrete the artifact is) for a question discussion\ncannot settle; the cheapest artifact that answers the question wins. In the loans case:\n\n| What is in doubt | Loans example | Use this skill? |\n|---|---|---|\n| How the rules treat events in an awkward order, including the ones they should refuse | A reserved copy comes back late and its borrower then tries to renew it | Yes |\n| Whether the record shape can hold a case the library really has | One patron borrows two copies of the same title | Yes |\n| What the calls should take and return | Renew by loan id or by copy id | Yes; the module's interface is the draft |\n| What today's code already does | Does the current `renew()` check reservations? | No; read the code |\n\n## Two shells. TUI default\n\nTwo disposable shells can front the same portable logic module (step 2 below), the **terminal\napp** (the default) and a **self-contained HTML demo**. Both run the same process; only the shell\nswaps. Route by audience:\n\n- **The driver is a developer with a terminal** → the TUI (the default below).\n- **The driver works outside engineering** (design, product, or the business side) and will press\n  the buttons, or **no terminal fits the handoff** → the HTML demo shell (next section): one file,\n  nothing to install, opened by double-click.\n- **Explicit override wins both ways**. Ask for a TUI or an HTML demo directly and that beats\n  the default routing.\n- **Then the resolved medium.** With no such request, run the shared medium resolver. This plugin\n  has no `medium` option, so `--option` is empty; add `--argument` only when the reader passed\n  `--medium`, with the value they gave:\n\n  ```bash\n  node \"${CLAUDE_PLUGIN_ROOT}\u002Flib\u002Fview-settings.mjs\" resolve --lane prototype:pressure-test --option \"\" [--argument \u003Cthe --medium value>]\n  ```\n\n  It prints one JSON line, then the report line naming the medium and what decided it, then one\n  line per notice. Print the report line and each notice in the handoff as they stand. Leave every\n  settings file to the resolver. A usage error (exit 2) means the argument named no medium: say so\n  in one line and run it again without `--argument`. When the JSON's `page` is `false`, the medium\n  shows no page: build the TUI. Any other result, a `null` medium, or a resolver that fails (say so in one line) overrides nothing:\n  the medium says where a view goes, not which shell an audience needs, so the audience routing\n  above still decides, and when it picks the HTML demo the page stays a local file, since this\n  skill publishes nothing. Name the source of the shell choice in the handoff: the request, the\n  report line, or \"shipped default\".\n\n## HTML demo shell\n\nWhen the audience routing selects it, the shell is one self-contained `file:\u002F\u002F` HTML page. This\nshell takes the place of step 3 below; every other step holds (in step 4, the run command is the\npage's `file:\u002F\u002F` path). The step 2 module goes into the page unchanged as its own inline\n`\u003Cscript>` block, and step 2's one-way dependency rule applies to the page exactly as it does to\na terminal shell.\n\nThe person driving the page does not read code, so the page speaks the library's language: buttons\nsay \"Renew loan\", fields say \"Days overdue\" with a value beside them, and nothing shows `RENEW`,\n`state.loans[0].due` or a JSON dump. The page has these regions, top to bottom:\n\n| Region | What the driver does there (loans case) |\n|---|---|\n| Header | Reads the title and the step 1 question in one sentence |\n| State panel and free-play buttons | Presses Borrow, Renew, Return, Reserve or Next day in any order, at any time, and watches the copy's status, due date, reservation holder and fine change after each press |\n| Guided walkthroughs | Runs scripted scenarios. Each opens on the same fresh library, says in a sentence what to watch, and lists its presses in order. Include one the rules must refuse (borrowing a copy someone else reserved), one awkward case (renewing on the due date) and one ordinary run (borrow, then return on time) |\n| Validation answer set | The questions this demo exists to answer, each as a forced choice with a small authored option set, every option naming its cost in plain language (what picking it gives up), plus a free-text escape hatch for the answer the options missed. The driver's picks are the demo's real output; pair the set with a copy-out control that lifts the filled answers back out as text to paste into the session |\n| Fake-data disclosure footer | One visible line stating the page is synthetic end to end, that nothing on it reads from or writes to the real app, and, when decided, where the real wiring lives (or will live) and behind which flag; when integration is not yet decided, or no flag is planned, the footer says so explicitly rather than inventing production details. The driver is not reading code; the footer is what keeps a convincing mock from being mistaken for the wired feature |\n\nConstraints (the same set as explore-directions' HTML mockup substrate):\n\n- **Synthetic data only.** A throwaway prototype binds synthetic data, never real or captured\n  values.\n- **No remote fetch by construction.** Vendor everything inline so the page opens straight from\n  `file:\u002F\u002F`. No external scripts, fonts, or data fetches. Enforce this rather than trusting it:\n  emit a restrictive CSP meta tag in the page `\u003Chead>` so the browser blocks any remote resource:\n  `\u003Cmeta http-equiv=\"Content-Security-Policy\" content=\"default-src 'none'; style-src 'unsafe-inline'; script-src 'unsafe-inline'; img-src data:; form-action 'none'; base-uri 'none'\">`.\n  Inline `\u003Cstyle>` and inline `\u003Cscript>` stay allowed (the logic module and the button handlers\n  need inline script); only remote origins, CDNs, web fonts, `fetch`\u002FXHR, are forbidden.\n- **Ephemeral placement.** Generate the page via the platform's temp primitive, never a tracked\n  path and never inside the repo. On Unix\u002FLinux\u002FGit Bash, create a private run directory and\n  write the page inside it, echoing the directory in the same call:\n  `d=$(mktemp -d \"${TMPDIR:-\u002Ftmp}\u002Fpressure-test-XXXXXX\"); echo \"$d\"`, then write to\n  `\u003Cechoed dir>\u002Fpressure-test.html`. Echo it: whether a shell variable carries to the next Bash\n  call is [Tools reference § What persists between commands](https:\u002F\u002Fcode.claude.com\u002Fdocs\u002Fen\u002Ftools-reference#what-persists-between-commands).\n  Keep the temp root in the positional template with the `XXXXXX` trailing, and give the\n  page a fixed name inside the generated directory, the mktemp dialect traps behind those two\n  rules (GNU vs BSD `-p`\u002F`-t` divergence, trailing-X-only substitution on BSD\u002FmacOS) are unpacked\n  in [`explore-directions`](..\u002Fexplore-directions\u002FSKILL.md)'s HTML mockup substrate section; the\n  same rules apply verbatim here. On Windows, a user-scoped temp under `%LOCALAPPDATA%\\Temp`. One\n  file per run. The path is handed to the user to open from `file:\u002F\u002F`, so do not delete it. It\n  must still be readable when they open it.\n- **Markdown captures the answer.** Copy what the demo taught into your durable answer (per the\n  shared discipline), then discard the page like any other shell, the validated logic module is\n  the only artifact that outlives the prototype (lifted into production per step 5).\n\n## Observe: the agent runs the fork\n\nWith `observe`, the agent drives instead of a person. Use it for a fork: two or more variants of\nthe same logic, where running each one on the same inputs settles which to keep. In the loans\ncase: the reservation check sits inside `renew()` in one variant and in a guard before it in the\nother, and the question is whether both refuse a renewal of a reserved copy.\n\n1. **Write the question down**, as step 1 below, naming each variant and the inputs that tell\n   them apart.\n2. **Build and run each variant.** Write each one as its own logic module (step 2's rules hold),\n   and drive all of them from one disposable harness script in place of the step 3 shell. The\n   harness feeds every variant the same inputs in the same order. It starts with one command and\n   prints every variant's state after each event.\n3. **Record, per variant:**\n   - **Behavior**: what it accepted and refused, and the state it ended in.\n   - **Output**: what it printed or returned for each input, copied from the run.\n   - **Timing**: the wall-clock time of that variant's own calls, measured separately for each\n     variant and labeled `timing (unqualified)`. It is one run on this machine, with no warm-up,\n     repeats or load control, so it ranks nothing on its own. Qualified timing is\n     `\u002Fperformance:snapshot`'s job.\n4. **Recommend.** Give a recommendation that names the variant to keep and the observed evidence\n   behind it: the input, and what each variant did with it. When the runs do not tell the\n   variants apart, say so and recommend nothing.\n5. **Capture and delete**, as step 5 below: write the per-variant record and the recommendation\n   into the durable answer per the shared discipline, with the variants that lost and why. Delete\n   the harness and the losing modules once the run alone settled the fork or the person accepted\n   the recommendation. While a call is still the person's, or no variant won, leave the\n   placeholder note the shared discipline names and keep the variants.\n\n**Product and preference calls stay with the person.** When the variants differ in what users\nshould get, what reads better or which trade-off the team accepts, record the evidence and ask;\nthe recommendation covers only what the run settled. When the fork is itself a performance target\n(the question is which variant meets a speed or resource goal), hand off to `\u002Fperformance:goal`\n(if the `performance` plugin is installed; otherwise say once that the `performance` plugin would qualify the timing, record it as unqualified, and ask)\ninstead of recommending from unqualified timing.\n\nThe model auto-invoke gate in the shared discipline holds for `observe` too: when nobody asked\nfor a prototype, STOP and confirm scope before writing any variant.\n\n## Process\n\n### 1. Write the question down\n\nFor the loans case the paragraph reads: \"State model: one copy's loan record. Question: can the\ncurrent borrower renew a copy that someone else has reserved, and if so, what happens to the\nreservation?\" Write a paragraph like that before any code, as the opening comment of the module\nfile (for the HTML demo shell, also in the page header). Without it, the build drifts toward\nwhatever question is easiest to answer.\n\n### 2. Build the logic module\n\nWrite it in the host project's language with its existing tooling; a prototype never brings in a\nnew runtime.\n\nDecide what belongs on each side of the split before writing either side:\n\n| | Module | Shell (TUI or HTML page) |\n|---|---|---|\n| After the answer is recorded | Committed to production unchanged | Deleted |\n| Loans contents | The loan record, the borrow\u002Frenew\u002Freturn\u002Freserve rules, the fine | Key or click handling, drawing the state, the sample patrons |\n| Allowed inside | Plain values in, plain values out | Terminal codes, DOM access, printing, reading input |\n| Imports | Nothing from the shell | The module (the one-way dependency rule) |\n\nBefore the shell exists, search the module for terminal codes, DOM access, I\u002FO and any console\noutput that decides a branch, and read its import list. A hit on either means the module cannot\nbe committed unchanged.\n\nThen pick the module's form by asking who holds the loan state between two calls:\n\n| Who holds it | Form | Loans example |\n|---|---|---|\n| Nobody; each call computes from its arguments | Separate pure functions over plain values | `fineFor(daysLate)` |\n| The caller, who passes it in each time | One function from the current record and an event to the next record. When the doubt is which events a status refuses, give it an explicit table of statuses and the events each accepts, which makes it a state machine | `next(loan, \"renew\")`; `overdue` accepts `return`, refuses `renew` |\n| The module itself | An object with a few methods, used only when the caller cannot reasonably carry the state | a `Ledger` with `borrow()` and `history()` |\n\n### 3. Build the TUI shell\n\n(Terminal default. When the audience routing selected the HTML demo shell, that section replaces\nthis step.)\n\nRedraw the whole screen after every action: clear it and print the full frame again, so the user\nwatches one view change in place instead of a log growing down the terminal. The frame fits on one\nscreen and has two parts:\n\n1. **State**, one field per line, with field names in bold and secondary details (timestamps, ids,\n   computed values) dimmed.\n2. **Keys**, listed at the bottom: `[b] borrow  [w] renew  [r] return  [d] next day  [q] quit`.\n\nThe loop: create the state as one in-memory value and draw the first frame; read one key (or one\nline); pass it to a handler that updates the state through the logic module; draw the full frame\nagain, replacing the old one; repeat until quit.\n\nMake it start with one command. Add an entry to the project's existing task runner, so the user\ntypes the equivalent of `pnpm run loans-proto` or `dotnet run --project \u003Cpath>` and never has to\nremember a file path. With no task runner, write the command at the top of a prototype README.\n\n### 4. Hand it over\n\nBefore the handover, run the shared discipline's\n[clean-state proof](..\u002F..\u002Fcontext\u002Fdiscipline.md#clean-state-proof-and-check-list): start the\nprototype from a clean state, drive it yourself through an ordered check list, and leave it clean.\nFor the loans case the list opens: \"1. Start with `pnpm run loans-proto`. Expect: one copy, on\nthe shelf, no loans. 2. Press `b` to borrow. Expect: on loan, due in 14 days.\" For the HTML demo\nshell, the guided walkthroughs supply the list's steps, in the order the person should run them.\n\nGive the user the run command (for the HTML demo shell, the page's `file:\u002F\u002F` path; open the page\nfor them or pass them the file), the check list and what your own run showed, then ask for the\nverdict once they have worked through the list.\n\nSort each remark the user makes while driving into one of two piles:\n\n- **A finding about the rules.** Write down the presses that led to it, in order, and the state\n  the user expected instead. For the loans case: borrow, reserve as a second patron, renew; the\n  renewal went through and the user expected a refusal. These lists feed step 5.\n- **A state the prototype cannot reach yet**, such as a reservation that lapses unclaimed. Add the\n  event to the module, give it a key or button in the shell, and hand the prototype back.\n\n### 5. Capture the answer\n\nWrite down what the prototype showed, per the shared discipline. For the HTML demo shell, carry\nthe filled validation answer set into the durable answer verbatim: the chosen option per question,\nwith the cost the driver accepted, is the record of what was actually decided. Then run the\nshared discipline's [evidence step](..\u002F..\u002Fcontext\u002Fdiscipline.md#evidence-step) over the prototype\nfiles, which writes either a pushed branch and commit SHA or the local path and\n`not pushed: \u003Creason>` into the note. Then move the validated module into production and delete\nthe shell, terminal app or page alike; the module is often worth keeping, the shell never is.\n\n## Next\n\n- The model holds and it settles a type, contract, or boundary: `\u002Fplanning:design`, to record it.\n- The model holds and no design question is open: `\u002Fplanning:plan`, which schedules the logic module's lift.\n- The prototype invalidates the model: `\u002Fplanning:design`.\n\n## Anti-patterns\n\n| Mistake | Why it fails | Instead |\n|---|---|---|\n| Shell code inside the module | A `renew()` that prints to the terminal or reads a form field runs only inside that one shell, so it cannot be copied into production | Let `renew()` take a loan and return a loan; the shell, TUI or page, does all printing and reading around it |\n| Connecting the real database | Every click becomes a real write to the loans table, and storage was not the thing under test | Hold the loans in a plain in-process map that disappears on exit, unless persistence is the question itself |\n| Writing a test suite for the prototype | The renewal rules are meant to change after each answer the driver gives; once it needs a test suite it has stopped being a prototype, and tests would freeze rules still being decided, and the effort belongs to the module that survives | Write tests for the module once it is lifted into production |\n| Building for cases nobody asked about | Interlibrary loans or e-books added \"for later\" blur the answer to the one question asked | Answer the step 1 question and stop |\n| A build step, bundler, framework or server behind the HTML demo shell | The librarian who drives the demo gets a file by email and has no toolchain; a page that must be built or served never opens for them | One HTML file with every script and style inlined |\n| Shipping the shell | The loan screen hard-codes sample patrons and skips every failure case, so the library would run on demo scaffolding | Ship the module; delete the shell |\n",{"shell":24,"metadata":25,"description":7,"allowed-tools":28,"argument-hint":34,"user-invocable":35,"disable-model-invocation":20},"bash",{"summary":26,"workflow-stage":27},"Throwaway terminal app or shareable HTML demo pressure-testing logic or a data model","plan",[29,30,31,32,33],"Bash(git branch:*)","Bash(git status:*)","Bash(head:*)","Bash(echo:*)","Bash(${CLAUDE_SKILL_DIR}\u002Fscripts\u002Fdetect-ecosystems.sh:*)","[observe] [--medium \u003Cvalue>] [scope]",true,"main","5aff8ba54896bc54fd0eb46e4a954099449cf67d","plugins\u002Fprototype\u002Fskills\u002Fpressure-test",7,"https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins","https:\u002F\u002Fgithub.com\u002Fmelodic-software","https:\u002F\u002Fmelodicsoftware.com","Independent software studio building developer tools, automation, and application services, with roots in music.","2026-11-15 05:15:06",{"source":8,"skillName":5,"commands":46,"prompt":56,"zipAvailable":35},[47,50,53],{"tool":48,"command":49},"npx","npx skills add melodic-software\u002Fclaude-code-plugins --skill pressure-test",{"tool":51,"command":52},"bunx","bunx skills add melodic-software\u002Fclaude-code-plugins --skill pressure-test",{"tool":54,"command":55},"pnpm","pnpm dlx skills add melodic-software\u002Fclaude-code-plugins --skill pressure-test","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fprototype\u002Fskills\u002Fpressure-test\u002FSKILL.md",[58,64,70],{"path":59,"resourceType":60,"resourceTypeDesc":61,"sizeBytes":62,"sourceHtmlUrl":63},"evals\u002Fevals.json","REFERENCE","参考文档",7034,"https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fprototype\u002Fskills\u002Fpressure-test\u002Fevals\u002Fevals.json",{"path":65,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":68,"sourceHtmlUrl":69},"scripts\u002Fdetect-ecosystems.sh","SCRIPT","脚本",894,"https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fprototype\u002Fskills\u002Fpressure-test\u002Fscripts\u002Fdetect-ecosystems.sh",{"path":71,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":72,"sourceHtmlUrl":73},"scripts\u002Fdetect-ecosystems.test.sh",9600,"https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fprototype\u002Fskills\u002Fpressure-test\u002Fscripts\u002Fdetect-ecosystems.test.sh",[75,82,89,96,101,108],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M7DYYDG31B9YX7N9MB9QW2GW","track","Backlog reads through the bound tracker: search open and closed items, view one item with its comments and state history. Use when another skill searches or reads tracker items.","https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fsession-flow\u002Fevals\u002Frecall-still-reports-reopened-bug\u002Fwork-items-stub\u002Fskills\u002Ftrack\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7DYXVBAVG3NV30PA7GKW9Q6","reviewer-media","Reviewer media for one pull request: decides whether it needs a narrated walkthrough, builds the storyboard from \u002Freview:explain-change's digest, has \u002Fexplainer-video:produce render it and hands the manifest to \u002Fsource-control:pull-request media. Use when asked for 'reviewer media', 'a walkthrough video for this PR', 'a produced video of this change', or when pull-request ready or monitor hands a PR over.","https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Freview\u002Fskills\u002Freviewer-media\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M7DYRZ5YD44AMYH26YR25GZ8","route","Model and effort per agent role (orchestrator, worker, verifier, retrieval) for a multi-agent run, resolved through the bundled defaults and the user, team and personal override config layers into fenced JSON with single-agent and fan-out variants and the layer behind each value. Use when asked 'which model for the subagents', 'route the roles' or 'model routing', or before a skill passes a role's model on a spawn.","https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fdiscovery\u002Fevals\u002Fex-model-pin-without-override\u002Fmulti-agent-stub\u002Fskills\u002Froute\u002FSKILL.md",[],[],{"skillNo":97,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M7DYRTVT4FWTGDJY0HCCFJMZ","https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fdiscovery\u002Fevals\u002Fex-model-override-from-route\u002Fmulti-agent-stub\u002Fskills\u002Froute\u002FSKILL.md",[],[],{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":19},"01M7DYNZC8PNW3T27V2ADKECKJ","principles","Module-design vocabulary for architecture findings, and the checks built on it. Use when: 'what is a deep module', 'what is a seam', 'deep vs shallow module', 'what is the deletion test', 'leverage and locality', 'module design vocabulary', 'which word do we use for X in architecture findings'. Scanning a codebase for friction is \u002Farchitecture:improve.","https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Farchitecture\u002Fskills\u002Fprinciples\u002FSKILL.md",[],[],{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":112,"categories":113,"keywords":114,"publishedAt":19},"01M7DYNMCZNEWBFHV9KTSS6H60","write","Structured five-field bug report (title, steps to reproduce, expected vs actual, justified severity, suggested fix location) from an informal description, read-only. Use when the user names a defect they observed, or asks for one written up ('report a bug', 'file a bug', 'write this up as a bug').","https:\u002F\u002Fgithub.com\u002Fmelodic-software\u002Fclaude-code-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Farchitecture\u002Fevals\u002Fdeepening-defect-goes-to-bugs-write\u002Fbugs-stub\u002Fskills\u002Fwrite\u002FSKILL.md",[],[]]