Skip to content
Back to skills

Polishing Branch

ASecurity

Use when a tk branch is finished and should be brought to review quality end to end, or when asked to "polish", "finish", or "get this ready" with no narrower instruction. Runs the conformance and refactoring skills in alternation over Rust code, docs, skills, and help text.

  • 72 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added November 29, 2026
businessrustrefactoringgit

Security analysis

A100/100

Scanned November 29, 2026

npx -y skills add tkhq/tk --skill polishing-branch --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Polishing Branch?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Polishing Branch
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/tkhq-polishing-branch/badge)](https://www.skillsdirectory.com/skills/tkhq-polishing-branch)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: polishing-branch
description: Use when a tk branch is finished and should be brought to review quality end to end, or when asked to "polish", "finish", or "get this ready" with no narrower instruction. Runs the conformance and refactoring skills in alternation over Rust code, docs, skills, and help text.
---

# Polishing a Branch

## Overview

Alternate `conforming-to-agents-md` and `refactoring-iteratively` until one full
cycle of both reports no changes. Both cover the branch's Rust code, `docs/`,
`skills/`, `README.md`, and help text; a branch that changes only prose still
runs the full loop. Refactors can introduce rule violations, and
conformance fixes can expose refactors, so neither skill alone reaches a fixed
point.

## The loop

Track cycles in `<scratchpad>/polish/cycles.md`. Every cycle:

1. Invoke `conforming-to-agents-md` with the Skill tool and follow it to its
   final report. Record its `Changes applied: N` line.
2. Invoke `refactoring-iteratively` with the Skill tool, no argument, and follow
   it to its final report. Record its `Changes applied: N` line.
3. If both lines read `Changes applied: 0`, stop. Otherwise start the next cycle.
4. If cycle 3 still applied changes, run cycle 4. After cycle 4, stop regardless
   and report which skill was still making changes.

Each invocation runs the full skill, including fresh reviewer sweeps. Do not
skip a skill because the previous cycle's run of it was clean; that is what the
stop condition in step 3 checks.

## Report

Cycles run, a table of changes applied per skill per cycle, the final test
result from the last skill run including the skills and docs checks, and a `git diff --stat origin/main` of the tree.
Nothing is committed; say so.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in business →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.