ralph-loop-kiro-specs
Automated iterative agent runner for spec-based development in Kiro.
Skill by ft.ia.br
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/fabricioctelles-ralph-loop-kiro-specs
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: data, productivity, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Shell scripts
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/ralph-loop-kiro-specs
What's inside
- Skill 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.
- License
- Apache-2.0
- Metadata
- date: 2026-04-28 · author: ft.ia.br · license: Apache-2.0 · version: 1.0 · category: code-scaffolding-and-templates · original_author: mreferre · original_project: https://github.com/mreferre/ralph-loop-kiro-specs
- Instructions
- 180 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (3)
- SKILL.md
- ralph-loop-kiro-specs-prompt.md · references/
- ralph-loop-kiro-specs-script.sh · scripts/
SKILL.md (first lines)
# Ralph Loop for Kiro Specs
An automated, iterative agent runner that drives spec-based development in [Kiro](https://kiro.dev). 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](https://github.com/mreferre/ralph-loop-kiro-specs) by [mreferre](https://github.com/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
| Requirement | Details |
|---|---|
| Kiro CLI | `kiro-cli` must be installed and on `PATH` ([kiro.dev/cli](https://kiro.dev/cli/)) |
| Kiro IDE | [kiro.dev](https://kiro.dev/) installed |
| Bash | Standard bash shell |
| Kiro Specs | A 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
## Usage
```bash
./ralph-loop-kiro-specs-script.sh <max_iterations> <specs_name>
```
| Argument | Description |
|---|---|
| `max_iterations` | Maximum 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_name` | Name 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.
## TroubleshootingFrom fabricioctelles/skills, Apache-2.0.
More from fabricioctelles/skills
- 0.785score
loop-architect
https://ft.ia.br
Design well-structured agent loops with best-practice coaching and cross-model review gates before you run them.
SkillAFreshness: A★ 119Claude Code +9 - 0.785score
motion-ad
danny.md — https://www.danny.md/skills/motion-ad
Produce a short motion-graphics video ad — a 15s Facebook/Instagram/TikTok spot — as a rendered MP4.
SkillAFreshness: A★ 119Claude Code +9 - 0.785score
humanizar
fabricioctelles
Write and edit Brazilian Portuguese prose with natural rhythm and the author's voice while preserving facts, meaning, and intent.
SkillAFreshness: A★ 119Claude Code +9 - 0.785score
pstack-skill
Port of pstack by Lauren Tan (MIT) — cursor/plugins/pstack and ericlitman/open-pstack
Rigorous engineering orchestrator ported from Lauren Tan's pstack (poteto-mode): reads your task, picks one of 23 playbooks (bug fix, feature, refactoring…
SkillAFreshness: A★ 119Claude Code +9 - 0.785score
human-ai
https://ft.ia.br
Edit English prose to remove repetitive AI phrasing, inflated language, and mechanical structure while preserving meaning and the author's voice.
SkillAFreshness: A★ 119Claude Code +9 - 0.785score
human-ai
fabricioctelles
Edit English prose to remove repetitive AI phrasing, inflated language, and mechanical structure while preserving facts, meaning, and the author's voice.
SkillAFreshness: A★ 119Claude Code +9 - 0.774score
humanizar
https://ft.ia.br
Reescreve textos em português brasileiro para soarem mais humanos e naturais, reduzindo padrões típicos de escrita gerada por IA sem alterar fatos, argumento…
SkillAFreshness: A★ 119Claude Code +9 - 0.768score
agent-ready-cloudflare
Cloudflare / isitagentready.com
Audit and improve website readiness for AI agents using the Cloudflare "Is It Agent Ready?" scanner (isitagentready.com).
SkillAFreshness: A★ 119Claude Code +9 - 0.768score
coolify-operator
ft.ia.br
Master Coolify operator for self-hosted deployment platform.
SkillAFreshness: A★ 119Claude Code +9 - 0.739score
design-md-validator
https://ft.ia.br
Validate DESIGN.md files against the official Google specification using the `@google/design.md` CLI linter.
SkillBFreshness: B★ 119Claude Code +9 - 0.739score
slop-eval
https://ft.ia.br
Objectively evaluate a UI/web design against the pols.dev anti-slop design law: detect catalogued slop tells with cited evidence, score 8 weighted axes…
SkillBFreshness: B★ 119Claude Code +9 - 0.739score
agent-plugin-eval
fabricioctelles
Audit, score, and compare repositories containing portable Agent Plugins against the official Agent Plugins specification.
SkillBFreshness: B★ 119Claude Code +9
Signals
- Stars
- 119
- Forks
- 10
- Open issues
- 0
- Last commit (this folder)
- Jun 27, 2026 (4 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- Version
- 1.0
- License
- Apache-2.0
- Repository
- github.com/fabricioctelles/skills
- Website
- skilldev.pro
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from ft.ia.br
- 0.768score
coolify-operator
ft.ia.br
Master Coolify operator for self-hosted deployment platform.
SkillAFreshness: A★ 119Claude Code +9 - 0.733score
startup-idea
ft.ia.br
Analyze startups with Paul Graham mindset (pressure, founder-market fit, brutal validation), Dan Koe discipline (monetization, offer, distribution, sales)…
SkillBFreshness: B★ 119Claude Code +9 - 0.728score
okf-open-knowledge-format
ft.ia.br
Create, validate, and enrich Open Knowledge Format (OKF) bundles — the open spec for representing organizational knowledge as markdown files with YAML…
SkillBFreshness: B★ 119Claude Code +9 - 0.681score
astro-sites-manager
ft.ia.br
Comprehensive skill for building, migrating, and maintaining Astro v7 projects.
SkillCFreshness: C★ 119Claude Code +9 - 0.681score
geo-optimization
ft.ia.br
Optimize content for AI-generated responses and LLM citations (ChatGPT, Perplexity, Google AI Overview, Claude, Gemini).
SkillCFreshness: C★ 119Claude Code +9 - 0.681score
security-specialist
ft.ia.br
Runs security audits on codebases — full scans, diff reviews, threat models, vulnerability triage, remediation guidance, and finding tracking.
SkillCFreshness: C★ 119Claude Code +9
Cite this page
ralph-loop-kiro-specs skill. Agent Mart. https://agentmart.dev/skills/fabricioctelles-ralph-loop-kiro-specs (last updated 2026-10-24)