learning-scratchpad-loop
Maintain a repo-local learning scratchpad that compounds improvements across sessions by recording mistakes, user corrections, preferences, what worked, and…
от advanced-metal-research★ 24 звезды на GitHub
Установить learning-scratchpad-loop в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Build and maintain a lightweight learning loop in-repo so each session starts smarter than the last one.
Core Workflow
- Initialize the scratchpad.
- Read it at session start.
- Apply it as preflight guardrails.
- Log high-signal learnings immediately during work.
- Re-read before risky operations.
- Append concrete learnings before handoff.
Use /AGENT_SCRATCHPAD.md as the default memory file unless the user asks for a different path.
Step 1: Initialize Scratchpad
If /AGENT_SCRATCHPAD.md does not exist, create it from references/scratchpad-template.md.
Keep the structure stable so future sessions can parse it quickly. Set and record a file policy in the scratchpad:
COMMITTEDwhen the team should share learned patternsIGNOREDwhen the scratchpad should remain local-only
Step 2: Session Start Read
At the beginning of each meaningful task:
- Read the latest entries in
/AGENT_SCRATCHPAD.md. - Extract:
- repeated mistakes to avoid
- explicit user preferences
- validated working patterns
- open risks that affect current work
- Convert those into a short preflight checklist and follow it.
If current user instructions conflict with old notes, prioritize current user instructions and record the change.
Step 3: During-Task Capture
Capture and write high-signal items immediately when discovered:
- Mistake made
- How it was detected
- User correction (if any)
- Corrective rule for next time
Do not wait for end-of-task if the insight changes current behavior. Do not log generic statements such as "be careful" or "improve quality."
Use source tags on every operational note:
[self]for agent mistakes and self-corrections[user]for user corrections and explicit preferences[tool]for environment/tooling surprises
Step 4: Risky-Step Checkpoint
Before risky operations, re-read the scratchpad and apply relevant guardrails.
Risky operations include:
- migrations or dependency upgrades
- wide refactors across multiple files
- unfamiliar scripts or tooling paths
- commands with deletion/overwriting potential
Step 5: End-of-Task Writeback
Before handoff, append one new session entry with:
- Task summary
- Mistakes and fixes
- User preferences learned or reinforced
- What worked well
- What failed or was inefficient
- Guardrails for next session
- Follow-ups or unresolved risks
Keep every point concrete and testable. Reference files, commands, and checks when relevant.
Quality Rules
- Write facts, not guesses.
- Prefer short bullets over paragraphs.
- Mark superseded guidance as superseded instead of deleting history.
- Never store secrets or tokens.
- Keep the scratchpad scoped to execution quality, workflow, and user preferences.
Maintenance
Consolidate when either threshold is hit:
- every 5-10 sessions
- file grows beyond ~150 lines
Keep the file under ~200 lines of high-signal content.
During consolidation, compress older entries into a short "Retained Lessons" section while preserving:
- recurring user preferences
- critical failure patterns
- proven checks that prevent regressions
Use references/scratchpad-template.md as the canonical section layout.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- references/scratchpad-template.md
FAQ
Что делает скилл learning-scratchpad-loop?
Maintain a repo-local learning scratchpad that compounds improvements across sessions by recording mistakes, user corrections, preferences, what worked, and what failed. Use when a user asks for persistent self-improvement, memory across sessions, agent notes, a scratchpad, or a workflow where Codex should adapt based on prior errors and feedback.
Как установить скилл learning-scratchpad-loop?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл learning-scratchpad-loop запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…