skills/fierce-ralph/SKILL.md
Deterministic loop-until-done for high-stakes long-running tasks — a worker/verifier loop the script bounds by iteration cap, token budget, and stagnation, closed by an Action-Kamen gate. Opt-in main-loop Workflow tier.
npx skillsauth add seokan-jeong/team-shinchan team-shinchan:fierce-ralphInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Fierce ralph is a main-loop Workflow whose loop condition is owned by the SCRIPT, not narrated by an agent: a worker does the next unit of work, a verifier independently checks progress + completion against the real repo, and it repeats until done — bounded by a hard iteration cap, a token budget, and a stagnation limit, then closed by an Action-Kamen final gate. The Task path (team-shinchan:ralph, Kazama's narrated boulder loop) can describe "don't stop until done"; this tier enforces it deterministically. Use ONLY for high-stakes, genuinely long-running work where a stalled or prematurely-stopped loop is costly. The cheap default stays team-shinchan:ralph.
/team-shinchan:fierce-ralph IS the opt-in. Never delegate to a subagent — workflow() throws inside a Task child.+500k-style target) so the loop is bounded.progressDoc so the verifier checks ACs there (e.g. .shinchan-docs/{DOC_ID}/PROGRESS.md).args (the runtime can't load plugin subagents):
node ${CLAUDE_PLUGIN_ROOT}/src/workflow-personas.js kazama actionkamen
Workflow({
scriptPath: "${CLAUDE_PLUGIN_ROOT}/skills/fierce-ralph/fierce-ralph.workflow.js",
args: {
goal: "<the task to complete, with success criteria>",
progressDoc: ".shinchan-docs/{DOC_ID}/PROGRESS.md", // optional
maxIterations: 10, // capped at 20
workerPersona: "<workflow-personas.js kazama>",
judgePersona: "<workflow-personas.js actionkamen>"
}
})
Each iteration: Loop (worker edits files toward the goal) → Verify (verifier runs tests/checks ACs, reports done + progressed). The script stops on done, the iteration cap, budget.remaining() hitting the reserve, or STAGN_LIMIT (3) consecutive no-progress iterations — then a Gate (Action Kamen) runs the final check. Returns { goal, iterations, loop_done, stop_reason, stagnated, budget_exhausted, completed, gate, history }. completed is deterministic: true only if the loop reached done AND the gate shows verdict APPROVED && tests_pass && goal_met && no blockers.
Compute the next index NNN from .shinchan-docs/ralph-runs/RALPH-*.json (zero-padded, start 001) and write the full return value plus an ISO timestamp to .shinchan-docs/ralph-runs/RALPH-{NNN}.json.
Present: completed ✅/❌, stop_reason (completed / max_iterations / stagnation / budget_exhausted), iterations run, the gate verdict + evidence + blockers, and a one-line-per-iteration history (progressed?/summary). If not completed, surface the blockers and the last next step. Never claim done without confirmation — ask the user to accept, continue (re-run with a higher maxIterations/budget), or hand back to /team-shinchan:ralph. An APPROVED gate counts as completion evidence for team-shinchan:verification-before-completion.
development
Deterministic adversarial code review for high-stakes scope — independent per-dimension review, a non-skippable per-finding refutation, a completeness critic, and a schema-validated rubric judge. Opt-in main-loop Workflow tier.
testing
Deterministic adversarial debate for high-stakes or irreversible decisions — mandatory refutation plus a scored judge panel. Opt-in main-loop Workflow tier.
development
Deterministic competitive code tournament — N builders independently solve one task and return patches, an Action-Kamen judge scores them head-to-head, the winner is picked by score and applied. Opt-in main-loop Workflow tier.
data-ai
Use when claiming a task is complete, before commits, or before PR creation.