pr-logbook
БесплатноЗапускает вложенные скриптыНе проверенComposes PR titles and bodies, logbook entries and a PR's squash-merge message, and marks a spec implemented in its PR. Use when opening or updating a PR…
от crewrig★ 24 звезды на GitHubОб этом скилле
PR & Logbook Composer
Turns a finished change into a PR a reviewer can read in under five minutes, and a logbook entry the next agent can pick up cold. Mechanical checks live in bundled scripts; you supply the judgement.
Scripts
Run node <skill-dir>/scripts/<name>.ts from wherever the input files are;
paths you pass stay relative to your current directory. Each takes --json for a machine-readable
result and exits 0 (ok), 1 (finding), 2 (usage error) or 3
(precondition failed). Conventions shared by all scripts are in
references/script-contract.md.
| When | Command | Exit 1 means |
|---|---|---|
| After drafting a title and body, before opening or editing the PR | node scripts/lint-pr-body.ts --title-file <file> --body-file <file> (add --title-style gitmoji when the project uses Gitmoji; --template <file> when it has its own body template) |
A rule is broken: title over 70 characters or ending in a period, a missing, duplicated or misordered section, an empty preamble, or a CI skip directive. Fix the draft and rerun until clean. |
| Before writing the logbook entry | node scripts/resolve-logbook-target.ts --body-file <file> |
Never used. Read data.mode: feature-issue means comment on data.issue; standalone means create a logbook issue with the logbook label. |
| When the PR implements a spec, before it merges | node scripts/flip-spec-status.ts <spec-file> (use --dry-run to preview) |
The spec has a status other than approved or implemented. Stop and tell the orchestrator; do not edit the status by hand. |
Exit 2 or 3 means the call or the environment is wrong, not the draft.
Fix the invocation; do not work around it by skipping the script.
Workflow
1. Read the project's conventions
Read the project's AGENTS.md (or equivalent) for the required PR
sections, the commit-message convention, the logbook label and location,
and any branch or merge-method rules. The same crew serves repositories
with different rules, so an assumed convention is usually a wrong one. If
the project defines its own body template, pass it to the linter.
2. Compose title and body
- Title: imperative, states what changed (the body carries why). Use the project's emoji or prefix convention.
- Body: start from
assets/pr-body.template.md, or the project's own. Write the purpose in two sentences for a human, a reading order that points at the load-bearing files and non-obvious decisions, a test plan covering the golden path and one failure mode, and a walkthrough for agents that states what was added, changed and removed, and why. - On a bug-type issue that folds related bugs, give the folded-bugs entry each item with its status; otherwise write "not applicable".
- Write both to files and run
lint-pr-body.ts. Open or edit the PR only once it exits0.
3. Logbook entry
Run resolve-logbook-target.ts on the final body. A feature issue is its
own logbook, so comment on it through the forge CLI
(gh issue comment <issue> --body ...). Do not add the logbook label to a pre-existing feature issue.
Only a PR with no feature issue gets a standalone logbook issue, created
with gh issue create ... --label logbook. Forge access is CLI-only.
A logbook is the record the next agent reads to avoid your mistakes, not a status update. Use this shape and append, never rewrite; a reverted wrong turn still belongs in the log:
### YYYY-MM-DD — <one-line topic>
**Context**: <what task or PR this entry attaches to>
**What was tried**: <decision or experiment>
**Outcome**: <green / red / partial, with a link to evidence>
**Lesson**: <the durable insight, in one sentence>
When folded bugs exist, the next stage-transition comment carries one bullet per folded item (symptom, the step that exposed it, status), a bullet for the final sweep, and one per bug filed elsewhere. The closure comment lists each item's resolution.
4. Squash-merge message
When the project squash-merges, this message is what survives in git log, so make it denser than the PR description rather than a paste of it:
<convention prefix> <imperative title> (#<pr-number>)
<one paragraph: what the PR delivered, in the past tense>
<one paragraph: why, the constraint or motivation behind it>
<bullets for significant follow-ups, if any>
Write the first paragraph in the past tense: the message records a change already made. "Added retries to the sync client", not "Adds retries to the sync client" or "The sync client now retries".
The # reference is the forge-native one: GitHub and Gitea use #, GitLab
uses ! ((!<mr-number>)).
5. Spec status flip
If the PR implements a spec, run flip-spec-status.ts on the spec file
on the implementation branch before merge, then record it in a new commit
(not an amend), and push it when the PR branch is pushed, unless the user
or the task says not to. The spec then lands on the m
Установить pr-logbook в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл pr-logbook?
Composes PR titles and bodies, logbook entries and a PR's squash-merge message, and marks a spec implemented in its PR. Use when opening or updating a PR, logging to an issue, writing a PR squash-merge message, or flipping a spec to implemented. Not for local commit messages.
Как установить скилл pr-logbook?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pr-logbook запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic