agentleFS
h0rn3th0rn3t/golang-skills/AGENTS.md

golang-skills

AGENTS.md7 starsChanged 9 days agoApache-2.0View on GitHub

This repository packages Go-focused Agent Skills; it is not a Go application and has no root go.mod. Run these from the repository root: The first command is the CI structural suite, including the Agent Skills frontmatter check in TestStructure; the others validate shell syntax and the pinned lint configuration. Model-driven runs are opt-in and costly: cd evals && go run ./cmd/evalrun -set validation -kind all -j 2 -out evals-results.json. Write decision-oriented Markdown. Keep each SKILL.md at 400 lines or fewer…

The file

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

1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Run these from the repository root:

    line 14

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

This repository packages Go-focused Agent Skills; it is not a Go application and has no root go.mod.

  • skills/go-*/: runtime skills. Keep each SKILL.md with its optional references/, scripts/, and assets/.
  • evals/: the only Go module; contains structural tests, fixtures, golden cases, and the evalrun/abrun runners.
  • hooks/ and agents/: Claude Code routing, post-edit hooks, and the optional go-verify agent.
  • docs/: authoring, ownership, script-contract, and release policy. source/ contains licensed upstream snapshots and is not edited.

Build, Test, and Development Commands

Run these from the repository root:

(cd evals && go test -count=1 -race -shuffle=on ./...)
bash -n hooks/*.sh
golangci-lint config verify --config skills/go-linting/assets/golangci.yml

The first command is the CI structural suite, including the Agent Skills frontmatter check in TestStructure; the others validate shell syntax and the pinned lint configuration. Model-driven runs are opt-in and costly: cd evals && go run ./cmd/evalrun -set validation -kind all -j 2 -out evals-results.json.

Coding Style & Naming Conventions

Write decision-oriented Markdown. Keep each SKILL.md at 400 lines or fewer and references at 300 or fewer. Route every bundled resource in ## Resource Routing, use relative links, and assign each rule one owner in docs/RULE_OWNERSHIP.md. Go examples must be formatted and compilable; target Go 1.27 with 1.26 and 1.27 supported. Use gofmt for Go and portable Bash for hooks and scripts.

Testing Guidelines

Put structural tests in evals/*_test.go with descriptive Test... names. Update fixtures and golden cases when changing scripts, hooks, routing, manifest counts, or example behavior. Run a focused subtest while iterating, then the full race-enabled suite before opening a PR. Keep model-run reports and traces outside the repository.

Commit & Pull Request Guidelines

Use the history’s scoped conventional style, such as feat(go-http): ..., fix(hooks): ..., docs: ..., or release: 1.21.2. Keep commits focused. PRs should explain intent, list affected files, record validation commands and baseline failures, update CHANGELOG.md under ## [Unreleased] for user-visible changes, and update README/manifests when resource counts or versions change. For releases, follow docs/RELEASE_CHECKLIST.md; do not bump versions for ordinary PRs.

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.