gke-mcp
AGENTS.md169 starsChanged 3 months agoApache-2.0View on GitHub
This repository contains the GKE MCP server and Gemini CLI extension. The main server is written in Go. Web UI assets live under ui/ and are built into checked-in single-file HTML bundles under ui/dist/apps/. Run the smallest relevant check for the files you changed. For broad changes, prefer make presubmit when feasible. The files under ui/dist/apps/ are generated but checked in because Go embeds them. Do not edit them by hand. Change source files under ui/apps/, ui/shared/, or UI build…
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 31,542 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 repositoryOne other file it gives its agents.
- CLAUDE.mdCLAUDE.md
The file
Show its rules and text
We split this AGENTS.md into the rules it gives an agent
20 rules. About 0 are common, 4 are distinctive, and 16 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
16
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 22
Run Go tests: go test -v ./...
- Very specific: line 23
Run Go vet: go vet ./...
- Very specific: line 26
Run UI tests: npm --prefix ui run test
- Very specific: line 27
Run UI lint: npm --prefix ui run lint
- Very specific: line 30
Run local presubmit: ./dev/tasks/presubmit.sh or make presubmit
- Very specific: line 32
Run the smallest relevant check for the files you changed.
- Very specific: line 51
If verify-ui.sh reports changes after an intentional UI update, include the updated ui/dist/apps/*/index.html files in the same change.
- Very specific: line 56
Keep Go code formatted with gofmt.
- Very specific: line 57
If dependencies change, run go mod tidy or ./dev/tasks/gomod.sh.
- Distinctive: line 58
Add or update focused tests near changed behavior.
- Very specific: line 59
Prefer existing package patterns in pkg/tools, pkg/config, and pkg/agents before adding new abstractions.
- Very specific: line 65
Keep source changes in ui/apps/ or ui/shared/ when possible.
- Very specific: line 66
Run npm --prefix ui run lint after TypeScript or React changes.
- Very specific: line 67
Run npm --prefix ui run test for UI logic changes.
- Distinctive: line 73
Keep changes scoped to the request.
- Distinctive: line 74
Do not commit unrelated formatting or generated output.
- Distinctive: line 75
Use Conventional Commits for commit messages.
- Very specific: line 77
Use .github/PULL_REQUEST_TEMPLATE.md for PR body structure and level of detail.
- Very specific: line 79
When updating Markdown files, run npx prettier --write <files> on the changed Markdown files before committing.
- Very specific: line 81
Run ./dev/tasks/presubmit.sh locally before creating a PR, and only create the PR once presubmit passes.
≈ “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.
Files
AGENTS.md
Project Overview
This repository contains the GKE MCP server and Gemini CLI extension. The main
server is written in Go. Web UI assets live under ui/ and are built into
checked-in single-file HTML bundles under ui/dist/apps/.
Repository Layout
cmd/,pkg/: Go source for the MCP server, tools, config, and agents.ui/: Vite/React TypeScript apps and shared UI code.ui/apps/*/index.html: source app HTML entrypoints.ui/dist/apps/*/index.html: generated, checked-in UI bundles embedded by Go.dev/tasks/: local maintenance tasks that may update files.dev/ci/presubmits/: CI-equivalent verification scripts.
Development Commands
- Build everything:
make build - Build Go only:
go build -v ./... - Run Go tests:
go test -v ./... - Run Go vet:
go vet ./... - Install UI dependencies:
npm --prefix ui install - Build UI bundles:
npm --prefix ui run build - Run UI tests:
npm --prefix ui run test - Run UI lint:
npm --prefix ui run lint - Format all supported files:
./dev/tasks/format.sh - Format Markdown files after editing:
npx prettier --write <files> - Run local presubmit:
./dev/tasks/presubmit.shormake presubmit
Run the smallest relevant check for the files you changed. For broad changes,
prefer make presubmit when feasible.
Generated Files
The files under ui/dist/apps/ are generated but checked in because Go embeds
them. Do not edit them by hand. Change source files under ui/apps/,
ui/shared/, or UI build configuration, then regenerate with:
npm --prefix ui run buildTo verify generated UI bundles are current, run:
./dev/ci/presubmits/verify-ui.shIf verify-ui.sh reports changes after an intentional UI update, include the
updated ui/dist/apps/*/index.html files in the same change.
Go Guidelines
- Keep Go code formatted with
gofmt. - If dependencies change, run
go mod tidyor./dev/tasks/gomod.sh. - Add or update focused tests near changed behavior.
- Prefer existing package patterns in
pkg/tools,pkg/config, andpkg/agentsbefore adding new abstractions.
UI Guidelines
- The UI uses Vite, React, TypeScript, MUI, and Vitest.
- Keep source changes in
ui/apps/orui/shared/when possible. - Run
npm --prefix ui run lintafter TypeScript or React changes. - Run
npm --prefix ui run testfor UI logic changes. - Regenerate
ui/distafter UI source or build configuration changes.
Pull Request Hygiene
- Perform a self-review of the changes before sending or updating PRs.
- Keep changes scoped to the request.
- Do not commit unrelated formatting or generated output.
- Use Conventional Commits for commit messages.
- Push PR branches to a fork, not to the upstream repository.
- Use
.github/PULL_REQUEST_TEMPLATE.mdfor PR body structure and level of detail. - When updating Markdown files, run
npx prettier --write <files>on the changed Markdown files before committing. - Run
./dev/tasks/presubmit.shlocally before creating a PR, and only create the PR once presubmit passes. - The presubmit script can take several minutes; when tooling supports it, run it as a background or otherwise non-blocking task while continuing other PR preparation.
- Mention any checks that could not be run and why.
- For generated bundle changes, explain which source or build configuration change caused the regenerated output.
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.

