Index of every page on this site: llms.txt
All skills
tkhq avatar

/polishing-branch

@6fd5c16
by Turnkeytkhq/tk72 stars
3
Run it yourself

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.

  • 1 file
  • 1.7 KB
  • Updated last month
  • GitHub
Use this Skill: https://skilld.dev/gh/tkhq/tk/polishing-branch

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈73 tokens for metadata: the name and description. ≈355 when used: this file.

Description uses 3.7% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈294 characters, or 3.7%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

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.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at 6fd5c16. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 4 days ago.

Activeupdated last month

README badge

README badge for tkhq/tk/polishing-branch