一键导入
pwrl-end-session-checkpoint
Verify repository state and confirm session completion before committing.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Verify repository state and confirm session completion before committing.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Extract, classify, deduplicate, structure, and save learnings from code, commits, tasks, and documentation
Create structured implementation plans with three tiers (Fast/Standard/Deep). Pure skill pipeline orchestrator—no agent routing.
Review code changes through 4-phase micro-skill pipeline (scope, prepare, analyze, report)
Execute implementation work efficiently through 4-phase micro-skill pipeline
Create a clear session commit with state and next steps. Orchestrates checkpoint and commit micro-skills, optionally chains to pwrl-learnings.
Extract actionable learnings from code, commits, tasks, documentation, errors, and reviews.
| name | pwrl-end-session-checkpoint |
| description | Verify repository state and confirm session completion before committing. |
| argument-hint | [Optional: reason/context and/or list of files to include] |
Verify repository state and get explicit user confirmation that the session is ready to end.
ask_user_question, ask_user, ask_user_input, vscode/askQuestions or any available extension/tool for user interaction for all decisionsCheckpoint is the first phase of session cleanup. It verifies that the repository has changes to commit, reviews what will be included, and confirms with the user that work is complete and ready to finalize:
/pwrl-end-session-checkpoint # Default: check current state
/pwrl-end-session-checkpoint "switching to feature-X" # With context
This is typically invoked by /pwrl-end-session orchestrator, or directly to verify state before committing.
references/checkpoint-protocol.md — Detailed validation rules and decision treeFor complete step-by-step instructions, see checkpoint-protocol.md.
This SKILL.md provides an overview. The detailed workflow document contains:
After completing this phase, run quality gate validation:
/pwrl-phase-checkpoint end-session 1 [artifact-path]
See pwrl-phase-checkpoint for validation rules.
Detect all changes and determine if commit is viable.
See detailed workflow: checkpoint-protocol.md
git status to detect modified, staged, untracked filesIf changes were detected, ask the user to choose their engagement level for this session-end. Use the platform's ask_user_question extension (or equivalent) to present the following three options:
Question: "How would you like to proceed with this session-end?"
Options:
pwrl-end-session-commit and let the user edit it before approval; show pre-flight summary in the checkpoint. Maximum control. Best for complex sessions with breaking changes, version bumps, or sensitive attribution.Store the selection in the checkpoint artifact (replacing the placeholder in the schema above):
interactionMode: detailed | smart | yolo
Empty working tree: If there are no changes, the mode ask is skipped (since there is nothing to commit). Users with no changes will not be prompted.
Learnings chaining: The optional Phase 3 chain to
/pwrl-learningshas its own mode ask (set bypwrl-learnings-extractStep 1.5). The mode set in this step controls only checkpoint and commit behavior.
Get user explicit approval on what will be committed.
See detailed workflow: checkpoint-protocol.md
Create structured output for Phase 2 (commit creation).
See detailed workflow: checkpoint-protocol.md