AGENTS.md · TryGhost/Ghost
AGENTS.md from TryGhost/Ghost: 79 lines covering Required workflow, Repository skills, Task routing and important warnings.
Template by TryGhost
Install
Works with Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Claude Code. Read the repository before you give any tool access to your data.
curl -fsSL https://raw.githubusercontent.com/TryGhost/Ghost/main/AGENTS.md -o AGENTS.md
Read it and adapt it to your project before use.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: prompt-engineering
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
What's in it
An AGENTS.md file: instructions coding agents (Codex, Cursor, Copilot, Gemini CLI and others) read before working in a repo.
- For
- Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Claude Code
- Length
- 79 lines
- File
AGENTS.md
Sections
- Required workflow
- Repository skills
- Task routing and important warnings
First lines (shown under the repo's MIT license)
# AGENTS.md
Agent-specific execution guidance for the Ghost monorepo. Human-readable setup,
workflow, architecture, and practice guidance lives in the
[codebase documentation](docs/README.md) and nearby package READMEs.
Start with:
- [Development setup](docs/contributing/development-setup.md)
- [Contribution workflow](docs/contributing/workflow.md)
- [Writing codebase documentation](docs/contributing/documentation.md)
- [Testing](docs/contributing/testing.md)
- [Shipping](docs/contributing/shipping.md)
- [Codebase direction](docs/codebase/direction.md)
- [Monorepo structure](docs/codebase/monorepo-structure.md)
## Required workflow
- Always use `pnpm`, never npm or Yarn. External dependency versions belong in
the catalogs in `pnpm-workspace.yaml`; workspace dependencies use
`workspace:` versions.
- Run `pnpm bootstrap` before other commands in a fresh checkout or worktree.
- Run Ghost in the background with `pnpm dev:up`, `pnpm dev:status` and
`pnpm dev:down`, and give the user the URL they print as a markdown link.
Don't background `pnpm dev`: killing its pid leaves Ghost and the dev
servers running. Before you finish, stop a stack you started only to check
your own work with `pnpm dev:down`; leave running one the user asked for.
Subagents always stop theirs, which otherwise run until the parent session
exits.
- Use `pnpm check` as the default full validation command. Browser E2E tests
run separately; follow the testing guide.
- Read the nearest `AGENTS.md` and README before changing a package
or subsystem. More specific guidance overrides this file.
- When committing, load and follow `.agents/skills/commit/SKILL.md`.
## Repository skills
Repository skills live under `.agents/skills/`. When adding one, also add the
matching `.claude/skills/<name>` symlink to
`../../.agents/skills/<name>`. Run `pnpm lint:agent-skills` to verify discovery.
Use the relevant repository skill before adding an Admin API endpoint, database
migration, private feature flag, Shade component, or internal package.
## Task routing and important warnings
- **Admin UI:** read [`apps/admin/README.md`](apps/admin/README.md) and
[`apps/shade/AGENTS.md`](apps/shade/AGENTS.md). Build new features in React,
use `admin-x-framework` for APIs, and use Shade for UI. Admin and Core deploy
independently, so feature-detect backend support and test the older-backend
case.
- Shade docs: in this repo, `https://shade.ghost.org/docs/<page>.md` is the
source `apps/shade/src/docs/<page>.mdx`, and `docs/components/<path>.md`
is `apps/shade/src/components/<path>.mdx`. Read those files directly.
- **Embedded Admin CSS:** do not import `@tryghost/shade/styles.css` from an
embedded app. Admin owns the single Tailwind and Shade CSS lane.
- **Translations:** follow the
[internationalization guide](docs/practices/internationalization.md). Run the
extraction command after changing `t()` calls and never split one sentence
across translation calls.
- **Public apps:** read the app's README and the
[shipping guide](docs/contributing/shipping.md). Their release and CSS lanes
differ from Admin.
- **Ghost Core:** use the [server map](docs/codebase/monorepo-structure.md#ghost-core)
and read the [services guide](ghost/core/server/services/README.md) before
adding or relocating a service root; apply its placement rules rather than
inferring ownership from existing directory names. New standalone services
use TypeScript; keep CommonJS only
at existing `require()` boundaries. Boot owns service initialization; do not
initialize on the first request.
- **Repository tooling:** read the [tooling ownership guide](tools/README.md)
and the owning folder README before adding or relocating scripts.
- **ESLint:** use the shared factories and dependency rules in the
[ESLint configuration README](tools/configs/eslint/README.md). A hand-written config
must declare every plugin it imports locally.
- **Analytics:** start with `pnpm dev:analytics` and follow the nearby Tinybird
READMEs under `ghost/core/server/data/tinybird/`.
Keep shared facts in human documentation. This file should contain only routing,
agent execution constraints, and high-value warnings that prevent recurring
mistakes.Signals
- Stars
- 55,599
- Forks
- 12,003
- Open issues
- 43
- Last commit (this folder)
- Oct 15, 2026 (14 days ago)
- Last release
- Oct 20, 2026 (9 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/TryGhost/Ghost
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Cite this page
AGENTS.md · TryGhost/Ghost. Agent Mart. https://agentmart.dev/templates/tryghost-ghost-agents-md (last updated 2026-10-24)