Skip to main content

no-duplicate-skill-names

Disallow duplicate effective skill names across project skill definition files.

Rule catalog ID: R005

Targeted pattern scope

  • **/.agents/skills/**/*.md
  • Codex plugin skill directories

What this rule reports

  • Skill name {{name}} appears more than once: {{files}}. Codex lists duplicate names separately, which can make selection ambiguous.

Why this rule exists

Disallow duplicate effective skill names across project skill definition files.

❌ Incorrect

A file in the targeted scope that produces any diagnostic listed above is incorrect for this rule.

✅ Correct

A file is correct when it uses the documented Codex structure and produces no diagnostic from this rule.

Behavior and migration notes

Included in:

  • codex.configs.strict
  • codex.configs.all

ESLint flat config example

The preset layers supply the correct Markdown, TOML, or JSON language configuration. Override the rule only in a later matching flat-config entry:

import codex from "@typpi/eslint-plugin-codex";

export default [
...codex.configs.recommended,
{
rules: { "codex/no-duplicate-skill-names": "error" },
},
];

Further reading