一键导入
pwrl-end-session
Create a clear session commit with state and next steps. Orchestrates checkpoint and commit micro-skills, optionally chains to pwrl-learnings.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create a clear session commit with state and next steps. Orchestrates checkpoint and commit micro-skills, optionally chains to pwrl-learnings.
用 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
Verify repository state and confirm session completion before committing.
Extract actionable learnings from code, commits, tasks, documentation, errors, and reviews.
| name | pwrl-end-session |
| description | Create a clear session commit with state and next steps. Orchestrates checkpoint and commit micro-skills, optionally chains to pwrl-learnings. |
| argument-hint | [Optional: reason for ending session or switching tasks] |
Preserve session context with a well-documented commit capturing state, decisions, and next steps.
ask_user_question, ask_user, ask_user_input, vscode/askQuestions or any available extension/tool for user interaction for all decisionsEnd a work session cleanly by creating a single, clear commit that captures progress and context for the next session:
[AGENT: ...] attribution/pwrl-end-session # End current session
/pwrl-end-session "switching to bugfix" # End with reason note
After commit succeeds, optionally chain to /pwrl-learnings to capture session insights.
Pure Skill Pipeline — Direct sequence of 2 micro-skills (checkpoint and commit), optionally followed by learnings extraction. The interactionMode is set in Phase 1 (checkpoint) and propagated through the artifact to Phase 2 (commit) and the optional Phase 3 (learnings chain):
INPUT (user invokes /pwrl-end-session)
↓
PHASE 1: Checkpoint (pwrl-end-session-checkpoint)
→ Step 1.5: Select Interaction Mode (detailed | smart | yolo)
→ Verify state, confirm completion
→ Output: Checkpoint artifact (includes interactionMode)
↓
PHASE 2: Commit (pwrl-end-session-commit)
→ Reads interactionMode from checkpoint artifact
→ Adjusts commit-message draft + approval flow
→ Output: Commit artifact
↓
PHASE 3 (Optional): Chain to pwrl-learnings
→ /pwrl-learnings-extract re-asks the mode for the learnings workflow
→ Extract and save session insights
↓
OUTPUT (session complete)
The interactionMode is set in pwrl-end-session-checkpoint Step 1.5 and controls behavior across the rest of the pipeline:
detailed — User sees the draft commit message in pwrl-end-session-commit and edits it before approval; pre-flight summary in the checkpoint is shown line-by-line. Maximum control.smart — User sees a pre-flight summary (files, line counts, version-bump check) and approves the commit with one click; only pause for HIGH-risk operations (e.g., version bump detected, breaking-change warning). v1 simplification: behaves like Yolo with a single confirmation prompt at workflow start.yolo — Entire session-end (checkpoint + commit) auto-runs and only reports the final commit SHA. Fastest.The mode set in this workflow does not affect Phase 3 (learnings chain). The optional chain to /pwrl-learnings re-asks the mode via pwrl-learnings-extract Step 1.5 so users can mix modes across phases (e.g., Yolo for the commit, Detailed for the learnings review).
Each phase executes sequentially. The orchestrator invokes the micro-skill, validates output with quality gates, and passes the artifact to the next phase.
Verify repository state and get session completion confirmation.
See detailed workflow: checkpoint-protocol.md
Prepare commit message and create commit with proper attribution.
See detailed workflow: commit-protocol.md
Capture session insights and learnings for future reference.
Invoke: /pwrl-learnings with changed files from Phase 2
[AGENT: ...] on last linedocs/tasks/...")[AGENT: ...] trailer and descriptive bodyCHANGELOG.md staged in commit if version changed