adk-build

Category router for implementing, refactoring, migrating, testing, or analyzing dependencies. Use when the next step is to change code (new feature, bug fix, refactor, framework migration, test authoring, or dependency hygiene). Picks one of adk-build-feature, adk-build-refactor, adk-build-migrate, adk-build-test, adk-build-deps.

ADK Build (Category Router)

Routes any "change the code" intent to the right implementation task. Activate one of the listed task skills below; do not implement directly from this router.

When to use this category

  • A feature must be added or extended.
  • A bug must be diagnosed and fixed.
  • Code structure must change without changing behavior (refactor).
  • A framework, library, or runtime must be upgraded or replaced (migrate).
  • Tests must be authored or expanded.
  • Dependencies must be inventoried, upgraded, or pruned.

When NOT to use this category

  • Direction or design is still open -> adk-plan
  • Reviewing changes that already exist -> adk-review
  • Writing docs or specs -> adk-docs / adk-plan-spec
  • Frontend / UI-specific implementation -> adk-frontend
  • Commit messages or PR text -> adk-publish-commit

Shared workflow

Every task in this category honors the same six steps. The task skills tailor the content of each step.

  1. Confirm intent - clarify task, scope, validation target, and constraints. Approval gate unless --auto.
  2. Scope - read only the relevant code; gather error context and recent git history if debugging.
  3. Plan - short, ordered, file-aware plan. Approval gate unless --auto or change is trivial single-file.
  4. Execute - apply the smallest correct change; stay inside scope; flag necessary out-of-scope work.
  5. Validate - run repo-native tests / lint / type-check; never claim success without fresh evidence.
  6. Report - changed files with one-line diffs; validation evidence; remaining risk; offer depth on request.

Task selection

Task skillUse whenDo NOT use when
adk-build-featureNew feature, bug fix, behavior enhancement, or systematic debuggingBehavior is unchanged but structure changes -> refactor
adk-build-refactorRestructure code, rename, extract, dedupe with no behavior changeBehavior changes - use feature
adk-build-migrateReplace a framework, runtime, library version, or build toolSingle-package upgrade with no API change - use deps
adk-build-testAuthor tests, raise coverage, or convert manual checks into automated testsImplementation is also changing - use feature with test alongside
adk-build-depsInventory, upgrade, deduplicate, audit, or remove dependenciesA framework migration - use migrate

Common chains

flowchart LR
    plan[adk-plan-roadmap] --> feature[adk-build-feature]
    feature --> test[adk-build-test]
    feature --> review[adk-review-local]
    refactor[adk-build-refactor] --> review
    migrate[adk-build-migrate] --> test
    deps[adk-build-deps] --> review
    review --> commit[adk-publish-commit]

Subagent dispatch

Build tasks dispatch focused subagents when work is large enough to benefit from parallelism. Each task skill defines its own dispatch matrix. Do not dispatch for trivial single-file edits.

Validation discipline

  • Run the smallest relevant repo-native check first (target test, lint on changed files, typecheck on touched module).
  • Never say "tests pass" or "bug fixed" without command output backing it.
  • If validation cannot run, say so explicitly with the reason.

Activation

Once you have picked a task, load adk-build-<task> and follow it. Each task skill is fully standalone - everything it needs is in its own folder.

Anti-patterns

  • Implementing inside this router. Always hand off to a task skill.
  • Mixing refactor with feature work in one change. Pick one task per pass.
  • Writing >100 lines without a validation run.
  • Claiming "fix" without reproducing the original failure first.

Clarifying questions (default-ask)

When running without --auto, the skill asks these questions in order, one at a time. Under --auto, the skill picks the safest option for each (see references/clarifying-questions.md) and reports the choices.

  1. Does behavior change (new feature, bug fix, enhancement) or is it pure restructure?How to pick: Behavior change → feature. Pure restructure → refactor.
  2. Is this a framework/library upgrade across the codebase?How to pick: Yes → migrate. No → feature or refactor.
  3. Is the work test-only?How to pick: Yes → test. No → other.
  4. Is the work dependency-only (upgrade/audit/prune deps)?How to pick: Yes → deps. No → other.

Default report: Routed task + why.

Detailed report (on request or --verbose): Lifecycle table showing where the work fits in the build category.

Artifact: build-routing-decision — Inline message.

Artifact path: (none)

Clarifying questions (default-ask)

When running without --auto, the skill asks these questions in order, one at a time. Under --auto, the skill picks the safest option for each (see references/clarifying-questions.md) and reports the choices.

  1. Does behavior change (new feature, bug fix, enhancement) or is it pure restructure?How to pick: Behavior change → feature. Pure restructure → refactor.
  2. Is this a framework/library upgrade across the codebase?How to pick: Yes → migrate. No → feature or refactor.
  3. Is the work test-only?How to pick: Yes → test. No → other.
  4. Is the work dependency-only (upgrade/audit/prune deps)?How to pick: Yes → deps. No → other.

Default vs detailed output

Default report: Routed task + why.

Detailed report (on request or --verbose): Lifecycle table showing where the work fits in the build category.

Artifact: build-routing-decision — Inline message.

Artifact path: (none)

<!-- adk:references:start -->

References shipped with this skill

These files live in references/ next to this SKILL.md. Read them when the skill activates; they are inlined here so the skill is fully self-contained (no cross-skill or shared sources).

FilePurpose
references/anti-patterns.mdThings to avoid when running this skill.
references/artifact-format.mdThe deliverable's format and where it lives (.temp/ contract).
references/clarifying-questions.mdThe default-ask questions for this skill, with how-to-pick rubrics.
references/constitution.mdNon-negotiable rules and working/communication discipline.
references/interaction-contract.mdDefault-ask, explained-options, --auto contract every skill must follow.
references/output-format.mdDefault vs detailed report shapes; severity labels; verbosity rules.
references/persona.mdThe agent persona that drives this skill.
<!-- adk:references:end -->