src/orchestrator/skills/self-improvement/SKILL.md
Appends new entries to LESSONS-LEARNED.md via the opencastle lesson CLI, searches past lessons for matching errors, and proposes skill updates when retry patterns exceed thresholds. Use when consulting or updating LESSONS-LEARNED.md, after task failures, when capturing retrospective insights, or when a retry succeeds.
npx skillsauth add etylsarin/opencastle self-improvementInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Retry with a different approach and it works → document the lesson immediately. File: .opencastle/LESSONS-LEARNED.md
⛔ HARD GATE — Use the CLI. Do NOT edit LESSONS-LEARNED.md directly.
opencastle lesson --title "Short descriptive title" --category general --severity high \
--problem "What was observed" --wrong "Failing approach" --correct "Working solution" \
--why "Root cause"
Required: --title, --category, --severity, --problem · Optional: --wrong, --correct, --why
After writing: if the lesson reveals a gap in a skill/instruction file, update that file too (prevents the pitfall at source).
opencastle lesson to record the working approach.tail -1 .opencastle/LESSONS-LEARNED.md — confirm entry has title, category, and severity. If malformed → re-run with corrected flags.Quick search example:
rg "missing CRON_SECRET" .opencastle/LESSONS-LEARNED.md || true
Category and severity tables moved to LESSON-CATEGORIES.md. Use that file when tagging lessons.
Never skip reading lessons · Never fix without documenting · Never write vague entries · Never duplicate · Never defer to end of session
For expertise tracking and cross-session knowledge graphs, load the agent-memory skill.
development
Defines 10 sequential validation gates: secret scanning, lint/test/build checks, blast radius analysis, dependency auditing, browser testing, cache management, regression checks, and smoke tests. Use when running pre-deploy validation or CI checks, CI/CD pipelines, deployment pipeline validation, pre-merge checks, continuous integration, or pull request validation.
development
Generates test plans, writes unit/integration/E2E test files, identifies coverage gaps, and flags common testing anti-patterns. Use when writing tests, creating test suites, planning test strategies, mocking dependencies, measuring code coverage, or test planning.
development
Provides model routing rules, validates delegation prerequisites, supplies cost tracking templates, and defines dead-letter queue formats for Team Lead orchestration. Load when assigning tasks to agents, choosing model tiers, starting a delegation session, running a multi-agent workflow, delegating work, choosing which model to use, or assigning tasks.
testing
Saves and restores session state including task progress, file changes, and delegation history. Use when saving progress, resuming interrupted work, picking up where you left off, or checkpointing current work.