agentleFS
GyeongHoKimGyeongHoKim/naeryeo/AGENTS.md

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…

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
  1. Very specific:

    Run mise install once to fetch the pinned toolchain (go, node, just, golangci-lint, goreleaser).

    line 13
  2. Very specific:

    Do not create ad-hoc shell scripts that duplicate these gates — just is the single entrypoint.

    line 21
  3. Distinctive:

    No speculative abstractions — an abstraction must justify its complexity before it's introduced.

    line 28
  4. Distinctive:

    Every new exported function, method, and package ships with unit tests in the same commit that introduces it.

    line 34
  5. Distinctive:

    Prefer table-driven tests.

    line 35
  6. Very specific:

    Run just test (or just check) before considering any change complete.

    line 36
  7. Distinctive:

    Test coverage must not regress without an explicit, written justification in the commit/PR description.

    line 37
  8. Very specific:

    Run just fmt, then just lint, then just test (or just check).

    line 44
  9. Distinctive:

    Commit only after explicit human confirmation of both the change and the exact message.

    line 47

≈ “Common” is an estimate: at least 1 in 5 of the 16,597 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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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 dependencies
  • just fmt — format via golangci-lint fmt (v2 formatters: gofmt/goimports)
  • just lint — lint via golangci-lint run against a v2-schema .golangci.yml
  • just test — go test ./... (with -race where 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 panic for 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 (or just 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

  1. Implement the change.
  2. Run just fmt, then just lint, then just test (or just check). All three must be green.
  3. Self-review against Principle I (idiomatic Go) and Principle II (test coverage).
  4. Present the diff and a proposed Conventional Commits-style message to the human.
  5. Commit only after explicit human confirmation of both the change and the exact message.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.