# Create Plugin > Scaffolds un plugin nuevo de Claude Code con la estructura de directorios correcta, plugin.json, skills, commands y agents. Fuente: https://skillsagentes.com/skills/ruvnet/ruflo/create-plugin Markdown: https://skillsagentes.com/skills/ruvnet/ruflo/create-plugin.md Repositorio: https://github.com/ruvnet/ruflo Autor: ruvnet Licencia: MIT Actualizado: el mes pasado Coste de contexto: 27 tok instalada, 1.4k tok al activarse, 1.4k tok con todos los archivos del bundle Bundle: 1 archivo, 5 KB Permisos que pide: mcp__plugin_ruflo-core_ruflo__transfer_plugin-info mcp__plugin_ruflo-core_ruflo__transfer_plugin-search mcp__plugin_ruflo-core_ruflo__transfer_store-search bash read write edit ## Instalación Un skill son archivos markdown: los mismos archivos valen para cualquier agente y lo único que cambia es el directorio de destino, es decir la bandera `--agent`. Añade `-g` para instalarlo en todos los proyectos de la máquina. ```bash # Claude Code npx -y skills add ruvnet/ruflo --skill create-plugin --agent claude-code # Cursor npx -y skills add ruvnet/ruflo --skill create-plugin --agent cursor # Codex npx -y skills add ruvnet/ruflo --skill create-plugin --agent codex # Gemini CLI npx -y skills add ruvnet/ruflo --skill create-plugin --agent gemini # Windsurf npx -y skills add ruvnet/ruflo --skill create-plugin --agent windsurf # Cline npx -y skills add ruvnet/ruflo --skill create-plugin --agent cline ``` ## Qué hace - Comprueba que el nombre del plugin no esté en uso y crea la estructura de directorios canónica (.claude-plugin, skills, commands, agents, docs/adrs, scripts). - Genera plugin.json, archivos SKILL.md, comandos y agentes con el frontmatter correcto. - Genera el README con instrucciones de instalación y las secciones de compatibilidad, namespace y verificación. - Genera el ADR-0001 inicial y el script smoke.sh con al menos 8 comprobaciones estructurales. ## Cuándo usarla - Quieres crear un plugin nuevo que extienda Claude Code con skills, commands y agents. ## Qué la activa - "Crea un nuevo plugin llamado ruflo-weather" - "Scaffolds la estructura de un plugin de Claude Code" ## Archivos - SKILL.md — 5 KB ## SKILL.md Reproducido tal cual desde ruvnet/ruflo bajo MIT. Esta sección es el documento original y está en inglés. # Create Plugin Scaffold a new Claude Code plugin from scratch. ## When to use 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. ## Steps 1. **Get plugin name and description** from the user 2. **Check for conflicts** — call `mcp__plugin_ruflo-core_ruflo__transfer_plugin-search` to ensure the name isn't taken 3. **Create directory structure** (follows the canonical plugin contract from sibling plugins' ADR-0001s): ``` plugins// ├── .claude-plugin/ │ └── plugin.json ├── skills/ │ └── / │ └── SKILL.md ├── commands/ │ └── .md ├── agents/ │ └── .md ├── docs/ │ └── adrs/ │ └── 0001--contract.md # Plugin-level ADR (Proposed) ├── scripts/ │ └── smoke.sh # Structural contract (≥8 checks) └── README.md # Compatibility + Namespace coordination + Verification + ADR sections ``` 4. **Generate plugin.json** with name, description, version, author (do NOT include `skills`, `commands`, or `agents` arrays — Claude Code auto-discovers these from directory structure) 5. **Generate SKILL.md files** with proper frontmatter: ```yaml --- name: skill-name description: What this skill does allowed-tools: mcp__plugin_ruflo-core_ruflo__tool1 mcp__plugin_ruflo-core_ruflo__tool2 Bash --- ``` 6. **Generate command files** with name and description frontmatter 7. **Generate agent files** with name, description, and `model: sonnet` 8. **Generate README.md** with install instructions, features, commands, skills, AND the canonical plugin-contract sections: - **Compatibility** — pin to `@claude-flow/cli` v3.6 major+minor - **Namespace coordination** — claim a kebab-case `-` namespace; defer to ruflo-agentdb ADR-0001 §"Namespace convention" - **Verification** — `bash plugins//scripts/smoke.sh` - **Architecture Decisions** — link to ADR-0001 9. **Generate ADR-0001 (Proposed)** at `docs/adrs/0001--contract.md` documenting: pinning, namespace coordination, MCP-tool surface count if applicable, smoke contract scope. Status: `Proposed`. 10. **Generate scripts/smoke.sh** — at minimum 8 structural checks: version + keywords; skills/agents/commands present with valid frontmatter; v3.6 pin in README; namespace coordination block in README; ADR exists with status `Proposed`; no wildcard tools in skills. 11. **Update marketplace.json** if adding to the ruflo marketplace. ## MCP-tool drift to avoid (per sibling-ADR lessons learned) 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. ## Plugin.json schema Required fields: - `name` — plugin identifier (kebab-case) - `description` — what the plugin does - `version` — semver Recommended fields: - `author` — `{ "name": "...", "url": "..." }` - `homepage`, `license`, `keywords` Optional fields: - `graph_adapter` — ADR-130 graph intelligence contract (commented out by default in generated output): ```json // "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. ## Available MCP tools to wire Browse available tools: `mcp__plugin_ruflo-core_ruflo__transfer_plugin-info` Common tool categories: - `memory_*` — storage, search, retrieval - `agentdb_*` — 15 controller-bridge tools (do NOT pass `namespace` arg — they route by tier or ReasoningBank); call `agentdb_controllers` at runtime for the canonical list - `neural_*` — neural training and prediction - `hooks_*` — lifecycle hooks and intelligence - `browser_*` — browser automation - `workflow_*` — workflow management - `aidefence_*` — safety scanning - `embeddings_*` — 10 vector-embedding tools (use `embeddings_generate`, NOT `embeddings_embed` which does not exist) ## Dónde encaja - Categoría: [Herramientas para desarrolladores](https://skillsagentes.com/categorias/herramientas-desarrollo.md) — Skills que cambian cómo tu agente escribe, revisa y despliega código. - Creador: [ruvnet](https://skillsagentes.com/creators/ruvnet.md) — 275 skills en el directorio - [Todas las skills](https://skillsagentes.com/skills.md) - [Ranking de instalaciones](https://skillsagentes.com/ranking.md) ## Otras skills del mismo repositorio - [Harness Gepa](https://skillsagentes.com/skills/ruvnet/ruflo/harness-gepa.md): Inspecciona y audita genomas GEPA: carga y valida un genoma, renderiza el system prompt que compila, o clasifica los modos de fallo de una transcripción de ejecución. - [Deepseek Reason](https://skillsagentes.com/skills/ruvnet/ruflo/deepseek-reason.md): Completion en modo razonamiento contra deepseek-reasoner (R1) de DeepSeek. Devuelve el chain-of-thought por separado de la respuesta final. Lee DEEPSEEK_API_KEY y degrada si falta o la API no responde. - [Deepseek Chat](https://skillsagentes.com/skills/ruvnet/ruflo/deepseek-chat.md): Completion de un solo turno contra el modelo deepseek-chat de DeepSeek vía /v1/chat/completions. Lee DEEPSEEK_API_KEY y degrada con status:degraded si falta o la API no responde. Para tareas sin razonamiento. - [Adr Index](https://skillsagentes.com/skills/ruvnet/ruflo/adr-index.md): Construye o reconstruye el índice de ADRs y su grafo de dependencias ejecutando scripts/import.mjs, en vez de cientos de llamadas MCP. - [Agntcy Status](https://skillsagentes.com/skills/ruvnet/ruflo/agntcy-status.md): Muestra el estado de la integración AGNTCY/SLIM/CASA: si los paquetes están instalados, qué transporte está activo y si el enforcement de CASA está habilitado. --- Skills Agentes · [Índice de páginas en markdown](https://skillsagentes.com/sitemap.md) · [Inicio](https://skillsagentes.com/index.md)