create-mod
하는 일
이 스킬은 이름과 상태 규칙이 미리 갖춰진 표준 템플릿으로 새 Claude Code 모드를 설정합니다. 안전하고 일관된 방식으로 Claude Code의 동작을 확장하려는 개발자를 위한 스킬입니다.
사용하는 경우
- ✓Claude Code에 패널, 명령, 훅을 추가하는 새 모드를 원할 때.
- ✓Claude Code의 동작에 함수 훅을 추가하고 싶을 때.
- ✓검토된 Ruflo 템플릿과 같은 규칙을 따르는 모드를 원할 때.
스킬 링크
https://github.com/ruvnet/ruflo/blob/main/plugins/ruflo-plugin-creator/skills/create-mod/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“템플릿으로 focus-timer라는 새 모드를 만들고, 유효한지 확인해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
이 스킬은 kebab-case 이름을 고르고, 템플릿 폴더를 대상 위치에 복사하며, 자리표시자 이름을 내 이름으로 바꿉니다. 그다음 상태 파일이 기대되는 형식을 유지하고 검사를 실행합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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.
자주 묻는 질문
피해야 하는 이름이 있나요?
diff나 help 같은 내장 명령 이름, 또는 다른 플러그인이 쓰는 이름은 다시 쓰지 마세요.
상태 파일은 어디에 쓰나요?
이 스킬은 콘솔이 읽는 모드 이름의 폴더로 설정합니다.
템플릿이 검토되지 않은 코드를 실행하나요?
원본은 템플릿이 검토된 규칙을 따른다고 말하지만, 사용하기 전에 여전히 모드를 테스트해야 합니다.
상세 정보
작성자의 원본 설명
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
인기도
- GitHub 스타
- 81k
- 순위
- #1678
- 라이선스
- MIT
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
agent-adaptive-coordinator
81k작업량이 바뀔 때 에이전트 무리를 나누고 재배치해, 작업에 맞는 배치를 고르도록 에이전트를 돕습니다.
agent-agent
81k큰 목표를 순서가 있는 행동 계획으로 나누고, 조건이 바뀌면 다시 계획하도록 에이전트를 가르칩니다.
agent-agentic-payments
81kAI 쇼핑을 위한 지출 위임장을 관리합니다. 지출 상한, 시간 창, 판매자 규칙, 서명된 승인을 포함합니다.
agent-analyze-code-quality
81k에이전트가 파일을 바꾸지 않고, 코드 품질 문제와 코드 냄새, 기술 부채, 리팩터링 아이디어를 찾아 검토하도록 돕습니다.