execute-feedback
FeaturedExecute tests on generated code and iterate until passing
AI & Automation 201 stars
29 forks Updated today MIT
Install
Quality Score: 93/100
Stars 20%
Recency 20%
Frontmatter 20%
Documentation 15%
Issue Health 10%
License 10%
Description 5%
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
- 1 years ago
- Last Updated
- today
- Language
- TypeScript
- License
- MIT
Integrates with
Similar Skills
Semantically similar based on skill content — not just same category
AI & Automation Featured
auto-test-execution
Automatically execute tests when code-generating agents modify source files, enforcing the execute-before-return pattern
201 Updated today
jmagly AI & Automation Listed
simple-experiment-loop
Use when the user wants to fix a failing test, resolve build errors, reduce bundle size, optimize a function, or run a TDD loop. Drives a fast, deterministic inner loop using local terminal commands.
0 Updated 1 months ago
cauldnz AI & Automation Listed
evaluate
Use for repeatable quality or safety evaluation of stochastic or judgement-bearing systems, prompts, agents, rankings, or artifacts. Not for deterministic tests or ordinary code review; use tdd or code-review.
1 Updated 4 days ago
mblauberg