Skip to content

ARI-2720: Add a root AGENTS.md and the agent file wiring - #63

Closed
mpsq wants to merge 3 commits into
mainfrom
ari-2720-agents-md-standard
Closed

mpsq wants to merge 3 commits into
mainfrom
ari-2720-agents-md-standard

Conversation

@mpsq

@mpsq mpsq commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

This repo had no agent files, so this adds a short root AGENTS.md and the wiring every Plain repo now carries, following the AGENTS.md standard (agents-md skill v1.7).

What changed

  • New root AGENTS.md: one sentence on what the CLI is (from the README), the commands from package.json scripts and CI, a pointer to the README for commands and options, and the "Agent files" section. No rules: the README has none phrased as instructions, and the standard says not to write rules from reading the code. I ran every listed command locally on this branch and they pass.
  • .agents/skills/agents-md/ copied from the standard (v1.7). This repo is public, so the internal examples are replaced with ones from this repo's README and package.json, and the skill doesn't name its internal source repo.
  • .claude/skills links to .agents/skills, and .claude/rules/agents-md.md and .cursor/rules/agents-md.mdc load the skill before anyone edits an agent file.
  • .greptile/files.json lists AGENTS.md, so Greptile reads it in review. This touches .greptile/, so Greptile won't auto-approve this PR.
  • .github/workflows/lint-stale-docs.yml, the same caller as in the cloudflare repo. .github/stale-docs-allowlist.txt lists three files the skill names as general guidance (.claude/CLAUDE.md, .claude/settings.json, .cursor/BUGBOT.md) that this repo doesn't have; without it the new check fails on the skill itself. I ran the check locally against this branch and it passes.

Owner report

An owner should finish and edit this before merge, per the standard.

  • Possible "How it works" facts, left out for you to decide: the CLI supports Node.js 22.12 or later (README, engines), and CI tests it on 22.12.0, 22 and 24 because customers run it on their own Node.js, not the one in .nvmrc (comment in .github/workflows/ci.yml). An agent might otherwise use a newer Node API.
  • Possible rule, not added because no doc states it: whether every user-facing change needs a changeset (pnpm changeset). The command is listed; say if it should be a rule.
  • Commands to confirm: I listed pnpm format for formatting rather than pnpm check, which also writes lint fixes.
  • Contradictions, deleted or moved rules, lint-rule candidates, lines needing a reason: none.

Linear: ARI-2720

mpsq added 2 commits November 30, 2026 17:27
Adds a short root AGENTS.md with the repo's commands, copies the agents-md
skill (v1.7) from services, adds the Claude and Cursor rules that load it,
links .claude/skills to .agents/skills, lists AGENTS.md in
.greptile/files.json, and adds the lint-stale-docs check.
@mpsq
mpsq requested a review from a team as a code owner November 30, 2026 17:28
@cursor

cursor Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

PR Summary

Low Risk
Documentation and agent-tool configuration only; no runtime CLI or API behavior changes.

Overview
Introduces Plain’s agent-file stack to a repo that previously had none: a short root AGENTS.md with CLI description, pnpm commands aligned with CI, a README pointer for command work, and pointers to the agents-md skill when editing agent config.

Vendors agents-md v1.7 under .agents/skills/agents-md/ (skill, audit/templates/wiring references). Wires tools so edits load the standard: .claude/skills → .agents/skills, path rules in .claude/rules/agents-md.md and .cursor/rules/agents-md.mdc, and .greptile/files.json so review includes AGENTS.md.

Adds CI doc hygiene: lint-stale-docs workflow (reusable action) plus stale-docs-allowlist.txt for optional files the skill mentions but this repo omits by design (e.g. .cursor/BUGBOT.md).

Reviewed by Cursor Bugbot for commit dccbd85. Bugbot is set up for automated code reviews on this repo. Configure here.

@greptile-apps

greptile-apps Bot commented Nov 30, 2026 •

Copy link
Copy Markdown

Confidence Score: 5/5 · The PR appears safe to merge.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge.

Reviews (2) · Last reviewed commit: "Keep the agents-md skill copy free of in..." · Reviewed by Greptile

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Want higher recall? High effort reviews run extra passes and find more bugs. A team admin can switch effort levels in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit dbc4232. Configure here.

Comment thread .github/workflows/lint-stale-docs.yml Resolved
@mpsq
mpsq enabled auto-merge (squash) November 30, 2026 17:38
This repo is public, so replace the examples taken from Plain's internal
services repo with ones from this repo's README and package.json, and drop the
skill's internal source path.
@mpsq
mpsq requested a review from revett December 1, 2026 12:19
@mpsq mpsq closed this Dec 1, 2026
auto-merge was automatically disabled December 1, 2026 12:19

Pull request was closed

@mpsq
mpsq deleted the ari-2720-agents-md-standard branch December 1, 2026 12:19
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