Agent skill

Ralph Loop Kiro Specs

by fabricioctelles in fabricioctelles/skills

Automated iterative agent runner for spec-based development in Kiro.

Apache-2.0Auto-check passedAgent Workflows

Install Ralph Loop Kiro Specs

skills CLI
$ npx skills add fabricioctelles/skills --skill ralph-loop-kiro-specs -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install fabricioctelles/skills ralph-loop-kiro-specs --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/fabricioctelles/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/ralph-loop-kiro-specs .claude/skills/ralph-loop-kiro-specs && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
ralph-loop-kiro-specs
GitHub stars
106
Token cost
~2.6k tokens
SKILL.md length
932 words
Files
3 (incl. scripts, references)
Skills in repo
15
Repo updated
First seen
Licence
Apache-2.0

At a glance

Automated iterative agent runner for spec-based development in Kiro.

  • Works in 6 steps: Load Context — Read steering files… → Pick ONE Task — Find the lowest-numbered… → Understand Before Implementing — Read… → …
  • The user mentions ralph loop
  • SKILL.md covers When to Use, Prerequisites, How It Works and Project Structure, plus 6 more sections
  • Runs Shell scripts from its folder; reaches apache.org

What it does

Ralph Loop Kiro Specs is an agent skill from fabricioctelles/skills. Automated iterative agent runner for spec-based development in Kiro. Wraps kiro-cli in a self-correcting bash loop that picks up tasks from a Kiro spec, implements them one at a time, verifies against exit criteria, and accumulates corrections and codebase patterns across iterations. Use this skill when the user mentions "ralph loop", "ralph", "spec loop", "iterative spec runner", "run my spec tasks automatically", "kiro spec automation", "self-correcting agent loop", "implement spec tasks in a loop", "run…

Its SKILL.md is about 2.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including scripts and reference files (for example `references/ralph-loop-kiro-specs-prompt.md` and `scripts/ralph-loop-kiro-specs-script.sh`).

It sits in Agent Workflows, covering Autonomous loops. It works with Bash. The repository describes itself as: A collection of skills for AI agents (Kiro, Cursor, Windsurf, Claude Code, and others). Each skill is a reusable module that teaches the agent to perform complex tasks with… The licence is Apache-2.0.

When your agent uses it

  • The user mentions ralph loop
  • Iterative spec runner
  • Run my spec tasks automatically
  • Kiro spec automation

Example prompts

  • “ralph loop”
  • “spec loop”
  • “iterative spec runner”
  • “/ralph-loop-kiro-specs”

Requirements

  • Python 3
  • A Bash shell

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Load Context — Read steering files (product.md, structure.md, tech.md) and the target spec (requirements.md, design.md, tasks.md…
  2. Pick ONE Task — Find the lowest-numbered incomplete top-level task. Record start time. Never pick more than one task per iteration.
  3. Understand Before Implementing — Read relevant source files, study existing patterns, re-read the Corrections and Codebase Patterns…
  4. Implement — Implement the task and all subtasks in order. Run typechecks and tests. If something fails: fix it, write a correction…
  5. Verify Exit Criteria — Re-read exit criteria from requirements.md and design constraints from design.md. Confirm each is satisfied before…
  6. Update Tracking — Mark the task [X] in tasks.md, append a progress entry to progress.md, add new codebase patterns, do a final correction…

What it can do on your machine

Read from SKILL.md and the folder at commit f1de632. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Shell), which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • apache.org

    Also links to:

    • github.com
    • kiro.dev

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Ralph Loop Kiro Specs loads about 2.6k tokens when it runs, and up to ~6.6k if it reads all its reference files. Until then it costs about 218 tokens; SKILL.md has 932 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~218
When it runs · the whole SKILL.md, loaded when a task matches
~2.6k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~6.6k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from fabricioctelles/skills at commit f1de632, republished under its Apache-2.0 licence (© fabricioctelles). 932 words, ~2,605 tokens.

