ah-finalize-code

Installation
SKILL.md

Finalize Code

Orchestrate the full pre-PR finalization workflow for the current branch. Specialized subagents handle each aspect -- simplification, testing, documentation, specs, code review -- with a commit after every step that produces changes. The workflow ends by creating a pull request.

Configuration

  • Subagent defaults: Opus with ultrathink effort for all subagents except committer (Sonnet).
  • Committer protocol: After each step that produces changes, spawn subagent committer (Sonnet) to run /commit. If a step was skipped or produced no file changes, skip the commit too. This applies to every step below and won't be repeated in each section.
  • Fresh diff rule: Each subagent that analyzes code must compute git diff "${MERGE_BASE}" before starting, so it always sees the latest state including commits from previous steps.

Skip Conditions

Steps auto-skip when their input isn't relevant. The orchestrator evaluates these after computing the diff in step 0 and marks auto-skipped steps in the progress file.

Step Skips when
4a JSDoc Updater Diff contains no .ts, .tsx, .js, or .jsx files
4b Tests Docs Updater No docs/tests/ directory exists in the repo
5a API Docs Updater No docs:generate script in package.json, or diff touches only internal/private code
Related skills

More from arinhubcom/arinhub-dev-skills

Installs
1
First Seen
Mar 27, 2026