agentleFS
Ericcccccc777Ericcccccc777/CCC-MAGI/skills/abandon/SKILL.md

abandon

Skill1 starsChanged 5 months agoApache-2.0View on GitHub

Mark an in-progress feature as abandoned. Archives the checkpoint to `_archived/<feature>-abandoned-<timestamp>.json`, logs the decision to decision-log.md, and optionally archives related artifact files (spec / implementation / plan). Does NOT touch git or source code — that's CEO's job (git revert, branch delete, etc.).

  • Installs packages

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈4

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    After user enters reason, MAGI Archivist:

    line 60
  2. Distinctive:

    If no checkpoint matches → tells user *"No checkpoint to abandon on this branch."*

    line 109
  3. Distinctive:

    Use for scripting / programmatic cleanup

    line 118
  4. Distinctive:

    Default OFF — most users prefer to keep spec for reference / future reuse

    line 127

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/abandon

MAGI position: Operated by MAGI Archivist. Archivist's job is final-state record-keeping — when a feature dies, Archivist files the paperwork.

Constitutional basis: Stage 7 (CEO smoke test) of CLAUDE.md § Workflow empowers CEO to reject a feature outright. /abandon is the formal record of that rejection — without it, stale checkpoints accumulate and /pickup --list becomes noise.

When to use

Three legitimate scenarios:

  1. CEO rejects the feature post-spec — after Stage 1 paraphrase + edge cases, CEO realizes the feature shouldn't exist. Abandon before any code is written.
  2. Smoke test fails irrecoverably — after Stage 7, CEO decides the feature is fundamentally wrong. Abandon, do not /commit.
  3. Cleanup of dormant features — /pickup --list shows a feature you started 3 months ago and never finished. If you're not going back, abandon it to clear the slot.

Do NOT use /abandon for:

  • Temporary pauses (just close Claude — checkpoint persists)
  • "Done shipped" features (/commit handles those via --archive)
  • Renaming a feature (use /feature-draft <new-name> then /abandon <old-name>)

What it does

─── /abandon user-login ───────────────────────────────────────

📂 Found checkpoint: .harness/state/workflow-checkpoints/user-login.json
   Stage: 5 (3/8 files done)
   Started: 2026-03-15 (73 days ago)
   Last activity: 2026-04-02 (54 days ago)
   
⚠️ Abandoning will:
   ✓ Move checkpoint → .harness/state/workflow-checkpoints/_archived/
   ✓ Log "abandoned" entry to .harness/memory/decision-log.md
   
Optional (use --archive-artifacts to enable):
   ◯ Move docs/features/user-login.md → docs/features/_abandoned/
   ◯ Move docs/features/user-login-implementation.md → docs/features/_abandoned/
   ◯ Move docs/features/user-login-plan.md → docs/features/_abandoned/

This does NOT touch:
   ✗ git history (use git revert / git branch -D yourself)
   ✗ Source code that was already implemented (use git checkout or git reset)
   ✗ Database migrations (run a rollback migration yourself)

Reason for abandoning? (required for decision-log)
> 

After user enters reason, MAGI Archivist:

# 1. Archive the checkpoint
bash .harness/scripts/checkpoint-write.sh \
  --feature user-login \
  --archive

# Rename archived file to mark as abandoned (not completed)
mv .harness/state/workflow-checkpoints/_archived/user-login-*.json \
   .harness/state/workflow-checkpoints/_archived/user-login-abandoned-$(date -u +%Y%m%dT%H%M%SZ).json

# 2. Log decision
bash .harness/scripts/decision-log-append.sh \
  --feature user-login --stage abandon --by "CEO" \
  --decision "abandoned: <user's reason>" \
  --evidence "$(git rev-parse --short HEAD 2>/dev/null || echo 'no-git')"

# 3. (if --archive-artifacts) Move artifact files
if [ "$ARCHIVE_ARTIFACTS" = "true" ]; then
  mkdir -p docs/features/_abandoned
  for artifact in docs/features/user-login.md docs/features/user-login-implementation.md docs/features/user-login-plan.md; do
    [ -f "$artifact" ] && mv "$artifact" docs/features/_abandoned/
  done
fi

Final report to CEO:

✓ Feature 'user-login' abandoned.
   Checkpoint archived: .harness/state/workflow-checkpoints/_archived/user-login-abandoned-20260528T034512Z.json
   Decision logged.
   Artifact files: kept in place (use --archive-artifacts to move)

Don't forget:
   • Delete git branch:    git branch -D feature/user-login
   • Revert unfinished code:  git checkout main -- src/auth/
   • Run any rollback migrations needed

Behaviors

No-args mode

/abandon
  • Reads current git branch, derives feature slug
  • If no checkpoint matches → tells user "No checkpoint to abandon on this branch."

Force mode

/abandon user-login --force
  • Skips the confirmation prompt
  • Still requires a reason (will use "(no reason given)" if none provided in subsequent interaction)
  • Use for scripting / programmatic cleanup

Artifact archive mode

/abandon user-login --archive-artifacts
  • Moves docs/features/user-login*.md to docs/features/_abandoned/
  • Useful when the spec was misguided and shouldn't be confused with future correct specs
  • Default OFF — most users prefer to keep spec for reference / future reuse

Recovery (if you abandon by accident)

Within the same git session, an abandoned checkpoint is fully recoverable:

# Find the archived checkpoint
ls -t .harness/state/workflow-checkpoints/_archived/user-login-abandoned-*.json | head -1

# Move it back
mv .harness/state/workflow-checkpoints/_archived/user-login-abandoned-<ts>.json \
   .harness/state/workflow-checkpoints/user-login.json

The artifact files (if --archive-artifacts was used) can be moved back from docs/features/_abandoned/ the same way.

Failure modes

SymptomCauseFix
"No checkpoint found for <feature>"Never had one OR already abandonedCheck _archived/; nothing to do
"Branch doesn't match feature slug"You're on main or unrelated branchProvide --feature explicitly: /abandon user-login
"decision-log-append failed".harness/memory/ perms issue or jq missingFix perms or brew install jq

Completion criteria

  • Checkpoint file moved to _archived/ directory
  • Decision-log entry written with CEO's reason
  • Reason was captured (not silently abandoned)
  • Final report displayed showing what happened + what user still needs to do (git, migrations)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.