Skip to content

Commit c8a914a

Browse files
author
catlog22
committed
Refactor agent configurations and context gathering processes across multiple workflow tools
- Removed agent references in context-gather and test-context-gather commands for clarity. - Updated test-task-generate to streamline agent configuration references. - Enhanced action-planning-agent documentation by removing redundant examples. - Adjusted execute command to eliminate direct agent path references. - Improved context-gather documentation to clarify agent autonomy and project.json integration. - Revised test-context-gather to focus on agent delegation and coverage analysis. - Cleaned up test-task-generate to focus on task generation rules without direct agent references. - Implemented automatic agent assignment based on exploration file names in deep analysis phase. - Expanded project exploration phase to include intelligent angle selection based on software type. - Enhanced output schemas and success criteria for exploration tasks to ensure clarity and completeness.
1 parent a5ba7c0 commit c8a914a

File tree

15 files changed

+750
-105
lines changed

15 files changed

+750
-105
lines changed

.claude/commands/workflow/execute.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,6 @@ Task(subagent_type="{meta.agent}",
410410
1. Read complete task JSON: {session.task_json_path}
411411
2. Load context package: {session.context_package_path}
412412
413-
Follow complete execution guidelines in @.claude/agents/{meta.agent}.md
414413
415414
**Session Paths**:
416415
- Workflow Dir: {session.workflow_dir}

.claude/commands/workflow/tools/context-gather.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ allowed-tools: Task(*), Read(*), Glob(*)
1515

1616
Orchestrator command that invokes `context-search-agent` to gather comprehensive project context for implementation planning. Generates standardized `context-package.json` with codebase analysis, dependencies, and conflict detection.
1717

18-
**Agent**: `context-search-agent` (`.claude/agents/context-search-agent.md`)
1918

2019
## Core Philosophy
2120

@@ -431,6 +430,5 @@ if (historicalConflicts.length > 0 && currentRisk === "low") {
431430
432431
- **Detection-first**: Always check for existing package before invoking agent
433432
- **Project.json integration**: Agent reads `.workflow/project.json` as primary source for project context, avoiding redundant analysis
434-
- **Agent autonomy**: Agent handles all discovery logic per `.claude/agents/context-search-agent.md`
435433
- **No redundancy**: This command is a thin orchestrator, all logic in agent
436434
- **Plan-specific**: Use this for implementation planning; brainstorm mode uses direct agent call

.claude/commands/workflow/tools/task-generate-tdd.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -239,15 +239,6 @@ If conflict_risk was medium/high, modifications have been applied to:
239239
240240
**Agent Configuration Reference**: All TDD task generation rules, quantification requirements, Red-Green-Refactor cycle structure, quality standards, and execution details are defined in action-planning-agent.
241241
242-
Refer to: @.claude/agents/action-planning-agent.md for:
243-
- TDD Task Decomposition Standards
244-
- Red-Green-Refactor Cycle Requirements
245-
- Quantification Requirements (MANDATORY)
246-
- 5-Field Task JSON Schema
247-
- IMPL_PLAN.md Structure (TDD variant)
248-
- TODO_LIST.md Format
249-
- TDD Execution Flow & Quality Validation
250-
251242
### TDD-Specific Requirements Summary
252243
253244
#### Task Structure Philosophy

.claude/commands/workflow/tools/test-context-gather.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ allowed-tools: Task(*), Read(*), Glob(*)
1414

1515
Orchestrator command that invokes `test-context-search-agent` to gather comprehensive test coverage context for test generation workflows. Generates standardized `test-context-package.json` with coverage analysis, framework detection, and source implementation context.
1616

17-
**Agent**: `test-context-search-agent` (`.claude/agents/test-context-search-agent.md`)
17+
1818

1919
## Core Philosophy
2020

@@ -89,7 +89,6 @@ Task(
8989
run_in_background=false,
9090
description="Gather test coverage context",
9191
prompt=`
92-
You are executing as test-context-search-agent (.claude/agents/test-context-search-agent.md).
9392
9493
## Execution Mode
9594
**PLAN MODE** (Comprehensive) - Full Phase 1-3 execution
@@ -229,7 +228,7 @@ Refer to `test-context-search-agent.md` Phase 3.2 for complete `test-context-pac
229228
## Notes
230229
231230
- **Detection-first**: Always check for existing test-context-package before invoking agent
232-
- **Agent autonomy**: Agent handles all coverage analysis logic per `.claude/agents/test-context-search-agent.md`
231+
233232
- **No redundancy**: This command is a thin orchestrator, all logic in agent
234233
- **Framework agnostic**: Supports Jest, Mocha, pytest, RSpec, Go testing, etc.
235234
- **Coverage focus**: Primary goal is identifying implementation files without tests

.claude/commands/workflow/tools/test-task-generate.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,6 @@ CRITICAL:
107107
- Follow the progressive loading strategy defined in your agent specification (load context incrementally from memory-first approach)
108108
109109
## AGENT CONFIGURATION REFERENCE
110-
All test task generation rules, schemas, and quality standards are defined in your agent specification:
111-
@.claude/agents/action-planning-agent.md
112110
113111
Refer to your specification for:
114112
- Test Task JSON Schema (6-field structure with test-specific metadata)

.claude/skills/command-guide/reference/agents/action-planning-agent.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -806,8 +806,6 @@ Use `analysis_results.complexity` or task count to determine structure:
806806
**Examples**:
807807
- GOOD: `"Implement 5 commands: [cmd1, cmd2, cmd3, cmd4, cmd5]"`
808808
- BAD: `"Implement new commands"`
809-
- GOOD: `"5 files created: verify by ls .claude/commands/*.md | wc -l = 5"`
810-
- BAD: `"All commands implemented successfully"`
811809
812810
### 3.2 Planning & Organization Standards
813811

.claude/skills/command-guide/reference/commands/workflow/execute.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ Task(subagent_type="{meta.agent}",
400400
1. Read complete task JSON: {session.task_json_path}
401401
2. Load context package: {session.context_package_path}
402402
403-
Follow complete execution guidelines in @.claude/agents/{meta.agent}.md
403+
404404
405405
**Session Paths**:
406406
- Workflow Dir: {session.workflow_dir}

.claude/skills/command-guide/reference/commands/workflow/tools/context-gather.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ allowed-tools: Task(*), Read(*), Glob(*)
1515

1616
Orchestrator command that invokes `context-search-agent` to gather comprehensive project context for implementation planning. Generates standardized `context-package.json` with codebase analysis, dependencies, and conflict detection.
1717

18-
**Agent**: `context-search-agent` (`.claude/agents/context-search-agent.md`)
1918

2019
## Core Philosophy
2120

@@ -429,6 +428,6 @@ if (historicalConflicts.length > 0 && currentRisk === "low") {
429428
430429
- **Detection-first**: Always check for existing package before invoking agent
431430
- **Project.json integration**: Agent reads `.workflow/project.json` as primary source for project context, avoiding redundant analysis
432-
- **Agent autonomy**: Agent handles all discovery logic per `.claude/agents/context-search-agent.md`
431+
433432
- **No redundancy**: This command is a thin orchestrator, all logic in agent
434433
- **Plan-specific**: Use this for implementation planning; brainstorm mode uses direct agent call

.claude/skills/command-guide/reference/commands/workflow/tools/task-generate-tdd.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -238,14 +238,7 @@ If conflict_risk was medium/high, modifications have been applied to:
238238
239239
**Agent Configuration Reference**: All TDD task generation rules, quantification requirements, Red-Green-Refactor cycle structure, quality standards, and execution details are defined in action-planning-agent.
240240
241-
Refer to: @.claude/agents/action-planning-agent.md for:
242-
- TDD Task Decomposition Standards
243-
- Red-Green-Refactor Cycle Requirements
244-
- Quantification Requirements (MANDATORY)
245-
- 5-Field Task JSON Schema
246-
- IMPL_PLAN.md Structure (TDD variant)
247-
- TODO_LIST.md Format
248-
- TDD Execution Flow & Quality Validation
241+
249242
250243
### TDD-Specific Requirements Summary
251244

.claude/skills/command-guide/reference/commands/workflow/tools/test-context-gather.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ allowed-tools: Task(*), Read(*), Glob(*)
1414

1515
Orchestrator command that invokes `test-context-search-agent` to gather comprehensive test coverage context for test generation workflows. Generates standardized `test-context-package.json` with coverage analysis, framework detection, and source implementation context.
1616

17-
**Agent**: `test-context-search-agent` (`.claude/agents/test-context-search-agent.md`)
18-
1917
## Core Philosophy
2018

2119
- **Agent Delegation**: Delegate all test coverage analysis to `test-context-search-agent` for autonomous execution
@@ -88,7 +86,6 @@ Task(
8886
subagent_type="test-context-search-agent",
8987
description="Gather test coverage context",
9088
prompt=`
91-
You are executing as test-context-search-agent (.claude/agents/test-context-search-agent.md).
9289
9390
## Execution Mode
9491
**PLAN MODE** (Comprehensive) - Full Phase 1-3 execution
@@ -228,7 +225,7 @@ Refer to `test-context-search-agent.md` Phase 3.2 for complete `test-context-pac
228225
## Notes
229226
230227
- **Detection-first**: Always check for existing test-context-package before invoking agent
231-
- **Agent autonomy**: Agent handles all coverage analysis logic per `.claude/agents/test-context-search-agent.md`
228+
232229
- **No redundancy**: This command is a thin orchestrator, all logic in agent
233230
- **Framework agnostic**: Supports Jest, Mocha, pytest, RSpec, Go testing, etc.
234231
- **Coverage focus**: Primary goal is identifying implementation files without tests

0 commit comments

Comments
 (0)