Skip to main content

require-existing-relative-skill-links

Require relative Markdown links in Codex skill definition files to resolve to existing workspace resources.

Rule catalog ID: R017

Targeted pattern scope

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

What this rule reports

  • Codex skill relative link {{destination}} does not resolve to an existing workspace path.

Why this rule exists

Require relative Markdown links in Codex skill definition files to resolve to existing workspace resources.

❌ 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/require-existing-relative-skill-links": "error" },
},
];

Further reading