david-li0406/meta-skill-evloving/jikime-workflow-loop

Claude Code and agent skill by david-li0406/meta-skill-evloving

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Ralph Loop workflow for iterative code improvement with LSP/AST-grep feedback

Install

npx vskill@latest install david-li0406/meta-skill-evloving/jikime-workflow-loop

SKILL.md

Ralph Loop Workflow

Intelligent iterative code improvement with LSP/AST-grep feedback.

Quick Reference (30 seconds)

Ralph Loop enables autonomous code improvement through:

  • Evidence-Based Iteration: Every loop collects LSP/AST-grep diagnostics
  • Progressive Improvement: Track improvement rate across iterations
  • Smart Termination: Auto-stop on stagnation, max iterations, or completion
Start a Loop
bash
jikime hooks start-loop --task "Fix all TypeScript errors" --max-iterations 10
Completion Markers

Output one of these when done:

  • <jikime:done />
  • <jikime:complete />
  • <jikime>DONE</jikime>

Execution Protocol

Phase 1: Initial Analysis

When loop starts:

  1. Assess current state (error/warning counts)
  2. Identify scope (files, directories)
  3. Prioritize issues (errors before warnings)
Phase 2: Iterative Execution

Each iteration:

  1. Focus on highest severity issues first
  2. Make targeted fixes (one problem at a time)
  3. Verify changes don't introduce new issues
  4. Let LSP/AST-grep validate automatically
Phase 3: Completion

Loop completes when:

  • All conditions satisfied (e.g., zero errors)
  • Completion marker output (<jikime:done />)
  • Max iterations reached
  • Stagnation detected (no improvement in N iterations)

Feedback Integration

The loop collects diagnostics automatically via hooks:

  • PostToolUse (LSP): Error/warning counts per file
  • PostToolUse (AST-grep): Security issue detection
  • Stop Hook: Evaluates completion, calculates progress
Example Feedback Output
Ralph Loop: CONTINUE | Iteration: 3/10 | Current: 5 error(s), 12 warning(s)
Progress: 45% improvement | Next: Fix 5 remaining error(s)

Completion Criteria Options

CriteriaFlagDescription
Zero Errors--zero-errorsRequire 0 errors (default: true)
Zero Warnings--zero-warningsRequire 0 warnings
Zero Security--zero-securityRequire 0 security issues
Tests Pass--tests-passRequire all tests to pass
Stagnation--stagnation-limit NStop after N iterations without improvement

Safety Guidelines

Avoid Infinite Loops
  1. Always set --max-iterations (default: 10)
  2. Don't ignore stagnation warnings
  3. Use completion markers when truly done
Best Practices
  1. Start with specific, measurable goals
  2. Fix one issue type at a time
  3. Verify each fix before proceeding
  4. Output <jikime:done /> when complete

Command Reference

Start Loop
bash
jikime hooks start-loop \
--task "Description" \
--max-iterations 10 \
--zero-errors \
--tests-pass
Cancel Loop
bash
jikime hooks cancel-loop
Check Status

The Stop hook automatically reports status after each Claude response.

Integration with DDD

Ralph Loop integrates with Domain-Driven Development:

  1. ANALYZE: Loop collects diagnostic data
  2. PRESERVE: Each iteration validates existing behavior
  3. IMPROVE: Progressive fixes with measurable progress

Use manager-ddd for behavior-preserving iterations.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
2
Repository forks
1
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/david-li0406/meta-skill-evloving/jikime-workflow-loop/badge)](https://verified-skill.com/skills/david-li0406/meta-skill-evloving/jikime-workflow-loop)

Something wrong with this skill or its page? Tell us.