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
- Very specific: line 19
Keep pnpm-lock.yaml updated when dependencies change.
- Very specific: line 39
Keep package exports in package.json aligned with files under src/.
- Very specific: line 40
Keep Craft target IDs, version bump files, and pack workflow aligned.
- Very specific: line 41
Do not edit generated apps/playground/.astro/ or apps/playground/dist/.
- Distinctive: line 42
Use the playground for visual/theme behavior changes before changing release files.
- Very specific: line 43
Put shared theme styling in src/styles/index.css, not in Astro component <style> blocks or inline style attributes.
- Very specific: line 44
Keep Starlight component overrides in src/components/ focused on markup and composition.
≈ “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.
Files
Agent Instructions
File Tree
| Path | Purpose |
src/index.ts | Starlight plugin entrypoint and public exports. |
src/styles/index.css | Shared 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.yml | Craft publish targets for npm and GitHub releases. |
Package Manager
- Use pnpm:
pnpm install. - Keep
pnpm-lock.yamlupdated when dependencies change.
Commands
| Task | Command |
| Start playground | pnpm dev |
| Lint and format check | pnpm lint |
| Format | pnpm format |
| Theme typecheck | pnpm typecheck |
| Playground Astro check | pnpm astro:check |
| Playground build | pnpm playground:build |
| Release config check | pnpm release:check |
| Full validation | pnpm test |
| Package dry run | pnpm 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.jsonaligned with files undersrc/. - Keep Craft target IDs, version bump files, and pack workflow aligned; verify with
pnpm release:check. - Do not edit generated
apps/playground/.astro/orapps/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 inlinestyleattributes. 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 fromsrc/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>.tgzto npm as@sentry/starlight-theme.
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
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.

