/aimi-engineering:references:execute:step-0-5-archival-checkfrom aimi-engineering
Checks for completed task files that can be archived before starting a new session, and optionally archives them with user confirmation.
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:execute:step-0-5-archival-check still runs it.
Loaded by
commands/execute.mdwhen itsApplies when:condition holds. Artifacts written under.aimi/follow the Artifact Language Rule in${CLAUDE_PLUGIN_ROOT}/commands/references/user-communication.md.
Before starting a new session, check whether any completed task files should be archived to prevent accidental re-execution of finished work.
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 list-archivable
This returns a JSON array of file paths, e.g.:
["/home/user/project/.aimi/tasks/2026-03-15-auth-feature-tasks.json"]
If the array is empty ([]): Proceed silently to Step 1.
If archivable tasks exist: Display the list and ask the user whether to archive them:
Found [N] completed task file(s) that can be archived:
- [filename1]
- [filename2]
Archive these completed tasks before starting? (yes/no)
If user confirms (yes): For each archivable file path, run:
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 archive-task [file_path]
After all files are archived, reset state files:
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 clear-state
Report:
Archived [N] task file(s). State cleared.
Proceed to Step 1.
If user declines (no): Proceed to Step 1 without archiving.
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