agentleFS
anombyte93anombyte93/atlas-session-lifecycle/skills/stop/SKILL.md

stop

Skill85 starsChanged 9 months agoMITView on GitHub

Gracefully close, pause, or verify a session: harvest promotable content, save progress, archive soul purpose, settle AtlasCoin bounty. Use when user says /stop, wrap up, done for the day, finishing up, close session, pause, verify, or end session.

  • Commits and pushes

4 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions4 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 4

    1. kennethleungty/claude-music★ 25same name
    2. shamilkayal/ultragoal★ 17same name
    3. gstredny/ClaudeCodeWorkflow★ 1same name
    4. metallurgical/ogre-runner★ 1same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository6 other files it gives its agents.

The file

Show its rules and text

We split this skill into the rules it gives an agent

29 rules. 0 are common, 13 are distinctive, and 16 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 13

    Distinctive

    This author's own choices. Worth a look.

  • 16

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    All session operations use atlas-session MCP tools directly (prefixed session_* and contract_*).

    line 11
  2. Distinctive:

    No step announcements, no narration, no internal process descriptions.

    line 25
  3. Very specific:

    Call session_read_context(project_dir) — get soul purpose, status hint, open tasks.

    line 37
  4. Very specific:

    If status_hint is no_purpose or soul purpose is empty: tell user "No active soul purpose to close." EXIT.

    line 38
  5. Very specific:

    Check bounty: if session-context/BOUNTY_ID.txt exists, call contract_get_status(project_dir).

    line 39
  6. Distinctive:

    Ask ONE question via AskUserQuestion:

    line 43
  7. Very specific:

    Read custom.md if it exists, follow instructions under "During Settlement".

    line 53
  8. Distinctive:

    If promotable content exists, assess and present to user for approval.

    line 64
  9. Distinctive:

    After approval, append promoted content to target files via Edit tool.

    line 65
  10. Very specific:

    Read session-context/CLAUDE-activeContext.md, then append a timestamped checkpoint:

    line 69
  11. Distinctive:

    Ask: "Create a save-point commit?" (Yes / No)

    line 92
  12. Very specific:

    If Yes and project is git: git add -A && git commit -m "checkpoint: [brief summary]".

    line 94
  13. Distinctive:

    Do NOT archive the soul purpose — it stays active.

    line 98
  14. Distinctive:

    Do NOT settle the bounty — it stays active.

    line 99
  15. Distinctive:

    Do NOT remove Ralph Loop indicator.

    line 100
  16. Distinctive:

    If promotable content exists, assess and present to user.

    line 112
  17. Very specific:

    If pending features exist, run their proofs.

    line 117
  18. Distinctive:

    If critical issues: present to user — "Fix first" / "Close anyway" / "Continue working".

    line 122
  19. Distinctive:

    If "Continue working": EXIT (return to active work).

    line 123
  20. Very specific:

    Create PR: gh pr create --title "..." --body "..." with review summary.

    line 133
  21. Very specific:

    Call contract_run_tests(project_dir) — execute all criteria.

    line 138
  22. Very specific:

    If tests pass: call contract_submit(project_dir).

    line 139
  23. Distinctive:

    Wait for finality result.

    line 141
  24. Very specific:

    If verified: call contract_settle(project_dir).

    line 142
  25. Distinctive:

    If failed: "Fix and re-verify" / "Close anyway (forfeit)" / "Continue working".

    line 143
  26. Very specific:

    If user chose to set a new purpose, ask for it now.

    line 147
  27. Very specific:

    Remove Ralph Loop indicator: rm -f ~/.claude/ralph-loop.local.md

    line 149
  28. Very specific:

    Call session_features_read(project_dir) — show feature status.

    line 159
  29. Very specific:

    If bounty exists: call contract_run_tests(project_dir) — show results.

    line 160

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “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

Session Stop Skill

Graceful session close, pause, or verification. Three intents: Pause | Finish | Verify.

All session operations use atlas-session MCP tools directly (prefixed session_* and contract_*). Use ToolSearch to discover them.

Hard Invariants

  1. User authority is absolute — AI NEVER closes without confirmation.
  2. Human-visible memory only — All state lives in files.
  3. Trust separation — for bounty verify, spawn a separate finality Task agent. Never the same agent that submits.
  4. AtlasCoin is optional — if down, skip bounty steps and continue.
  5. Idempotent — Running /stop on an already-closed session exits cleanly.
  6. Archive after verification — Soul purpose is archived AFTER bounty settlement, not before.

UX Contract

  • User sees ONE intent question, then results. Nothing else.
  • No step announcements, no narration, no internal process descriptions.

Phase 0: Sync + State Detection

