원클릭으로
swarm
Orchestrate a team of specialized agents to autonomously complete development tasks
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Orchestrate a team of specialized agents to autonomously complete development tasks
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Deep interview for a single feature or module brief that produces a final spec or implementation plan.
@nextnode-solutions/logger standards. Reference this skill when a project uses @nextnode-solutions/logger or when logger integration is being added.
Manage n8n workflows on the NextNode automation instance with the local n8n-cli tool.
NextNode brand guidelines — color palette, typography, logo system, and per-project branding rules. Use when doing UI/frontend work on a NextNode project.
NextNode ecosystem hub. Auto-load when working on any NextNode or SaaS project — covers nextnode.toml config, CI workflows, docker-compose rules, and cross-references to package skills.
Audit a NextNode/SaaS project against all NextNode standards — produces a compliance report with pass/fail/missing status for every required item.
| name | swarm |
| description | Orchestrate a team of specialized agents to autonomously complete development tasks |
| user-invocable | true |
| argument-hint | ["task description"] |
| allowed-tools | Read, Glob, Grep, Write, Edit, Bash, Skill, AskUserQuestion |
This skill is a thin launcher. It interviews the user to produce a spec, then invokes the swarm CLI which handles everything else (worktree, orchestration, PR).
You do NOT orchestrate implementation work yourself. You prepare the spec via interview, run the CLI, and report results.
Architecture: swarm is a TypeScript CLI (scripts/.local/bin/swarm) that handles all orchestration — phase sequencing (plan → tdd → code → review → commit → docs), worktree isolation, agent invocation, PR creation, state persistence, and TOML config resolution.
/swarm is an end-to-end pipeline: interview → spec → swarm run → report. You MUST execute Steps 1 through 4 in a single invocation. The moment the interview produces a spec file, you MUST continue to run the CLI. Stopping after the interview is a critical failure.
The user invokes /swarm <free-form task description>.
Derive a date-prefixed kebab-case session name from the description. Prefix: today's date as YYMMDD (6 digits, no separators), then a hyphen, then the kebab-case slug. Must match /^[a-zA-Z0-9_-]{1,64}$/.
Examples (assuming today is 2026-02-28):
/swarm add user authentication with OAuth → 260228-add-user-auth/swarm refactor the payment module → 260228-refactor-payment-modulePerform 1a and 1b in parallel. Step 1 is READ-ONLY — no files are created or modified.
Run git branch --show-current → store as baseBranch. Store pwd → projectDir.
Scan the task description for explicit /skillname references (e.g., /nextnode-standards, /typescript). These are binding standards the swarm MUST follow.
For each detected skill reference:
Skill tool~/.claude/skills/<skillname>/SKILL.mdresolvedSkills: { skillName: fullContent }If a referenced skill contains an audit procedure: run it NOW against the current project state. Store as skillAuditResults.
After gathering all skills, write them to $TMPDIR/swarm-<session-name>-skills.json:
{
"resolvedSkills": { "<skillName>": "<fullContent>", ... },
"skillAuditResults": { "<skillName>": "<auditOutput>", ... }
}
If no /skillname references are found, skip this step entirely.
The interview is always run. It handles existing spec detection internally (deepen vs new vs replace).
/interviewSkill: interview
Args: <task description>
The interview skill will:
docs/specs/*.spec.mddocs/specs/<feature-name>.spec.mdAfter the interview completes, find the generated spec:
docs/specs/*.spec.md — sort by modification time (most recent first)specPathspecPath to verify it has FR-* items and acceptance criteriaCRITICAL: Continue immediately to Step 3. Do not stop.
swarm --version
If not in PATH, try: <projectDir>/scripts/.local/bin/swarm --version.
The spec must be committed so the CLI's worktree has access to it:
git add <specPath>
git commit -m "$(cat <<'EOF'
docs(<session-name>): add spec for swarm run
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
EOF
)"
swarm runRun via Bash(run_in_background: true):
swarm run \
--session "<session-name>" \
--spec "<specPath>" \
--project-dir "<projectDir>"
Add --config "<path>" only if a non-default config path is needed.
Use Bash(timeout: 600000) — swarm runs can take up to 10 minutes.
What the CLI does internally:
swarm/<session-name> branch)AskUserQuestion with options: retry, abort, or investigate.To resume after failure:
swarm resume \
--session "<session-name>" \
--project-dir "<projectDir>"
The CLI outputs the PR URL and session summary. Parse the output for:
$TMPDIR/swarm-<session-name>-state.jsonIf resolvedSkills is non-empty: re-run the audit from Step 1b against the current state. Every FAIL/MISSING item from the original audit must now be PASS. If not:
swarm resume to fixReport to the user:
swarm resume picks up where it left off/swarm ALWAYS executes the full flow — Steps 1 through 4. NEVER stop after the interview.rm -rf, no git push --force, no git reset --hardsleep to poll — the CLI runs synchronously and exits with a status code