agentleFS
SentryKnown publishergetsentry/sentry-starlight-theme/AGENTS.md

sentry-starlight-theme

AGENTS.md3 starsChanged 6 months agoApache-2.0View on GitHub

  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.

    Of the AGENTS.md files we read, the 33,398 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.

The file

We split this AGENTS.md into the rules it gives an agent

7 rules. About 0 are common, 1 is distinctive, and 6 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 6

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Keep pnpm-lock.yaml updated when dependencies change.

    line 19
  2. Very specific:

    Keep package exports in package.json aligned with files under src/.

    line 39
  3. Very specific:

    Keep Craft target IDs, version bump files, and pack workflow aligned.

    line 40
  4. Very specific:

    Do not edit generated apps/playground/.astro/ or apps/playground/dist/.

    line 41
  5. Distinctive:

    Use the playground for visual/theme behavior changes before changing release files.

    line 42
  6. Very specific:

    Put shared theme styling in src/styles/index.css, not in Astro component <style> blocks or inline style attributes.

    line 43
  7. Very specific:

    Keep Starlight component overrides in src/components/ focused on markup and composition.

    line 44

≈ “Common” is an estimate: at least 1 in 5 of the 43,423 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

Agent Instructions

File Tree

PathPurpose
src/index.tsStarlight plugin entrypoint and public exports.
src/styles/index.cssShared Sentry Starlight CSS theme.
src/components/Starlight component overrides exported by the package.
src/themes/Syntax highlighting themes exported by the package.
apps/playground/Private Starlight app for testing theme changes via workspace:*.
scripts/Release, Craft, and repo maintenance scripts.
.github/workflows/PR checks, post-merge artifact build, and release prep.
.craft.ymlCraft publish targets for npm and GitHub releases.

Package Manager

  • Use pnpm: pnpm install.
  • Keep pnpm-lock.yaml updated when dependencies change.

Commands

TaskCommand
Start playgroundpnpm dev
Lint and format checkpnpm lint
Formatpnpm format
Theme typecheckpnpm typecheck
Playground Astro checkpnpm astro:check
Playground buildpnpm playground:build
Release config checkpnpm release:check
Full validationpnpm test
Package dry runpnpm pack:dry

Conventions

  • The root package is the published package: @sentry/starlight-theme.
  • The playground is private and must not be included in the npm package.
  • Keep package exports in package.json aligned with files under src/.
  • Keep Craft target IDs, version bump files, and pack workflow aligned; verify with pnpm release:check.
  • Do not edit generated apps/playground/.astro/ or apps/playground/dist/.
  • Use the playground for visual/theme behavior changes before changing release files.
  • Put shared theme styling in src/styles/index.css, not in Astro component <style> blocks or inline style attributes. Component-scoped CSS can load after first paint and cause visible flicker in the playground and downstream docs sites.
  • Keep Starlight component overrides in src/components/ focused on markup and composition. If an override needs layout or visual styles, add stable classes and style them from src/styles/index.css.

Release Notes

  • Release prep is manual through .github/workflows/release.yml.
  • Post-merge artifacts are built by .github/workflows/merge-jobs.yml.
  • Craft publishes sentry-starlight-theme-<version>.tgz to npm as @sentry/starlight-theme.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.