Repository navigation
chore: AGENTS.md and .agents/skills for other agents; policy accepts in-repo symlinks - #27
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 atCLAUDE.mdfor 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 withcore.symlinks=false(the Windows default), so this is a copy.AGENTS.mdand theCLAUDE.mdrow 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 andAGENTS.md.The policy change touches the check
CLAUDE.mdcalls 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