Skip to content

docs: load the agent instructions and the den-debugging skill - #688

Merged
sini merged 1 commit into
mainfrom
docs/agents-md-and-skill-discovery
Sep 21, 2026
Merged

sini merged 1 commit into
mainfrom
docs/agents-md-and-skill-discovery

Conversation

@sini

@sini sini commented Sep 21, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Fixes the den-debugging skill, which had never loaded, as its frontmatter had collapsed into a markdown heading with no closing fence and the file sat flat beside the .claude/skills/<name>/SKILL.md path that is actually discovered.
  • Moves the instructions to AGENTS.md and the skill to .agents/ so other harnesses reach them, keeping a one-line CLAUDE.md import and a tracked symlink because neither new location is discovered on its own.
  • Adds an !AGENTS.md exception to the AGENT* ignore rule, which predates this and would have silently refused a later git add of the instructions file.
  • Corrects what both documents told agents about the test suite, including a documented command that reports a passing cell as failing.

Validation

Every claim below was measured against a fresh claude -p session or against the tree, with a negative control wherever the question was an absence.

Loading:

  • Instructions: with AGENTS.md alone a fresh session loaded only user memory. With the CLAUDE.md import it loaded both files, and answered a question whose answer appears only in AGENTS.md.
  • Skill roster: NONE before the frontmatter fix, den-debugging after. The real-directory and symlink arms both register it, and the zqx-phantom control returns NONE in both, so the positive is not the instrument agreeing with itself.
  • claude plugin list prints an empty Skills-directory plugins heading even for a real directory, so it is not a usable oracle here.

Corrections:

  • just ci deadbugs.content-wrapper-functor reports a passing cell as 0/1, because just ci splits on the first dot and 51 of 52 regression files key their suite at the top level.
  • On a red run, stdout carries only the tick marks. The crosses, the failure list and the summary go to stderr, so a piped run reads red as green.
  • nix-unit with a cell appended to the suite attr reports 0/0 successful and exits 0.
  • templates/ci/modules/features/ holds 31 of 273 cells, not the 133+ the layout claimed.
  • The entry point table both documents pointed at exists in neither.

just fmt is green and leaves nothing unstaged.

The skill had never loaded. Its frontmatter had collapsed into a markdown
heading with no closing fence, so it carried no name and no description, and
Claude Code discovers skills only at .claude/skills/<name>/SKILL.md while the
file sat flat beside that directory. Both are fixed, and a probe against a
fresh session now lists den-debugging in the skill roster where it previously
returned nothing.

Instructions move to AGENTS.md for harnesses that read it, and the skill moves
to .agents/ so its content has one home. Neither location is discovered by
Claude Code on its own: a fresh session given only AGENTS.md loaded nothing but
user memory, and skill discovery is hardcoded to .claude. Both therefore keep a
bridge, CLAUDE.md importing AGENTS.md and .claude/skills/den-debugging
symlinking into .agents, each verified against a session that reads them. The
.gitignore rule AGENT* predates this and would have silently refused a later
git add of AGENTS.md, so it gains an exception.

Corrections to what the two documents told agents, each measured against the
tree rather than reasoned:

- Tests were said to live in templates/ci/modules/features/, which holds 31 of
  273 cells. The buckets are public-api, internal-api, features, deprecated and
  deadbugs, and the count is dropped rather than restated, since git ls-files
  answers it and a number in prose goes stale.
- The skill taught a suite nested under deadbugs., which 1 of 52 files uses.
  just ci splits on the first dot, so its own documented command reported a
  passing cell as failing.
- just ci writes only the tick marks to stdout and sends the crosses, the
  failure list and the summary to stderr, so a piped run reads red as green.
- nix-unit with a cell appended to the suite attr reports 0/0 successful and
  exits 0.
- Both documents pointed at an entry point table that exists in neither.
@github-actions github-actions Bot added the allow-ci allow all CI integration tests label Sep 21, 2026

@theutz theutz left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

🤖 Bleep blorp

@sini
sini merged commit 3b597c7 into main Sep 21, 2026
31 checks passed
@sini
sini deleted the docs/agents-md-and-skill-discovery branch September 21, 2026 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

allow-ci allow all CI integration tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants