Logo van Ralph Loop Kiro Specs

Ralph Loop Kiro Specs

Community
fabricioctelles
ralph-loop-kiro-specs

Geautomatiseerde, iteratieve agentrunner voor spec-gebaseerde ontwikkeling in Kiro. Wikkelt kiro-cli in een zelfcorrigerende bash-loop die taken uit een Kiro-spec oppakt, ze één voor één implementeert, ze controleert aan de hand van de exitcriteria en correcties en codebasepatronen verzamelt gedurende de iteraties. Gebruik deze skill wanneer de gebruiker ‘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’ of ‘automated task implementation’ noemt, of een Kiro-spec via herhaalde agentiteraties wil afronden. Gebruik deze skill ook wanneer de gebruiker de workflow van Ralph Loop wil instellen, configureren, troubleshooten of begrijpen, inclusief voortgangsregistratie, correcties, codebasepatronen, tijdslogs en het overzichtsdashboard.

Overzicht

Uitgeverfabricioctelles
Repositoryskills
Skillnaamralph-loop-kiro-specs
Sterren
87
Forks
7
Meegeleverde bestanden
2
LicentieApache-2.0
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Meegeleverde bestanden: 2

    Scripts, sjablonen en referentiemateriaal die het model tijdens het werken kan lezen. De bestanden kunnen alleen worden gelezen en worden nooit uitgevoerd.

  • Open source

    Gepubliceerd door fabricioctelles op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Ralph Loop Kiro Specs in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/fabricioctelles/skills/tree/main/skills/ralph-loop-kiro-specs
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die 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 na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Ralph Loop Kiro Specs in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Ralph Loop Kiro Specs automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Ralph Loop Kiro Specs niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

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.

Meegeleverde bestanden

Zolang de skill geladen is, leest het model deze bestanden als dat nodig is. Het model kan ze alleen lezen; ze worden nooit uitgevoerd.

Veelgestelde vragen

Wat doet de AI-skill Ralph Loop Kiro Specs?

Geautomatiseerde, iteratieve agentrunner voor spec-gebaseerde ontwikkeling in Kiro. Wikkelt kiro-cli in een zelfcorrigerende bash-loop die taken uit een Kiro-spec oppakt, ze één voor één implementeert, ze controleert aan de hand van de exitcriteria en correcties en codebasepatronen verzamelt gedurende de iteraties. Gebruik deze skill wanneer de gebruiker ‘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’ of ‘automated task implementati...

Waarom Ralph Loop Kiro Specs gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Ralph Loop Kiro Specs bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Ralph Loop Kiro Specs in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/fabricioctelles/skills/tree/main/skills/ralph-loop-kiro-specs. TypingMind leest het bestand SKILL.md, bundelt de bijbehorende bestanden en installeert het geheel als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Ralph Loop Kiro Specs gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Ralph Loop Kiro Specs gebruiken?

Zoveel als je wilt. Je kunt Ralph Loop Kiro Specs gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Ralph Loop Kiro Specs gratis?

Ja. Deze skill is door fabricioctelles op GitHub gepubliceerd onder de licentie Apache-2.0. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