From morkit
Archives completed morkit changes by moving them to an archive subfolder and updating metadata. Validates task completion before archiving.
How this skill is triggered — by the user, by Claude, or both
Slash command
/morkit:archiveThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Archive a completed change by moving it from `${MORKIT_ROOT:-morkit/output/spec}/<name>/` to `${MORKIT_ROOT:-morkit/output/spec}/archive/<name>/` and updating `.meta.json.archived` + `archived_at`.
Archive a completed change by moving it from ${MORKIT_ROOT:-morkit/output/spec}/<name>/ to ${MORKIT_ROOT:-morkit/output/spec}/archive/<name>/ and updating .meta.json.archived + archived_at.
Input: Optionally specify a change name. If omitted, list active changes and prompt.
Steps
Select the change to archive
List active changes (excluding archive/):
bash "${MORKIT_PLUGIN_ROOT:-${CLAUDE_PLUGIN_ROOT}}/scripts/list-changes.sh" --json
If no name was provided, use AskUserQuestion tool to let the user pick.
Show only changes whose tasks.md is fully ticked (no remaining - [ ]) by default; surface partial ones with a warning.
Do NOT auto-select.
Sanity check completion
pending=$(grep -cE '^[[:space:]]*-[[:space:]]+\[[[:space:]]\]' "$CHANGE_DIR/tasks.md" || echo 0)
If $pending > 0, ask via AskUserQuestion whether to archive anyway.Move to archive
ROOT="${MORKIT_ROOT:-morkit/output/spec}"
mkdir -p "$ROOT/archive"
mv "$ROOT/<name>" "$ROOT/archive/<name>"
Update .meta.json
META="$ROOT/archive/<name>/.meta.json"
tmp="$(mktemp)"
jq --arg ts "$(date -u +'%Y-%m-%dT%H:%M:%SZ')" \
'.archived = true | .archived_at = $ts' \
"$META" > "$tmp" && mv "$tmp" "$META"
Report
✓ Archived <name>
From: <root>/<name>/
To: <root>/archive/<name>/
Archived at: <ts>
Guardrails
mv only.archive/<name> exists, ask.MORKIT_ROOT env.Guides creation, editing, and verification of skills for AI coding agents using test-driven development with subagent scenarios. Use when authoring or debugging skills.
npx claudepluginhub mor-duongmh/morkit-plugin --plugin morkit