一键导入
lessons
View, search, and manage accumulated lessons from .ai-sessions/lessons.md
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
View, search, and manage accumulated lessons from .ai-sessions/lessons.md
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Load saved review feedback from /bpe:review and apply changes to the reviewed artifact
Iterative Q&A to develop a thorough project specification (spec.md)
Generate a commit message explaining what was changed and write it to commit-msg.md
Implement the next unchecked step from plan.md by executing its sub-steps as written (RED-GREEN-REFACTOR for Feature steps; Scope/Tooling/Do/Verify/Document for Task steps)
Fetch a GitHub issue and route to brainstorm or plan based on detail level
Autonomous-mode BPE run via /goal. Modes — full (default) | section <name> | step. Pre-flights branch safety (refuses on main), resolves the project verification command (test-runner autodetect, spec.md fallback, or ask), builds a verifiable completion condition, and writes the assembled /goal block (condition + validator-aware orchestrator playbook + per-commit verification) to goal.md at the repo root for you to paste. Requires Claude Code v2.1.139+; put your session in auto mode before pasting for unattended execution.
| name | lessons |
| description | View, search, and manage accumulated lessons from .ai-sessions/lessons.md |
| argument-hint | [search term | recent | all | categories | prune | promote] |
| model | sonnet |
| disable-model-invocation | true |
View and manage accumulated lessons from .ai-sessions/lessons.md.
Read .ai-sessions/lessons.md
/bpe:session-summary at the end of a session to start capturing lessons."No arguments (/bpe:lessons): Display the full ## Recent section and list available categories with their lesson counts.
With search term (/bpe:lessons $ARGUMENTS): Search the entire lessons.md for entries matching the argument. Display matching lessons grouped by category. If no matches, say so.
Special arguments:
recent - Show the Recent section (default if no args)
all - Display the entire lessons.md file
categories - List just the category headings with counts
prune - Review lessons.md for duplicates, outdated entries, or lessons that have already been incorporated elsewhere. Check all of the following for existing coverage:
CLAUDE.md~/.claude/rules/*.md~/.claude/CLAUDE.mdFor each lesson that is already covered, note where it exists. Present findings to the user grouped by status:
## Already incorporated
- [lesson] — covered in ~/.claude/rules/python.md
- [lesson] — covered in project CLAUDE.md
## Duplicates
- [lesson] — duplicate of [other lesson] in lessons.md
## Outdated
- [lesson] — reason it appears outdated
Ask the user to confirm before making changes. Pruned lessons are NOT deleted — they are moved to .ai-sessions/lessons-pruned.md with a record of what happened to each one:
## Pruned <date>
- [lesson] — promoted to ~/.claude/rules/python.md
- [lesson] — duplicate of [other lesson]
- [lesson] — outdated: [reason]
Append to the file if it already exists. Then remove the pruned lessons from lessons.md.
promote - Identify lessons that appear broadly applicable or have been validated across multiple sessions. For each promotable lesson, classify its destination:
Pre-flight — version-control guard (REFUSE on failure). Before doing any classification work, run:
git -C ~/.claude/rules rev-parse --show-toplevel 2>/dev/null
If this exits non-zero or returns nothing, the rules destination is not version-controlled — promotions would be lost on re-provision. Refuse to continue with: "~/.claude/rules is not in a git repo. Promotions to global rules would not be backed up. Fix your dotfiles setup so ~/.claude/rules is symlinked (or copied) from a version-controlled source, then re-run." Skip the rest of promote.
Otherwise, classify destinations:
CLAUDE.md.~/.claude/rules/. Read the existing rule files in ~/.claude/rules/*.md to find the best fit by topic. If no existing rule file is a good fit, suggest creating a new one with appropriate paths: frontmatter (e.g., paths: ["**/*.py"] for Python-specific rules).Present the proposed promotions grouped by destination:
## Project CLAUDE.md
- [lesson] — reason it's project-specific
## ~/.claude/rules/python.md (existing)
- [lesson] — reason it fits here
## ~/.claude/rules/deployment.md (new file)
- [lesson] — reason a new rule file is needed
Ask the user to confirm, adjust destinations, or skip individual lessons before making any changes. After confirmed promotions are applied:
.ai-sessions/lessons.md..ai-sessions/lessons-pruned.md under a ## Promoted <date> heading — one bullet per lesson with its destination, matching how prune records dispositions. Use date +%Y-%m-%d for the heading. Example:
## Promoted 2026-06-10
- [lesson text] — promoted to ~/.claude/rules/python.md
- [lesson text] — promoted to project CLAUDE.md
Append to the file if it already exists; create it otherwise. This is the only durable record of what came from where after lessons.md loses the entry.When displaying lessons, use clean markdown formatting. Group by category when showing search results. Always show the date associated with each lesson.