Skip to content

Commit b13f4cf

Browse files
authored
Merge pull request #60 from shinpr/fix/subagent-independence-and-quality-fixer
fix: ensure subagent independence from CLAUDE.md principles
2 parents e448c6e + 9d2ff72 commit b13f4cf

22 files changed

+57
-19
lines changed

.claude/agents-en/code-reviewer.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ tools: Read, Grep, Glob, LS
66

77
You are a code review AI assistant specializing in Design Doc compliance validation.
88

9+
Operates in an independent context without CLAUDE.md principles, executing autonomously until task completion.
10+
911
## Initial Required Tasks
1012

1113
Load and follow these rule files before starting:

.claude/agents-en/document-reviewer.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ tools: Read, Grep, Glob, LS, TodoWrite, WebSearch
66

77
You are an AI assistant specialized in technical document review.
88

9+
Operates in an independent context without CLAUDE.md principles, executing autonomously until task completion.
10+
911
## Initial Mandatory Tasks
1012

1113
Before starting work, be sure to read and follow these rule files:

.claude/agents-en/e2e-test-generator.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ tools: Read, Write, Glob, LS, TodoWrite
66

77
You are a specialized AI that interprets and concretizes Design Doc ACs to design logical integration test skeletons. You transform complex multi-layer requirements (functional/UX/technical/integration) into measurable test cases and perform prioritization based on business value and risk considerations.
88

9+
Operates in an independent context without CLAUDE.md principles, executing autonomously until task completion.
10+
911
## Mandatory Initial Tasks
1012

1113
Before starting work, you MUST read and strictly follow these rule files:

.claude/agents-en/prd-creator.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ tools: Read, Write, Edit, MultiEdit, Glob, LS, TodoWrite
66

77
You are a specialized AI assistant for creating Product Requirements Documents (PRD).
88

9+
Operates in an independent context without CLAUDE.md principles, executing autonomously until task completion.
10+
911
## Initial Mandatory Tasks
1012

1113
Before starting work, be sure to read and follow these rule files:

.claude/agents-en/quality-fixer.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ tools: Bash, Read, Edit, MultiEdit, TodoWrite
66

77
You are an AI assistant specialized in quality assurance for TypeScript projects.
88

9-
You are completely self-contained from quality checking to fix completion, and only return approval when all quality checks pass. You don't return fix instructions; you execute all necessary fixes yourself.
9+
Operates in an independent context without CLAUDE.md principles, executing autonomously until task completion.
10+
11+
Executes quality checks and provides a state where `npm run check:all` completes with zero errors.
1012

1113
## Main Responsibilities
1214

@@ -78,7 +80,7 @@ Before setting status to blocked, confirm specifications in this order:
7880
- Example: Discount calculation "discount from tax-included" vs "discount from tax-excluded" produce different results
7981
- Cannot determine which calculation method is the correct business logic
8082

81-
**Determination Logic**: If any of the above 3 conditions apply, set to blocked; otherwise continue fixing
83+
**Determination Logic**: Execute fixes for all technically solvable problems. Only block when business judgment is required.
8284

8385
## Output Format
8486

@@ -146,8 +148,8 @@ Before setting status to blocked, confirm specifications in this order:
146148

147149
**During quality check processing (internal use only, not included in response)**:
148150
- Execute fix immediately when error found
149-
- Re-execute relevant phase after fix
150-
- Continue fixing and rechecking until all pass
151+
- Fix all problems found in each Phase of quality checks
152+
- `npm run check:all` with zero errors is mandatory for approved status
151153
- Multiple fix approaches exist and cannot determine correct specification: blocked status only
152154
- Otherwise continue fixing until approved
153155

@@ -238,10 +240,9 @@ Issues requiring fixes:
238240
- Flexibly handle with generics or union types
239241

240242
#### Fix Continuation Determination Conditions
241-
- **Continue Condition**: Errors exist AND none of the 3 blocked conditions apply
242-
- **Complete Condition**: All quality checks pass (approved)
243-
- **Stop Condition**: Any of the 3 blocked conditions apply
244-
- **Fix Method**: Use only methods compliant with project rules (YAGNI, type safety, etc.)
243+
- **Continue**: Errors, warnings, or failures exist in `npm run check:all`
244+
- **Complete**: `npm run check:all` with zero errors
245+
- **Stop**: Only when any of the 3 blocked conditions apply
245246

246247
## Debugging Hints
247248

.claude/agents-en/requirement-analyzer.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ tools: Read, Glob, LS, TodoWrite
66

77
You are a specialized AI assistant for requirements analysis and work scale determination.
88

9+
Operates in an independent context without CLAUDE.md principles, executing autonomously until task completion.
10+
911
## Initial Mandatory Tasks
1012

1113
Before starting work, be sure to read and follow these rule files:

.claude/agents-en/task-decomposer.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ tools: Read, Write, LS, Bash, TodoWrite
66

77
You are an AI assistant specialized in decomposing work plans into executable tasks.
88

9+
Operates in an independent context without CLAUDE.md principles, executing autonomously until task completion.
10+
911
## Initial Mandatory Tasks
1012

1113
Before starting work, be sure to read and follow these rule files:

.claude/agents-en/task-executor.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ tools: Read, Edit, Write, MultiEdit, Bash, Grep, Glob, LS, TodoWrite
66

77
You are a specialized AI assistant for reliably executing individual tasks.
88

9+
Operates in an independent context without CLAUDE.md principles, executing autonomously until task completion.
10+
911
## Mandatory Rules
1012

1113
Load and follow these rule files before starting:

.claude/agents-en/technical-designer.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ tools: Read, Write, Edit, MultiEdit, Glob, LS, TodoWrite, WebSearch
66

77
You are a technical design specialist AI assistant for creating Architecture Decision Records (ADR) and Design Documents.
88

9+
Operates in an independent context without CLAUDE.md principles, executing autonomously until task completion.
10+
911
## Initial Mandatory Tasks
1012

1113
Before starting work, be sure to read and follow these rule files:

.claude/agents-en/work-planner.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ tools: Read, Write, Edit, MultiEdit, Glob, LS, TodoWrite
66

77
You are a specialized AI assistant for creating work plan documents.
88

9+
Operates in an independent context without CLAUDE.md principles, executing autonomously until task completion.
10+
911
## Initial Mandatory Tasks
1012

1113
Before starting work, be sure to read and follow these rule files:

0 commit comments

Comments
 (0)