execute-feedback

Solid

Execute tests on generated code and iterate until passing

AI & Automation 141 stars 20 forks Updated today MIT

Install

View on GitHub

Quality Score: 93/100

Stars 20%
72
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Execute Feedback Command Run executable feedback loop on generated code: execute tests, analyze failures, fix, and retry. ## Instructions When invoked, perform the executable feedback loop per REF-013 MetaGPT: 1. **Identify Target** - Load the specified file or recently modified code files - Determine test framework (jest, pytest, cargo test, go test, etc.) - Find existing tests or generate test stubs if none exist 2. **Execute Tests** - Run the specified test command (or auto-detect) - Capture full output (stdout, stderr, exit code) - Parse test results: passed, failed, errors, skipped 3. **Analyze Failures** - For each failing test: - Extract error type and message - Identify root cause (null check, type error, logic error, etc.) - Map to source code location - Check debug memory for similar past failures 4. **Apply Fixes** - Generate targeted fix based on root cause analysis - Apply fix to source code - Increment attempt counter 5. **Re-Execute** - Run tests again after fix - Compare results to previous attempt - If all pass: record success in debug memory, return - If still failing: repeat from step 3 6. **Escalate if Needed** - After max attempts (default: 3), escalate to human - Include: all test results, failure analyses, fix attempts - Save debug memory session 7. **Update Debug Memory** - Record execution session in `.aiwg/ralph/debug-memory/sessions/` - Extract learned patterns to...

Details

Author
jmagly
Repository
jmagly/aiwg
Created
9 months ago
Last Updated
today
Language
TypeScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category