create-mod
Qué hace
Esta skill configura un nuevo mod de Claude Code a partir de una plantilla estándar, con las reglas de nombres y de estado ya establecidas. Es para desarrolladores que quieren ampliar el comportamiento de Claude Code de forma segura y coherente.
Cuándo usarla
- ✓Cuando quieres un mod nuevo que añada un panel, un comando o un hook a Claude Code.
- ✓Cuando quieres añadir un hook de función al comportamiento de Claude Code.
- ✓Cuando quieres un mod que siga las mismas reglas que la plantilla revisada de Ruflo.
Link de la skill
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-plugin-creator/skills/create-mod/SKILL.mdCópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.
Cómo usar
La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.
Mensaje listo para pegar
Para Claude Code, Codex o Cursor: ejecútalo en la carpeta del proyecto y la skill queda instalada.
Descarga el SKILL.md y ponlo en la carpeta de skills de tu agente.
Ejemplo de qué pedirle a la IA
“Crea un mod nuevo llamado focus-timer a partir de la plantilla y comprueba que es válido.”
5 skills nuevas por semana. 1 minuto de lectura.
Cómo funciona
La skill elige un nombre en kebab-case, copia la carpeta de la plantilla en una ubicación de destino y sustituye los nombres de marcador de posición por los tuyos. Después mantiene el archivo de estado en el formato esperado y ejecuta las comprobaciones.
Contenido técnico (SKILL.md original)
Texto original del autor, en inglés, directo de GitHub.
Create Mod
Scaffold a mod the governed way, instead of an ad-hoc one: the template already follows the rules ruflo's own mod (ADR-404) was reviewed against.
Steps
- Name it. kebab-case
<name>. Commands it registers are namespaced<name>-<verb>; never register a built-in's name (/diff,/help) or another plugin's (/ruos*,ruflo-*). - Scaffold from the template with
node plugins/ruflo-plugin-creator/scripts/scaffold-mod.mjs <name> <target-dir>. It copiestemplates/mod/, turns the manifest templateplugin.json.tmplinto.claude-plugin/plugin.json(the template keeps it under a non-manifest name so plugin validators do not mistaketemplates/modfor a second plugin), and replacesmy-modeverywhere (plugin.jsonname, the command,MY_MOD_ACTIVE→<NAME>_ACTIVEin bothhooks/register.tsandhooks/classic.cjs, the status folder). Doing it by hand: copy the folder, moveplugin.json.tmplto.claude-plugin/plugin.json, and make the same replacements. - Keep the status contract.
hooks/status.tswrites.claude-flow/<name>-mod/status.json, the file the console's Mods section reads. The folder must be<name>-mod(lowercase, digits, hyphens, at most 41 characters): the scaffold script already setsSTATUS_PATHto<name>-mod. Fields:version: 1(required, anything else is ignored),summary(one line),modVersion,guard(boolean),calls(a number, not a per-tool object),blocked(number),lastDenied(a short reason, only once the mod has refused something), plusupdatedMs/startedMs. Other fields are not shown.tests/status.test.tsasserts the shape. - Write the behaviour in pure functions taking the
Host(seehooks/host.ts). Inregister.ts, build the host from literal$.noun.method(...)calls only — the engine reads a module's$uses off its source, andclaude plugin validaterefuses$passed around, computed ($[noun]), or deeper than$.noun.method(input). - Keep the rules:
- Observe with
const r = await next(e); …; return r; rewrite withnext({ ...e, … }); answer ({ deny }) only when you mean to stop the chain. - On
tool.check, only ever tighten (the stricter ofawait next(e)and yours); never answerallowof your own. - Wrap every
$call so a refusal degrades instead of failing the turn (admins can withhold any$affordance). - No
$.process.run/$.http.fetchbuilt from event input. Nothing slow on the hot path (about 10 s per dispatch). - Anything that must survive a hot reload goes in
$.store/$.state, not module variables. - Options come from
userConfigin plugin.json, not environment variables.
- Observe with
- Keep the fallback honest.
hooks.jsonis hybrid: the classic command hook runs everywhere, the module only where function hooks are on (Claude Code >= 2.1.287; 2.1.277+ withCLAUDE_CODE_ENABLE_FUNCTION_HOOKS=1). The module sets<NAME>_ACTIVEatsession.start; the classic script exits early when it sees it, so nothing fires twice. - Validate and test:
claude plugin validate <dir> # lists hooked events, $ calls, env reads/writes claude plugin test <dir> # tests/*.test.ts on the engine kit claude -p --plugin-dir <dir> "/<name>-status" # writes .claude-plugin/types/ and proves a live load npx tsc -p <dir> # against those generated types - Ship it in a plugin marketplace (
marketplace.jsonentry), installed with/plugin install <name>@<marketplace>and picked up with/reload-plugins. If ruflo-mods is installed withmodTrust: refuse-risky, a mod usingprocess.run/process.spawn,http.fetch,mcp.call/mcp.connect,session.send,config.set,env.set,fs.write,agent.spawn/agent.register,prompt.submit,session.append,tool.callorcommand.run, or hooking any event in itsRISKY_EVENTS(tool.check,tool.call,prompt.*,agent.spawn,tool.describe,session.append,session.receive,turn.step,skill.prompt,session.compact,prompt.edit,fs.read/fs.stat/fs.exists/fs.list,settings.read,env.get, a hook on any of the calls above (it can rewrite another mod's call),plugin.register,classic.*,*; a glob or a!negation is judged by what it selects), is refused unless its plugin id (<name>@<marketplace>) is inmodTrustAllow— the template setsenv.set(the fallback handshake), so allow-list it by id.
Preguntas frecuentes
¿Qué nombres debo evitar?
No reutilices el nombre de un comando integrado, como diff o help, ni un nombre que use otro plugin.
¿Dónde se escribe el archivo de estado?
La skill lo coloca en una carpeta con el nombre de tu mod, que es la que lee la consola.
¿La plantilla ejecuta código no revisado?
La skill indica que la plantilla sigue reglas que fueron revisadas, pero aun así debes probar el mod antes de usarlo.
Detalles
Descripción original del autor
Scaffold a Claude Code mod (a plugin with a function-hooks module) from ruflo's governed template, then validate and test it. Use when the user asks for a mod, a function hook, or wants Claude Code to modify itself.
repo: ruvnet/ruflo
Popularidad
- Estrellas en GitHub
- 81 mil
- Posición en el ranking
- #1678
- Licencia
- MIT
- Actualizada
- 2/11/2026
Comentarios
- …
Más skills de este repositorio
agent-adaptive-coordinator
81 milAyuda a tu agente a dividir y reequilibrar un grupo de agentes de IA cuando cambia la carga de trabajo, eligiendo una distribución que encaje con la tarea.
agent-agent
81 milEnseña a tu agente a convertir una meta grande en un plan ordenado de acciones, y a replanificar cuando cambien las condiciones.
agent-agentic-payments
81 milAyuda a tu agente a administrar mandatos de gasto para compras con IA, con topes de gasto, ventanas de tiempo, reglas por comercio y aprobaciones firmadas.
agent-analyze-code-quality
81 milAyuda a tu agente a revisar la calidad del código, encontrando malos olores, deuda técnica e ideas de refactorización sin cambiar los archivos.
Skills parecidas
diffs
394 milPermite que tu agente genere un diff real y compartible de los cambios, como enlace de visualización o archivo de imagen, en lugar de un resumen escrito a mano.
coding-agent
394 milAyuda a tu agente a pasar un trabajo de programación grande a Codex, Claude Code u OpenCode como trabajador en segundo plano, y después revisar su progreso.
gh-issues
394 milAyuda a tu agente a encontrar incidencias de GitHub, elegir cuáles trabajar y abrir pull requests con correcciones, incluido el seguimiento de los comentarios de revisión.