Check refs

From event4u-app/agent-config · View interactive version

Check refs is an AI agent skill from the GitHub repository event4u-app/agent-config. Use when verifying cross-references between skills, rules, commands, guidelines, and context documents are not broken after edits, renames, or deletions.

How to use this skill

Skill file

check-refs

When to use

Use this skill when:

Do NOT use when:

Procedure

1. Inspect the scope of recent changes

Identify whether any artifact was renamed, moved, or removed since the last

clean run. Cross-reference checks are relevant only when names or paths shift;

pure body edits cannot break references.

2. Dispatch via the runtime layer

Invoke the skill through the runtime dispatcher so the execution: block in

this skill's frontmatter governs the call:

./scripts-run src/scripts/runtime_dispatcher run --skill check-refs

The dispatcher resolves the request, the shell handler runs

./scripts-run src/scripts/check_references, captures stdout/stderr, and returns a

typed ExecutionResult.

3. Verify the result

Check the returned ExecutionResult:

line, and the offending ref, then fix the source or update the target

src/scripts/check_references.ts are available at the repository root

Output format

  1. One-line summary: success | failure | timeout | error, exit code,

duration in milliseconds

  1. Count of broken references found, if any
  2. First 10 broken references with file:line → missing-target
  3. Next action: fix references, re-run the skill, or surface stdout for

review

Gotchas

after a fix must be produced by re-invoking the skill, not by assumption

files and report a false pass

references depending on the checker's current rules; do not suppress a

broken ref without confirming it is a genuine false positive

Do NOT

verify the runtime path — always go through the dispatcher so the

ExecutionResult is produced and inspectable

of the tree grew large enough to push past 60 seconds

shell=False and will refuse anything outside pure argv form

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.