Logo: Ralph Loop Kiro Specs

Ralph Loop Kiro Specs

Communautéit
fabricioctelles
ralph-loop-kiro-specs

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.

Iwwersiicht

Editeurfabricioctelles
Repositoryskills
Skill-Nummralph-loop-kiro-specs
Stären
87
Forks
7
Matgeliwwert Dateien
2
LizenzApache-2.0
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 2 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    fabricioctelles huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Ralph Loop Kiro Specs an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/fabricioctelles/skills/tree/main/skills/ralph-loop-kiro-specs
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/fabricioctelles/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/skills/ralph-loop-kiro-specs .claude/skills/ralph-loop-kiro-specs
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Ralph Loop Kiro Specs an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Ralph Loop Kiro Specs automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Ralph Loop Kiro Specs net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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

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.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Ralph Loop Kiro Specs?

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 t...

Firwat Ralph Loop Kiro Specs op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Ralph Loop Kiro Specs besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Ralph Loop Kiro Specs an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/fabricioctelles/skills/tree/main/skills/ralph-loop-kiro-specs an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Ralph Loop Kiro Specs benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Ralph Loop Kiro Specs benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Ralph Loop Kiro Specs domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Ralph Loop Kiro Specs gratis?

Jo. fabricioctelles huet de Skill ënner der Lizenz Apache-2.0 op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