一键导入
session-begin
Pre-flight checklist for work sessions — loads context, runs health scripts, surfaces warnings, and gates on acknowledgment before work begins.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Pre-flight checklist for work sessions — loads context, runs health scripts, surfaces warnings, and gates on acknowledgment before work begins.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Structured discovery-first planning for complex tasks. Ask exhaustive categorized questions, build a standalone decision record, then produce a step-by-step implementation plan with audit checkpoints and convergence-loop verification of diagnosis and plan claims for user approval before any code is written.
Multi-agent research engine that decomposes questions, dispatches parallel searcher agents, synthesizes findings with citations and confidence levels, runs mandatory contrarian/OTB challenges, gap-pursuit verification, and cross-model verification via Gemini CLI, and produces structured output with downstream adapters, research index, and management commands.
PR Review Retrospective -- actionable analysis of a PR's review cycle with convergence-loop deliverable verification, interactive findings walkthrough, and dashboard for missing retros
Process external PR code review feedback (CodeRabbit, Qodo, SonarCloud, Gemini) through a structured 8-step protocol. Parses all items, categorizes by severity and origin, fixes in priority order, tracks deferred items to TDMS, and captures learnings. This skill processes review feedback — it does not generate reviews.
Query the Content Analysis System (CAS) knowledge base. Search extraction candidates, filter by tags/type/source, search across all analyzed sources.
Content analysis for documents — PDFs, gists, articles, markdown, arxiv papers, code snippets, meeting notes. Dual-lens (Creator View + Engineer View). Two user-invokable depths (Standard / Deep); Quick Scan is triage- only. Outputs to .research/analysis/<doc-slug>/.
| name | session-begin |
| description | Pre-flight checklist for work sessions — loads context, runs health scripts, surfaces warnings, and gates on acknowledgment before work begins. |
Pre-flight checklist that orients the session: loads context, validates environment, runs health scripts, surfaces warnings, and hands off to the user with a goal-selection prompt.
Time budget: Session-begin SHOULD complete in under 5 minutes. If script issues or staleness require extended remediation, present findings and defer fixes to user decision.
Check all three:
If ANY true: "Session #N already active. What would you like to work on?" If ALL false: Proceed with full checklist.
/session-begin/alerts/session-end/checkpointThe SessionStart hook handles: consolidation, cross-session validation, dependency install, build. This skill handles: context loading, counter increment, script health checks, warning gates, goal selection. If the hook already completed a step (check its output), skip it.
"Starting Session #N pre-flight on [branch]. Will load context, run 8 health scripts, and surface any warnings."
if [ -f ".env.local.encrypted" ] && [ ! -f ".env.local" ]; then
echo "Encrypted secrets found but not decrypted"
fi
If secrets need decrypting: ask user for passphrase, run:
echo "<passphrase>" | node scripts/secrets/decrypt-secrets.js --stdin Verify
.env.local exists. Never store or log the passphrase.
If already decrypted or no encrypted file: skip.
Handled by SessionStart hook. If "Cross-Session Warning" appears: check
git status, git log --oneline -5, run npm run hooks:health. Update
SESSION_CONTEXT.md if prior session missed /session-end.
Verify SESSION_CONTEXT.md's documented branch matches
git branch --show-current. If mismatch, warn user before proceeding.
git log --oneline -30
Compare commits against ROADMAP.md Active Sprint checkboxes. If discrepancies found, present them: "Docs appear stale: [specifics]. Update now or defer?"
Let the user decide. Do not auto-update.
Automated via npm run session:gaps in Phase 3. If gaps detected, run
npm run session:gaps:fix and present suggestions.
Automated by SessionStart hook. If it failed (check hook output), run:
node scripts/run-consolidation.js --apply
Check if .research/research-index.jsonl exists and is non-empty. If so, read
the last 5 entries and present a brief summary:
Prior research: N topics analyzed. Most recent: {topic} ({date}).
This is non-blocking — if the file is missing or empty, skip silently. The
purpose is to surface prior /repo-analysis, /website-analysis, and
/deep-research work so the user knows what context is available.
Output: "Running 8 health scripts..."
npm run patterns:check
npm run review:check
npm run lessons:surface
npm run session:gaps
npm run roadmap:hygiene
npm run reviews:lifecycle
npm run hooks:analytics -- --since=$(date -d '7 days ago' +%Y-%m-%d)
node scripts/run-github-health.js --quick
After all scripts: "Scripts complete: N passed, M failed, K warnings."
If any script fails (MUST): Present to user: "Script X failed: [error]. Fix now / Defer / Ignore?" Do not silently decide.
Record results — these must be marked as "Ran" or "Failed (reason)" in
/session-end audit.
npm run crossdoc:check
node scripts/tasks/resolve-dependencies.js 2>/dev/null || true
Note: Velocity reporting was removed in commit
7e74fada(/alerts --fullconsolidation). Do not re-addscripts/velocity/references without first restoring the script.
Check for anomalies (best-effort — skip files that don't exist):
.claude/override-log.jsonl. Count overrides in
last 7 days vs previous 7 days. If 50%+ higher and 5+ more → warn..claude/state/hook-warnings-log.jsonl. If 10+ in
last 7 days → warn..claude/state/health-score-log.jsonl. If grade
dropped 2+ levels → warn.If anomalies found, present and recommend /alerts --full. If none: skip
silently.
Read .claude/hook-warnings.json. If unacknowledged warnings exist (added since
lastCleared):
Unacknowledged hook warnings (N):
1. [type] message (occurrences)
2. ...
Acknowledge all? [Y] or review individually? [R]
Y: Record timestamp in hook-warnings.json, proceed. R: Present each
for individual decision. No warnings: Skip silently.
After all acknowledgments: Run node scripts/sync-warnings-ack.js to sync
lastCleared with per-type acks. This updates the statusline unacked count.
Check for state files written by session-start.js passive-surfacing fixes:
Build failures: Read .claude/state/session-start-failures.json. If it
exists and has entries, present each failure with its Fix: command:
Session-start build failures (N):
1. [description] — Fix: [command]
2. ...
Fix now / Acknowledge / Defer?
Pending test registry: Read .claude/state/pending-test-registry.json.
If it exists, remind: "Test registry needs update. Run: npm run
tests:registry"
Pending decisions: Read .claude/hook-warnings.json for
decision-documentation type entries. Surface undocumented decisions.
All items require acknowledgment before proceeding. Do not skip silently.
Read Technical Debt INDEX. Note S0/S1 counts for the summary.
Present using this format:
Session #N — Pre-Flight Summary
Branch: [branch]
| Script | Status |
|--------|--------|
| patterns:check | Pass/Fail |
| review:check | Pass/Warn |
| ... | ... |
Warnings: N acknowledged | Tech Debt: N S0, M S1
Next Goals (from SESSION_CONTEXT.md):
[list ALL goals from both "Immediate Priority" and "After Debt-Runner"
sections — do not truncate or cap the list]
After the summary: "Which goal would you like to focus on, or something else?" Reference the surfaced goals — do not use a generic open-ended prompt.
"Session #N pre-flight complete. [N] scripts ran, [M] warnings acknowledged. Ready to work."
Done when: Session counter incremented, context loaded, all scripts ran (or failures escalated to user), warnings acknowledged, goal selected.
session-end (receives session context), checkpoint
(mid-session state), alerts (detailed health drill-down)
/alerts uses .claude/tmp/alerts-progress-{date}.json for
compaction resilience. If this file exists and is <2h old, alerts will offer
to resume a previous session.| Version | Date | Description |
|---|---|---|
| 2.0 | 2026-03-16 | Skill-audit rewrite: 31 decisions, 51→73 score |
| 1.0 | 2026-02-25 | Initial implementation |