AGENT SKILL

ralph-prep

Generate a PROMPT.md scaffold for the Ralph loop from a story file. Triggers on '/ralph-prep <story-id>' (e.g. '/ralph-prep story-t1'), or when the user asks to 'підготуй PROMPT для Ralph', 'згенеруй PROMPT.md з story', 'prepare Ralph PROMPT from <story>'. Reads tasks/<story-id>.md + CLAUDE.md and writes the 3-section prompt to ./PROMPT.md.

License 许可
MIT
最近更新
2026-11-12
Stars
★ 15
Forks
13

01 前言 Front Matter

name
ralph-prep
description
Generate a PROMPT.md scaffold for the Ralph loop from a story file. Triggers on '/ralph-prep <story-id>' (e.g. '/ralph-prep story-t1'), or when the user asks to 'підготуй PROMPT для Ralph', 'згенеруй PROMPT.md з story', 'prepare Ralph PROMPT from <story>'. Reads tasks/<story-id>.md + CLAUDE.md and writes the 3-section prompt to ./PROMPT.md.
allowed-tools
Read, Write, Glob
argument-hint
<story-id> (e.g. story-t1)
disable-model-invocation
false

03 SKILL.md 正文

ralph-prep — згенерувати PROMPT.md з story

Маленький helper для запису скринкаста лекції 7.2: викликаємо /ralph-prep <story-id>, отримуємо тонкий PROMPT.md у корені, який далі забирає ./ralph.sh як вхід.

Скіл стек-агностик: працює і над абстрактним демо в цій теці, і над реальним трекером beer-lms (TASKS_DIR=~/sources/beer-lms/.../tasks). Він не вигадує контракт — лише переносить те, що вже є в story-файлі й CLAUDE.md.

Аргументи

  • <story-id> — ім'я файлу story без .md і без шляху (напр. story-t1, S-1). Скіл шукає файл у ${TASKS_DIR:-tasks}/.

Inputs

  • ${TASKS_DIR:-tasks}/<story-id>.md — обов'язково. Має містити опис, AC, checklist, DoD.
  • CLAUDE.md у корені — обов'язково (стек, конвенції, заборони).
  • Якщо PROMPT.md уже існує — попередь користувача і запитай дозвіл на перезапис.

Output

Записує PROMPT.md у корені з трьома секціями + блоком «Не роби»:

# PROMPT.md · Ralph loop (<story-id>)

## Контекст
Ти працюєш у проекті <project з CLAUDE.md>. Стек: <витяг із секції «Стек»>.
Прочитай: CLAUDE.md, tasks/tracker.md (обери todo без блокерів), tasks/<story-id>.md.

## Завдання
Реалізувати story <ID> зі статусом todo. Дотримуйся конвенцій CLAUDE.md.
Один atomic commit на story. Застряг за 3 ітерації → BLOCKED у tracker і вихід.
Усі stories done → створи файл DONE.

## DoD
<DoD зі story, 1-в-1 bullet list. Без вигаданих критеріїв.>

## Не роби
- Не міняй тести; падає тест → фіксь код.
- Жодних --dangerously-skip-permissions; максимум acceptEdits.
- Не змінюй CLAUDE.md / контракти без окремої story.

Acceptance criteria

  • PROMPT.md створено у корені (cwd).
  • Секція «Контекст» згадує конкретний <story-id> файл (не загальне «story-файл»).
  • Секція «Завдання» цитує <ID> story.
  • Секція «DoD» — bullet list, 1-в-1 з DoD у story-файлі.
  • Якщо PROMPT.md уже існує — спершу питає, тоді перезаписує.

Anti-patterns

  • Не вигадуй DoD-пунктів — чого нема у story, того нема й у PROMPT.md.
  • Не накопичуй контекст у PROMPT.md — він тонкий; усе, що росте, тримай у CLAUDE.md і story-файлах, PROMPT.md лише посилається.
  • Не мовчазно перезаписуй існуючий PROMPT.md — питай дозвіл.

04 同仓库更多 Skills

genkovich
genkovich/agentic-engineering-course-public

release

Run the whole local release pipeline in order, stopping at each human gate. Triggers on "run the release", "prepare a release", "/release", "зроби реліз", "підготуй реліз". Drives the four stages back to back — bump-version → curate-changelog → release-notes → check-docs-drift — pausing after each so the human reviews the diff before the next stage. Prepares everything in the working tree; never tags, commits, or pushes. The tag push (which fires CI) stays the human's action.

★ 15
genkovich
genkovich/agentic-engineering-course-public

release-notes

Draft partner-facing release notes from the same commits as the changelog. Triggers on "draft release notes", "release notes for the next version", "/release-notes", "нотатки релізу", "release notes партнеру". Same input as curate-changelog, different audience and tone: a short, benefit-first narrative for a user or partner — "what's new for you" — not a categorized engineer's list. Keeps only changes a user actually notices; drops internal refactors and tooling. Prints the notes to the chat to seed a GitHub Release description or a partner announcement. Writes no file.

★ 15
genkovich
genkovich/agentic-engineering-course-public

curate-changelog

Curate the [Unreleased] section of docs/CHANGELOG.md from git history. Triggers on "curate the changelog", "update the changelog", "/curate-changelog", "онови changelog", "курування журналу". Reads git log since the last tag, FILTERS out what a reader never feels (test/ci/chore/merge), GROUPS commits about one feature into one bullet, and REWRITES technical subjects into plain language under the six Keep a Changelog categories (Added/Changed/Deprecated/ Removed/Fixed/Security). The result must have FEWER lines than the raw log — that is the proof of curation, not a dump. Leaves the edit in the working tree; never commits or pushes.

★ 15
genkovich
genkovich/agentic-engineering-course-public

codify-rule

Turn a repeated mistake into a durable, path-scoped rule in .claude/rules/. Triggers on "codify this rule", "make a rule so this doesn't happen again", "/codify-rule", "закодифікуй правило", "петля помилка-правило". Use only when the same mistake showed up TWICE (twice = a pattern, once = noise). Names the wrong shape and the right shape with one short example of each, scopes the rule to the paths that matter, and leaves the edit in the working tree so the next agent on this repo inherits the fix. Edits only .claude/rules/; never commits or pushes.

★ 15
genkovich
genkovich/agentic-engineering-course-public

check-docs-drift

Find and fix where docs/api.md fell behind the code. Triggers on "check for doc drift", "is the API doc up to date", "/check-docs-drift", "перевір дрейф документації", "docs drift". Runs the deterministic scripts/check-docs-drift.py (parses the public NoteBook methods with ast, compares to what docs/api.md documents — NO LLM finds the gap), reports the drift, and PROPOSES the doc edit that closes it. The gap is found by parsing; the agent writes the missing documentation in the doc's existing style. Edits only docs/; never commits or pushes.

★ 15
genkovich
genkovich/agentic-engineering-course-public

bump-version

Decide and apply the next semver for a release. Triggers on "bump the version", "what version is next", "/bump-version", "простав версію", "яка наступна версія". Reads the next number from the deterministic scripts/next-version.sh (NEVER guesses it), explains in plain language WHICH part moved and why (e.g. "MINOR, because a feat landed: filter notes by tag"), edits the version line in pyproject.toml, and proposes the matching `git tag vX.Y.Z`. The number is decided by a rule; the agent explains and applies — the human confirms the tag. Never pushes a tag itself.

★ 15