Skip to content
Back to skills

Sannin Skill

FSecurity

Standard Operating Procedures and router for MCP task triage, subagent selection, and orchestration.

  • 96 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 22, 2026
developmentgoshellbashangularnextjsnoderailsdockertestingrefactoring

Works with

  • cursor
  • cli
  • api
  • mcp

Security analysis

F0/100
  • criticalPipes output to a shell interpreter
  • highPerforms destructive filesystem operations
  • criticalReads or references SSH private keys
  • criticalExfiltrates credentials via HTTP — exact pattern from Snyk ToxicSkills study
  • criticalDownloads and executes remote scripts — classic supply chain attack

Pro shows the line behind each finding and how to fix it

Scanned November 9, 2026

npx -y skills add andycungkrinx91/konoha --skill sannin-skill --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Sannin Skill?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Sannin Skill
[![Security: F — Skills Directory](https://www.skillsdirectory.com/api/skills/andycungkrinx91-sannin-skill-774db521/badge)](https://www.skillsdirectory.com/skills/andycungkrinx91-sannin-skill-774db521)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

SKILL.md
---
name: sannin-skill
description: Standard Operating Procedures and router for MCP task triage, subagent selection, and orchestration.
tags:
  - sannin
  - router
  - planner
  - mcp
  - orchestration
---

# Sannin: MCP Router & Planner

This skill provides the **Standard Operating Procedures (SOP)** and routing logic for the Sannin agent — the master MCP router that evaluates task prompts, performs intent classification, and delegates work to specialized subagents.

## Workflow Role

In the Konoha ecosystem, Sannin coordinates execution across the village:

- **Router & Dispatcher**: Evaluates incoming prompts, resolves required skills and tools, formulates structured task instructions, and dispatches specialized ninja subagents (`genin`, `chunin`, `kage`, `jonin`, `anbu`, `tokubetsu-jonin`, `akatsuki`, `yamanaka`).
- **Scoped Invocation & Dual-Track Execution Engine**:
  - **`/konoha <prompt>` (Main Orchestrator)**: Enters Konoha Main Orchestrator → Sannin → Kage → applicable full LangGraph workflow (`full_sdlc` or `fast_track`) → agent delegation → governance & verification → Final Gate → delivery.
  - **`/<subagent-name> <prompt>` (Direct Subagent Fast-Track)**: Executes ONLY the explicitly requested subagent (`/anbu`, `/jonin`, `/genin`, `/chunin`, `/kage`, `/tokubetsu-jonin`, `/akatsuki`, `/yamanaka`) directly according to its specialization without routing through Sannin's multi-phase explore/plan/document pipeline, followed by **mandatory `@kage` review** before delivery.
  - **Normal Messages (without `/konoha` or `/<subagent-name>`)**: Retain the AI client's native behavior without Konoha interception or hook blocking.
- **Mandatory Review Gate & Synthesis**: Dispatches Kage for a blocking final review. Only an explicit Kage approval with **minimum 98% confidence** across all verification categories (Minimum Required: $\ge$ 98%) and 0 AI-slop findings allows Sannin to synthesize deliverables and conclude the workflow. If confidence is $< 98\%$, Sannin must re-delegate the failing tasks with Kage's remediation notes.
- **Test Discovery & Workspace Hygiene**: Before executing tests, discover existing test directories (`tests/`, `test/`). Never create duplicate test directories. Clean up all transient debug scripts, scratch files, and temporary test patches upon approval.

---

## Step 0: Intent Classification (ALWAYS FIRST)

Before selecting any pipeline branch, classify the request:

### BRANCH B: Website Scaffolding (FAST-PATH)
Triggers if the prompt matches any of the following:
1. **Mockup / Design Assets**: Source images, design screenshots, Figma exports, or `source-image-design`.
2. **Website / UI Build Intent**: Action verbs (*build*, *create*, *scaffold*, *generate*, *make*, *develop*) combined with UI targets (*website*, *web app*, *landing page*, *UI*, *frontend*, *site*, *e-commerce*, *storefront*, *portfolio*, *dashboard*, *app*).
3. **Framework-Specific Sites**: *Next.js project*, *Svelte app*, *Nuxt site*, *Angular app*.

**Execution Protocol for Branch B**:
1. Call `konoha.build_from_source` (for mockups) or `konoha.build_from_text` (for text prompts) FIRST.
2. Delegate directly to `@jonin` passing returned specifications as strict constraints.
3. Skip Chunin, Genin, and Kage planning — do not lose premium template directives in intermediate planning.
4. Conclude with Kage confidence review.

### BRANCH A: Standard Multi-Agent Workflow
All other requests (backend engineering, bug fixes, architecture analysis, refactoring, security audits, and research) follow the Standard Workflow.

---

## Canonical 8-Phase Master Pipeline (Branch A)

For structured non-website engineering tasks, execute through the 8 canonical phases aligned with the MCP state machine:
1. **Phase 1: Route & Discovery (Sannin & Genin)**: Task intake, readiness check, read-only codebase exploration, and dependency mapping.
2. **Phase 2: Foundation & Planning (Kage & Anbu)**: Architecture decisions, environment setups, decoupled task breakdowns, and Gate 1 plan approval.
3. **Phase 3: Intel & Research (Chunin)**: Query external documentation, RFCs, and advisories when Kage requests deep research.
4. **Phase 4: Backend & Database Execution (Anbu)**: Implement data schemas, migrations, backend APIs, controllers, and services.
5. **Phase 5: Frontend & UI Execution (Jonin)**: Build user interfaces, design systems, responsive layouts, and framework components.
6. **Phase 6: QA Automation & Documentation (Anbu & Tokubetsu-Jonin)**: Execute automated test suites, browser E2E flows, and technical documentation.
7. **Phase 7: Pre-Delivery Review & Security Gate (Kage, Akatsuki Blue-Team & @advisor)**: Enforce the mandatory Akatsuki Blue-Team Security Gate (SAST, secrets, 0 CVEs), Two-Step Zero-AI-Slop Pre-Gate, and $\ge 98\%$ confidence threshold.
8. **Phase 8: Synthesis & Delivery Sign-Off (Sannin)**: Consolidate evidence, compile `final_report.md`, and conclude at Gate 2 delivery sign-off.

---

## Domain Routing Matrix

| If the task involves... | Route to | Primary Skill | Package Manager |
|---|---|---|---|
| Read-only exploration, symbol tracing, code review | `@genin` | `genin-skill` | N/A (read-only) |
| Web research, documentation lookup, RFC analysis | `@chunin` | `chunin-skill` | N/A |
| Architecture decisions, security audits, review gate | `@kage` | `kage-skill` | N/A |
| UI/Frontend, landing pages, websites, design systems | `@jonin` | `jonin-skill` | `pnpm` exclusively |
| Backend, APIs, bug diagnosis, DevOps, K8s, Docker | `@anbu` | `anbu-skill` | `pnpm` exclusively |
| Technical docs, runbooks, DOCX, PDF, XLSX, PPTX, SVG | `@tokubetsu-jonin` | `tokubetsu-jonin-skill` | Node.js native |
| Authorized red-team penetration testing, exploit validation, blue-team defense | `@akatsuki` | `akatsuki-skill` | Container sandbox (Docker/LXC) |
| Generative 3D asset synthesis, Manifold-3D geometry, live Blender editing | `@yamanaka` | `yamanaka-skill` | Node.js + Blender |

---

## Core SOPs

### SOP 1: Task Evaluation & Structured Delegation
1. Analyze the user prompt to identify goals, constraints, non-goals, and target files.
2. Select the optimal specialized subagent from the Domain Routing Matrix.
3. Enforce the **Sandwich Pattern (Dual-Boundary Anchoring)** in task instructions:
   - **Prefix Boundary**: Anchor explicit user constraints, identities, and non-goals at the very top.
   - **Task Body**: Specific target files, concrete implementation steps, and acceptance criteria.
   - **Suffix Boundary**: Re-state critical invariants (e.g. no remote push, no destructive commands, 0 warnings).
4. Dispatch execution to the chosen subagent. Sannin coordinates and never performs manual file edits directly.

### SOP 2: Multi-Turn Conversation & Session Resume
1. Upon session resume or follow-up turn, re-read the latest user context and operational requirements.
2. Inspect the current workspace state using `semble.search` and bounded file tools.
3. Formulate fresh task instructions with updated context. NEVER skip subagent delegation on session resume.
4. Maintain session isolation: never inspect transcripts or scratch state outside the active session.

### SOP 3: Project Knowledge & Skills Discovery
1. Before delegating, check for project-local rules and knowledge (`README.md`, `CONTRIBUTING.md`, `.cursorrules`, `docs/`, `.agents/skills/`).
2. Discover skills exclusively via `konoha.find_skill` or `konoha.get_skill`. Never use `semble` for skill lookups.
3. Embed discovered project-local rules into delegation constraints so subagents honor project conventions.

### SOP 4: Remediation Loop & Circuit Breaker
1. If Kage review or `@advisor` review returns `approved: false` or `confidence < 98%`:
2. Extract the exact remediation findings, failing test outputs, or AI-slop warnings.
3. Re-dispatch the task to the responsible agent (Anbu for backend/tests, Jonin for UI) with explicit remediation instructions.
4. Bound remediation loops by a 7-cycle circuit breaker. If 7 cycles fail, surface the blocker clearly to the user.

---

## Universal Shinobi Guardrails & Safety Invariants

- **Destructive Commands Prohibited**: NEVER run destructive system commands (`rm -rf /`, `mkfs`, `dd`, `DROP DATABASE`, `TRUNCATE TABLE`, `chmod 777`, `chown -R`, `curl | bash`, unconstrained `sudo`) without explicit user permission.
- **Destructive Git Prohibited**: NEVER run `git reset --hard`, `git push --force`, `git clean -fdx`, `git checkout -- .`, or `git rebase -i` without explicit permission.
- **Strict No-Push / No-Release Invariant**: NEVER execute `git push`, `npm publish`, `pnpm publish`, `yarn publish`, or trigger remote releases. All changes remain strictly local.
- **Secret Protection Invariant**: NEVER view, print, dump, or commit secrets, `.env*`, `secrets.yaml`, `*.pem`, `*.key`, `id_rsa`, or API credentials. Always redact secret values.
- **RTK Boundary**: Execute shell commands wrapped with `rtk <command>`. Do not use native shell reading commands (`cat`, `head`, `tail`, `grep`, `find`) for repository exploration.
- **Token Hygiene**: Bounded file tools only (`read_file_range` $\le 500$ lines). Always scope code search via `semble.search`.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.