بنقرة واحدة
lessons-learned
Review project activity (issues, commits, changelog) and draft entries for docs/lessons_learned.md.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Review project activity (issues, commits, changelog) and draft entries for docs/lessons_learned.md.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Audit corpus and highlight tests for tests that pass for the wrong reason — designed to pass rather than designed to catch regressions.
Fix multiple GitHub issues on an integration branch. Issues touching different areas (grammar, scanner, queries, bindings, tests) run in parallel worktrees; issues sharing an area or affecting cross-binding code run sequentially. Each goes through fix, simplify, review, and remediation before merging. Use when asked to fix several issues at once.
Complete workflow for fixing GitHub issues — investigation, implementation, review, testing, documentation.
Read a GitHub issue, develop a resolution plan via sequential thinking, rate difficulty/complexity/priority, label low-priority when warranted.
Fetch open GitHub issues and produce a read-only triage report with quick wins and recommended groupings.
Audit grammar / query / binding changes for correctness, performance, and quality. Use when asked to review changes, diffs, or pull requests.
| name | lessons-learned |
| description | Review project activity (issues, commits, changelog) and draft entries for docs/lessons_learned.md. |
Review recent project activity, identify hard-won lessons, evaluate them
against a strict quality bar, draft entries for docs/lessons_learned.md.
If docs/lessons_learned.md does not yet exist, create the directory and
seed with a short header before the first entry — do not append into a
missing file.
Argument: $ARGUMENTS — empty for full workflow, or a hint to narrow
search (e.g. "scanner", "slashy strings").
git log -1 --format=%aI -- docs/lessons_learned.md
If the file has no substantive history, fall back to:
git log --reverse --format=%aI | head -1
Record as $BOUNDARY.
Read docs/lessons_learned.md in full. Record:
Mandatory step. If the file has no lessons, record highest as 0.
Four sources. If $ARGUMENTS provides a hint, use as an additional
keyword.
gh issue list --state closed --search "closed:>$BOUNDARY" --limit 100 \
--json number,title,body,labels,closedAt
Scan for hard-lesson signals: "root cause", "turns out", "subtle", "silent", "regression", "broke", "workaround", "misunderstood".
git log --since="$BOUNDARY" --format="%H %s" -- grammar.js src/scanner.c queries/ bindings/ test/ SPECIFICATION.md
Look for: substantial fix commits, refactors that changed approach, recurring scanner / regeneration fallout, changes that reverted earlier changes, spec changes that flipped a precedence decision.
If CHANGELOG.md exists, focus on Fixed / Changed sections.
git log --since="$BOUNDARY" --name-only --format="" -- docs/ README.md CLAUDE.md SPECIFICATION.md
For items showing hard-lesson signals: read full issue threads, examine
diffs (git show <commit>), look for pattern repetition (same mistake
more than once).
Record each candidate:
Genuinely hard (cost real debugging time or caused real bugs) AND important (likely to recur).
Present candidates as a ranked batch:
### Candidate N: <summary>
- Source: #<issue>, <commit>
- Quality: QUALIFIES / DOES NOT QUALIFY
- Overlap: None / Related to lesson #N
- Reasoning: <why it meets or fails the bar>
For non-qualifying candidates, suggest an alternative home:
| Signal | Alternative |
|---|---|
| One-off debug trick | Code comment at the site |
| Architectural decision | SPECIFICATION.md section or design note |
| Project convention | CLAUDE.md / AGENTS.md |
| Already covered | Merge into existing lesson |
| Too specific | Issue comment or PR description |
"No candidates qualify" is a valid success state. Do not lower the bar to produce output.
Wait for user selection before drafting.
For each selected candidate, draft per the existing format in
docs/lessons_learned.md:
## N. <Pithy Principle Name> — next sequential number.**Description** (#42, abc1234).).**Lesson:** paragraph.---) after the entry.Show the complete draft. Wait for approval.
After approval:
docs/lessons_learned.md.git add docs/lessons_learned.md.