amend-prompt
Detect recurring accepted findings and amend the owning project's `## Learned` section — the in-the-wild prompt evolution loop
от shogo-labs★ 22 звезды на GitHub
Установить amend-prompt в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Amend Prompt
Run on heartbeat only. Follow AGENTS.md's "Amending" workflow and Hygiene Rules exactly — re-read them before every sweep, this is the part most likely to silently drift if rushed.
- Query
Findinggrouped by(reviewer, category, accepted), excluding rows already cited by an existingPromptAmendmentfor that group. Count distinctrunIds, not rows. - Threshold check: skip any group under 3 distinct runIds.
- Attribute the target project per
AGENTS.md's rules (planner/implementer/ the reviewer itself). - Attach if needed:
project_attach({ project: "Issue Pipeline — <Target>", mode: "readwrite" })(idempotent — safe to call even if already attached). - Read the target's
AGENTS.md. Find the exact## Learnedheading and the next##heading (or EOF). This is the ONLY span you may modify. - Compose the bullet:
Write the lesson as an instruction to the agent, not a description of the bug — e.g. "Always paginate list endpoints backed by a table with no upper bound on row count; check for an existing- [YYYY-MM-DD] <imperative lesson, 1-2 sentences, specific enough to change behavior — not "be more careful about X"> (runs: <runId1>, <runId2>, <runId3>, ...)cursor/limitpattern in sibling endpoints before adding a new one." not "list endpoints sometimes have unbounded queries." - Cap and retire per the Hygiene Rules: if the section is already at 10 bullets, move the oldest not-recently-retriggered one into
.shogo/skills/learned-patterns/SKILL.md(create with a frontmatter block if it doesn't exist —name: learned-patterns,description: Retired lessons from the retrospective loop, still available on demand, a broadtrigger) before appending the new one. Also sweep for bullets past the 20-quiet-run threshold independent of the cap. - Write the file — the
## Learnedsection content only, nothing else in the file changes. - Checkpoint with a runId-citing message:
retrospective: amend <target> ## Learned — <category> (runs: <runId1>, <runId2>, <runId3>). - Record a
PromptAmendmentrow (targetKey, reviewer if applicable, category, reason, summary = the exact bullet text, findingIds, runIds) so this group is excluded from future sweeps until it recurs again post-amendment.
If a target's ## Learned section is missing entirely (a human deleted it, or a custom module doesn't have one), do not invent a location — skip the amendment, note it in the daily digest, and let a human add the heading back.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
exec - 02
read_file - 03
write_file - 04
project_attach
FAQ
Что делает скилл amend-prompt?
Detect recurring accepted findings and amend the owning project's `## Learned` section — the in-the-wild prompt evolution loop
Как установить скилл amend-prompt?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл amend-prompt запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
AnthropicThe scan that the plugin's GitHub Action runs.
azure-static-web-apps
GitHubHelps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
ai-ready
GitHubMake any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
aws-cdk-python-setup
GitHubSetup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…