moai-workflow-loop

Orchestrate LSP diagnostics and AST-grep checks in an iterative code-quality loop.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/binee108/PasteTrader --skill moai-workflow-loop-binee108
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: moai-workflow-loop
Source: https://github.com/binee108/PasteTrader/tree/main/.claude/skills/moai-workflow-loop
Command: npx skills add https://github.com/binee108/PasteTrader --skill moai-workflow-loop-binee108

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the repetitive, quality-focused iteration of software development by coordinating an automated feedback loop that combines LSP diagnostics, AST-grep security/quality checks, and test validation within the Ralph Engine.

Core Features & Use Cases

  • Real-time LSP diagnostic integration that identifies errors and warnings after code changes.
  • AST-grep scanning to detect security and quality issues across codebases.
  • Iterative feedback loop with post-tool diagnostics and loop-control hooks to auto-fix when allowed and stop when completion criteria are met.
  • Suitable for continuous quality validation workflows in multi-language projects (Python, TypeScript, Go) and CI/CD pipelines.

Quick Start

Start the Ralph workflow loop to begin automated quality improvements:

  • /moai:loop to start the loop with default settings.
  • /moai:loop --max-iterations 5 to cap iterations.
  • /moai:fix to apply available automated fixes.
  • /moai:cancel-loop to stop the loop.

Frequently Asked Questions about moai-workflow-loop

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate iterative code quality loops using LSP diagnostics?

You can automate iterative code quality loops by orchestrating LSP diagnostics and AST-grep checks within a continuous feedback cycle. This skill coordinates error detection, applies automated fixes, and validates quality across multi-language projects.

Can I use AST-grep to detect security issues during an automated code feedback loop?

Yes, AST-grep can detect security and quality issues during an automated code feedback loop. This skill integrates AST-grep scanning alongside LSP diagnostics to continuously identify and fix vulnerabilities across your codebase.

How do I configure loop controls and completion criteria for automated code fixes?

Configuring loop controls and completion criteria for automated code fixes involves setting maximum iteration limits and defining stop conditions. You can cap iterations using flags like --max-iterations 5 and define completion criteria to halt the loop automatically.

Does this automated workflow validation support multi-language projects like Python, TypeScript, and Go?

Yes, this automated workflow validation supports multi-language projects including Python, TypeScript, and Go. It integrates LSP diagnostics and AST-grep checks to provide continuous quality validation across diverse codebases and CI/CD pipelines.

What are the limitations of using LSP diagnostics for continuous code validation?

Limitations of using LSP diagnostics for continuous code validation include potential dependency on language server availability and the need for proper post-tool diagnostic hooks. The loop requires configurable completion criteria to prevent infinite cycles.