Skip to content

feat(rules): agent-files keeps agents' instructions in AGENTS.md and skills under .agents/skills - #39

Draft
PiquelChips wants to merge 1 commit into
feat/rule-cargo-lockedfrom
feat/rule-agent-files
Draft

PiquelChips wants to merge 1 commit into
feat/rule-cargo-lockedfrom
feat/rule-agent-files

Conversation

@PiquelChips

@PiquelChips PiquelChips commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Stacked on #38; part of a stack adding the standard's rules over manifests, config files, workflows, recipes and docs. Rebased onto #13's head c4a57df.

What and why

LY3 as changed by the owner (no CLAUDE.md anywhere, only AGENTS.md) and LY4 (the skills layout). Both read the same files, as the inventory's agent-files mechanism proposed, so they are one rule.

  • AGENTS.md exists at the root, and no CLAUDE.md exists anywhere.
  • Each .agents/skills/<name>/SKILL.md has frontmatter whose name is <name>.
  • With skills, .claude/skills is a symlink to ../.agents/skills. A skill committed under .claude/skills fails.
  • Repositories without skills pass, since the central skills ship separately.
  • No fix: deleting a CLAUDE.md or creating a symlink isn't a text edit.

Measured

piqueld sourceorigin DirkEngine
Violations 0 0 0

Measured read-only at origin/main: piqueld a17710f52, sourceorigin e99cc0e6b, DirkEngine 07e8ba44.

sourceorigin's skills under docs/user/agents/skills are published to users, not this repository's agents, and aren't read.

Testing

  • New fixture tests: a nested CLAUDE.md, a misnamed skill, a skill under .claude/skills, a missing AGENTS.md; and, on Unix, the symlinked layout passing.
  • At this commit: Clippy with -D warnings, cargo nextest run --workspace and cargo xtask standard pass with a clean tree; just readme regenerated the rules list.
  • At the stack's tip: just check-changed origin/feat/readme-standard passes (fmt-check, audit, unused, standard, lint, doc, test, doc-test, package).

Checklist

  • The crate's README (its documentation on docs.rs) shows the change, and a repository's xtask can still follow it.
  • A change to the public API is noted for the next release, with what each repository's xtask must change. (A new rule: each repository fixes its violations (cargo xtask standard --fix where a fix exists) or adds a deviation with its reason.)
  • just check-changed passes.

Note

Written by Claude Opus 5.5 in Claude Code (via T3 Code)

@PiquelChips
PiquelChips force-pushed the feat/rule-cargo-locked branch from 0643754 to f1232f2 Compare November 22, 2026 22:30
@PiquelChips
PiquelChips force-pushed the feat/rule-agent-files branch from 43333ca to 8284fe4 Compare November 22, 2026 22:30
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