context
Analyze and optimize Claude Code's context configuration (analyze, optimize, or reset).
Archive multiple completed changes at once
> /plugin marketplace add komluk/scaffolding > /plugin install scaffolding@komluk-scaffolding
How it fires
How this command gets triggered: by you, by Claude, or both.
/bulk-archiveContext preview
What this command does when you run it.
Archive multiple completed changes at once
name: "Specs: Bulk Archive" description: Archive multiple completed changes at once category: Workflow tags: [workflow, archive, experimental, bulk]
Archive multiple completed changes in a single operation.
This skill allows you to batch-archive conversations, handling conflicts intelligently by checking the codebase to determine what's actually implemented.
**Input**: None required (prompts for selection)
**UUID Enforcement**: All conversation_ids MUST be UUIDs (format: `xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx`). When listing conversations, only include directories with valid UUID names. Non-UUID directory names are invalid and should be flagged as misplaced.
**Steps**
1. **Get active conversations with specs**
List conversations that have specs directories under `.scaffolding/conversations/*/specs/`. Filter to only those where:
If non-UUID directories are found, warn: "Found N conversation directories with non-UUID names (these are invalid and should be cleaned up)."
If no active conversations exist, inform user and stop.
2. **Prompt for conversation selection**
Use **AskUserQuestion tool** with multi-select to let user choose conversations:
**IMPORTANT**: Do NOT auto-select. Always let the user choose.
3. **Batch validation - gather status for all selected conversations**
For each selected conversation, collect:
a. **Artifact status** - Check which of proposal.md, design.md, tasks.md exist
b. **Task completion** - Read `tasks.md`
4. **Show consolidated status table**
Display a table summarizing all conversations:
| Conversation | Artifacts | Tasks | Status | |---------------------|-----------|-------|--------| | abc-123 | 3/3 | 5/5 | Ready | | def-456 | 3/3 | 3/3 | Ready | | ghi-789 | 2/3 | 2/5 | Warn |
For incomplete conversations, show warnings:
Warnings: - ghi-789: 1 missing artifact, 3 incomplete tasks
5. **Confirm batch operation**
Use **AskUserQuestion tool** with a single confirmation:
If there are incomplete conversations, make clear they'll be archived with warnings.
6. **Execute archive for each confirmed conversation**
For each conversation:
a. **Update context.json** to set `openspec.status` to `"archived"`
b. **Track outcome**:
7. **Display summary**
Show final results:
## Bulk Archive Complete Archived 3 conversations: - abc-123: status set to "archived" - def-456: status set to "archived" - ghi-789: status set to "archived"
If any skipped:
Skipped 1 conversation: - ghi-789 (user chose not to archive incomplete)
**Output When No Conversations**
## No Conversations to Archive No active conversations with specs found. Use `/specs:new` to create a new change.
**Guardrails**
Spec-driven multi-agent orchestration for Claude Code — pure markdown, zero backend, runs on the stock runtime. 13 agents, 36 skills, 19 commands, 15 hooks, per-phase model tiers, opt-in lifecycle hooks, optional cross-device semantic memory.
Repo: komluk/scaffolding
Analyze and optimize Claude Code's context configuration (analyze, optimize, or reset).
Scaffold a new scaffolding-compatible skill: an interactive flow that creates `skills/<name>/SKILL.md` from the canonical template, composes a `TRIGGER`/`SKIP`…
Health-check the scaffolding install and report install problems plus exact fixes (diagnose-only, never mutates).
Initialize OpenSpec in a project directory with the scaffolding-workflow schema.
Scaffold opt-in path-scoped nested CLAUDE.md rule files into the project to lazy-load per-area conventions while keeping routing always-loaded.
Bootstrap a new project with the scaffolding CLAUDE.md, settings.json, and `.scaffolding/` directory structure.