From tac
Designs closed-loop prompts with Request-Validate-Resolve structure for reliable agentic workflows, self-validating agents, feedback loops, and test-fix cycles.
npx claudepluginhub melodic-software/claude-code-plugins --plugin tacThis skill is limited to using the following tools:
Guide for designing closed-loop prompts that ensure agent reliability through feedback loops.
Applies RED-GREEN-REFACTOR TDD to test workflow instructions and commands: reproduces real failures with subagents, clarifies docs before deployment.
Provides patterns for continuous autonomous agent loops with quality gates, evals, and recovery controls. Useful for production agent workflows to avoid churn, retries, and stalls.
Provides patterns for autonomous Claude Code loops: sequential pipelines, agentic REPLs, PR cycles, de-sloppify cleanups, and RFC-driven multi-agent DAGs. For continuous dev workflows without intervention.
Share bugs, ideas, or general feedback.
Guide for designing closed-loop prompts that ensure agent reliability through feedback loops.
Every agentic operation should follow the Request-Validate-Resolve pattern:
REQUEST → VALIDATE → RESOLVE
↑ ↓
└────────────────────┘
What task needs to be validated?
How do we know if it succeeded?
| Operation Type | Validation Mechanism |
|---|---|
| Code changes | Run tests, type check, lint |
| File operations | Verify file exists, check content |
| API interactions | Check response status, validate data |
| Build operations | Build succeeds, no errors |
What happens on failure?
Template:
## Closed Loop: [Operation Name]
### Request
[Clear task description with success criteria]
### Validate
- Command: `[validation command]`
- Success: [what success looks like]
- Failure: [what failure looks like]
### Resolve (if validation fails)
1. Analyze the failure output
2. Identify root cause
3. Apply minimal fix
4. Return to Validate step
5. Maximum 3 retry attempts
## Closed Loop: Implement Feature
### Request
Implement the user login feature according to spec.
### Validate
- Command: `pytest tests/test_auth.py -v`
- Success: All tests pass (exit code 0)
- Failure: One or more tests fail
### Resolve
1. Read failing test output
2. Identify which test failed and why
3. Fix the implementation (not the test)
4. Re-run pytest
5. Maximum 3 retry attempts
REQUEST: Write/modify code
VALIDATE: Lint + Type check + Tests
RESOLVE: Fix errors iteratively
REQUEST: Make changes
VALIDATE: Full build succeeds
RESOLVE: Fix build errors
REQUEST: Implement user flow
VALIDATE: E2E test passes
RESOLVE: Fix failing steps
Date: 2025-12-26 Model: claude-opus-4-5-20251101