install
source · Clone the upstream repo
git clone https://github.com/Brownbull/taskflow
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/Brownbull/taskflow "$T" && mkdir -p ~/.claude/skills && cp -r "$T/.claude/skills/architecture/test-pyramid-enforcer" ~/.claude/skills/brownbull-taskflow-test-pyramid-enforcer && rm -rf "$T"
manifest:
.claude/skills/architecture/test-pyramid-enforcer/skill.mdsource content
Test Pyramid Enforcer Skill
Purpose
Ensures proper test distribution across different test types based on current tier, maintaining the optimal testing pyramid shape.
Tier
Tier 3-4 - Scale to Enterprise
Test Distribution by Tier
Tier 0-1: Traditional Pyramid
E2E (5%) Integration (15%) Unit Tests (80%)
Tier 2: Balanced Pyramid
E2E (15%) Integration (35%) Unit Tests (50%)
Tier 3-4: Trophy Shape
E2E (10%) Integration (50%) Component (25%) Unit Tests (15%)
Enforcement Rules
- Monitors test count and execution time
- Alerts when distribution skews
- Recommends test type additions
- Identifies over-tested areas
- Suggests test consolidation
Metrics Tracked
- Test count by type
- Execution time by type
- Coverage by type
- Maintenance burden
- Bug detection rate
- ROI per test type
Recommendations
- Where to add tests
- Which tests to remove
- Test type migration paths
- Optimization opportunities