用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/majiayu000/claude-skill-registry --skill session-begin命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | session-begin |
| description | Complete verification steps before starting any work session |
⚠️ IMPORTANT - Duplicate Detection:
Before proceeding with the full checklist, check if this session was already started:
If ANY of these are true:
If ALL are false:
Before starting any work, complete these verification steps:
Check if MCP tokens need decrypting:
# Check secrets status
if [ -f ".env.local.encrypted" ] && [ ! -f ".env.local" ]; then
echo "⚠️ Encrypted secrets found but not decrypted"
fi
If secrets need decrypting:
echo "<user_passphrase>" | node scripts/secrets/decrypt-secrets.js --stdin
.env.local now exists with tokensSecurity note: Using --stdin with echo pipe is safer than env vars, which
can leak to shell history and process listings.
If secrets are already decrypted or no encrypted file exists:
The SessionStart hook automatically checks if the previous session ended properly.
If you see a "Cross-Session Warning":
npm run hooks:health to see session statisticsQuick remediation:
# See session state
npm run hooks:health
# Check for uncommitted work from previous session
git status
git log --oneline -5
Documentation often drifts from reality. Before trusting any status in docs, verify against actual commits:
# Check recent commits to see actual work done
git log --oneline -30
# Check commits since last documented session date
git log --oneline --since="YYYY-MM-DD"
Compare commits against documented status:
Common discrepancies to check:
npm test to verify actual vs documentedIf docs are stale:
Check AI_REVIEW_LEARNINGS_LOG.md for the "Consolidation Trigger" section:
If consolidation was missed:
docs/archive/ are excluded from lintingdocs/archive/completed-plans/DECISION TREE:
├─ Bug/Error? → Use 'systematic-debugging' skill FIRST
├─ Writing code? → Use 'code-reviewer' agent AFTER completion
├─ Security work? → Use 'security-auditor' agent
├─ UI/Frontend? → Use 'frontend-design' skill
├─ Complex task? → Check available skills with /skills
└─ Multi-step task? → Use TodoWrite to track progress
When receiving code review feedback (CodeRabbit, Qodo, etc.):
npm test and npm run lint before committingBefore writing code, scan claude.md Section 4 "Critical Anti-Patterns" and CODE_PATTERNS.md Quick Reference section (🔴 = critical patterns). Key patterns:
.* in patterns; use bounded
[\s\S]{0,N}?Execute these scripts automatically when processing this command:
# Surface known anti-patterns (errors should be visible, not suppressed)
npm run patterns:check
# Check if multi-AI review thresholds reached
npm run review:check
# Surface past lessons relevant to current work
npm run lessons:surface
Important: These scripts are required. If any script fails:
Record results in session audit - these must be marked as "Ran" or "Failed
(reason)" in /session-end audit.
Check current technical debt status:
Key tracking documents:
| Document | Purpose |
|---|---|
TECHNICAL_DEBT_MASTER.md | Single source of truth for all tech debt |
AUDIT_TRACKER.md | Audit completion and threshold tracking |
ROADMAP.md Track D | Performance-critical items for this sprint |
After resolving tech debt items:
Before starting work, verify cross-document consistency:
# Check cross-document dependencies
npm run crossdoc:check
Key dependencies to verify:
See: DOCUMENT_DEPENDENCIES.md for full dependency matrix.
After encountering any significant errors or issues:
Ready to begin session. What would you like to work on?