/work-items:onboard-adapter [provider-name]from work-items
Generates a consumer-owned adapter for unsupported work-item trackers by interviewing for provider shape, probing the live instance, writing the adapter and conformance binding, then verifying.
Ships in work-items. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Walk a consumer from "my tracker is not supported" to an adapter that lives in
their repo, passes the seam's conformance suite, and keeps working as the plugin evolves.
Adapters resolve consumer-local-first (CONTRACT.md "Adapter resolution"), so it needs no fork, no vendored
engine, and no upstream PR.
Not for: a provider the plugin already ships, bundled (github, local-markdown) or as a
seed (jira, gitea, linear). Bind those with /work-items:setup, which copies a seed into
the repo and also re-points a repo at a different provider. Not for fixing an existing adapter (ordinary implementation work).
Deterministic work is scripted; judgment is not
(/discipline:script-the-deterministic-work if enabled):
| Judgment, you, in this flow | Mechanical, scripts/generate-adapter.sh |
|---|---|
| Which verbs the provider can honestly support | Emitting the manifest and the scaffolds for them |
| What the provider's fields mean | The security skeleton, arg parsing, exit codes, envelopes |
| What a live instance actually returns | Refusing an incoherent spec; stamping the seam's contract version |
The handoff between them is one artifact: the adapter spec (reference/adapter-spec.md).
The interview fills it; the generator consumes it: reach a good spec, then run one command.
Lock the spec's fields before writing anything. Chain to /planning:interview, invoked via the
Skill tool (if installed), when the answers are not already obvious; otherwise ask directly. Ask in this
order, because later answers depend on earlier ones:
token-scheme header, or HTTP Basic with an account identity. Never ask for the
credential itself. Only for the name of the environment variable that will hold
it. If the user offers a token, stop and tell them not to paste it..atlassian.net) or self-hosted (there is not). This decides the default egress pin;
see "Security posture" below.owner/repo, a
project key, a workspace slug, and the anchored character allowlist those names may
use. That allowlist becomes a guard, so err toward strict.CONTRACT.md "Verbs" and "Lease protocol" with the
user's API docs open. A "we could fake it with comments" answer is a false plus a
note. See "Honest manifests".list-items may request. A guessed ceiling is worse than a
conservative one.Write the answers to a spec file. reference/adapter-spec.md is the field reference and
carries a worked example.
Some facts live only in the user's actual instance (the jira seed's done-state
category key and blocker link-type name vary per instance, so both are config keys with
defaults). For each field the normalizer will read, have the user run a read-only probe
against their instance and paste the response shape. Typical probes: fetch one item and
read its state/type/assignee/label field names; fetch one item that is blocked and read
how the blocking edge is represented; list items and read the pagination envelope.
Rules:
${CLAUDE_PLUGIN_ROOT}/reference/item-content-trust.md.deferrals array and give the adapter a config key defaulting to the documented value,
so the adapter is independent of the fact rather than wrong about it.If no live instance is reachable at all, that is a legitimate state: generate against the documented shapes, record every unobserved fact as a deferral, and say plainly in the handoff that live conformance has not been run. Never report a suite you did not run.
bash "${CLAUDE_PLUGIN_ROOT}/skills/onboard-adapter/scripts/generate-adapter.sh" \
--spec <spec.json> --dry-run
Read the dry-run file list back to the user, then re-run without --dry-run. Files land
in the consuming repo under tools/work-item-tracker/, the adapter beside its tests and
README, plus the conformance binding. Existing files are never overwritten without
--force; a regeneration reports what it kept.
The generator refuses an incoherent spec (a verb declared without the feature it needs, a ceiling on a capability declared absent, an unanchored scope pattern). Fix the spec; do not work around the refusal.
In this order, because each step's failure means something different:
bash tools/work-item-tracker/adapters/<p>/common.test.sh
real and passing from the moment of generation. A failure here means the skeleton
was edited, not that the provider mapping is incomplete.PROVIDER MAPPING block and exits 1 until it is written. Write a mocked-transport
test beside each (WIT_<P>_CURL is the injection point. Copy the shape from the
jira seed's *.test.sh under the plugin's tools/work-item-tracker/seeds/jira/) so
the verb is covered offline.run-conformance.sh --binding <p>, which drives the same abstract
suite over the adapter through the core CLI only. It needs a throwaway target;
the generated binding refuses to run without one named explicitly. Never point it at
a coordination instance, the suite creates, claims, and closes items.Report what actually ran. If conformance was not run against a live instance, say so and say why; the deferral belongs in the adapter README and in the work item, not in a hopeful summary.
The core routes on the capabilities manifest: it decides whether a verb is attempted at
all, and callers branch on its features and limits without re-probing. A verb the provider
cannot do gets false, and the core answers it with exit 6, a permanent degradation a caller
can route around.
Never fake a capability: a lease emulated with comments the provider does not arbitrate loses
races silently. Declare false and record why. Equally, never leave an unwritten scaffold
declared true. It exits 1 deliberately, not 6, so conformance cannot pass over a verb
that does nothing.
The skeleton is template-driven, not re-derived per provider. It is generated already
carrying the same guards the jira seed carries, and the generated
common.test.sh proves them:
argv.Authorization header cannot be replayed to another host.host_suffix key is offered
as the consumer's pin. State this to the user rather than implying the pin is there.Do not weaken these when filling in a mapping. If a provider genuinely cannot work within them, that is a finding to raise, not a guard to delete.
/work-items:setup to bind the generated adapter.
body field. It is schema_version, id, title, state, assignees, labels, type, blocked_by_count, blocked_by_wont_do_count, parent_id, url, created_at, milestone. A mapping that plans to carry spec text through the seam is designing against a
field that does not exist.blocked_by_count counts OPEN blockers, plus any closed as won't-do. Counting every
closed one is the bug that keeps an item off the frontier forever. GitHub's own
totalCount gets this wrong, which is why the bundled adapter counts nodes itself.
Reading a close reason is optional: when the provider records one, a blocker closed as
not planned or duplicate still blocks and counts in blocked_by_wont_do_count; when it
records none, closed means resolved and blocked_by_wont_do_count is 0
(CONTRACT.md "JSON output contract").<provider>:<owner>/<repo>#<n>. Exactly two path segments.
A scope like acme/webapp fills both; a bare project key needs the host in front of it.
A bare #123 is never persisted anywhere.list-items must paginate to the manifest's declared ceiling, never a client
default. A library that silently truncates makes the frontier lie about what is
available.WIT_SEAM_LIB_DIR; a verb run directly without it exits 3 naming that variable,
correct behavior, not a generation bug.list-items: false is coherent but consequential. list-frontier can then never
succeed, so no work-selection flow finds anything. Legitimate for a consume-only
adapter; say it out loud when it is chosen.| Reference | Load when |
|---|---|
${CLAUDE_PLUGIN_ROOT}/tools/work-item-tracker/CONTRACT.md | Step 1 question 5, judging which verbs the provider supports honestly, and step 4 while filling each mapping. |
reference/adapter-spec.md | Writing the spec file at the end of step 1, or reading it back in step 3. |
reference/live-exploration.md | Step 2, running the probes against the consumer's real instance. |
/work-items:setup | The adapter exists and verifies, and the repo still has to be bound to it. |
reference/adapter-spec.md (opens in a new tab)reference/live-exploration.md (opens in a new tab)scripts/generate-adapter.sh (opens in a new tab)scripts/generate-adapter.test.sh (opens in a new tab)scripts/templates/README.md.tmpl (opens in a new tab)scripts/templates/capabilities.sh.tmpl (opens in a new tab)scripts/templates/capabilities.test.sh.tmpl (opens in a new tab)scripts/templates/common.sh.tmpl (opens in a new tab)scripts/templates/common.test.sh.tmpl (opens in a new tab)scripts/templates/conformance-binding.sh.tmpl (opens in a new tab)scripts/templates/verb.sh.tmpl (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub melodic-software/claude-code-plugins --plugin work-items12 skills in this plugin
/attend-queueVariablesAttend the loop-lane human queue: drives escalated items to resolution and lists held pull requests, post-merge failures and untriaged intake beside them, handing each intake row to /work-items:triage, then works parked needs-human items one at a time. Answers escalations via interview, comments answers back, flips unblocked items autonomous-eligible. Never executes or merges. Use when: 'attend the queue', 'answer escalations', 'work the escalation queue', 'what needs my attention across the lanes', 'HITL queue', 'clear the human queue'. Autonomous drain: /work-items:work-loop./decomposeVariablesTurn a plan, spec, or PRD into independently-grabbable vertical-slice work items, classify each AFK (agent-ready) or HITL (needs-human), and publish them blockers-first with dependency edges, optionally under a spec container. Also re-slices (reroutes) when the spec changes mid-flight. Use when the user wants a plan, PRD, or brief broken into tickets or work items, published to the tracker, or re-decomposed. Single-item CRUD is /work-items:track; executing one is /work-items:work.Other plugins' skills for the same job