clean-up-for-pr
БесплатноБез исполняемых скриптовНе проверенClean up a completed feature, bug fix or maintained content change before PR handoff. Simplify the patch, correct code and prose, apply the required writing…
от tradingstrategy-ai★ 834 звезды на GitHubОб этом скилле
Clean up for PR
Use this after implementation and focused checks, before reporting the work as ready for review. It applies to code, documentation, skills and manually maintained descriptions, notes and metadata. Run it once for the completed change, rather than after every nested skill or individual file edit. When reached from a skill invoked by another skill, leave cleanup to the outermost task after all its implementation is complete. A child skill returns its result to its caller without starting a separate cleanup or review.
Keep the user's intended behaviour and scope. Inspect nearby code where it helps simplify or verify the change; avoid an unrelated repository-wide refactor. Preserve other work already present in the worktree. Follow the user's existing authorisation for commits, pushes, PRs and production actions.
Establish the review scope
Read the applicable AGENTS.md instructions. Confirm the repository, branch
and worktree, then inspect tracked, staged and untracked changes:
pwd
git status --short --branch
git diff --stat
git diff --cached --stat
git diff --name-only
git diff --cached --name-only
git ls-files --others --exclude-standard
Include committed feature changes against the intended PR base when applicable.
Read new untracked source files explicitly: they are absent from git diff.
Inspect targeted hunks and the surrounding implementation rather than dumping
the entire patch into context.
Clean up the implementation and text
- Simplify the code and relevant surrounding code. Remove unnecessary abstractions, redundant state, duplicated work and speculative generality. Prefer existing helpers and direct control flow when they express the same behaviour more clearly. Keep safeguards and meaningful regression coverage.
- Correct misleading information. Check comments, docstrings, error messages, examples, descriptions, notes and metadata against the actual behaviour and authoritative sources. Distinguish a published claim from a verified fact and a historical snapshot from current state. Correct factual errors without inventing missing information.
- Update documentation. For database repairs or persisted accessor
refreshes, check the migration documentation
and require a new numbered migration or an explicit no-migration rationale.
When a repair or newly discovered vault starts collecting prices late,
check whether it needs a historical price backfill.
Standalone repair scripts are legacy format: do not recommend creating or
invoking them, or rerunning a successful initial migration for a new change.
Check that runbooks and PR reminders use the production Compose command
and stamped image build in the migration guide. Provenance comes from the
image's git commit; no host Docker hash is required. The host launcher is
optional for Docker preflight and automatic image pinning.
Revise relevant
.claude/docsguidance when the work changes an agent workflow or reveals a reusable operational lesson. Update Sphinx narrative/API sources, examples and index references when their contracts or usage change. Keep public product copy focused on the product; put repository internals in technical documentation. Read the source files and check links and references; do not build Sphinx docs or edit generated_autosummary*files. - Check repository conformance. Audit touched code and tests against
AGENTS.md, especially argument and return type hints, Sphinx:param:and:return:documentation,dataclass(slots=True),#:member comments, logging, naive UTC datetimes and the repository's address/percentage types. Follow the prescribed Poetry, environment and focused-test commands. - Review docstrings for rationale and mechanism. Keep a concise summary, then explain why the function exists, how it achieves its purpose, and any meaningful constraints or failure behaviour. Document inputs and outputs; include canonical API links and DataFrame column/value expectations where relevant. Replace prose that merely translates the implementation into English. Avoid padding simple functions or repeating inherited docstrings.
- Check the writing style guide (required for user-facing text). Read
and follow the shared
description writing style guide
for added or changed user-facing website and data text: public
descriptions, notes and metadata. Check the audience, plain language, field
formatting, sources and dated claims; remove jargon, filler, hype and
repetition. Repository engineering documentation, such as READMEs, Sphinx
pages,
.claudedocs, docstrings, code comments,CHANGELOG.mdentries and pull request descriptions, is outside the guide's scope: check it against the Englis
Установить clean-up-for-pr в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл clean-up-for-pr?
Clean up a completed feature, bug fix or maintained content change before PR handoff. Simplify the patch, correct code and prose, apply the required writing style guide, update agent and Sphinx documentation, check AGENTS.md conformance, and obtain an independent cross-agent review.
Как установить скилл clean-up-for-pr?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл clean-up-for-pr запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
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