Skip to content
Agentmart
Submit a tool

AGENTS.md · kubernetes/kubernetes

AGENTS.md from kubernetes/kubernetes: 40 lines covering Communication Preferences, Constraints, Contributor Guidelines, Commands and more.

Template by kubernetes

IndexedApache-2.0★ 128,606
Write a review

Install

Works with Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Claude Code. Read the repository before you give any tool access to your data.

curl -fsSL https://raw.githubusercontent.com/kubernetes/kubernetes/master/AGENTS.md -o AGENTS.md

Read it and adapt it to your project before use.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

The AGENTS.md file that kubernetes/kubernetes (128,603 stars) keeps for coding agents. It has 40 lines in 5 sections: Communication Preferences; Constraints; Contributor Guidelines; Commands; Style. Use it as a model for your own project's instructions.

Use cases: prompt-engineering

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

What's in it

An AGENTS.md file: instructions coding agents (Codex, Cursor, Copilot, Gemini CLI and others) read before working in a repo.

For
Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Claude Code
Length
40 lines
File
AGENTS.md

Sections

  1. Communication Preferences
  2. Constraints
  3. Contributor Guidelines
  4. Commands
  5. Style

First lines (shown under the repo's Apache-2.0 license)

# Kubernetes

## Communication Preferences

- Dry, concise, low-key humor. No flattery, no forced memes. Skip preambles and postambles.
- Comments explain "why", not "what". Do not add comments when the code itself is easily understood.
- Error messages: actionable and specific. No vague "something went wrong" output.

## Constraints

- **Generated files are read-only.** Never hand-edit `zz_generated.*` or `generated.pb.go`. Run `make update`.
- **go.mod/go.work are generated.** Use `hack/pin-dependency.sh` + `hack/update-vendor.sh`. Never `go mod tidy`.
- **Staging is source of truth** for `k8s.io/*` (`staging/src/k8s.io/`). Never import `k8s.io/kubernetes` from staging.
- **Boilerplate required.** Every `.go` file needs the license header from `hack/boilerplate/boilerplate.go.txt`.

## Contributor Guidelines

- Keep changes focused and reviewable
- Add or update relevant tests. Do not add trivial unit tests just for the sake of code coverage.
- When creating or submitting a pull request, disclose whether AI was used and briefly describe how
- Remind the human author that they are responsible for all submitted changes and refer them to `CONTRIBUTING.md`
- Do not put `@mentions` or `fixes #...` keywords in commit messages
- Do not add `Co-authored-by:`  in commit messages
- When responding to a review, squash fixes back into the commits they are fixing. Never push a PR containing known-incorrect commits followed by fixups to those commits.

## Commands

Run `make help` for all available targets. Common workflows:

```
make test WHAT=./pkg/kubelet GOFLAGS=-v     # Unit tests (one package)
make test-integration WHAT=./test/integration/scheduler
make verify                                 # All verification checks
make update                                 # ALL generators and formatters
```

## Style

- Packages: lowercase, single word, match directory.

Signals

Stars
128,606
Forks
46,918
Open issues
1,886
Last commit (this folder)
Oct 15, 2026 (13 days ago)
Last release
Sep 23, 2026 (1 month ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026
Cite this page

AGENTS.md · kubernetes/kubernetes. Agent Mart. https://agentmart.dev/templates/kubernetes-kubernetes-agents-md (last updated 2026-10-24)