Skip to content

chore: AGENTS.md and .agents/skills for other agents; policy accepts in-repo symlinks - #27

Merged
ShinniUwU merged 1 commit into
mainfrom
chore/agents-skills
Nov 26, 2026
Merged

ShinniUwU merged 1 commit into
mainfrom
chore/agents-skills

Conversation

@ShinniUwU

Copy link
Copy Markdown
Contributor

Makes the agent skills in .claude/skills/ reachable for agents other than Claude Code (Codex, Copilot and the rest), and lets the asset-policy check accept symbolic links that stay inside the repository.

What changes

  • AGENTS.md (new, at the root): points at CLAUDE.md for the rules and lists the six skills with one line each.
  • .agents/skills/: a copy of .claude/skills/, where other agents look for skills. A symlink would be simpler, but git writes it as a plain text file on clones with core.symlinks=false (the Windows default), so this is a copy. AGENTS.md and the CLAUDE.md row say to edit both copies in the same commit.
  • xtask/src/policy.rs: a path the index holds as a symlink (mode 120000) is checked by its target instead of as a file: it passes when the target is a relative path that stays inside the repository, and fails when it is absolute, leaves the repository, points at the root or is not a plain path. What the link points at is still checked as a file of its own. Before this, any symlink failed with "file type not on the allowlist". Two new tests cover it.
  • docs/asset-policy.md: one sentence under Enforcement describing the symlink rule.
  • CLAUDE.md: the .claude/skills/ row now mentions the copy and AGENTS.md.

The policy change touches the check CLAUDE.md calls the rule that matters most, so please look at it in particular. It is optional for this pull request: the copy works without it.

No TODO ID: this is housekeeping for agent tooling and is not on the list.

Tested

No game or GPU needed for any of this.

  • cargo test -p xtask --locked: 6 passed (the 4 existing tests and the 2 new ones).
  • cargo clippy -p xtask --all-targets --all-features --locked -- -D warnings: clean.
  • rustfmt --check --edition 2024 xtask/src/policy.rs: clean.
  • cargo xtask policy --staged: 20 files ok. cargo xtask policy: 227 files ok.
  • diff -r .claude/skills .agents/skills: identical.

AI-assisted.

🤖 Generated with Claude Code

@ShinniUwU
ShinniUwU merged commit b1b64db into main Nov 26, 2026
1 check failed
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.

1 participant