بنقرة واحدة
lesson-gen
Mid-session quick capture — save an insight before the context moves on
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Mid-session quick capture — save an insight before the context moves on
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | lesson-gen |
| description | Mid-session quick capture — save an insight before the context moves on |
| version | 0.2.0 |
| level | 1 |
| triggers | ["extract pattern","save this approach","log this","note this"] |
| context_files | ["context/learnings.md"] |
| steps | [{"name":"Identify","description":"What specifically happened? State it in one sentence."},{"name":"Quality Gate","description":"Apply the 3-point test — can't Google it, codebase-specific, took real effort"},{"name":"Generalize","description":"State the general principle, not just the session-specific instance"},{"name":"Write","description":"Append to context/learnings.md in standard format"}] |
Mid-session quick capture. Use when something is worth keeping but you do not want to break flow to do a full wrap-up.
After applying the quality gate, classify the learning into one of four verdicts:
Passes all 3 quality gate points. Save immediately to context/learnings.md in standard format.
Good insight but needs refinement:
Action: Rewrite to be more concrete/general, then save to context/learnings.md.
Example:
This learning belongs in a skill, not in context/learnings.md:
Action: Identify which existing skill this belongs in (or propose a new skill if none fit). Add to that skill's body or examples section.
Example:
Fails the quality gate:
Action: Discard. Do not write to any file.
[YYYY-MM-DD] [category] — [specific statement]
One entry per insight. Do not bundle.
Do not write the session-specific instance — write the general principle it illustrates.
Do not write what you intended to do — write what actually happened and what it revealed.
Convert PDF/EPUB library to Markdown and generate Obsidian MOC notes
Hook-based compaction suggestions at logical task boundaries
Context window management — track spend, decide when to compact, preserve state
Session-start orientation — loads context, surfaces learnings, confirms registry
Quality and semantic review — catches what automated tools miss
Planner → Architect → Critic deliberation loop — produces a formally validated ADR