Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .claude/skills/architecture-analysis/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: Architecture Analysis
name: architecture-analysis
description: Deep codebase analysis: module boundaries, dependency graph, design patterns.
---

Expand Down
2 changes: 1 addition & 1 deletion .claude/skills/clean-code/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: Clean Code
name: clean-code
description: Follow clean code principles: small functions, meaningful names, no duplication.
---

Expand Down
2 changes: 1 addition & 1 deletion .claude/skills/code-review/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: Code Review
name: code-review
description: Review code for correctness, style, performance, and security issues.
---

Expand Down
2 changes: 1 addition & 1 deletion .claude/skills/planning/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: Planning
name: planning
description: Analyze the codebase and produce a step-by-step implementation plan before coding.
---

Expand Down
2 changes: 1 addition & 1 deletion .claude/skills/routing/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: Routing
name: routing
description: Route tasks to the appropriate specialist agent based on the request type.
---

Expand Down
2 changes: 1 addition & 1 deletion .claude/skills/security-check/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: Security Check
name: security-check
description: Check code for common security vulnerabilities and OWASP top 10 issues.
---

Expand Down
2 changes: 1 addition & 1 deletion .claude/skills/test-first/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: Test First
name: test-first
description: Write tests before implementation. Verify each change with a failing test first.
---

Expand Down
2 changes: 1 addition & 1 deletion .claude/skills/triage/SKILL.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
name: Triage
name: triage
description: Assess incoming requests: classify priority, estimate scope, identify blockers.
---

Expand Down
4 changes: 2 additions & 2 deletions src/renderers/claude/skill-md.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { defaultRegistry } from '../../registry/index.js';

function buildFrontmatter(skill: SkillDefinition): string {
const lines: string[] = ['---'];
lines.push(`name: ${skill.name}`);
lines.push(`name: ${skill.id}`);
lines.push(`description: ${skill.description}`);
if (skill.allowed_tools?.length) {
lines.push(`allowed-tools:`);
Expand All @@ -28,7 +28,7 @@ function generateSkillStub(skillName: string): string {
.join(' ');

return `---
name: ${title}
name: ${skillName}
description: <!-- describe when this skill triggers -->
---

Expand Down
4 changes: 2 additions & 2 deletions tests/unit/generator/skill-md.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ describe('renderSkillMd', () => {
const files = renderSkillMd(normalizeManifest(applyDefaults(manifest), claudeTarget));
const content = files.find((f) => f.path.endsWith('SKILL.md'))!.content;
expect(content).toMatch(/^---\n/);
expect(content).toContain('name: Test First');
expect(content).toContain('name: test-first');
expect(content).toContain('description: ');
expect(content).toMatch(/---\n\n# Test First/);
});
Expand Down Expand Up @@ -79,7 +79,7 @@ describe('renderSkillMd', () => {
const files = renderSkillMd(normalizeManifest(applyDefaults(manifest), claudeTarget));
const content = files[0].content;
expect(content).toMatch(/^---\n/);
expect(content).toContain('name: My Custom Skill');
expect(content).toContain('name: my-custom-skill');
expect(content).toContain('## When to use this skill');
expect(content).toContain('## Steps');
expect(content).toContain('## Output');
Expand Down
Loading