Skip to content

Conversation

@shinpr
Copy link
Owner

@shinpr shinpr commented Nov 6, 2025

Implement 3-layer quality filtering to prevent over-generation:

  • Behavior-First: Filter implementation details at AC level
  • Two-Pass Generation: ROI-based candidate selection
  • Budget Enforcement: Hard limits (max 3 integration, 1-2 E2E/feature)

Changes:

  • acceptance-test-generator.md: Add ROI calculation, budget system, skip reporting
  • technical-designer.md: Add Behavior-First Principle with 3-check process

Impact: Expected 60-75% test reduction with 3-5x ROI improvement

🤖 Generated with Claude Code

Implement 3-layer quality filtering to prevent over-generation:
- Behavior-First: Filter implementation details at AC level
- Two-Pass Generation: ROI-based candidate selection
- Budget Enforcement: Hard limits (max 3 integration, 1-2 E2E/feature)

Changes:
- acceptance-test-generator.md: Add ROI calculation, budget system, skip reporting
- technical-designer.md: Add Behavior-First Principle with 3-check process

Impact: Expected 60-75% test reduction with 3-5x ROI improvement

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@shinpr shinpr self-assigned this Nov 6, 2025
Remove skip information tracking from acceptance-test-generator:
- Remove skip report from test files and generation reports
- Remove skip tracking from mandatory compliance section
- Remove maxSkippedROI from roiMetrics
- Focus only on selected tests to reduce context pollution

Simplify technical-designer AC scoping section:
- Remove verbose 3-check process (duplicated with acceptance-test-generator)
- Remove domain-specific examples (bcrypt, Redis, authentication)
- Use generic, domain-agnostic examples
- Remove upstream/downstream references (violates agent independence)

Unify latest information research guidelines:
- Add Mandatory/Recommended distinction for better decision-making
- Dynamically fetch current year with date command
- Replace hardcoded "2024" with {current_year} placeholder
- Apply to technical-designer and document-reviewer

Benefits:
- Reduced token consumption and context pollution
- Eliminated redundancy between agent files
- Future-proof search queries (no year hardcoding)
- Improved LLM generation precision

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@shinpr shinpr marked this pull request as ready for review November 7, 2025 01:13
@shinpr shinpr merged commit 7ac9508 into main Nov 7, 2025
1 check passed
@shinpr shinpr deleted the refactor/test-generation-optimization branch November 7, 2025 01:14
shinpr added a commit to shinpr/claude-code-workflows that referenced this pull request Nov 7, 2025
…ject-boilerplate

Implement 3-layer quality filtering to prevent test over-generation:
- Behavior-First: Filter implementation details at AC level
- Two-Pass Generation: ROI-based candidate selection
- Budget Enforcement: Hard limits (max 3 integration, 1-2 E2E/feature)

Changes:
- acceptance-test-generator.md: Add ROI calculation, budget system, detailed reporting
- document-reviewer.md: Add dynamic year detection for future-proof searches
- technical-designer.md: Add AC examples (implementation vs behavior), dynamic year detection

Source: shinpr/ai-coding-project-boilerplate#91
Impact: Expected 60-75% test reduction with improved maintainability

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants