ah-finalize-code
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 |
More from arinhubcom/arinhub-dev-skills
ah-implement-tasks
Use this skill to implement tasks from tasks.md when using the "ah" prefix. Use when asked to "ah implement tasks". Validates prerequisites, detects the project's tech stack to load relevant best-practice context (React composition patterns, performance guidelines, component building), gathers live library documentation via context7, fetches dependency source via npx opensrc, then runs speckit.implement as a subagent with TDD, progress tracking, and commit-after-pass. Implementer subagents can search GitHub for real-world patterns via grep MCP, look up docs on-the-fly via context7, and visually verify UI work via chrome-devtools. Supports resume from interrupted runs, monorepo scoping, and automatic retry on incomplete passes. Also use when the user mentions implementing a feature plan, executing a task list, or starting the coding phase after task creation with the "ah" prefix.
3ah-create-tasks
Use this skill to create tasks from a PRD and ADR using the "ah" prefix. Use when asked to "ah create tasks". This skill runs the full Spec Kit pipeline -- specify, clarify, plan, research, complexity check, checklist, and task generation -- with consistency analysis passes, committing after each major step.
2ah-create-pr
Use this skill to create or update a GitHub Pull Request when using the "ah" prefix. Use when asked to "ah create pr", "ah create pull request", or "ah pr". Analyzes the current branch, runs quality checks, generates a well-structured PR with summary, changes, tests, and linked issues. If an open PR already exists for the branch, updates it via `gh pr edit`; otherwise creates a new one via `gh pr create`.
1ah-fix-dom-flash
Use this skill to detect and debug DOM flash/flicker bugs using chrome-devtools CLI when using the 'ah' prefix. Use when asked to 'ah fix dom flash'. Also use when elements briefly appear in wrong positions, visual artifacts flash on screen after interactions (drag-drop, transitions, animations), timing races between framework DOM cleanup and React/Vue re-renders cause ghost elements, opacity/transform jump flashes on mount/unmount, portal content outliving its positioning context, or any single-frame visual glitch after a state change.
1ah-fix-ui-bug
Use this skill to debug and fix UI bugs in web apps when using the 'ah' prefix. Use when asked to 'ah fix ui bug'. Also use when elements are at wrong positions, animations land at wrong spots, layout shifts occur, elements overflow containers, buttons/chips/overlays are mispositioned, z-index layering is wrong, flex/grid alignment is off, text is truncated or overflowing, hover states get stuck, scroll jumps occur, or persistent visual regressions appear. Uses chrome-devtools CLI to navigate pages, inspect elements, inject diagnostic scripts, take screenshots, and analyze DOM mutations. Works with Storybook, localhost dev servers, or any browser page. For single-frame flash/flicker timing races, prefer ah-fix-dom-flash instead.
1ah-review-code
Use this skill to review code when using the "ah" prefix. Use when asked to "ah review code" or "ah review code 123". Review code for correctness, maintainability, and adherence to project standards. Supports local branch changes and remote Pull Requests (by ID or URL). Also use when the user says "ah review", "ah code review", "ah review my changes", "ah review this PR", or mentions reviewing code with the "ah" prefix, even if they don't say "code" explicitly.
1