Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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

  1. 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.
  2. 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.
  3. 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/docs guidance 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.
  4. 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.
  5. 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.
  6. 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, .claude docs, docstrings, code comments, CHANGELOG.md entries and pull request descriptions, is outside the guide's scope: check it against the Englis
Полный SKILL.md на GitHub

Установить 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), без исполняемых скриптов.

Похожие скиллы

Сравнить clean-up-for-pr с