Skip to content

Commit 064823a

Browse files
authored
chore: add AGENTS.md and make skills runtime-agnostic (#160)
## Summary This PR prepares the repository for development with Codex in addition to Claude Code by introducing Codex-facing entrypoints and making existing skill instructions runtime-agnostic. ### What changed 1. Added agent compatibility symlinks - Added `AGENTS.md` as a symlink to `CLAUDE.md` - Added `.agents/skills` as a symlink to `.claude/skills` 2. Updated skill docs to be runtime-agnostic - `.claude/skills/golden-test-reviewer/SKILL.md` - Replaced Claude-specific interaction/tool wording (e.g. AskUserQuestion, Task tool) - Clarified isolated subtask execution model and parallelization requirements - Added explicit guidance to defer cross-case synthesis to aggregation step - `.claude/skills/test-pruning-advisor/SKILL.md` - Updated references from `CLAUDE.md` to `AGENTS.md / CLAUDE.md` - Replaced Claude-specific interaction/tool wording with runtime-agnostic guidance - Clarified isolated subtasks, minimal context passing, and aggregation responsibilities 3. Simplified base guidance document - `CLAUDE.md` - Removed the Kiro-specific "Development Workflow / AI-DLC and Spec-Driven Development" section to keep project instructions tool-agnostic and focused on repository conventions ## Notes - Documentation/configuration only (symlinks + markdown updates) - No production code or test behavior changes
1 parent cd0307b commit 064823a

File tree

5 files changed

+38
-50
lines changed

5 files changed

+38
-50
lines changed

.agents/skills

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../.claude/skills

.claude/skills/golden-test-reviewer/SKILL.md

Lines changed: 25 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Systematically evaluate golden test cases under `packages/cli/src/gen-orchestrat
1515

1616
### Step 1: Select Review Target
1717

18-
When the review target is not explicitly specified, use AskUserQuestion to present the following options:
18+
When the review target is not explicitly specified, ask the user (using the runtime's available interaction mechanism) to choose from the following options:
1919

2020
1. **All**: Review all test cases
2121
2. **Category**: Review test cases in a specific category only
@@ -110,9 +110,13 @@ This analysis will be included in the final report (Step 3).
110110

111111
### Step 2: Launch Subagents for Parallel Evaluation
112112

113-
For each test case to be reviewed, launch a subagent using the Task tool with `subagent_type: "general-purpose"`.
113+
For each test case to be reviewed, create a separate subtask with an isolated context (subagent/subtask model) using the runtime's available execution mechanism.
114114

115-
**IMPORTANT**: Launch all subagents in a single response with multiple Task tool calls to enable parallel execution.
115+
**IMPORTANT**:
116+
- Treat each test case as an independently designed subtask with clear inputs/outputs.
117+
- Execute independent subtasks in parallel when supported by the runtime.
118+
- Pass only minimal required context to each subtask (target test case, relevant diff, and evaluation criteria) to keep context isolated.
119+
- Normalize and aggregate subtask outputs in the final report.
116120

117121
#### Subagent Prompt
118122

@@ -132,25 +136,29 @@ Read the prompt template from **`references/subagent-prompt.md`** and use it for
132136
- `{test-case-diff}` - diff content for the specific test case
133137
- Evaluates against 7 criteria (standard 6 + change appropriateness)
134138

135-
#### Example: Launching Multiple Subagents (Standard Mode)
139+
#### Example: Launching Multiple Analysis Tasks (Standard Mode)
136140

137141
When reviewing test cases `interface-basic`, `union-type`, and `field-resolver`:
138142

139-
```
140-
// In a single response, make 3 Task tool calls in parallel:
141-
Task(subagent_type="general-purpose", prompt="Review the golden test case 'interface-basic'...")
142-
Task(subagent_type="general-purpose", prompt="Review the golden test case 'union-type'...")
143-
Task(subagent_type="general-purpose", prompt="Review the golden test case 'field-resolver'...")
144-
```
143+
Use the runtime's parallel task mechanism to evaluate these test cases as isolated subtasks concurrently:
144+
- `interface-basic`
145+
- `union-type`
146+
- `field-resolver`
145147

146-
#### Example: Launching Subagents (PR/Branch Review Mode)
148+
#### Example: Launching Analysis Tasks (PR/Branch Review Mode)
147149

148150
When reviewing test cases modified in PR #123:
149151

150-
```
151-
// In a single response, make Task tool calls for each modified test case:
152-
Task(subagent_type="general-purpose", prompt="Review the golden test case 'interface-basic' modified in PR #123. Context: Changes in this PR... [diff-summary]. Test case diff: [test-case-diff]...")
153-
```
152+
Create one isolated subtask per modified test case (`1 test case = 1 isolated subtask`).
153+
154+
For each subtask, provide only:
155+
- target test case name
156+
- PR number or branch name
157+
- diff summary limited to files relevant to that test case
158+
- per-test-case diff
159+
- required evaluation criteria
160+
161+
Do not share full PR/branch-wide cross-case context with every subtask. Cross-case reasoning (e.g., coverage gaps across categories) must be performed only in Step 3 aggregation.
154162

155163
### Step 3: Aggregate Results and Generate Report
156164

@@ -183,6 +191,8 @@ After all subagents complete:
183191

184192
4. **Provide detailed reports** for test cases with issues (expand from JSON)
185193

194+
Note: Perform repository-wide or cross-case synthesis only at aggregation time, not inside isolated subtasks.
195+
186196
5. **(PR/Branch Review mode only) Include Test Coverage Analysis**:
187197

188198
```markdown

.claude/skills/test-pruning-advisor/SKILL.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Analyze test files to identify redundant, low-value, or obsolete tests that may
1313

1414
## Deletion Consideration Criteria
1515

16-
Based on project testing guidelines (CLAUDE.md):
16+
Based on project testing guidelines (AGENTS.md / CLAUDE.md):
1717

1818
1. **Golden file test replaceable unit tests**: Function-level unit tests for code analysis, schema generation, or code generation logic that could be covered by testdata golden file tests
1919
2. **Trivial tests**: Tests for simple getters/setters, direct value passthrough, or obvious behavior that provides minimal value
@@ -24,7 +24,7 @@ Based on project testing guidelines (CLAUDE.md):
2424

2525
### Step 1: Select Review Target
2626

27-
When the review target is not explicitly specified, use AskUserQuestion to present the following options:
27+
When the review target is not explicitly specified, ask the user (using the runtime's available interaction mechanism) to choose from the following options:
2828

2929
1. **Branch/PR changes**: Review only test files added/modified in current branch vs main
3030
2. **All tests**: Review all `*.test.ts` files in the codebase
@@ -60,9 +60,14 @@ Group test files by their purpose:
6060

6161
### Step 3: Launch Subagents for Analysis
6262

63-
For each test file (or batch of related files), launch a subagent using the Task tool with `subagent_type: "general-purpose"`.
63+
For each test file (or cohesive batch of closely related files), create a separate subtask with an isolated context (subagent/subtask model) using the runtime's available execution mechanism (`1 review unit = 1 isolated subtask`).
6464

65-
**IMPORTANT**: Launch all subagents in a single response with multiple Task tool calls to enable parallel execution.
65+
**IMPORTANT**:
66+
- Design each review unit as an independent subtask with explicit input/output.
67+
- Execute independent subtasks in parallel when supported by the runtime.
68+
- Pass only minimal required context to each subtask (target file(s), related source files, and evaluation criteria) to keep context isolated.
69+
- Do not provide full repository-wide context to every subtask; keep context scoped to the review unit.
70+
- Normalize and aggregate subtask outputs in the final report.
6671

6772
#### Subagent Prompt
6873

@@ -91,6 +96,8 @@ After all subagents complete:
9196

9297
3. **List deletion candidates by reason**:
9398

99+
Note: Cross-file synthesis (e.g., overlap and priority decisions across multiple categories) must be done during aggregation, not inside isolated subtasks.
100+
94101
```markdown
95102
## Deletion Candidates
96103

AGENTS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
CLAUDE.md

CLAUDE.md

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -41,37 +41,6 @@ pnpm test -- --coverage
4141

4242
**Package manager**: pnpm (v10.28.0)
4343

44-
## Development Workflow
45-
46-
### AI-DLC and Spec-Driven Development
47-
48-
This project follows Kiro-style Spec-Driven Development.
49-
50-
**Paths**:
51-
- Steering: `.kiro/steering/` - Project-wide rules and context
52-
- Specs: `.kiro/specs/` - Individual feature specifications
53-
54-
**Minimal workflow**:
55-
- Phase 0 (optional): `/kiro:steering`, `/kiro:steering-custom`
56-
- Phase 1 (Specification):
57-
- `/kiro:spec-init "description"`
58-
- `/kiro:spec-requirements {feature}`
59-
- `/kiro:validate-gap {feature}` (optional: for existing codebase)
60-
- `/kiro:spec-design {feature} [-y]`
61-
- `/kiro:validate-design {feature}` (optional: design review)
62-
- `/kiro:spec-tasks {feature} [-y]`
63-
- Phase 2 (Implementation): `/kiro:spec-impl {feature} [tasks]`
64-
- `/kiro:validate-impl {feature}` (optional: after implementation)
65-
- Progress check: `/kiro:spec-status {feature}`
66-
67-
**Development rules**:
68-
- 3-phase approval workflow: Requirements → Design → Tasks → Implementation
69-
- Human review required each phase; use `-y` only for intentional fast-track
70-
- Keep steering current and verify alignment with `/kiro:spec-status`
71-
- Follow user instructions precisely; act autonomously within that scope; ask questions only when essential information is missing or instructions are critically ambiguous
72-
73-
**Language**: Think in English, generate responses in Japanese. All Markdown content written to project files (e.g., requirements.md, design.md, tasks.md) MUST be written in the target language configured for the specification (see spec.json.language).
74-
7544
## Testing
7645

7746
Uses **golden file testing** for CLI validation:

0 commit comments

Comments
 (0)