/aimi-engineering:references:plan:phase-3d5-resolvefrom aimi-engineering
Walks through unresolved audit findings one by one, proposing acceptance criteria and recording resolutions to a JSON file, then runs the apply-audit-patches CLI verb.
Claude never picks this command on its own
Its frontmatter has no description. Without a description, Claude Code leaves it out of the list Claude chooses from. Typing /aimi-engineering:references:plan:phase-3d5-resolve still runs it.
Loaded by
commands/plan.mdwhen itsApplies when:condition holds. Wording of everything shown to the operator followscommands/references/user-communication.md.
Reached from the Unresolved Gate's Resolve option, interactive mode only. The working-memory unresolved[] list ({storyIdx, message}, messages sanitized as the gate describes) is complete and audit-result.json is not the Failure Fallback stub.
For each unresolved[] entry, compose one proposed acceptance criterion from its sanitized message: one declarative sentence stating the observable condition the finding says is missing, with no shell syntax, no code fence and no more than 300 characters. Present the entries up to four findings per AskUserQuestion call, in list order. Each finding is one question showing [storyIdx]: [sanitized message] and the proposed criterion, with exactly three options:
Confirm — add the proposed criterion
Edit — I will type the criterion
Leave open — record the finding as open
For Edit, ask one free-text follow-up and use the answer as the criterion after sanitizing it: newlines/CRs to spaces, strip $(, remove backticks, truncate to 1000 characters. An empty answer means Leave open. A finding whose storyIdx is _audit names no staged story, so it is shown without a proposal and recorded as left open.
Build one resolutions entry per finding: {"message": <sanitized message>, "stories": [<storyIdx>], "criterion": <string, or null when left open>}.
Use the Write tool, never a heredoc, so operator text is not shell-interpolated, to write <RUN_DIR>/audit-resolutions.json:
{"resolutions": [{"message": "...", "stories": ["02"], "criterion": "..."}]}
Then run the verb once. It takes no --result:
AIMI_CLI=$(cat "${AIMI_CONFIG_DIR:-${XDG_CONFIG_HOME:-$HOME/.config}/aimi}/cli-path" 2>/dev/null || cat "${CLAUDE_CONFIG_DIR:-$HOME/.claude}/aimi-engineering-cli-path" 2>/dev/null)
: "${AIMI_CLI:?AIMI_CLI is empty — re-resolve via cat ~/.config/aimi/cli-path in this Bash call}"
$AIMI_CLI apply-audit-patches --staging-dir "$RUN_DIR" --resolve "$RUN_DIR/audit-resolutions.json"
It appends each confirmed criterion to acceptanceCriteria of every staged story the entry names and prints {resolvedStories, openFindings, duplicates, refused, oqDecisions}. A non-zero exit stops the plan here with RUN_DIR preserved.
oqDecisions[] entry to the working-memory oqDecisions[].auditOpen from openFindings alone: each element reduced to {message, stories}. Drop reason, and never read refused for it (a refused entry is already in openFindings). stories holds staged idx strings (NN or _audit), never US-NNN ids. When openFindings is empty, leave auditOpen unset.auditOpen to Phase 4 beside unresolved[], and the count of resolved decisions to Step 5.refused entry: [plan] Phase 3d.5: criterion refused — story <stories joined by comma> (<trigger>).Proceed to Phase 3e.
What the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub aimi-so/aimi-engineering-plugin --plugin aimi-engineering156 commands in this plugin
/aimi:brainstormExplore ideas through guided brainstorming with batched questions and codebase research/aimi:deepenEnrich tasks.json stories with research insights/design:aimi:design:auditaimi:design:auditTechnical quality audit for frontend interfaces — accessibility (a11y), performance, theming, responsive design, and anti-pattern detection. Dedicated home for WCAG/a11y checks. Use when you need a systematic, code-level quality report before release.Other plugins' commands for the same job