Skip to content

chore(ai): move PR workflow rules from AGENTS.md to a pull-requests skill (AI-assisted) - #12662

Merged
slorber merged 1 commit into
slorber/agents-pr-ci-rulesfrom
slorber/agents-skills-restructure
Oct 15, 2026
Merged

slorber merged 1 commit into
slorber/agents-pr-ci-rulesfrom
slorber/agents-skills-restructure

Conversation

@slorber

@slorber slorber commented Oct 15, 2026 •

Copy link
Copy Markdown
Collaborator

Pre-flight checklist

  • I have read the Contributing Guidelines on pull requests.
  • If this is a code change: I have written unit tests and/or added dogfooding pages to fully verify the new behavior.
  • If this is a new API or substantial change: the PR has an accompanying issue (closes #0000) and the maintainers have approved on my working plan.

Motivation

AGENTS.md is loaded in full into every agent session, so each rule costs context and attention even in sessions that never touch a PR. We'll keep adding instructions, so this PR applies the progressive disclosure pattern:

  • AGENTS.md keeps what applies to every task: overview, monorepo map, commands, and the hard rules that must never be skipped (AI disclosure, maintainer/non-maintainer gate, no auto-merge, no merge on red CI).
  • Task workflows move to Agent Skills in .agents/skills/. Only the name and description are loaded upfront, and the body is read when the task starts. The PR workflow (template, labels, Argos, CI watch, bot comments, canary exception, merging) becomes the first pull-requests skill.
  • A ## Skills index in AGENTS.md links each skill with an explicit trigger, so agents that don't discover .agents/skills/ natively still read it at the right time.

Notes:

  • .agents/skills/ is the cross-agent location (Codex, Copilot…). Claude Code natively reads .claude/skills/, which is gitignored here, so it relies on the AGENTS.md pointer.
  • Future candidates: releases and canary testing, dependency upgrades, website docs and versioning. Directory-scoped knowledge could go in nested AGENTS.md files (e.g. website/AGENTS.md).

(AI-assisted)

Test Plan

Docs-only change for agents. The rules are moved, not changed, apart from completing a truncated sentence about Test links.

Test links

Deploy preview: https://deploy-preview-12662--docusaurus-2.netlify.app/

Related issues/PRs

Stacked on top of #12661.

🤖 Generated with Claude Code

@slorber
slorber requested a review from Josh-Cena as a code owner October 15, 2026 20:11
@slorber slorber added the pr: ignore This PR is not meaningful enough to appear in the changelog. label Oct 15, 2026
@meta-cla meta-cla Bot added the CLA Signed Signed Facebook CLA label Oct 15, 2026
@slorber
slorber added this pull request to stack #12663 October 15, 2026 20:12
@netlify

netlify Bot commented Oct 15, 2026

Copy link
Copy Markdown

✅ [V2]

Name Link
🔨 Latest commit 84ed036
🔍 Latest deploy log https://app.netlify.com/projects/docusaurus-2/deploys/6ad13393577af7c395e198b5
😎 Deploy Preview https://deploy-preview-12662--docusaurus-2.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions

Copy link
Copy Markdown

⚡️ Lighthouse report for the deploy preview of this PR

URL Performance Accessibility Best Practices SEO Report
/ 🟠 53 🟢 98 🟢 100 🟢 100 Report
/docs/installation 🟠 79 🟢 97 🟢 100 🟢 100 Report
/docs/category/getting-started 🟠 73 🟢 100 🟢 100 🟠 86 Report
/blog 🟠 68 🟢 96 🟢 100 🟠 86 Report
/blog/preparing-your-site-for-docusaurus-v3 🟠 71 🟢 92 🟢 100 🟢 100 Report
/blog/tags/release 🟠 71 🟢 96 🟢 100 🟠 86 Report
/blog/tags 🟠 73 🟢 100 🟢 100 🟠 86 Report

@slorber
slorber merged commit 5a2119e into main Oct 15, 2026
15 checks passed
@slorber
slorber deleted the slorber/agents-skills-restructure branch October 15, 2026 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed Signed Facebook CLA pr: ignore This PR is not meaningful enough to appear in the changelog.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant