Codify lesson
Detect recurring P2/P3 audit patterns across recent rounds and promote them into lesson cards. Use after round boundaries or when repeated findings appear.From its SKILL.md
npx -y skills add Arch1eSUN/Arcgentic --skill codify-lessonAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
1.4 KB, as published. Nobody here has run it
codify-lesson
Scans recent audit handoffs for recurring P2/P3 patterns in structured findings tables and promotes repeated clusters into lesson cards.
When to invoke
- After
round-boundary-lesson-scanreports a promotable cluster - User invokes
/codify-lesson - 3+ rounds show the same structured finding pattern
Workflow
-
Shell out to the toolkit:
arcgentic codify-lesson \ --audit-dir docs/audits \ --lessons-dir lessons \ --amendments-dir mandates/amendments -
Read stdout:
lessons: Namendments: Nstreak_updates: N
-
Inspect every generated lesson card before accepting it.
-
If an amendment proposal is generated, stop for founder review before applying mandate/rule changes.
The scanner ignores reference scans, author notes, forward-debt prose, and other
unstructured markdown even when those sections mention P2 or P3.
Output contract
- New lesson card:
lessons/lesson-{N}-{slug}.md - Formal-threshold amendment proposal:
mandates/amendments/amendment-{slug}.md - Existing lesson streak updates when a lesson was preserved
See also
agents/lesson-codifier.mdtoolkit/src/arcgentic/skills_impl/codify_lesson.pytoolkit/src/arcgentic/utils/pattern_detection.py