Skip to content

fix: replace broken markdown link refs in skills#392

Merged
tmchow merged 1 commit intomainfrom
feat/fix-markdown-refs
Mar 26, 2026
Merged

fix: replace broken markdown link refs in skills#392
tmchow merged 1 commit intomainfrom
feat/fix-markdown-refs

Conversation

@tmchow
Copy link
Collaborator

@tmchow tmchow commented Mar 26, 2026

Agents interpret markdown links like [file.md](./references/file.md) as Read instructions using CWD-relative paths. Since the CWD is never the skill directory, these reads fail and agents spiral trying to locate the files.

Replaces all markdown link references across 10 skills with two patterns based on file size and purpose:

  • Backtick paths (references/file.md) for large reference docs, routing-table targets, code scaffolds, and executable scripts — agent loads on demand without inflating the skill's token footprint
  • @ file inclusion (@./references/schema.json) only for small structural files under ~150 lines that the skill cannot function without (schemas, output contracts, dispatch templates)

Updates AGENTS.md with the new reference inclusion rules, a validation grep command, and upstream-sourced skill guidance (apply reference rules after each sync from upstream).

Closes #374


Compound Engineering v2.54.0
🤖 Generated with Claude Opus 4.6 (1M context, extended thinking) via Claude Code

@tmchow tmchow force-pushed the feat/fix-markdown-refs branch from f1815ec to c304972 Compare March 26, 2026 16:51
@tmchow tmchow changed the base branch from main to feat/fix-issue-389 March 26, 2026 16:51
@tmchow tmchow changed the base branch from feat/fix-issue-389 to main March 26, 2026 18:42
@tmchow tmchow force-pushed the feat/fix-markdown-refs branch from c304972 to cdd897e Compare March 26, 2026 18:44
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: cdd897e098

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@tmchow tmchow merged commit 506ad01 into main Mar 26, 2026
2 checks passed
@github-actions github-actions bot mentioned this pull request Mar 26, 2026
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.

9 skills broken: relative ./references/ paths unresolvable by agents

1 participant