|
12 | 12 |
|
13 | 13 | - 対象はプロジェクトルートの指示だけとし、ユーザールートの `~/.codex`、`~/.claude`、`~/.kiro` には適用しない。 |
14 | 14 | - ネイティブ指示が存在する場合は代替指示を読まない。 |
| 15 | +- Kiro のネイティブ指示は `AGENTS.md` と `.kiro/steering/` 配下の指示とし、存在するものをすべて読む。 |
15 | 16 | - ネイティブ指示が存在せず、複数の代替指示が存在する場合はすべて読む。 |
16 | 17 | - 存在しない代替指示は無視する。 |
17 | 18 | - 互換ルール本文は英語で記述する。 |
@@ -47,13 +48,15 @@ Expected: exit 1。 |
47 | 48 |
|
48 | 49 | Apply these fallbacks only to instruction sources in the project root. Do not apply them to user-level configuration under `~/.codex`, `~/.claude`, or `~/.kiro`. |
49 | 50 |
|
50 | | -Use only the native project instruction source when it exists: |
| 51 | +Use all native project instruction sources that exist: |
51 | 52 |
|
52 | 53 | - Codex: `AGENTS.md` |
53 | 54 | - Claude Code: `CLAUDE.md` |
54 | | -- Kiro: instruction files under `.kiro/steering/` |
| 55 | +- Kiro: `AGENTS.md` and every instruction file under `.kiro/steering/` |
55 | 56 |
|
56 | | -When the native project instruction source does not exist, use every fallback source that exists: |
| 57 | +Do not read fallback sources when at least one native project instruction source exists. |
| 58 | + |
| 59 | +When no native project instruction source exists, use every fallback source that exists: |
57 | 60 |
|
58 | 61 | - Codex: read `CLAUDE.md` and every instruction file under `.kiro/steering/`, and treat them as `AGENTS.md` instructions. |
59 | 62 | - Claude Code: read `AGENTS.md` and every instruction file under `.kiro/steering/`, and treat them as `CLAUDE.md` instructions. |
|
90 | 93 |
|
91 | 94 | ```bash |
92 | 95 | grep -Fq 'only to instruction sources in the project root' .chezmoitemplates/rules/project-instruction-fallbacks.md |
93 | | -grep -Fq 'Use only the native project instruction source when it exists' .chezmoitemplates/rules/project-instruction-fallbacks.md |
| 96 | +grep -Fq 'Kiro: `AGENTS.md` and every instruction file under `.kiro/steering/`' .chezmoitemplates/rules/project-instruction-fallbacks.md |
| 97 | +grep -Fq 'Do not read fallback sources when at least one native project instruction source exists' .chezmoitemplates/rules/project-instruction-fallbacks.md |
94 | 98 | grep -Fq 'If multiple fallback sources exist, read all of them' .chezmoitemplates/rules/project-instruction-fallbacks.md |
95 | 99 | ``` |
96 | 100 |
|
|
0 commit comments