|
1 | 1 | --- |
2 | 2 | description: "Post-use behavioral audit of a Claude Code plugin component, a skill, agent, hook, command, or config, after using or setting it up, ending in a work item emitted to the plugin's maintainers. Covers errors, improvements, and quality of life for each audited component. Use when vetting, reviewing, stress-testing, or hardening a plugin component, when the ask is 'audit this plugin/skill/hook', 'review this plugin component', 'vet this plugin', 'is this plugin (or hook) well-designed', 'find bugs or gaps in this plugin', right after invoking a plugin skill/command and wanting to check whether it behaves correctly and is well-architected, after setting up a plugin and wanting to review it, or when producing a handoff/work item for plugin maintainers. Not for: static skill QA in isolation (skill-quality:check), general code review (review), or MCP-server audits (mcp-tools:audit, when installed)." |
3 | | -argument-hint: "[<plugin>[:<component>]...|session|arm]" |
| 3 | +argument-hint: "[<plugin>[:<component>]...|session]" |
4 | 4 | user-invocable: true |
5 | 5 | disable-model-invocation: false |
6 | 6 | metadata: |
7 | 7 | workflow-stage: review |
8 | 8 | summary: Behavioral audit of a plugin component ending in a maintainer work item |
9 | 9 | --- |
10 | 10 |
|
11 | | -**Arguments.** `[<plugin>[:<component>]...|session|arm]`. One or more plugins, or a phrase naming several (e.g. source-control:commit, or guardrails). `session` and `arm` are whole arguments, never combined with a target; see [Session mode and arm](#session-mode-and-arm-operator-invoked-only). |
| 11 | +**Arguments.** `[<plugin>[:<component>]...|session]`. One or more plugins, or a phrase naming several (e.g. source-control:commit, or guardrails). `session` is a whole argument, never combined with a target; see [Session mode](#session-mode-operator-invoked-only). |
12 | 12 |
|
13 | 13 | # Plugin audit |
14 | 14 |
|
@@ -160,15 +160,12 @@ sanitizes to a slug matching no directory the run ever created, so a post-compac |
160 | 160 | re-derives the slug from the argument concludes the findings are missing from a run that wrote |
161 | 161 | several packets. |
162 | 162 |
|
163 | | -## Session mode and arm (operator-invoked only) |
| 163 | +## Session mode (operator-invoked only) |
164 | 164 |
|
165 | | -Two more entries to this same audit, not new skills. No hook starts either and the model never |
166 | | -selects one; a model that thinks a session earns the pass offers it in one line and waits. Read |
167 | | -[`reference/session-mode.md`](reference/session-mode.md) before running either. |
| 165 | +One more entry to this same audit, not a new skill. No hook starts it and the model never |
| 166 | +selects it; a model that thinks a session earns the pass offers it in one line and waits. Read |
| 167 | +[`reference/session-mode.md`](reference/session-mode.md) before running it. |
168 | 168 |
|
169 | | -- **`arm`**, at session start: invoke `/session-flow:running-retro arm` (if enabled) when session-flow is |
170 | | - enabled (absent: say the observer cannot be armed here and stop), then record the armed state |
171 | | - in this plugin's data directory. Nothing is audited. |
172 | 169 | - **`session`**, at session end: read `plugin_usage` from the session's running-retro ledger, |
173 | 170 | session-flow's documented artifact (no ledger or no key: tell the operator to run |
174 | 171 | `/session-flow:running-retro` (if enabled) and re-run, never a second parser), show the discovered plugin and |
@@ -459,7 +456,7 @@ the gate does not cover, because it produces no external effect; there is still |
459 | 456 |
|
460 | 457 | ## What this composes |
461 | 458 |
|
462 | | -This audit calls, and replaces none of: `/session-flow:running-retro` (if enabled) (`arm`, and the ledger |
| 459 | +This audit calls, and replaces none of: `/session-flow:running-retro` (if enabled) (the ledger |
463 | 460 | `session` reads), `/discovery:research` (if enabled) (the research gate), `skill-quality:check`, |
464 | 461 | `review:fanout` / `review:quality-gate`, and the role-resolved seams of step 5. Each is used |
465 | 462 | presence-gated with the fallback stated where it is invoked. Every one keeps its own owner and |
@@ -490,7 +487,7 @@ record in [evidence-packet.md](reference/evidence-packet.md#layout-and-files). |
490 | 487 | | `reference/evidence-packet.md` | Before step 1 writes the packet, and before any step reads it. | |
491 | 488 | | `reference/categories.md` | Before step 2 writes findings, and before step 3 grades the ledger. | |
492 | 489 | | `reference/recurring-concerns.md` | Every audit, walked before finalizing findings: the design-failure checklist (silent bypass surfaces, enforcement scope/tiers including a claimed property the producer can break, SSOT/drift, coupling, cross-platform, escape hatches, observability). | |
493 | | -| `reference/session-mode.md` | Running `session` or `arm`, applying the evidence bar or research gate, or resolving step 5's role seams. | |
| 490 | +| `reference/session-mode.md` | Running `session`, applying the evidence bar or research gate, or resolving step 5's role seams. | |
494 | 491 | | `reference/component-types/hook.md` | Auditing a hook (PreToolUse/PostToolUse/lifecycle). | |
495 | 492 | | `reference/component-types/skill-component.md` | Auditing a skill (frontmatter, disclosure, triggering). | |
496 | 493 | | `reference/component-types/agent.md` | Auditing an agent/subagent definition. | |
|
0 commit comments