naeryeo
AGENTS.md3 starsChanged 4 months agoMITView on GitHub
Instructions for coding agents (Claude Code, Codex, Cursor, etc.) working in this repository. The binding source of truth for these rules is .specify/memory/constitution.md; this file is a working summary for day-to-day agent use. If the two ever disagree, the constitution wins. naeryeo ("내려") is a Go CLI + MCP server that answers natural-language questions about Korean public-transit routes (bus/subway/inter-city), wrapping the ODsay API. It exposes both a CLI (naeryeo route ...) and an MCP stdio server (naeryeo mcp) for Claude…
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 35,266 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.
In this repository16 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- speckit-analyzeSkill
- speckit-checklistSkill
- speckit-clarifySkill
- speckit-constitutionSkill
- speckit-convergeSkill
- speckit-git-commitSkill
- speckit-git-featureSkill
- speckit-git-initializeSkill
- speckit-git-remoteSkill
- speckit-git-validateSkill
- speckit-implementSkill
- speckit-planSkill
- speckit-specifySkill
- speckit-tasksSkill
- speckit-taskstoissuesSkill
The file
We split this AGENTS.md into the rules it gives an agent
9 rules. About 0 are common, 5 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
4
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 13
Run mise install once to fetch the pinned toolchain (go, node, just, golangci-lint, goreleaser).
- Very specific: line 21
Do not create ad-hoc shell scripts that duplicate these gates — just is the single entrypoint.
- Distinctive: line 28
No speculative abstractions — an abstraction must justify its complexity before it's introduced.
- Distinctive: line 34
Every new exported function, method, and package ships with unit tests in the same commit that introduces it.
- Distinctive: line 35
Prefer table-driven tests.
- Very specific: line 36
Run just test (or just check) before considering any change complete.
- Distinctive: line 37
Test coverage must not regress without an explicit, written justification in the commit/PR description.
- Very specific: line 44
Run just fmt, then just lint, then just test (or just check).
- Distinctive: line 47
Commit only after explicit human confirmation of both the change and the exact message.
≈ “Common” is an estimate: at least 1 in 5 of the 45,344 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
AGENTS.md
Instructions for coding agents (Claude Code, Codex, Cursor, etc.) working in this repository. The binding source of truth for these rules is .specify/memory/constitution.md; this file is a working summary for day-to-day agent use. If the two ever disagree, the constitution wins.
Project Overview
naeryeo ("내려") is a Go CLI + MCP server that answers natural-language questions about Korean public-transit routes (bus/subway/inter-city), wrapping the ODsay API. It exposes both a CLI (naeryeo route ...) and an MCP stdio server (naeryeo mcp) for Claude Desktop / Claude Code, sharing the same core routing logic. See README.md for the full user-facing product description.
Current state: tooling scaffolding is in place (go.mod, justfile, .golangci.yml, mise.toml, commitlint.config.js/husky, .goreleaser.yml, CI), plus a minimal cmd/naeryeo stub and placeholder internal/core/internal/config packages. The real ODsay client and OS-keychain integration are not implemented yet. .specify/ holds the spec-kit workflow (spec → plan → tasks) driving that work.
Setup Commands
Run mise install once to fetch the pinned toolchain (go, node, just, golangci-lint, goreleaser). The required task-runner entrypoints are:
go mod tidy— sync dependenciesjust fmt— format viagolangci-lint fmt(v2 formatters: gofmt/goimports)just lint— lint viagolangci-lint runagainst a v2-schema.golangci.ymljust test—go test ./...(with-racewhere feasible)just check— aggregate recipe running all three above
Do not create ad-hoc shell scripts that duplicate these gates — just is the single entrypoint.
Code Style
- Idiomatic Go per Effective Go. Small interfaces defined by the consuming package, not the implementer. Composition over embedding-as-inheritance.
- Handle every error explicitly — never ignore an error return. Never use
panicfor expected or recoverable errors. gofmt-formatted only; this is the sole accepted style.- No speculative abstractions — an abstraction must justify its complexity before it's introduced.
(Full rationale: constitution.md, Principle I — non-negotiable.)
Testing Instructions
- Every new exported function, method, and package ships with unit tests in the same commit that introduces it.
- Prefer table-driven tests; cover the happy path and meaningful edge cases.
- Run
just test(orjust check) before considering any change complete. A failing gate blocks completion — never note it and move on. - Test coverage must not regress without an explicit, written justification in the commit/PR description.
(Full rationale: constitution.md, Principle II — non-negotiable.)
Required Workflow for Any Change
- Implement the change.
- Run
just fmt, thenjust lint, thenjust test(orjust check). All three must be green. - Self-review against Principle I (idiomatic Go) and Principle II (test coverage).
- Present the diff and a proposed Conventional Commits-style message to the human.
- Commit only after explicit human confirmation of both the change and the exact message.
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.