First, save the current session state so context files are up to date:

  1. Invoke /sync — updates all session-context files and MEMORY.md with current progress. Silent, no output shown.

Then detect state:

  1. Call session_read_context(project_dir) — get soul purpose, status hint, open tasks.
  2. If status_hint is no_purpose or soul purpose is empty: tell user "No active soul purpose to close." EXIT.
  3. Check bounty: if session-context/BOUNTY_ID.txt exists, call contract_get_status(project_dir). Store HAS_BOUNTY.

Phase 1: Intent Question

Ask ONE question via AskUserQuestion:

Question: "Soul purpose: '[soul purpose text]'. What would you like to do?"

  • "Pause for the day" — Save state, keep purpose active.
  • "Finished — verify and close" — Full settlement + PR + archive.
  • "Just verify" — Check status, show results, return to work.
  • "Cancel" — Do nothing. EXIT.

Store the user's choice as INTENT.

Read custom.md if it exists, follow instructions under "During Settlement".


Intent A: Pause for the Day

Save progress. Soul purpose, bounty, and Ralph Loop all stay active.

Step 1: Harvest

  1. Call session_harvest(project_dir).
  2. If promotable content exists, assess and present to user for approval.
  3. After approval, append promoted content to target files via Edit tool.

Step 2: Write Checkpoint

Read session-context/CLAUDE-activeContext.md, then append a timestamped checkpoint:

## [CHECKPOINT] HH:MM DD/MM/YY
### Session Paused — Progress Saved

**Accomplished this session:**
- [AI fills in based on what was done]

**In progress:**
- [AI fills in based on current state]

**Next steps:**
- [AI fills in based on remaining work]

**Blockers/Decisions pending:**
- [AI fills in, or "None"]

Fill each section with real, specific content — not placeholders.

Step 3: Optional Save-Point Commit

Ask: "Create a save-point commit?" (Yes / No)

If Yes and project is git: git add -A && git commit -m "checkpoint: [brief summary]". If commit fails, inform user and continue.

Step 4: Done

  • Do NOT archive the soul purpose — it stays active.
  • Do NOT settle the bounty — it stays active.
  • Do NOT remove Ralph Loop indicator.
  • Tell user: "Progress saved. Soul purpose '[text]' remains active. Run /start to pick up where you left off."

Intent B: Finished — Verify and Close

Full settlement: harvest, verify, review, PR, bounty, archive.

Step 1: Harvest + Promote

  1. Call session_harvest(project_dir).
  2. If promotable content exists, assess and present to user. Append approved content.

Step 2: Feature Verification

  1. Call session_features_read(project_dir).
  2. If pending features exist, run their proofs. Update status in CLAUDE-features.md.

Step 3: Verification Gate

  1. Invoke superpowers:verification-before-completion — run doubt review on recent changes.
  2. If critical issues: present to user — "Fix first" / "Close anyway" / "Continue working".
  3. If "Continue working": EXIT (return to active work).

Step 4: Deactivate Hook

Call session_hook_deactivate(project_dir).

Step 5: PR Creation

  1. Push current branch: git push -u origin HEAD
  2. Invoke superpowers:requesting-code-review for review body.
  3. Create PR: gh pr create --title "..." --body "..." with review summary.
  4. Return PR URL to user.

Step 6: Bounty Settlement (if bounty exists)

  1. Call contract_run_tests(project_dir) — execute all criteria.
  2. If tests pass: call contract_submit(project_dir).
  3. Spawn a single finality Task agent: Task(subagent_type: "general-purpose", prompt: "You are finality-agent. Verify bounty [ID] independently. Call contract_verify(project_dir). Report pass/fail.")
  4. Wait for finality result.
  5. If verified: call contract_settle(project_dir). Tell user tokens earned.
  6. If failed: "Fix and re-verify" / "Close anyway (forfeit)" / "Continue working".

Step 7: Archive + Cleanup

  1. If user chose to set a new purpose, ask for it now. Store as NEW_PURPOSE.
  2. Call session_archive(project_dir, OLD_PURPOSE, NEW_PURPOSE).
  3. Remove Ralph Loop indicator: rm -f ~/.claude/ralph-loop.local.md
  4. Tell user: "Session closed. Soul purpose '[text]' archived." (Include token/PR info.)

Intent C: Just Verify

Check status without closing. Return to work after.

  1. Invoke superpowers:verification-before-completion — doubt review.
  2. Call session_features_read(project_dir) — show feature status.
  3. If bounty exists: call contract_run_tests(project_dir) — show results.
  4. Present all findings to user. No close, no archive.
  5. Tell user: "Verification complete. Returning to work."

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.