Download SKILL.mdSave it as .claude/skills/ralph-loop-kiro-specs/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
ralph-loop-kiro-specs
description
Automated iterative agent runner for spec-based development in Kiro. Wraps kiro-cli in a self-correcting bash loop that picks up tasks from a Kiro spec, implements them one at a time, verifies against exit criteria, and accumulates corrections and codebase patterns across iterations. Use this skill when the user mentions "ralph loop", "ralph", "spec loop", "iterative spec runner", "run my spec tasks automatically", "kiro spec automation", "self-correcting agent loop", "implement spec tasks in a loop", "run kiro-cli in a loop", "automated task implementation", or wants to drive a Kiro spec to completion through repeated agent iterations. Also use when the user wants to set up, configure, troubleshoot, or understand the Ralph Loop workflow — including progress tracking, corrections, codebase patterns, timing logs, and the summary dashboard.
metadata.author
ft.ia.br
metadata.version
1.0
metadata.date
2026-04-28
metadata.license
Apache-2.0
metadata.original_project
https://github.com/mreferre/ralph-loop-kiro-specs
metadata.original_author
mreferre
metadata.category
code-scaffolding-and-templates

Ralph Loop for Kiro Specs

An automated, iterative agent runner that drives spec-based development in Kiro. It wraps kiro-cli in a bash loop, feeding it a carefully engineered prompt that turns Kiro into a disciplined, self-correcting implementation agent — one that picks up tasks from a spec, implements them, verifies its own work, and learns from its mistakes across iterations.

Attribution: Based on ralph-loop-kiro-specs by mreferre, licensed under Apache License 2.0.

When to Use

  • Automate implementation of Kiro spec tasks through repeated agent iterations
  • Drive a spec from start to finish without manual prompt-by-prompt interaction
  • Set up the Ralph Loop in a new project
  • Troubleshoot a stuck or failed Ralph Loop run
  • Understand how progress tracking, corrections, and codebase patterns work
  • Generate or interpret the summary dashboard after completion

Prerequisites

RequirementDetails
Kiro CLIkiro-cli must be installed and on PATH (kiro.dev/cli)
Kiro IDEkiro.dev installed
BashStandard bash shell
Kiro SpecsA project with specs under .kiro/specs/<specs_name>/ containing at least requirements.md, design.md, and tasks.md

How It Works

Ralph runs a loop where each iteration sends a prompt to kiro-cli. The prompt instructs the agent to follow a strict six-phase cycle:

The Six Phases
  1. Load Context — Read steering files (product.md, structure.md, tech.md) and the target spec (requirements.md, design.md, tasks.md, progress.md). Take stock of available tools.
  2. Pick ONE Task — Find the lowest-numbered incomplete top-level task. Record start time. Never pick more than one task per iteration.
  3. Understand Before Implementing — Read relevant source files, study existing patterns, re-read the Corrections and Codebase Patterns sections from progress.md, and apply every relevant correction proactively.
  4. Implement — Implement the task and all subtasks in order. Run typechecks and tests. If something fails: fix it, write a correction immediately if a future iteration could hit the same problem, and move on. After 5 failed attempts, mark the task [F] and log an unresolved blocker.
  5. Verify Exit Criteria — Re-read exit criteria from requirements.md and design constraints from design.md. Confirm each is satisfied before marking complete.
  6. Update Tracking — Mark the task [X] in tasks.md, append a progress entry to progress.md, add new codebase patterns, do a final correction sweep, and record timing to specs_time.md.
The Self-Correction System

The Corrections section at the top of progress.md is a flat lookup table of mistakes and their fixes. Every iteration reads it before doing any work and must never repeat a listed mistake. Corrections are written immediately when errors happen — not at the end of the task.

Format:

