end
БесплатноЗапускает вложенные скриптыНе проверенWrap up the session safely: gate on uncommitted/unpushed work and missing journal, refuse to end if anything is unsaved, write the closing summary, then exit…
от gptme★ 19 звёзд на GitHubОб этом скилле
/end — wrap up, or refuse to
The skill is a gate, then a closeout, then (maybe) an exit. It exists so "I'm done" is a checked claim, not a feeling. Three rules:
- Refuse to end with unsaved work. Uncommitted files you touched, unpushed commits, dirty worktrees, or a missing journal entry → you are not done.
- Closeout is short and stands alone. The last message must make sense to someone who reads only it.
- Exit only when it's cheap to come back. Light session → exit the harness.
Substantial session → stay alive so the human can review before the context
is gone. (
--exit/--stayoverride.)
Arguments
$ARGUMENTS — optional flags:
| Flag | Effect |
|---|---|
| (none) | check → closeout → exit iff CLEAN_LIGHT |
--exit |
check → closeout → exit even if CLEAN_SUBSTANTIAL |
--stay |
check → closeout → never exit |
--dry-run |
run the check and report; change nothing, exit nothing |
Step 1 — Run the gate (always)
# SKILL_DIR: $CLAUDE_SKILL_DIR in Claude Code; otherwise the directory of this
# SKILL.md (e.g. gptme-contrib/skills/end or ~/.codex/skills/end).
python3 "$SKILL_DIR/scripts/end-check.py"
It reports, per check, ✅ ok / ℹ️ info / ⚠️ warn / ❌ block, and ends with
one of:
| Verdict | Meaning | What you do |
|---|---|---|
BLOCKED |
unsaved work attributed to this session | Refuse. Go to Step 2. |
CLEAN_LIGHT |
≤2 commits, ≤10 files, no PRs/worktrees pending | Closeout → exit (Step 3+4) |
CLEAN_SUBSTANTIAL |
more than that, or declared PRs (--pr) / warnings |
Closeout → hand-off → stay alive |
"This session" is decided per kind of work:
- Uncommitted files: files whose mtime is newer than the harness process
start (from
/proc), or staged files.--since 2hoverrides the start time when the heuristic is wrong (e.g. a resumed session). - Commits: only commits that carry this session's id in their message, or
that touch a
--pathsfootprint. The time window bounds the candidates; it never claims a commit by itself. A sibling's commit is not yours just because it landed during your session. File counts come from each attributed commit's own diff.
Other sessions' dirt in a shared worktree is listed as info, not a blocker.
Shared worktree with parallel sessions (Bob's brain repo): siblings share
your time window, so declare your footprint with --paths — the repo paths you
touched plus the absolute paths of any linked worktrees you created. Declared
paths are explicit ownership: untagged commits that touch them count, and file
counts stay within them. Only dirt/commits under those paths and only declared
worktrees can block; the rest is info:
python3 "$SKILL_DIR/scripts/end-check.py" \
--paths journal/2026-08-22/my-session.md scripts/foo.py /tmp/worktrees/my-feature
A parallel session's fresh worktree can still show as a blocker; if
git -C <wt> log -1 proves it isn't yours, say so in the closeout and treat
it as info — don't touch it.
PRs are declared, never guessed. Pass each PR this session owns with
--pr, as a https://github.com/OWNER/REPO/pull/NUMBER URL (repeatable).
Each declared URL is looked up on its own, and only those are checked. A
failing CI check or failed lookup on a declared PR warns; an unavailable
lookup must not silently turn the session light. Without any --pr the check reports
no session-owned PRs declared and makes no network call. Nothing is inferred
from the account's open PRs or the time window, so a sibling's PR is never
listed. A PR opened before the session started still counts if you declare it
(resumed work). --no-prs skips the PR check entirely.
python3 "$SKILL_DIR/scripts/end-check.py" \
--paths scripts/foo.py --pr https://github.com/gptme/gptme-contrib/pull/1954
Also do the judgment checks the script can't:
- Did the user ask something you never answered? → not done.
- Did you promise "I'll …" anywhere in the last few messages? → do it or retract it.
- Is a subagent or background job still running that produces a deliverable? → wait or kill it explicitly.
- Is a task/claim still marked active for this session? → release it (Bob:
uv run coordination work-list --claimed, thenwork-complete;gptodo edit <id> --set state …). - Review settled decisions and corrections before losing this context, including after resolving any initial mechanical-gate blockers. Read the canonical files changed or cited this session, and use the configured memory reader to inspect related entries. Similar search results do not prove capture; an empty result does not prove absence. Save missing durable decisions through the existing authorized writer, preserving scope and source; avoid duplicating an existing canonical doc. Report covered/saved/conflicting/unverified items in the normal closeout or journal. Keep proposals and transient progress out of durable memory. If context or a source is unavailabl
Установить end в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл end?
Wrap up the session safely: gate on uncommitted/unpushed work and missing journal, refuse to end if anything is unsaved, write the closing summary, then exit the harness when the session was light (stay alive for review when it was substantial). Invoke as /end (Claude Code, Codex) or /skill:end (gptme).
Как установить скилл end?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл end запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic