Skip to content

test: enforce ce- prefix on skills and agents#748

Merged
tmchow merged 1 commit intomainfrom
tmchow/test-ce-prefix
May 1, 2026
Merged

test: enforce ce- prefix on skills and agents#748
tmchow merged 1 commit intomainfrom
tmchow/test-ce-prefix

Conversation

@tmchow
Copy link
Copy Markdown
Collaborator

@tmchow tmchow commented May 1, 2026

Summary

  • Adds tests/skill-agent-ce-prefix.test.ts which fails when any skill directory or agent file under plugins/compound-engineering/ lacks the ce- prefix mandated by plugins/compound-engineering/AGENTS.md ("Naming Convention").
  • Checks both filename/directory name and frontmatter name.
  • Includes an explicit exemption list (currently lfg, which ships as the public command /lfg) so future carve-outs require a written reason rather than silent bypass.

Test plan

  • bun test tests/skill-agent-ce-prefix.test.ts — 172 pass, 0 fail
  • bun test tests/frontmatter.test.ts still passes (the new test reuses parseFrontmatter from src/utils/frontmatter.ts)
  • Manually verified: removing lfg from SKILL_EXEMPTIONS produces 2 expected failures
  • Manually verified: introducing a non-prefixed agent file fails the test

🤖 Generated with Claude Code

Adds a test that fails if any skill directory or agent file under
plugins/compound-engineering/ lacks the ce- prefix mandated by the
plugin's "Naming Convention" in AGENTS.md. Both filename and
frontmatter `name` are checked. Carries an explicit exemption list
(currently just `lfg`, which ships as the public command `/lfg`) so
future carve-outs require a written reason rather than silent bypass.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@tmchow tmchow merged commit 71d23d1 into main May 1, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant