en un clic
create-plugin
Scaffold a new Claude Code plugin with proper directory structure, plugin.json, skills, commands, and agents
Menu
Scaffold a new Claude Code plugin with proper directory structure, plugin.json, skills, commands, and agents
Basé sur la classification professionnelle SOC
One-command drift detection. Composes audit-list + oia-audit + audit-trend into a single primitive — finds the most recent audit in `metaharness-audit` namespace, runs a fresh audit against the current repo, diffs them via ADR-152 §3.1 similarity, and alerts when structural distance crosses `--threshold`. Iter 53 of ADR-150 deep integration.
ADR-152 — weighted similarity between two harness fingerprints (genome + score JSON). Returns overall score in [0,1] plus per-component breakdown (cosine over 9 numerics, categorical agreement over 4 enums, jaccard over agent_topology). Unblocks ADR-151 §3.2 Recommender, §3.3 Drift Detection, §3.5 Plugin Compat. Pure-TS, no `@metaharness/*` dep — preserves ADR-150's four architectural constraints.
Composite Phase-2 audit worker (ADR-150). Bundles harness oia-manifest + threat-model + mcp-scan into one timestamped audit record stored in the `metaharness-audit` memory namespace. Designed for cron-scheduled drift detection.
7-section repo readiness report from `metaharness genome <path>`. Returns repo_type / agent_topology / risk_score / mcp_surface / test_confidence / publish_readiness. Pure-read; degrades gracefully (ADR-150).
Static security scan of a harness's declared MCP surface via `harness mcp-scan <path>`. Reads `.mcp/servers.json` + `.harness/claims.json`. Pure-read, no dispatch. Exits 1 on findings at or above `--fail-on` severity.
Scaffold a custom AI agent harness via `metaharness new <name> --template <id> --host <id>`. Defaults to DRY-RUN (no writes) unless --confirm is passed. Refuses to write to the calling repo root or anywhere inside it. Honors ADR-150 architectural constraint + ruflo's "destructive-action confirmation" pattern.
| name | create-plugin |
| description | Scaffold a new Claude Code plugin with proper directory structure, plugin.json, skills, commands, and agents |
| argument-hint | <plugin-name> |
| allowed-tools | mcp__claude-flow__transfer_plugin-info mcp__claude-flow__transfer_plugin-search mcp__claude-flow__transfer_store-search Bash Read Write Edit |
Scaffold a new Claude Code plugin from scratch.
When you want to create a new plugin that extends Claude Code with skills, commands, and agents. This generates the correct directory structure and wires up MCP tools.
mcp__claude-flow__transfer_plugin-search to ensure the name isn't takenplugins/<name>/
├── .claude-plugin/
│ └── plugin.json
├── skills/
│ └── <skill-name>/
│ └── SKILL.md
├── commands/
│ └── <command-name>.md
├── agents/
│ └── <agent-name>.md
├── docs/
│ └── adrs/
│ └── 0001-<name>-contract.md # Plugin-level ADR (Proposed)
├── scripts/
│ └── smoke.sh # Structural contract (10+ checks)
└── README.md # Compatibility + Namespace coordination + Verification + ADR sections
skills, commands, or agents arrays — Claude Code auto-discovers these from directory structure)---
name: skill-name
description: What this skill does
allowed-tools: mcp__claude-flow__tool1 mcp__claude-flow__tool2 Bash
---
model: sonnet@claude-flow/cli v3.6 major+minor<plugin-stem>-<intent> namespace; defer to ruflo-agentdb ADR-0001 §"Namespace convention"bash plugins/<name>/scripts/smoke.shdocs/adrs/0001-<name>-contract.md documenting: pinning, namespace coordination, MCP-tool surface count if applicable, smoke contract scope. Status: Proposed.Proposed; no wildcard tools in skills.Several plugins shipped with subtle MCP bugs the loop has been finding. Don't replicate them:
embeddings_embed does not exist. Real tool is embeddings_generate. Don't reference embeddings_embed in any allowed-tools line.agentdb_hierarchical-* does NOT route by namespace. It routes by tier (working|episodic|semantic). Pass tier, not namespace. For namespaced reads/writes, use memory_* instead.agentdb_pattern-* does NOT route by namespace. It routes through ReasoningBank. Don't pass a namespace arg — fallback writes to the reserved pattern namespace via memory-store-fallback.pattern (singular) and patterns (plural) are different namespaces. ReasoningBank fallback writes to pattern; hooks_pretrain writes to patterns. Don't conflate them.Required fields:
name — plugin identifier (kebab-case)description — what the plugin doesversion — semverRecommended fields:
author — { "name": "...", "url": "..." }homepage, license, keywordsOptional fields:
graph_adapter — ADR-130 graph intelligence contract (commented out by default in generated output):
// "graph_adapter": {
// "edgeRelations": ["my-relation-type"],
// "nodeTypes": ["entity"],
// "autoRegister": true
// }
When autoRegister: true, the plugin's edges are automatically included in graph_edges writes
by the core graph layer. Declare edgeRelations — the relation types this plugin produces.Do NOT include skills, commands, or agents arrays in plugin.json — these are auto-discovered from the directory structure by Claude Code and will cause validation errors if present.
Browse available tools: mcp__claude-flow__transfer_plugin-info
Common tool categories:
memory_* — storage, search, retrievalagentdb_* — 15 controller-bridge tools (do NOT pass namespace arg — they route by tier or ReasoningBank); call agentdb_controllers at runtime for the canonical listneural_* — neural training and predictionhooks_* — lifecycle hooks and intelligencebrowser_* — browser automationworkflow_* — workflow managementaidefence_* — safety scanningembeddings_* — 10 vector-embedding tools (use embeddings_generate, NOT embeddings_embed which does not exist)