docusaurus-plugins: Instructions file for Claude Code

AGENTS.md

docusaurus-plugins AGENTS.md is an instructions file for Claude Code, Codex, OpenCode from gracefullight/docusaurus-plugins. It costs 1,647 tokens per session, scanned A, original, MIT.

Repository instructions for the docusaurus-plugins project. They document its package layout, build and test commands, formatting rules, naming conventions, and TypeScript requirements.

In plain words
What is it for?
They help build and develop Docusaurus plugins, format and lint code, publish packages, and follow the project’s testing and style rules.
Why use it?
They give contributors and coding agents a shared reference for making changes that fit the repository.

Instructions file for Claude CodeCodexOpenCode

Written for Claude Code and Codex and OpenCode: UserPromptSubmit hook event, but also the file is AGENTS.md. Also seen: mentions subagents; reads ~/.codex paths; mentions AGENTS.md.

This is gracefullight/docusaurus-plugins's own configuration. It tells Claude Code, Codex and OpenCode how to work on docusaurus-plugins itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything docusaurus-plugins configures →

Reuse

Borrowing it

Nothing to install: this file belongs to gracefullight/docusaurus-plugins. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/gracefullight/docusaurus-plugins/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/gracefullight/docusaurus-plugins

Made for: Claude Code, Codex, OpenCode.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for docusaurus-plugins AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/gracefullight/docusaurus-plugins/agents-md/github.svg)](https://agentmods.dev/instructions/gracefullight/docusaurus-plugins/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/gracefullight/docusaurus-plugins/agents-md"><img src="https://agentmods.dev/badge/instructions/gracefullight/docusaurus-plugins/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for docusaurus-plugins AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/gracefullight/docusaurus-plugins/agents-md"><img src="https://agentmods.dev/badge/instructions/gracefullight/docusaurus-plugins/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,647 This file is loaded in full into every session.
When invoked 1,647 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.01647 $0.01647
Opus 5.5 $0.00659 $0.00659
Sonnet 5.5 $0.00329 $0.00329
Haiku 4.5 $0.00165 $0.00165

Measured 2mo ago against content hash d46fba131917, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

docusaurus-plugins AGENTS.md scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

AGENTS.md · 130 lines

How it starts

The opening of the file, as written. The whole thing — 130 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Repository Guidelines

Project Structure & Module Organization

  • packages: Docusaurus plugins (e.g., packages/docusaurus-plugin-sentry) with src/index.ts and built dist/.
  • packages/tsconfig: Shared TS configs.
  • apps: Reserved for examples (currently empty).
  • config: Tooling configs (commitlint, lint-staged).
  • .changeset: Versioning and release metadata.

Build, Test, and Development Commands

  • bun run build: Build all packages via Turbo (dist/**).
  • bun run dev: Watch builds across packages.
  • bun run --filter <pkg> build: Build a single package (e.g., @gracefullight/docusaurus-plugin-sentry).
  • bun run format: Format code with Biome.
  • bun run lint: Lint and auto-fix with Biome.
  • bun run publish-packages: Build + version + publish with Changesets.
  • Requirements: Node 24, bun 1.

Coding Style & Naming Conventions

  • Indentation: 2 spaces; line width 80; LF endings; JS quotes: double (Biome enforced).
  • Filenames: kebab-case (e.g., index.ts, my-plugin.ts).
  • Imports: auto-organized; unused code disallowed by Biome.
  • TypeScript: strict; shared config in packages/tsconfig; package output is CJS with .d.ts.

Testing Guidelines

  • No active test suite in this repo. If adding tests, colocate as *.test.ts next to sources. Avoid test/ folders (excluded from workspace).
  • Aim for small, deterministic unit tests around plugin hooks.

Commit & Pull Request Guidelines

  • Commits: Conventional Commits (e.g., feat:, fix:, docs:). Hooks enforce commitlint and Biome via Husky/lint-staged. Devmoji is available; emoji use is optional.
  • PRs: One focused change per PR. Include a summary, screenshots if UI-related (e.g., example app), and link related issues. Update .changeset with an appropriate bump for affected packages.
  • Naming: Prefer scopes per package (e.g., @gracefullight/docusaurus-plugin-<name>).

Security & Configuration Tips

  • Plugins often inject third-party scripts. Validate IDs/keys via Docusaurus config and avoid committing secrets.
  • Keep external script options minimal and documented in each package README.md.

Read the full file on GitHub · 130 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 130 lines · 1,647 tokens per session scan A d46fba131917

Subscribe to this mod's changes

docusaurus-plugins AGENTS.md is an instructions file published in the GitHub repository gracefullight/docusaurus-plugins (23 stars, last pushed 1mo ago), licensed MIT. It adds 1,647 tokens to every session, about $0.0066 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

docusaurus-plugins AGENTS.md compared with instructions from other repositories

docusaurus-plugins AGENTS.md next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
docusaurus-plugins AGENTS.mdgracefullight/docusaurus-pluginsInstructions file231mo agoMITA1,647Claude Code, Codex, OpenCode
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143ktodayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149ktodayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195ktodayMITA3,093GitHub Copilot
deepseek-harness AGENTS.mddeepseek-ai/deepseek-harnessInstructions file274k2d agoMITA4,313Codex, OpenCode