/flow:multi-harness-pluginsfrom flow
Creates, structures, and validates multi-harness plugins and project-local .agents/ skills, subagents, hooks, rules, and MCP configs across Antigravity, Claude Code, Codex CLI, Cursor, OpenCode, and VS Code.
Ships in flow. 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.
.agents/ ArchitectureBuild and maintain skills, subagents, hooks, rules, and MCP configs across Google Antigravity, Claude Code, Codex CLI, Cursor, OpenCode V2, and VS Code / Copilot. Applies to both project-local .agents/ folders and extension-wide plugins.
.agents/ & Repo-Local Configs)How each harness discovers project-local instructions, skills, subagents, hooks, and MCP servers inside a repository:
| Surface | Google Antigravity (agy) | Claude Code (claude) | Codex CLI (codex) | Cursor (cursor) | OpenCode V2 (opencode) | VS Code / Copilot (code) |
|---|---|---|---|---|---|---|
| Instructions | AGENTS.md, GEMINI.md, .agents/rules/*.md | AGENTS.md (native; suppressed if CLAUDE.md exists without @AGENTS.md) | AGENTS.md (AGENTS.override.md wins; trusted projects) | AGENTS.md, .cursor/rules/*.mdc or *.md | AGENTS.md (walked from cwd to root; no CLAUDE.md fallback) | AGENTS.md (chat.useAgentsMdFile: true) |
| Project Skills | .agents/skills/<name>/SKILL.md | .claude/skills/<name>/SKILL.md (or symlinked to .agents/skills/) | .agents/skills/<name>/SKILL.md | .agents/skills/, .cursor/skills/, .claude/skills/ | .agents/skills/, .opencode/skills/, .claude/skills/ | .agents/skills/, .github/skills/ |
| Project Subagents | .agents/agents/<name>.md (agents/*/agent.md) | .claude/agents/<name>.md | .codex/agents/<name>.toml (recursive in trusted projects) | .cursor/agents/*.md, .claude/agents/*.md, .codex/agents/ | .opencode/agents/*.md or ctx.agent.transform in .opencode/plugins/*.js | .github/agents/*.agent.md, .claude/agents/*.md |
| Project Hooks | .agents/hooks.json (flat lifecycle array; nested tool matcher) | .claude/settings.json / .claude/settings.local.json (nested matchers) | .codex/hooks.json or [hooks] in .codex/config.toml (trusted projects) | .cursor/hooks.json (version: 1, camelCase events) | .opencode/plugins/*.{ts,js} (ctx.session.hook("context", ...)) | .claude/settings.json, .github/hooks/*.json |
| Project MCP Config | .agents/mcp_config.json (or ~/.gemini/antigravity/mcp_config.json) | .mcp.json (mcpServers at repo root) | .mcp.json or [mcp_servers.<name>] in .codex/config.toml | .cursor/mcp.json (mcpServers; ${workspaceFolder}) | opencode.json (mcp.servers.<name>) or ctx.mcp.transform | .vscode/mcp.json (servers object) |
.agents/ inside a repository): Used by /flow:setup, /flow:learn, and repository maintainers to store .agents/bundles/ knowledge, .agents/skills/<domain>/ skills, .agents/agents/<name>.md subagents, .codex/agents/<name>.toml agents, and MCP configs.SKILL.md concise (<= 200 lines and strictly < 24,000 bytes so Google Antigravity never truncates the bottom of the file).description with Use when ... (<= 500 characters), include an explicit negative trigger (Don't use for ...) to avoid co-trigger overlap, and omit executable paths, flag syntax, or vague prefixes (Auto-activate, Comprehensive, Produces, Expert knowledge).references/*.md files linked from SKILL.md.agents/<name>.md or .agents/agents/<name>.md) with name, description, model: inherit, mainAgent: false, subagent: true, commandExecutionPolicy, skills: [...], and readonly: true + YAML list disallowedTools for read-only reviewers.# ) section headings (# Role & Identity, # Responsibilities, # Verification & Constraints, # Output Contract) with ### subsections so Antigravity splits sections into XML system-prompt blocks..codex/agents/<name>.toml for Codex CLI.python3, node, or jq in SessionStart shell hooks (agy and codex ship as static native binaries).sh + awk (hooks/<name>.sh) with native PowerShell (hooks/<name>.ps1, pwsh / Windows PowerShell 5.1+) and "commandWindows" for Windows hosts, plus .opencode/plugins/<name>.js in native node:fs / node:path./flow:validate to verify SKILL.md byte budgets, subagent frontmatter and H1 headings, hook schemas, and relative links.plugins/<name>/ mirrors, plugin-root AGENTS.md or CLAUDE.md files, .github/agents/*.agent.md copies, .opencode/agents/*.md copies, or commands/ wrappers. Keep repo contributor context in CONTRIBUTING.md and .agents/rules/*.md so plugin validation passes.24 KB SKILL.md Cap: Never exceed 24,000 bytes in any SKILL.md file.tools and disallowedTools as YAML lists (- Edit), never comma-separated strings (tools: Read, Grep fails YAML unmarshaling in Antigravity and silently drops the subagent).60 characters (^[a-zA-Z0-9_-]+$) so Cursor (59-char cap) and Antigravity (64-char cap on mcp_<plugin>_<server>_<tool>) never drop or truncate tools..agents/, & MCP Limits — How each harness loads .agents/ folders, local MCP configs (.agents/mcp_config.json, .mcp.json, .cursor/mcp.json, .vscode/mcp.json, opencode.json), H1 subagent sections, and Antigravity's Python run_workflow API.setup(ctx).plugin.json, .claude-plugin/, .codex-plugin/, .cursor-plugin/, .agents/plugins/marketplace.json, package.json, and OpenCode V2.SKILL.md has name and description (Use when ..., <= 500 chars) and is < 24,000 bytes.agents/*.md or .agents/agents/*.md includes model: inherit, mainAgent: false, subagent: true, H1 (# ) section headings, and YAML list disallowedTools on read-only agents.Invoke this skill when scaffolding project-local skills, subagents, hooks, or MCP configs under .agents/ during /flow:setup or /flow:learn, or when authoring an extension-wide multi-harness plugin.
---
name: my-domain-skill
description: "Use when working with <domain> configs or troubleshooting <symptom>. Don't use for unrelated tasks (use <other-skill>)."
---
Inspect active harness detection and local bundle setup after edits:
flow harness detect --json
flow setup audit --json
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
multi-harness, project-local, agent-config, mcp-config, skills, subagents
npx claudepluginhub cofin/flow --plugin flow11 skills in this plugin
/debloatUse when reviewing or simplifying code, tests, prose, or repository checks through behavior-preserving cuts while keeping typing, performance, and conventions intact. Don't use for adding new features, planning specs (use flow-planning), or running full workflow closeouts (use flow-completion)./flowUse when a repository has .agents, or when routing Flow lifecycle tasks (setup, prd, spec, plan, revise, research, implement, status, dispatch, delegate, coordinate, learn, refresh, sync, docs, pr, review, simplify, finish, archive, cleanup, revert, validate, studio). Don't use for direct coding without specs or standalone plugin authoring (use multi-harness-plugins)./flow-completionUse when running independent code, spec, or subtraction-only simplify reviews, finishing and syncing completed specs, archiving into knowledge bundles, cleaning up, reverting, or validating Flow bundles. Don't use for planning new specs (use flow-planning) or implementing open tasks (use flow-execution)./flow-dispatchUse when choosing between inline work, subagents, packaged workflows, or bounded worker swarms, routing models and task briefs, dispatching work across CLI harnesses, or coordinating separate workspace conversations. Don't use for planning specs (use flow-planning), writing code (use flow-execution), or reviews (use flow-completion)./flow-docsUse when writing or auditing technical documentation, READMEs, user guides, design docs, agent instructions, pull requests, commit messages, or changelogs. Don't use for planning implementation specs (use flow-planning) or syncing task state against Git (use flow-learn)./flow-executionUse when implementing an approved Flow chapter's task worksheets or reporting live spec and branch status. Don't use for drafting or revising specs (use flow-planning), initializing bundles (use flow-setup), or final review and closeout (use flow-completion).Other plugins' skills for the same job