Skip to content
Agent Orchestration
Skill

/add-component

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

From plugin
task-orchestrator
21430 skills5 agents2 commands

Claude Code

$ npx -y skills add jpicklyk/task-orchestrator --skill add-component --agent claude-code

SKILL.md

add-component.SKILL.md
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.

Adding New Components

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.

New MCP Tool, Select or Op

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.

Tool Documentation Surfaces - Single-Source Policy

| 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

Read more
@jpicklyk
Ships withtask-orchestrator

Server-enforced workflow discipline for AI agents. Prompt-based frameworks hope the LLM follows instructions. This one blocks the call if it doesn't.

21430 skills5 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
214
Star history of jpicklyk/task-orchestrator on GitHub, a chart by star-history.com

Other skills on task-orchestrator.

implement

implement

End-to-end workflow for taking MCP work items from backlog to merged PR. Handles git branching, schema-driven planning,…

perf-review

perf-review

Performance impact assessment for items with the needs-perf-review trait. Evaluates hot paths, query patterns, and measurement…

More skills from other plugins.

1password

1password

Set up and use 1Password CLI for sign-in, desktop integration, and reading or injecting secrets.

openclaw8d395k
@steipete@steipeteInstall Skill
jira-tickets

jira-tickets

Read and update Jira tickets through Orca's saved Jira connections. Use when a task comes from Jira or the user asks for Jira…

orca6d128k
@stablyai@stablyaiInstall Skill
agentmail

agentmail

Use your assigned AgentMail inbox to read email tasks, explicitly send or reply, and check delivery. Provided automatically by…

paperclip7d114k
@paperclipai@paperclipaiInstall Skill
adr-create

adr-create

Create a new Architecture Decision Record with sequential numbering and AgentDB registration

@ruvnet@ruvnetInstall Skill

Questions about add-component.

Which coding agents can use add-component?
add-component installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.