agentleFS
apacheapache/answer/AGENTS.md

answer

AGENTS.md16k starsChanged 15 months agoApache-2.0View on GitHub

Apache Answer combines a Go backend with a React/TypeScript frontend. cmd/answer is the executable entry point; internal/ contains controllers, services, repositories, schemas, and migrations. Shared Go utilities live in pkg/, and extension interfaces live in plugin/. Frontend pages, components, stores, and API clients are under ui/src/; static assets are in ui/public/, and production output is embedded from ui/build/. Translations live in i18n/, configuration examples in configs/, and deployment resources in charts/. Go tests generally sit beside their implementation; repository integration…

  • Reads credentials

Trending

Quiet since July.thin dataabout the whole repository

Jan 2026: 0 mentionsFeb 2026: 0 mentionsMar 2026: 0 mentionsApr 2026: 1 mentionMay 2026: 1 mentionJun 2026: 0 mentionsJul 2026: 1 mentionAug 2026: 0 mentionsSep 2026: 0 mentionsOct 2026: 0 mentionsNov 2026: 0 mentionsDec 2026: 0 mentions
Jan 2026Jul 2026Dec 2026
Mentions a month of the apache/answer repository that our weekly crawl found: only 9 in all, so this is a hint, not a trend. There is no adoption data for this file yet.

Who's talking about apache/answer

The biggest 5 of 9 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 9

Talked about on GitHub and Bluesky (9 times).

On GitHub · 5

On Bluesky · 4

  • 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,196 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.

The file

We split this AGENTS.md into the rules it gives an agent

2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use Go 1.25+, Node.js matching ui/package.json (^20.19.0 || >=22.12.0), and pnpm 9.7.0.

    line 9
  2. Very specific:

    Before cd ui && pnpm start (Vite, port 3000), set REACT_APP_API_URL=http://localhost:8080/ in ui/.env.development.local, matching your …

    line 15

≈ “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.

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

Repository Guidelines

Project Structure & Module Organization

Apache Answer combines a Go backend with a React/TypeScript frontend. cmd/answer is the executable entry point; internal/ contains controllers, services, repositories, schemas, and migrations. Shared Go utilities live in pkg/, and extension interfaces live in plugin/. Frontend pages, components, stores, and API clients are under ui/src/; static assets are in ui/public/, and production output is embedded from ui/build/. Translations live in i18n/, configuration examples in configs/, and deployment resources in charts/. Go tests generally sit beside their implementation; repository integration tests live in internal/repo/repo_test/.

Build, Test, and Development Commands

Use Go 1.25+, Node.js matching ui/package.json (^20.19.0 || >=22.12.0), and pnpm 9.7.0. make lint also requires Docker or Podman installed and running for the ASF header formatter.

  • make generate: install generators, regenerate Go code/API documentation, and tidy modules.
  • make ui: install frontend dependencies and build the UI.
  • make build: regenerate code and build the answer executable.
  • ./answer init -C ./data then ./answer run -C ./data: initialize and run locally.
  • Before cd ui && pnpm start (Vite, port 3000), set REACT_APP_API_URL=http://localhost:8080/ in ui/.env.development.local, matching your backend address. This overrides the checked-in private proxy target; restart Vite after changes.
  • make test: run repository integration tests.
  • go test ./...: run the full Go test suite.
  • make lint: regenerate code, check ASF headers, and run golangci-lint.
  • cd ui && pnpm lint: run ESLint with automatic fixes; pnpm prettier formats frontend sources.

Coding Style & Naming Conventions

Format Go with gofmt; use tabs and conventional exported PascalCase names. Follow existing snake_case Go filenames and package organization. Frontend code uses two spaces, single quotes, trailing commas, and an 80-column Prettier target. Use PascalCase component directories and follow neighboring files. Respect .editorconfig, ESLint, and ASF license headers. Regenerate generated files through tooling rather than editing them manually.

Testing Guidelines

Use Go's testing package and existing Testify assertions. Name files *_test.go and functions TestXxx. Add regression coverage for changed behavior. Repository tests default to SQLite; MySQL/PostgreSQL variants use TEST_DB_DRIVER and Docker. No fixed coverage threshold or frontend test script is configured; verify UI changes with pnpm build and browser checks.

Commit & Pull Request Guidelines

Follow history's conventional prefixes: fix:, feat:, build:, test:, or chore:, with optional scope, such as fix(security): enforce visibility. Keep commits focused. Follow the PR template: link the issue with Fixes #... and describe proposed changes. Include validation results and screenshots for visible UI changes. Review generated changes before committing; CI checks linting and unexpected generated diffs.

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.