api-compat-review
Compatibility assessment for items with the needs-api-compat-review trait. Evaluates the tool surface (served over both MCP and…
Checklists for adding a new MCP tool, select or op, a new Flyway database migration, or a new Gradle dependency to the Task Orchestrator server, including the tool-documentation single-source policy (@Doc on request-class fields vs the tool and op prose vs the generated
Claude Code
$ npx -y skills add jpicklyk/task-orchestrator --skill add-component --agent claude-code
Codex
$ npx skills add jpicklyk/task-orchestrator --skill add-component -a codex -y
Cursor
$ npx skills add jpicklyk/task-orchestrator --skill add-component -a cursor -y
Gemini CLI
$ npx skills add jpicklyk/task-orchestrator --skill add-component -a gemini-cli -y
GitHub Copilot
$ npx skills add jpicklyk/task-orchestrator --skill add-component -a github-copilot -y
OpenCode
$ npx skills add jpicklyk/task-orchestrator --skill add-component -a opencode -y
Windsurf
$ npx skills add jpicklyk/task-orchestrator --skill add-component -a windsurf -y
name: add-component description: Checklists for adding a new MCP tool, select or op, a new Flyway database migration, or a new Gradle dependency to the Task Orchestrator server, including the tool-documentation single-source policy (@Doc on request-class fields vs the tool and op prose vs the generated api-reference.md blocks). Use when adding or changing an MCP tool or its parameters, creating a migration, or adding a dependency to the version catalog.
Moved from the root `CLAUDE.md` so it loads only when needed. The single-source documentation policy summary stays in `CLAUDE.md`; this file is the full procedure.
A tool is a `ToolSpec` (`SelectToolSpec` for reads, `OpsToolSpec` for writes) holding one `SelectSpec` / `OpSpec` per select or op. `ToolRegistry` (`interfaces/shared/tools/ToolRegistry.kt`) validates the whole set at construction and throws naming the tool, select/op and field.
1. **Request class.** A `@Serializable` class beside its tool's siblings: `current/src/main/kotlin/.../application/api/<area>/` (advance, docs, notes, runs; for example `NotesListRequest`), or the top package of a slice that has moved (for example `dependency/DepsRequests.kt`), `application/report/ReportRequests.kt`, or in the op file itself for `items_*` and `config` (for example `interfaces/shared/tools/items/CreateItemOp.kt`). Every field carries `@Doc("...")`; a field is optional exactly when it has a default; no polymorphic, sealed or recursive member; no reserved field (`actor`, `describe`, `select` for a select; `actor`, `op`, `idempotencyKey` for an op). The same class decodes the call strictly (an unknown member is `unknown_parameter`, a bad value `invalid_request`) and generates its JSON Schema. 2. **Select or op file.** One file per select/op under `interfaces/shared/tools/<area>/` (`interfaces/mcp/tools/<area>/` for `notes_*` and `advance`, which predate the shared folder; a slice that has moved keeps its requests in `<slice>/` and its selects and ops in `<slice>/internal/wire/`, contributed to the registry through `<Slice>Tools`, for example `DependencyTools`). A select is `SelectSpec.Single`, `SelectSpec.Paged` or `SelectSpec.PagedWith`; an op is `OpSpec`. Declare `name`, `doc`, `services` (the slice's tool-services holder, for example `DependencyToolServices::class`), `profiles` (`knowledge()`, `orchestration()` or `director()` members combined; an empty set means REST-only, visible to no MCP profile), `capability` (an op has no default: a new write op must never be silently read-only; a select defaults to `READ`), `errors` (codes beyond the common ones), and the handler or `execute`. Handlers receive that holder as `env` and a `CallContext`; a holder is built from the one `ToolExecutionContext` in `ToolServiceRegistry`, so a service a holder lacks is added there and on the holder; scope checks go through `ScopeGuard`, ids through the shared scope-aware resolver. 3. **Register.** Add the select/op to its tool (for example `DependencyTools.read()`); a new tool is also added to `buildToolSpecs()` in `ToolRegistry.kt`. That is the only registration: MCP, `POST /api/v1/ops/{tool}`, `describe: true`, the goldens and every guard read the same registry. 4. **Regenerate and commit.** `./gradlew :current:regenerateToolGoldens` rewrites the per-tool schema goldens (`current/src/test/resources/golden/tools/`); `./gradlew :current:regenerateApiReference` rewrites the generated blocks of `current/docs/api-reference.md`. For a new tool, first add its prose section and an empty marker pair `<!-- generated:tool NAME -->` / `<!-- /generated:tool NAME -->` to `api-reference.md` (the regenerator refuses a missing pair). Never edit a golden or a generated block by hand. Then run `node claude-plugins/task-orchestrator/scripts/gen-call-shapes.mjs` and commit its output: it regenerates the plugin's call shapes and tool-name lists from the goldens and the API reference, and CI fails on a stale copy. 5. **Tests.** Add a happy-path and a scope-forbidden parity scenario for each new select/op in `current/src/test/kotlin/.../parity/` (`ParityCoverageGuardTest` fails without both), plus focused tests under `current/src/test/kotlin/.../interfaces/` mirroring the source layout. A new `ErrorCode` also needs its `ErrorDetailDocs` entry when it carries a detail. 6. **Budgets.** `ToolSurfaceGuardsTest` measures the compact `tools/list` entry of every tool in every profile against the ceilings in `ToolSurfaceChecks`, and requires a non-blank description on every property and the describe hint in every tool description. Raising a ceiling needs a recorded deviation, not a quiet edit.
| Surface | Location | Audience | |---------|----------|----------| | `@Doc` on request-class fields | `application/api/<area>/`, `application/report/ReportRequests.kt`, or the `items_*`/`config` op file | Everything: decoding, the JSON Schema, `describe: true`, the goldens and the generated tables of `api-reference.md` | | Tool `description`, select/op `doc` | The tool and select/op files | LLMs, via `tools/list` and `describe` | | API reference prose | `current/docs/api-reference.md` | Humans: behavior, semantics, examples. The field tables and the error catalog between the `<!-- generated:... -->` markers are generated |
**Single source of truth per parameter:** each parameter is documented ONCE, in its own `@Doc`. The tool `description` and the select/op `doc` are reserved for what a flat schema cannot express: operation/select selection, trigger effects, gate semantics, and mutual-exclusion/XOR constraints across fields. This keeps the `tools/list` payload within its budgets.
**CI guards:** `ToolSurfaceGuardsTest` (documentation and budgets), `ToolSchemaGoldenTest` (the goldens match the registry in both directions, and name `regenerateToolGoldens` on a mismatch) and `ApiReferenceFreshnessTest` (every tool has one ge
Server-enforced workflow discipline for AI agents. Prompt-based frameworks hope the LLM follows instructions. This one blocks the call if it doesn't.
Compatibility assessment for items with the needs-api-compat-review trait. Evaluates the tool surface (served over both MCP and…
End-to-end workflow for taking MCP work items from backlog to merged PR. Handles git branching, schema-driven planning,…
SQLite migration assessment for items with the needs-migration-review trait. Evaluates schema changes, table recreation patterns,…
Performance impact assessment for items with the needs-perf-review trait. Evaluates hot paths, query patterns, and measurement…
Assessment of plugin skill and hook changes needed after MCP or config changes. Evaluates skill references, hook context,…
End-to-end release automation — reads commits since last tag, infers semver bump, drafts changelog, creates release PR, merges…
Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…
Create a new Architecture Decision Record with sequential numbering and AgentDB registration