RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/AGENTS.md/gohugoio/hugo

AGENTS.md

AGENTS.md
AGENTS.mdroot

Quality

30/100

Scores the file, not the repository.

Length

262 words

0 headings · 0 code blocks

Repository

89k

— · pushed 0 days ago

Last changed

3 days ago

First indexed 3 days ago.
gohugoio/hugo/AGENTS.mdRawGitHub
1 
2* Brevity is good.
3* Assume that the maintainers and readers of the code you write are Go experts:
4 * Don't use comments to explain the obvious.
5 * Use self-explanatory variable and function names.
6 * Use short variable names when the context is clear.
7* If you need to add temporary debug printing, use `hdebug.Printf`.[^1]
8* Never export symbols that's not needed outside of the package.
9* Avoid global state at (almost) all cost.
10* This is a project with a long history; assume that a similiar problem has been solved before, look hard for helper functions before creating new ones.
11* In tests, almost always write end-to-end integration tests using `hugolib.Test` or one of its siblings. Write unit tests only for isolated utilities.
12* In tests, use `qt` matchers (e.g. `b.Assert(err, qt.ErrorMatches, ...)`) instead of raw `if`/`t.Fatal` checks.
13* In tests, always use the latest Hugo specification, e.g. for layouts, it's `layouts/page.html` and not `layouts/_default/single.html`, `layouts/list.html` and not `layouts/_default/list.html`
14* Never name tests `TestIssue1234`; always give the test function a descriptive name, e.g. `TestDisablePathToLower`, and add any issue reference as a Go doc function comment, e.g. `// See issue 1234.`.
15* If you borrow a test case (e.g. from the issue), that test's author must be added as co-author in the commit.
16* If you're a security researcher, read @SECURITY.md carefully.
17* Brevity is good. This applies to code, comments and commit messages. Don't write a novel.
18* Use `./check.sh ./somepackage/...` when iterating.
19* Use `./check.sh` when you're done.
20 
21 
22[^1]: CI build fail if you forget to remove the debug printing.
23 

What it covers

git-pr

Stack — with the evidence

go

(1.00)

tailwind

(0.70)

docker

(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
gohugoio
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
bagisto/bagistoAGENTS.md · 28kAGENTS.mdphplaravel+8setupbuildteststyle+7100/1003 days ago
unoplat/unoplat-code-confluenceunoplat-code-confluence-frontend/AGENTS.md · 95AGENTS.mdtypescriptpython+14setupbuildtestlint-format+6100/1002 days ago
ethereum/go-ethereumAGENTS.md · 51kAGENTS.mdgodocker+1buildtestlint-formatgit+1100/1003 days ago
aaif-goose/gooseAGENTS.md · 52kAGENTS.mdrusttypescript+2setupbuildtestlint-format+6100/1003 days ago
mui/material-uiAGENTS.md · 99kAGENTS.mdtypescriptjavascript+13setupbuildtestlint-format+9100/1003 days ago
TryGhost/Ghoste2e/AGENTS.md · 55kAGENTS.mdtypescriptjavascript+12setupteststylearch+2100/1003 days ago
wpscanteam/wpscanAGENTS.md · 9.7kAGENTS.mdrubyvue+3setupbuildteststyle+6100/1002 days ago
caddyserver/caddyAGENTS.md · 75kAGENTS.mdgogithub-actionsbuildtestlint-formatstyle+399/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