- ❌ `python manage.py migrate` → ✅ `python3 manage.py migrate` (system has no `python` alias)
- ❌ Running tests with `npm test` → ✅ `npm run test:unit` (project uses separate test scripts)
- ❌ UNRESOLVED: [description of issue that couldn't be fixed after 5 attempts]
Codebase Patterns

Ralph accumulates conventions discovered during implementation — file naming, import patterns, error handling, testing commands, etc. Only patterns actually encountered are recorded, not speculative ones.

Completion and Summary Dashboard

When all tasks are marked [X], Ralph generates a self-contained summary.html in the spec directory with:

  • Top pane: spec name, status indicator (green/red), total elapsed time, task count, date range
  • Left pane: collapsible task tree with hover tooltips showing progress details
  • Right pane: timing table with per-task start/end times and durations

Project Structure

The user's project should look like this before running Ralph:

your-project/
├── ralph-loop-kiro-specs-prompt.md    # The Ralph agent prompt template
├── ralph-loop-kiro-specs-script.sh    # The loop runner script
└── .kiro/
    ├── steering/
    │   ├── product.md                 # What the product is
    │   ├── structure.md               # Project structure conventions
    │   └── tech.md                    # Tech stack and tooling
    └── specs/
        └── <specs_name>/
            ├── requirements.md        # Requirements and exit criteria
            ├── design.md              # Architecture and design decisions
            ├── tasks.md               # Task checklist
            ├── progress.md            # Auto-created: corrections, patterns, progress log
            ├── specs_time.md          # Auto-created: per-task timing
            └── summary.html           # Auto-generated on completion: visual dashboard

Setup Instructions

To set up Ralph Loop in a project:

  1. Copy the script and prompt template to the project root:
    • ralph-loop-kiro-specs-script.sh — the loop runner (bundled in this skill under scripts/)
    • ralph-loop-kiro-specs-prompt.md — the agent prompt template (bundled under references/)
  2. Make the script executable: chmod +x ralph-loop-kiro-specs-script.sh
  3. Ensure the project has Kiro specs set up under .kiro/specs/<specs_name>/ with at least requirements.md, design.md, and tasks.md
  4. Ensure steering files exist under .kiro/steering/ (product.md, structure.md, tech.md) — these significantly improve output quality
Show full SKILL.md (348 more words)Show less

Usage

bash
./ralph-loop-kiro-specs-script.sh <max_iterations> <specs_name>
ArgumentDescription
max_iterationsMaximum number of loop iterations (positive integer). Each iteration implements one task. Set to at least the number of tasks plus a buffer for retries.
specs_nameName of the spec directory under .kiro/specs/. Must already exist with the required files.
Example
bash
# Run up to 15 iterations on the "auth-feature" spec
./ralph-loop-kiro-specs-script.sh 15 auth-feature
Iteration Modes

The script asks at startup whether to run automatically or manually:

  • Automatic — Tasks run back-to-back without pausing. Good for well-defined specs.
  • Manual — Pauses after each iteration for review. Good for new or unfamiliar specs.

Troubleshooting

Ralph gets stuck on a task (marked [F])

Fix the issue manually, update tasks.md to unmark the task, and re-run. The corrections from the failed attempt will still be in progress.md for the next iteration to learn from.

Max iterations reached without completion

Increase max_iterations and re-run. Ralph will pick up where it left off since it reads tasks.md to find the next incomplete task.

Agent implements more than one task per iteration

This violates the core constraint. Check that you're using the unmodified prompt template. The prompt has a critical constraint section at the top that enforces one-task-per-iteration.

Steering files are missing

Ralph works without them but produces better results with context. Create .kiro/steering/product.md, structure.md, and tech.md with descriptions of your product, project structure, and tech stack.

Quality Checklist

Before running Ralph Loop, verify:

  • kiro-cli is installed and available on PATH
  • Spec directory exists under .kiro/specs/<specs_name>/
  • requirements.md has numbered requirements with exit criteria
  • design.md has architecture and design decisions
  • tasks.md has a numbered task checklist with subtasks
  • Steering files exist under .kiro/steering/ (recommended)
  • max_iterations is set to at least the number of tasks + buffer
  • The prompt template (ralph-loop-kiro-specs-prompt.md) is in the project root
  • The script (ralph-loop-kiro-specs-script.sh) is executable

Bundled Resources

ResourcePathDescription
Runner scriptscripts/ralph-loop-kiro-specs-script.shThe bash loop that drives iterations. Copy to project root.
Prompt templatereferences/ralph-loop-kiro-specs-prompt.mdThe agent prompt template. Copy to project root.

Read the prompt template when you need to understand the detailed phase instructions, correction format, codebase pattern categories, or the summary dashboard specification.

License

This skill is based on ralph-loop-kiro-specs by mreferre, licensed under the Apache License 2.0.

Copyright [mreferre]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

© fabricioctelles, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 2 other files (scripts, references) in skills/ralph-loop-kiro-specs of fabricioctelles/skills.

  • SKILL.md
  • references/ralph-loop-kiro-specs-prompt.md
  • scripts/ralph-loop-kiro-specs-script.sh

Open the folder on GitHubat commit f1de632

Compare with similar skills

Ralph Loop Kiro Specs next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Ralph Loop Kiro Specs compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Ralph Loop Kiro Specs this skillfabricioctelles/skills106—~2.6kAutomated safety check: PassApache-2.0
Hook Development for Claude Code Pluginsanthropics/claude-plugins-official38k10 repos~4.1kAutomated safety check: NotesApache-2.0
Plugin Settings Patternanthropics/claude-plugins-official38k7 repos~3kAutomated safety check: PassApache-2.0
Show Me Your Work Decision Logcursor/plugins11k8 repos~1.6kAutomated safety check: PassNone
Neat-Freak Knowledge CloseoutKKKKhazix/khazix-skills21k—~1.9kAutomated safety check: PassMIT
Autoresearch Iteration Loopuditgoenka/autoresearch6.5k1 repos~2kAutomated safety check: PassMIT

Similar skills

  • Hook Development for Claude Code Plugins

    anthropics/claude-plugins-official

    Official

    Explains how to write Claude Code plugin hooks, both prompt-based checks and bash commands, for events such as PreToolUse, Stop and SessionStart.

    38k GitHub starsUsed in 10 repos~4.1k tokens
    Agent WorkflowsAuto-check: notes
  • Plugin Settings Pattern

    anthropics/claude-plugins-official

    Official

    Shows how Claude Code plugins keep per-project settings and state in .claude/plugin-name.local.md files with YAML frontmatter and a markdown body.

    38k GitHub starsUsed in 7 repos~3k tokens
    Agent WorkflowsAuto-check passed
  • Official

    Keeps a TSV decision log for long or unattended agent runs, one row per decision with what, why, evidence and result, so a reviewer can check the work later.

    11k GitHub starsUsed in 8 repos~1.6k tokens
    Agent WorkflowsAuto-check passed
  • Neat-Freak Knowledge Closeout

    KKKKhazix/khazix-skills

    Brings project docs, agent rule files, authorized memory and leftover workspace files back in line with what the code and runtime actually do at the end of a work session.

    21k GitHub stars~1.9k tokensUpdated 9 days ago
    Agent WorkflowsAuto-check passed
  • Autoresearch Iteration Loop

    uditgoenka/autoresearch

    Runs an autonomous modify, verify, keep-or-discard loop against any metric, with subcommands for planning, debugging, fixing, security audits, shipping and more.

    6.5k GitHub starsUsed in 1 repo~2k tokens
    Agent WorkflowsAuto-check passed
  • Crush Configuration

    charmbracelet/crush

    Explains how to configure the Crush coding agent with crushrc or crush.json, covering providers, models, LSPs, MCP servers, hooks, permissions and config precedence.

    29k GitHub stars~3.7k tokensUpdated today
    Agent WorkflowsAuto-check passed

More from fabricioctelles/skills

All 15 skills in this repo
  • Motion Ad

    fabricioctelles/skills

    Produce a short motion-graphics video ad — a 15s Facebook/Instagram/TikTok spot — as a rendered MP4.

    106 GitHub stars~4.1k tokensUpdated 6 days ago
    Auto-check passed
  • Agent Plugin Eval

    fabricioctelles/skills

    Audit, score, and compare repositories containing portable Agent Plugins against the official Agent Plugins specification.

    106 GitHub stars~2.1k tokensUpdated 6 days ago
    Auto-check passed
  • Loop Architect

    fabricioctelles/skills

    Design well-structured agent loops with best-practice coaching and cross-model review gates before you run them.

    106 GitHub stars~2.1k tokensUpdated 6 days ago
    Auto-check: notes
  • Pier Cloud

    fabricioctelles/skills

    This skill should be used when the user needs to consume the Pier Cloud (Lighthouse) API for cloud cost management — including JWT authentication, listing contexts, workspaces, workspace groups, and…

    106 GitHub stars~1.1k tokensUpdated 6 days ago
    Auto-check: notes
  • Security Specialist

    fabricioctelles/skills

    Runs security audits on codebases — full scans, diff reviews, threat models, vulnerability triage, remediation guidance, and finding tracking.

    106 GitHub stars~2.8k tokensUpdated 6 days ago
    Auto-check passed
  • Skill Evaluation

    fabricioctelles/skills

    Evaluate any agent skill against a merged framework — Anthropic's Claude Code best practices plus Matt Pocock's writing-great-skills methodology — across 4 axes (Trigger, Structure, Steering…

    106 GitHub stars~3.8k tokensUpdated 6 days ago
    Auto-check passed

Works with

Categories

Questions about Ralph Loop Kiro Specs

What does Ralph Loop Kiro Specs do?

Automated iterative agent runner for spec-based development in Kiro. Ralph Loop Kiro Specs is an agent skill from fabricioctelles/skills. Automated iterative agent runner for spec-based development in Kiro.

When should I use Ralph Loop Kiro Specs?

Ralph Loop Kiro Specs fits situations like: the user mentions ralph loop; iterative spec runner; run my spec tasks automatically; kiro spec automation.

How do I install Ralph Loop Kiro Specs in Claude Code?

Run `npx skills add fabricioctelles/skills --skill ralph-loop-kiro-specs -a claude-code`. Or copy the skill folder (skills/ralph-loop-kiro-specs in fabricioctelles/skills) into .claude/skills/ralph-loop-kiro-specs in your project. Claude Code loads it when a task matches its description.

How do I install Ralph Loop Kiro Specs in Codex?

Run `npx skills add fabricioctelles/skills --skill ralph-loop-kiro-specs -a codex`. Or copy the skill folder (skills/ralph-loop-kiro-specs in fabricioctelles/skills) into .agents/skills/ralph-loop-kiro-specs in your project. Codex loads it when a task matches its description.

Can I use Ralph Loop Kiro Specs in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add fabricioctelles/skills --skill ralph-loop-kiro-specs -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ralph-loop-kiro-specs, .gemini/skills/ralph-loop-kiro-specs, .github/skills/ralph-loop-kiro-specs and .opencode/skills/ralph-loop-kiro-specs in your project.

What does Ralph Loop Kiro Specs need to run?

Going by SKILL.md and its folder, Ralph Loop Kiro Specs needs a shell for the scripts in its folder. Our summary lists: Python 3; A Bash shell.

Does Ralph Loop Kiro Specs access the network?

SKILL.md names 3 domains. In commands or code: apache.org; the agent is likely to contact it when it follows the instructions. As links in the text: github.com and kiro.dev. This is read from the text; nothing was executed.

Is Ralph Loop Kiro Specs safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Ralph Loop Kiro Specs use?

Ralph Loop Kiro Specs is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Ralph Loop Kiro Specs use?

About 2.6k tokens (SKILL.md is roughly 10k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 4k tokens, read only when the agent opens those files.

What are the alternatives to Ralph Loop Kiro Specs?

Skills that share tags, products or a category with Ralph Loop Kiro Specs: Hook Development for Claude Code Plugins (anthropics/claude-plugins-official, 38k stars), Plugin Settings Pattern (anthropics/claude-plugins-official, 38k stars), Show Me Your Work Decision Log (cursor/plugins, 11k stars) and Neat-Freak Knowledge Closeout (KKKKhazix/khazix-skills, 21k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Ralph Loop Kiro Specs?

fabricioctelles (a GitHub user) maintains it in fabricioctelles/skills, which has 106 GitHub stars. The repository holds 15 skills in this directory. The repository was last updated on October 4, 2026.

Source: fabricioctelles/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.