checkpoint
Skill0 starsChanged 5 months agoMITView on GitHub
Checkpoint your work: pause to save progress as an Issue comment, and resume it from another session. Issues can be given by GitHub number or Linear ID.
- Reads credentials
57 other projects use a version of this.
Adopted by
Most recently taken up by
- blas1n/claude-skillstheir own version, first seen Oct 4, 2026
- derive-to/derivetheir own version, first seen Oct 4, 2026
- rav4nn/skillstheir own version, first seen Oct 3, 2026
- HsuanYuLee/polaristheir own version, first seen Sep 29, 2026
- pedrohcgs/claude-code-my-workflowtheir own version, first seen Sep 27, 2026
- myICOR/myPKAtheir own version, first seen Sep 26, 2026
Used with
Projects with it also use open-gstack-browser, instinct-export and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
seek888Skillopen-gstack-browser
Launch GStack Browser — AI-controlled Chromium with the sidebar extension baked in. Opens a visible browser window where you can watch every action in real time. The sidebar shows a live activity feed and chat. Anti-bot stealth built in. Use when asked to "open gstack browser", "launch browser", "connect chrome", "open chrome", "real browser", "launch chrome", "side panel", or "control my browser". Voice triggers (speech-to-text aliases): "show me the browser".
Also in 4 projects that use this
TheKREATORSSkillinstinct-export
Export instincts from project/global scope to a file
Also in 3 projects that use this
TheKREATORSSkillinstinct-import
Import instincts from file or URL into project/global scope
Also in 3 projects that use this
diego-tobalinaSkillbuild-fix
Fix build and compilation errors systematically. Run when build fails.
Also in 5 projects that use this
seek888Skilldesign-html
Design finalization: generates production-quality Pretext-native HTML/CSS. Works with approved mockups from /design-shotgun, CEO plans from /plan-ceo-review, design review context from /plan-design-review, or from scratch with a user description. Text actually reflows, heights are computed, layouts are dynamic. 30KB overhead, zero deps. Smart API routing: picks the right Pretext patterns for each design type. Use when: "finalize this design", "turn this into HTML", "build me a page", "implement this design", or after any planning skill. Proactively suggest when user has approved a design or has a plan ready. (gstack) Voice triggers (speech-to-text aliases): "build the design", "code the mockup", "make it real".
Also in 4 projects that use this
ayudaySkillcso
Chief Security Officer mode. Performs OWASP Top 10 audit, STRIDE threat modeling, attack surface analysis, auth flow verification, secret detection, dependency CVE scanning, supply chain risk assessment, and data classification review. Use when: "security audit", "threat model", "pentest review", "OWASP", "CSO review".
Also in 4 projects that use this
- +1 more from seek888
- +1 more from TheKREATORS
Other versions57 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 57
- pedrohcgs/claude-code-my-workflow★ 1.6ksame name
- codewithmukesh/dotnet-claude-kit★ 750same name
- myICOR/myPKA★ 304same name
- sterlingcrispin/claude_slash_commands★ 200same name
- josipjelic/orchestrated-project-template★ 95same name
- svy04/ballast★ 74same name
- darkroomengineering/cc-settings★ 47same name
- agentcrew-academy/harness-starter-kit★ 39same name
- derive-to/derive★ 30same name
- phj128/autoworker★ 19same name
47 more not listed
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 repository7 other files it gives its agents.
- cc-bestpracticeSkill
- codex-secondary-reviewSkill
- devils-advocateSkill
- github-issue-implSkill
- monorepo-managerSkill
- pr-context-summarySkill
- session-retroSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
22 rules. 0 are common, 12 are distinctive, and 10 are very specific to this project.
0
Common
Most of the 53 edited versions we read keep these.
12
Distinctive
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 60
If --issue and --create are both given → error: --issue and --create cannot be given together
- Distinctive: line 67
If unauthenticated → tell the user it will fall back to markdown output at the end, and continue
- Very specific: line 97
If the session ID is NONE → write "unavailable" in the session info section and continue
- Distinctive: line 102
Run these in parallel:
- Distinctive: line 127
Run the reference you obtained through the "Resolving an issue reference (shared by pause and resume)" section to convert it into a GitHub …
- Very specific: line 131
If it does not exist → error: Issue #{N} not found.
- Distinctive: line 165
Write the title in the language of the session too.
- Very specific: line 180
When there is no worktree, use <!-- checkpoint:worktree none --> or omit the marker entirely
- Very specific: line 223
Read the pause note recorded by pause from the GitHub issue, restore the context, and continue the work.
- Very specific: line 239
No argument → infer from the branch name (the lib function.
- Distinctive: line 248
Run the reference you obtained through the "Resolving an issue reference (shared by pause and resume)" section to convert it into a GitHub …
- Very specific: line 250
Check gh auth — error if unauthenticated
- Distinctive: line 265
Search the comments in reverse (newest first) and take the first match
- Distinctive: line 266
If no comment matches, check the issue body
- Very specific: line 275
Only session, branch, and worktree are extracted mechanically
- Distinctive: line 280
If no pause note is found → read the situation from the issue body and resume from there
- Distinctive: line 284
Check whether the branch and worktree exist
- Distinctive: line 293
If the issue is already closed → warn and continue (do not re-open it)
- Very specific: line 352
Run the Linear MCP get_issue("{ISSUE-ID}", includeRelations: true), look through attachments and links for a URL of the form …
- Very specific: line 354
If there is still none → error: No GitHub issue corresponds to {ISSUE-ID}
- Distinctive: line 385
Use only git diff --stat (never dump the full code diff)
- Distinctive: line 389
Never re-open a closed issue (that is the maintainer's call)
“Common” is measured: kept by at least 6 in 10 of the 53 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.
Files
/checkpoint
An issue-based checkpoint for pausing and resuming work. Everything is recorded on GitHub issues, and an issue may be given either as a GitHub number (81) or as a Linear ID ({ISSUE-ID}).
Output language: write the body of the pause note in the language of the session (the templates in this file are the sample and are not strings to copy verbatim).
docs/rules/output-language.mdis the SSoT for the fixed label translations.The
<!-- checkpoint:* -->markers, however, must always be emitted exactly as shown, regardless of language — resume reads the branch, worktree, and session ID out of those markers. Translating or omitting them means resume cannot find the pause note and, without raising an error, quietly degrades to the "no note" fallback (guessing the resume point from the issue body).
Usage
/checkpoint pause # infer the issue, comment the progress on it
/checkpoint pause --issue 81 # give the GitHub issue number explicitly
/checkpoint pause --issue {ISSUE-ID} # give a Linear ID (records on the corresponding GitHub issue)
/checkpoint pause --create # create a new issue and record there
/checkpoint resume 81 # restore context from the pause note on issue #N
/checkpoint resume {ISSUE-ID} # restore from a Linear ID (via the corresponding GitHub issue)pause — record a work interruption
Collect the session information, git state, and progress at the moment work stops, and record them as a comment on a GitHub issue.
Arguments
| Argument | Description | Default |
--issue <ref> | The issue to record on. A GitHub number (81) or a Linear ID ({ISSUE-ID}) | Inferred from the branch name |
--create | Create a new issue and record there | false |
Giving --issue and --create together is an error.
Procedure (6 steps, run immediately without asking the user)
Step 1: Parse arguments and check auth
- Parse the arguments:
--issue <ref>: the issue to record on. A GitHub number (81) or a Linear ID ({ISSUE-ID}). Keep it as a raw string; resolving it to a GitHub issue number happens in "Resolving an issue reference" during step 4--create: flag to create a new issue- If
--issueand--createare both given → error:--issue and --create cannot be given together - Remaining text: used as an additional note
- Check
ghauth:
If unauthenticated → tell the user it will fall back to markdown output at the end, and continuegh auth status 2>&1
Step 2: Collect session information
- Generate the project key:
pwd | sed 's|/|-|g' - Get the session ID:
PROJECT_KEY=$(pwd | sed 's|/|-|g') SESSION_FILE="$HOME/.claude/projects/${PROJECT_KEY}/sessions-index.json" if [ -f "$SESSION_FILE" ]; then python3 -c " import json, sys with open(sys.argv[1]) as f: sessions = json.load(f) if sessions: latest = sorted(sessions, key=lambda s: s.get('modified',''), reverse=True)[0] print(latest['id']) else: print('NONE') " "$SESSION_FILE" 2>/dev/null || echo "NONE" else echo "NONE" fi - If the session ID is
NONE→ write "unavailable" in the session info section and continue - Build the resume command:
claude --resume {sessionId}
Step 3: Collect git state (run in parallel)
Run these in parallel:
git branch --show-current
git status --short
git log --oneline -5
git diff --stat
git worktree listStep 4: Resolve the issue reference and confirm it exists
Determine the issue reference in this order of priority:
--creategiven → create a new issue in step 6 (skip resolution)--issue <ref>given → use that reference- Neither → infer from the branch name (use the helper function; the old
grep -oE '^(feat|fix)/([0-9]+)'had a bug where it did not matchfeat/{ISSUE-ID}-..., so this is unified into the lib function):CCAS_ROOT="${CLAUDE_PLUGIN_ROOT}"; [ -n "$CCAS_ROOT" ] || CCAS_ROOT=.claude source "$CCAS_ROOT/skills/checkpoint/lib/resolve-issue-ref.sh" extract_issue_ref_from_branch "$(git branch --show-current)" # -> "{ISSUE-ID}" (Linear) / "120" (GitHub) / non-zero (could not extract) - Cannot infer → create a new issue in step 6
Run the reference you obtained through the "Resolving an issue reference (shared by pause and resume)" section to convert it into a GitHub issue number. Confirm the resolved number exists:
gh issue view {N} --json number,title,state -q '.number' 2>&1If it does not exist → error: Issue #{N} not found. Check the number, or use --create to open a new one
Step 5: Summarize the context (LLM)
From the conversation context and the git state, produce:
- Done: the completed work as a
[x]checklist - Remaining: the unfinished work as a
[ ]checklist - Decision notes: things to hand to the maintainer, records of decisions
- API key patterns (
sk-...,Bearer ...) → mask as*** - Values from
.env→ mask as*** - Passwords and secrets → mask as
*** - Absolute paths (
/Users/...) → convert to repository-relative paths
Step 6: Record on the issue
- Write the body to a temp file (use
mktempfor a unique path):TMPFILE=$(mktemp /tmp/pause-memo-XXXXXX) cat <<'PAUSE_BODY_EOF' > "$TMPFILE" {contents of the output template} PAUSE_BODY_EOF - Comment on an existing issue (when there is an issue number):
gh issue comment {N} --body-file "$TMPFILE" - Create a new issue (with
--create, or when the issue could not be inferred):
Write the title in the language of the session too. Resume finds the note by the markers in the body, not by the title, so translating the title does not affect detection.gh issue create --title "[{scope}] Work pause note: {summary}" --body-file "$TMPFILE" - Fallback (when
ghis unauthenticated):- Print the contents of the output template as markdown
- Tell the user to copy it into a GitHub issue by hand
- Delete the temp file:
rm -f "$TMPFILE" - Report: the issue URL, the session ID, and the resume command
Output template
Write the headings and labels in the language of the session (the sample below is English). The four <!-- checkpoint:* --> marker lines, by contrast, are emitted in exactly this form regardless of language — resume's machine extraction looks only at the markers (see "Language-invariant tokens" in docs/rules/output-language.md).
- The value runs to the
-->at the end of the line, so a path containing spaces needs no quoting - When there is no worktree, use
<!-- checkpoint:worktree none -->or omit the marker entirely
## Work pause note
<!-- checkpoint:pause v1 -->
<!-- checkpoint:session {sessionId} -->
<!-- checkpoint:branch {branch} -->
<!-- checkpoint:worktree {worktree path or "none"} -->
### Session info
- **Session ID**: `{sessionId}`
- **Resume command**: `claude --resume {sessionId}`
- **Branch**: `{branch}`
- **worktree**: `{worktree info or "none"}`
### Done
- [x] {completed work 1}
- [x] {completed work 2}
### Remaining
- [ ] {remaining work 1}
- [ ] {remaining work 2}
### Decision notes
{decisions and things to hand to the maintainer}
### Current state
{output of git status --short}
### Change summary
{output of git diff --stat}
### Recent commits
{output of git log --oneline -5}resume — restore context and continue
Read the pause note recorded by pause from the GitHub issue, restore the context, and continue the work.
Arguments
| Argument | Description | Default |
| (positional) | The issue to resume. A GitHub number (81) or a Linear ID ({ISSUE-ID}) | Inferred from the branch name |
--issue <ref> | The same, in explicit form | — |
Procedure (4 steps)
Step 1: Parse arguments and check auth
Get the issue reference:
- A number or
{ISSUE-ID}→ use it as the reference --issue <ref>→ use that reference- No argument → infer from the branch name (the lib function; the old
grepversion did not handlefeat/{ISSUE-ID}):CCAS_ROOT="${CLAUDE_PLUGIN_ROOT}"; [ -n "$CCAS_ROOT" ] || CCAS_ROOT=.claude source "$CCAS_ROOT/skills/checkpoint/lib/resolve-issue-ref.sh" extract_issue_ref_from_branch "$(git branch --show-current)" # -> "{ISSUE-ID}" / "120" / non-zero (could not extract) - Cannot infer → error:
Specify an issue (e.g. /checkpoint resume 81 or {ISSUE-ID})
Run the reference you obtained through the "Resolving an issue reference (shared by pause and resume)" section to convert it into a GitHub issue number before going to step 2.
- A number or
- Check
ghauth — error if unauthenticated
Step 2: Read the pause note from the issue
- Fetch the issue data:
gh issue view {N} --json body,comments,title,state - Find the most recent pause note (a language-independent check — use
ckp_has_pause_memo):CCAS_ROOT="${CLAUDE_PLUGIN_ROOT}"; [ -n "$CCAS_ROOT" ] || CCAS_ROOT=.claude source "$CCAS_ROOT/skills/checkpoint/lib/parse-pause-memo.sh" ckp_has_pause_memo "$COMMENT_BODY" # 0 = pause note / 1 = anything else- Search the comments in reverse (newest first) and take the first match
- If no comment matches, check the issue body
- The check prefers the
<!-- checkpoint:pause -->marker, falling back to the legacy Japanese heading## 作業中断メモfor backward compatibility
- Extract the machine-readable fields from the pause note (
ckp_memo_fieldfrom the same lib, which does not depend on any Japanese literal):BRANCH=$(ckp_memo_field branch "$MEMO") || BRANCH="" WORKTREE=$(ckp_memo_field worktree "$MEMO") || WORKTREE="" # rc 1 = no worktree SESSION=$(ckp_memo_field session "$MEMO") || SESSION=""- Only
session,branch, andworktreeare extracted mechanically - For older notes without markers, the lib falls back to the legacy Japanese form automatically (existing issues remain resumable)
- Done and Remaining are picked up from the Markdown checkboxes
- [x]/- [ ](syntax elements, hence language-invariant) - Prose such as the decision notes is not extracted with a regex — read the section's content and take it into context as it is (headings can be translated, so do not depend on a literal match)
- Only
- If no pause note is found → read the situation from the issue body and resume from there
Step 3: Restore the environment
- Check whether the branch and worktree exist
- Respond according to the situation:
| Situation | Response |
| Branch and worktree both exist | Point at the worktree path |
| Only the branch exists | Offer to create the worktree |
| Neither exists | Offer to create the branch and the worktree |
- If the issue is already closed → warn and continue (do not re-open it)
Step 4: Present the context and resume
## Resuming from issue #{N}
### Previous session
- **Session ID**: `{sessionId}`
- **Resume in the same session**: `claude --resume {sessionId}`
### Previous branch
- **Branch**: `{branch}`
- **worktree**: `{path or "none"}`
### Work completed previously
- [x] {completed work 1}
### Remaining (from the previous pause note)
- [ ] {remaining work 1}
### Decision notes
{the previous decision notes}
---
Resuming work with the context above.Then start from the first item of the remaining work.
Resolving an issue reference (shared by pause and resume)
The shared procedure for resolving a reference — from --issue <ref>, a positional argument, or branch inference — into a GitHub issue number.
1. Classify the reference
CCAS_ROOT="${CLAUDE_PLUGIN_ROOT}"; [ -n "$CCAS_ROOT" ] || CCAS_ROOT=.claude
source "$CCAS_ROOT/skills/checkpoint/lib/resolve-issue-ref.sh"
classify_issue_ref "$REF" # -> "github:81" / "linear:{ISSUE-ID}" / non-zero (invalid)github:<N>→ use<N>directly as the GitHub issue numberlinear:MAE-<N>→ convert to a GitHub number in step 2 below- Non-zero (invalid) → error:
Invalid issue reference (e.g. 81 or {ISSUE-ID})
Branch-name inference uses the same lib function:
extract_issue_ref_from_branch "$(git branch --show-current)"
# -> "{ISSUE-ID}" / "120" / non-zero (could not extract). Pass the value to classify_issue_ref2. Resolving a Linear ID to a GitHub issue number
A Linear ID does not appear in the GitHub issue title and cannot be located with gh search (fuzzy hits produce wrong matches). Resolve it through the Linear MCP (read it yourself, directly — this resolves a single item, and delegating a few tool calls to a subagent costs more in round trips than it saves):
- Run the Linear MCP
get_issue("{ISSUE-ID}", includeRelations: true), look throughattachmentsand links for a URL of the formgithub.com/<owner>/<repo>/issues/<N>, and take the GitHub issue number<N>from there (never extrapolate the number from a sequence — always take it fromattachments) - Fallback if none is found: look for a GitHub issue link in the body or description of the Linear issue
- If there is still none → error:
No GitHub issue corresponds to {ISSUE-ID}
Verified against the real API ({ISSUE-ID} / 2026-06-24): the response of
get_issue(id="{ISSUE-ID}", includeRelations=true)carried{INTERNAL-LINK}inattachments[0].url, and the GitHub issue number988could be extracted from it with a regular expression (attachments[].urlis the primary path).
Notes are always recorded on GitHub issues (settled maintainer policy). A Linear number is accepted as an input key, and the note itself is commented on the resolved GitHub issue. From Linear, it is reachable through the GitHub↔Linear sync link.
Edge cases
| Case | Response |
--issue and --create given together | Print an error and exit |
An invalid reference in --issue (abc, #1, and the like) | classify_issue_ref returns non-zero → error: Invalid issue reference (e.g. 81 or {ISSUE-ID}) |
The GitHub issue for --issue {ISSUE-ID} cannot be resolved | Error: No GitHub issue corresponds to {ISSUE-ID} |
Linear MCP not connected, or get_issue fails (when a Linear ID was given) | Print the error and suggest re-running with a GitHub number |
| The issue does not exist | Print an error and exit |
| Session ID unavailable | Write "unavailable" and continue |
gh unauthenticated (pause) | Fall back to markdown output |
gh unauthenticated (resume) | Print an error and exit |
--issue omitted while on the main branch | Cannot infer the issue → create a new one |
| Run outside a worktree | Record the worktree info as "none" |
| No git changes | Write "no changes" and continue |
| The branch was deleted (resume) | Offer to recreate the worktree |
| The issue is already closed (resume) | Warn and continue |
| Several pause notes exist | Use the one in the newest comment |
| Resuming an old note without markers | ckp_memo_field falls back to the legacy Japanese form automatically |
| Resuming a note written in another language | The <!-- checkpoint:* --> markers are language-invariant, so extraction works as is |
Safety rules
- Level 1 (API keys, passwords, personally identifying information): never put these in an issue body
- Mask values from
.envfiles and any credentials with*** - Use only
git diff --stat(never dump the full code diff) - Convert absolute paths (
/Users/...) to repository-relative paths - Generate temp files with
mktempfor a unique path, and always delete them afterwards - Watch the
ghcommand's rate limits and keep API calls to the minimum - Never re-open a closed issue (that is the maintainer's call)
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
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.

