Skip to content

feat(rules): agents-md makes AGENTS.md name every workspace crate in at most 150 lines - #40

Draft
PiquelChips wants to merge 1 commit into
feat/rule-agent-filesfrom
feat/rule-agents-md
Draft

PiquelChips wants to merge 1 commit into
feat/rule-agent-filesfrom
feat/rule-agents-md

Conversation

@PiquelChips

@PiquelChips PiquelChips commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Stacked on #39; 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

A1: AGENTS.md says what the repository is with a one-line map of its crates, and the owner wants it kept short. Today piqueld's names 5 of its 12 crates.

  • Every workspace crate is named in AGENTS.md, by its name in backticks or its directory.
  • AGENTS.md holds at most 150 lines.
  • The glossary and "what it is" aren't checked: a heading proves nothing, and this repository's glossary has none.

Measured

piqueld sourceorigin DirkEngine
Violations 8 4 1

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

  • piqueld: 7 crates unnamed (piqueld-probe, -docker, -build, -store, -client, -generated, xtask) and 163 lines.
  • sourceorigin: 4 unnamed (common, crypto, telemetry, ui).
  • DirkEngine: 163 lines.

150 cuts piqueld's and DirkEngine's by 13 lines; this repository's is 108.

Testing

  • New fixture test: a crate named by name, one by directory, one missing, and 154 lines.
  • 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)

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