auto-test-execution

Solid

Automatically execute tests when code-generating agents modify source files, enforcing the execute-before-return pattern

AI & Automation 141 stars 20 forks Updated today MIT

Install

View on GitHub

Quality Score: 90/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

# auto-test-execution Automatically execute tests when code-generating agents write to source files, enforcing the execute-before-return pattern. ## Triggers Primary phrases matched automatically from skill description. No additional alternate expressions defined. ## Purpose This skill enforces the MetaGPT executable feedback pattern: code-generating agents must execute tests before returning results to the user. It activates automatically when agents modify source code files. ## Behavior When triggered, this skill: 1. **Detect modified files**: - Track which source files the agent has written to - Identify the relevant test framework 2. **Find related tests**: - Look for test files matching the modified source - Convention: `src/foo/bar.ts` -> `test/unit/foo/bar.test.ts` - If no tests exist, prompt agent to generate them 3. **Execute tests**: - Run the project's test command focused on relevant tests - Capture results: passed, failed, errors 4. **Handle results**: - All pass: Allow agent to return results - Failures: Trigger debug-and-retry loop (max 3 attempts) - Persistent failures: Escalate with debug memory context 5. **Update debug memory**: - Record session in `.aiwg/ralph/debug-memory/sessions/` - Extract patterns for future reference ## Activation Conditions ```yaml activation: always_active_for: - software-implementer - debugger - test-engineer triggered_by: - file_write: patterns: ...

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

AI & Automation Solid

execute-feedback

Execute tests on generated code and iterate until passing

141 Updated today
jmagly
AI & Automation Solid

go-test-generator

Generate go test generator operations. Auto-activating skill for Test Automation. Triggers on: go test generator, go test generator Part of the Test Automation skill category. Use when writing or running tests. Trigger with phrases like "go test generator", "go generator", "go".

2,266 Updated today
jeremylongshore
AI & Automation Solid

pytest-test-generator

Generate pytest test generator operations. Auto-activating skill for Test Automation. Triggers on: pytest test generator, pytest test generator Part of the Test Automation skill category. Use when writing or running tests. Trigger with phrases like "pytest test generator", "pytest generator", "pytest".

2,266 Updated today
jeremylongshore
Testing & QA Solid

code-testing-agent

Generates comprehensive, workable unit tests for any programming language using a multi-agent pipeline. Use when asked to generate tests, write unit tests, improve test coverage, add test coverage, create test files, or test a codebase. Supports C#, TypeScript, JavaScript, Python, Go, Rust, Java, and more. Orchestrates research, planning, and implementation phases to produce tests that compile, pass, and follow project conventions.

3,196 Updated yesterday
dotnet
AI & Automation Solid

api-test-generator

Generate api test generator operations. Auto-activating skill for Test Automation. Triggers on: api test generator, api test generator Part of the Test Automation skill category. Use when working with APIs or building integrations. Trigger with phrases like "api test generator", "api generator", "api".

2,266 Updated today
jeremylongshore