agentleFS
Microsoft AzureKnown publisherAzure/AKSFlexNode/AGENTS.md

AKSFlexNode

AGENTS.md17 starsChanged 59 days agoMITView on GitHub

Go agent that extends AKS to non-Azure VMs, transforming Ubuntu machines into semi-managed AKS worker nodes. Run make help to discover all available build, test, and lint targets.

  • Reads credentials
  • Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.

    Of the AGENTS.md files we read, the 11,773 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

5 rules. About 0 are common, 0 are distinctive, and 5 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.

  • 5

    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:

    Sensitive data: never log or return tokens/secrets.

    line 15
  2. Very specific:

    Parallel execution: call t.Parallel() in both top-level and sub-tests.

    line 22
  3. Very specific:

    Filesystem isolation: use t.TempDir() for any file I/O.

    line 23
  4. Very specific:

    No external test frameworks: use the standard testing package only.

    line 26
  5. Very specific:

    Run make help to discover all available build, test, and lint targets.

    line 30

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

AKS FlexNode Agent

Go agent that extends AKS to non-Azure VMs, transforming Ubuntu machines into semi-managed AKS worker nodes.

Coding Conventions

  • Language: Go 1.25+. Standard gofmt/goimports formatting.
  • Linting: golangci-lint with errcheck (type assertions checked), gosec, govet, ineffassign, staticcheck, unused. Run make lint.
  • Quality gate: make check runs formatting, vetting, linting, and tests in sequence.
  • Naming: packages lowercase; files snake_case; unexported types/vars camelCase; exported PascalCase.
  • Errors: wrap with context via fmt.Errorf("context: %w", err). Use gRPC status codes in components/. Never panic in runtime logic.
  • Logging: logrus with context propagation (pkg/logger). Log at appropriate levels — debug for verbose, info for state changes, error for failures.
  • Comments: explain why, not what. Reference upstream docs with URLs where relevant.
  • Protobuf: edition 2024, opaque API with builder pattern. Run make generate to regenerate .pb.go files.
  • Sensitive data: never log or return tokens/secrets. Use Redact() in components; avoid committing .env or credential files.

Testing

Conventions

  • Table-driven tests with named subtests (t.Run(name, ...)).
  • Parallel execution: call t.Parallel() in both top-level and sub-tests.
  • Filesystem isolation: use t.TempDir() for any file I/O.
  • Dependency injection: accept interfaces on structs; use mock implementations in tests (see pkg/components/arc/ for example).
  • Idempotency: explicitly test that operations are safe to re-run.
  • No external test frameworks: use the standard testing package only.

Makefile Targets

Run make help to discover all available build, test, and lint targets.

Key Design Patterns

  1. Idempotent reconciliation — compare current state with desired state; only mutate when they differ.
  2. Bootstrapper executor — sequential step execution with fail-fast (bootstrap) or best-effort (unbootstrap) semantics.
  3. Action hub — single gRPC endpoint dispatches to versioned component handlers by protobuf type URL.
  4. Interface-driven — depend on interfaces, not concrete types, to enable testing and extensibility.

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.