Integrate Harness
Unsigned, install at your own risk
UnverifiedThis skill has no cryptographic signature attached. We can't verify the contents match what the publisher intended.
Install this skill
No account required. Pick your tool, then copy.
Run in your terminal. It detects your AI tool.
npx @skills-hub-ai/cli install babysitter-integrate-harnessWhat this does: Use when adding a new agent harness (CLI-based coding agent) adapter to adapters. Covers capability audit, adapter scaffold, session parsing, auth detection, hooks/plugins wiring, tests, and docs.
Manual setup by platform
Claude Code
~/.claude/skills/babysitter-integrate-harness/SKILL.md
Instructions
integrate-harness
Goal: produce a production-quality XAdapter extends BaseAgentAdapter with full test coverage and documentation, matching the level of the existing 11 adapters (claude, codex, cursor, gemini, opencode, openclaw, copilot, hermes, pi, omp, adapters-remote).
Checklist
- Capability audit — read the harness's CLI docs. Fill in every
AgentCapabilitiesfield. Unknown? Set conservatively (false) and note in PR. - Create
packages/adapters/src/<name>-adapter.tsextendingBaseAgentAdapter. Required:agent,displayName,cliCommand,minVersion,hostEnvSignals,capabilities,models[],defaultModelId,configSchema,buildSpawnArgs,parseEvent,detectAuth,getAuthGuidance,sessionDir,parseSessionFile,listSessionFiles,readConfig,writeConfig. - Session parsing — if the harness stores JSONL sessions, delegate to
parseJsonlSessionFile; otherwise write a custom parser and unit-test each event shape. - Hooks — if the harness supports native hooks, override
writeNativeHookand mirror intoHookConfigManager. If not, rely on the base class's virtual hooks. - Plugins — if it supports MCP servers under
mcpServersin its config JSON, flipsupportsPlugins: true, addpluginFormats: ['mcp-server'], and delegate tomcp-plugins.ts(see cursor/gemini/opencode/openclaw for the pattern). - Register — add to
packages/adapters/src/index.tsexports and to the default registry inpackages/core/src/client.ts(if applicable). - Tests — in
packages/adapters/tests/<name>-adapter.test.ts:- capability shape
buildSpawnArgsfor a few representativeRunOptionsparseEventfor each JSONL type the harness emitsdetectAuthfor authenticated + unauthenticated states- session file parsing from a real fixture (redacted)
- If plugins: add the adapter to
mcp-plugins-parity.test.ts.
- CLI audit test — ensure
packages/cli/tests/commands-audit.test.tspasses (it exercises every adapter via the built CLI). - File-size limit — each source file must stay under 400 effective lines (
local/max-file-lines). Split helpers into sibling modules if you're close. - Docs — add a row to the README capabilities matrix and a paragraph in
docs/02-agents/<name>.md. - Changeset —
npm run changeset, pickminor(new adapter), summarize.
Verification
npm run typecheck
npm run lint
npm test
npx vitest run packages/adapters/tests/<name>-adapter.test.ts
All existing tests must continue to pass — no regressions in commands-audit.
Common pitfalls
- Forgetting to add the adapter to the default registry →
commands-audit.test.tswon't exercise it. - JSONL parsers that assume a single event per line — some harnesses emit arrays.
- Auth detection that reads env vars synchronously at construction time instead of
detectAuth()— breaks testability. buildSpawnArgsreturning the string"undefined"for missing options — always gate withif (options.X != null).- Hook writers that overwrite rather than merge — use
appendJsonHookorappendYamlHook.
Security
Reviews (0)
Related skills
Browse all →More from babysitter
View source →More Build skills
Browse category →Frequently asked questions about integrate-harness
What does the integrate-harness skill do?
Use when adding a new agent harness (CLI-based coding agent) adapter to adapters. Covers capability audit, adapter scaffold, session parsing, auth detection, hooks/plugins wiring, tests, and docs. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.
How do I install the integrate-harness skill?
Run `npx @skills-hub-ai/cli install babysitter-integrate-harness` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/babysitter-integrate-harness/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.
Which AI tools does integrate-harness work with?
integrate-harness runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.
Is the integrate-harness skill free?
Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.
How do I use integrate-harness after installing it?
In Claude Code, type `/babysitter-integrate-harness` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.
Can I share the integrate-harness skill with my team?
Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.