RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/AGENTS.md/discourse/discourse

AGENTS.md

migrations/AGENTS.md
AGENTS.md

Quality

39/100

Scores the file, not the repository.

Length

249 words

2 headings · 0 code blocks

Repository

48k

— · pushed 0 days ago

Last changed

3 days ago

First indexed 3 days ago.
discourse/discourse/migrations/AGENTS.mdRawGitHub
1# Migrations Tooling — Agent Guide
2 
3Start with **[README.md](README.md)** — it is the single source of truth for this
4project: gem layout and namespaces, the `disco` CLI, converters, the schema DSL,
5and the install / test / lint workflow.
6 
7This file is reserved for **agent-specific** guidance that does not belong in the
8README (conventions, gotchas, do/don't notes for automated contributors).
9 
10## Gotchas
11 
12- **Samovar reserves `name` on commands.** `Nested#parse` instantiates a
13 sub-command with `name:` (its invocation name), which Samovar stores and exposes
14 as `name`. So don't declare a positional `one :name` on a `disco` command — when
15 the argument is omitted the accessor silently reads back the command's own name
16 (e.g. a `schema add` command would read back `"add"`) instead of `nil`. Name the
17 positional something else (`one :table_name, …`).
18 
19- **Samovar positionals are never required.** Don't use `one :x, required: true` —
20 it raises during parsing, before `call` runs, which breaks the `-h/--help`
21 handling. Leave positionals optional and validate them at the top of `call` with
22 `require_positional!` (see `Migrations::CLI::Command`); it raises a presentable
23 error, so the user gets a clean message instead of a backtrace.
24 
25- **Don't give command groups a `-h/--help` option.** The option hoisting in
26 `Command#parse` moves recognized flags to the front, so a group-level help
27 option steals `--help` from the subcommands — `group sub --help` would run
28 the subcommand instead of printing its help. Leave groups without options;
29 a bare `group --help` surfaces as an unparsable token, which `Bootstrap`
30 turns into usage with exit 0.
31 

Sections

  • Migrations Tooling — Agent Guide
  • Gotchas

What it covers

agent-behaviour

Stack — with the evidence

typescript

(1.00)

javascript

(1.00)

ruby

(1.00)

rails

(1.00)

postgres

(1.00)

node

(0.70)

redis

(0.70)

vitest

(0.70)

aws

(0.70)

monorepo

(0.60)

pnpm

(0.60)

eslint

(0.60)

github-actions

(0.60)

Format

AGENTS.md

A plain-markdown README for coding agents, deliberately unopinionated: no frontmatter, no globs, no vendor keys. That minimalism is why it became the one file a dozen different agents will read, and why it carries the least per-file targeting power of any format here.

What the corpus says about it

Repository

Owner
discourse
Language
—
License
—
Archived
no

All configs in this repo

Similar configs

Same format, overlapping stack, ranked by quality.

Same format, overlapping stack, ranked by quality
RepositoryFormatStackCoversScoreChanged
n8n-io/n8npackages/@n8n/agents/AGENTS.md · 199kAGENTS.mdtypescriptlangchain+16buildteststylearch+3100/1003 days ago
aaif-goose/gooseAGENTS.md · 52kAGENTS.mdrusttypescript+2setupbuildtestlint-format+6100/1003 days ago
wpscanteam/wpscanAGENTS.md · 9.7kAGENTS.mdrubyvue+3setupbuildteststyle+6100/1002 days ago
mui/material-uiAGENTS.md · 99kAGENTS.mdtypescriptjavascript+13setupbuildtestlint-format+9100/1003 days ago
SkeneTechnologies/skene-cookbookAGENTS.md · 51AGENTS.mdpythoneslint+4setupbuildtestlint-format+7100/1002 days ago
duckduckgo/content-scope-scriptsspecial-pages/AGENTS.md · 70AGENTS.mdtypescriptjavascript+5buildteststylearch+3100/1003 days ago
trick77/agents-md-syncAGENTS.md · 2AGENTS.mdtypescriptnode+4setupbuildteststyle+5100/1003 days ago
TryGhost/Ghoste2e/AGENTS.md · 55kAGENTS.mdtypescriptjavascript+12setupteststylearch+2100/1003 days ago
RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack