Skip to content

Commit b7a664c

Browse files
maystudiosclaude
andcommitted
fix(skills): rename index.md to SKILL.md for Claude Code skill discovery
Claude Code discovers skills by looking for SKILL.md (not index.md) in skill directories. All 16 skill templates were invisible to Claude Code's auto-discovery because they used the wrong filename. This also updates all agent, workflow, convention, and test references. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent e5297e8 commit b7a664c

27 files changed

Lines changed: 20 additions & 20 deletions

File tree

INTERNALS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ directly — it is copied into `dist/assets/templates/` during the build.
428428

429429
### Skills (15)
430430

431-
Located at `templates/skills/`, one subdirectory per skill with an `index.md`.
431+
Located at `templates/skills/`, one subdirectory per skill with a `SKILL.md`.
432432
All follow Anthropic's skill convention: YAML frontmatter with `name` and
433433
`description`, body under 500 lines, no `@` imports.
434434

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ Project config lives in `.claude/maxsim/config.json`, created during `/maxsim:in
349349

350350
## Skills
351351

352-
Skills are reusable prompt modules that agents load on demand. Each skill is an `index.md` file with YAML frontmatter and a markdown body.
352+
Skills are reusable prompt modules that agents load on demand. Each skill is a `SKILL.md` file with YAML frontmatter and a markdown body.
353353

354354
### Built-in Skills (15)
355355

packages/cli/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ Project config lives in `.claude/maxsim/config.json`, created during `/maxsim:in
349349

350350
## Skills
351351

352-
Skills are reusable prompt modules that agents load on demand. Each skill is an `index.md` file with YAML frontmatter and a markdown body.
352+
Skills are reusable prompt modules that agents load on demand. Each skill is a `SKILL.md` file with YAML frontmatter and a markdown body.
353353

354354
### Built-in Skills (15)
355355

packages/cli/tests/unit/templates.test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,19 +73,19 @@ describe('skill templates', () => {
7373
expect(skillDirs).toHaveLength(16);
7474
});
7575

76-
it('each subdirectory contains an index.md file', () => {
76+
it('each subdirectory contains a SKILL.md file', () => {
7777
for (const dir of skillDirs) {
78-
const skillMd = path.join(skillsDir, dir.name, 'index.md');
79-
expect(fs.existsSync(skillMd), `${dir.name}: missing index.md`).toBe(true);
78+
const skillMd = path.join(skillsDir, dir.name, 'SKILL.md');
79+
expect(fs.existsSync(skillMd), `${dir.name}: missing SKILL.md`).toBe(true);
8080
}
8181
});
8282

83-
it('each index.md has frontmatter with name and description', () => {
83+
it('each SKILL.md has frontmatter with name and description', () => {
8484
for (const dir of skillDirs) {
85-
const content = fs.readFileSync(path.join(skillsDir, dir.name, 'index.md'), 'utf-8');
85+
const content = fs.readFileSync(path.join(skillsDir, dir.name, 'SKILL.md'), 'utf-8');
8686
const { attributes } = parseFrontmatter(content);
87-
expect(attributes.name, `${dir.name}/index.md: missing name`).toBeDefined();
88-
expect(attributes.description, `${dir.name}/index.md: missing description`).toBeDefined();
87+
expect(attributes.name, `${dir.name}/SKILL.md: missing name`).toBeDefined();
88+
expect(attributes.description, `${dir.name}/SKILL.md: missing description`).toBeDefined();
8989
}
9090
});
9191
});

templates/agents/executor.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ skills:
1515
- commit-conventions
1616
available_skills:
1717
- name: github-operations
18-
path: .claude/skills/github-operations/index.md
18+
path: .claude/skills/github-operations/SKILL.md
1919
trigger: When reading from or writing to GitHub Issues
2020
- name: tdd
21-
path: .claude/skills/tdd/index.md
21+
path: .claude/skills/tdd/SKILL.md
2222
trigger: When implementing features with test-first approach
2323
---
2424

templates/agents/planner.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ skills:
1414
- roadmap-writing
1515
available_skills:
1616
- name: github-operations
17-
path: .claude/skills/github-operations/index.md
17+
path: .claude/skills/github-operations/SKILL.md
1818
trigger: When reading phase context from GitHub Issues
1919
- name: brainstorming
20-
path: .claude/skills/brainstorming/index.md
20+
path: .claude/skills/brainstorming/SKILL.md
2121
trigger: When exploring multiple implementation approaches
2222
---
2323

templates/agents/researcher.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ skills:
1414
- research
1515
available_skills:
1616
- name: github-operations
17-
path: .claude/skills/github-operations/index.md
17+
path: .claude/skills/github-operations/SKILL.md
1818
trigger: When reading context from GitHub Issues
1919
---
2020

templates/agents/verifier.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ skills:
1313
- code-review
1414
available_skills:
1515
- name: systematic-debugging
16-
path: .claude/skills/systematic-debugging/index.md
16+
path: .claude/skills/systematic-debugging/SKILL.md
1717
trigger: When investigating test failures or unexpected behavior
1818
- name: github-operations
19-
path: .claude/skills/github-operations/index.md
19+
path: .claude/skills/github-operations/SKILL.md
2020
trigger: When posting verification results to GitHub
2121
---
2222

templates/rules/conventions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Co-author line when AI-assisted: value comes from the `co_author` key in `.claud
2929

3030
| Type | Path Pattern |
3131
|------|-------------|
32-
| Skills | `.claude/skills/<kebab-case>/index.md` |
32+
| Skills | `.claude/skills/<kebab-case>/SKILL.md` |
3333
| Agents | `.claude/agents/<simple-name>.md` |
3434
| Rules | `.claude/rules/<topic>.md` |
3535
| Plans | GitHub Sub-Issues on the phase Issue |

0 commit comments

Comments
 (0)