agentleFS
ElasticKnown publisherelastic/terraform-provider-ec/AGENTS.md

terraform-provider-ec

AGENTS.md183 starsChanged 19 days agoApache-2.0View on GitHub

This repo is the Terraform provider for Elastic Cloud (the "cloud provider"), written in Go. It manages Elastic Cloud hosted deployments, serverless projects, traffic filters, extensions, and related resources through the Elastic Cloud API. - Acceptance tests (make testacc, and anything gated by TF_ACC=1) create and destroy real deployments against the live Elastic Cloud API (EC_API_KEY) and cost real money. Never auto-run acceptance tests from an agentic workflow — no live-cloud credentials are exposed to agents by default. The openspec-implementation-loop…

  • Reads credentials
  • Commits and pushes

The file

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

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

  • 6

    Very specific

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

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

    Follow the project's coding conventions in coding-standards.md.

    line 9
  2. Very specific:

    If you changed resource/data-source schemas, templates, or examples, regenerate docs with env -u TF_ACC make docs-generate and verify with …

    line 40
  3. Very specific:

    If you changed openspec/: env -u TF_ACC make check-openspec

    line 44
  4. Very specific:

    If this is a Terraform entity change, or examples/provider schemas changed: env -u TF_ACC make install validate-examples

    line 46
  5. Very specific:

    If you changed the serverless client inputs, regenerate with env -u TF_ACC make gen.

    line 47
  6. Very specific:

    Add a .changelog/{PR}.txt entry after the PR number is known (user-facing release-note:… or release-note:none for non-user-facing).

    line 49

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

Agent guide (start here)

This repo is the Terraform provider for Elastic Cloud (the "cloud provider"), written in Go. It manages Elastic Cloud hosted deployments, serverless projects, traffic filters, extensions, and related resources through the Elastic Cloud API.

Before making changes

  • Follow the project's coding conventions in coding-standards.md.
  • For contributor setup, PR flow, and the per-PR .changelog/ convention, see contributing.md.

High-level dev docs

  • Repo orientation and where code lives: repo-structure.md
  • Common workflows and "what to do when": development-workflow.md
  • Testing (unit + acceptance) and required env: testing.md
  • Generated clients (serverless OpenAPI) and regeneration: generated-clients.md
  • Documentation generation (tfplugindocs): documentation.md
  • OpenSpec authoring (Purpose / SHALL-MUST / Scenarios): openspec-requirements.md
  • OpenSpec change loop (explore / propose / apply / loop / verify / sync / archive): openspec-workflows.md

Testing note — acceptance tests hit the real, paid Elastic Cloud API

  • Acceptance tests (make testacc, and anything gated by TF_ACC=1) create and destroy real deployments against the live Elastic Cloud API (EC_API_KEY) and cost real money. Never auto-run acceptance tests from an agentic workflow — no live-cloud credentials are exposed to agents by default. The openspec-implementation-loop never sets TF_ACC. In PR mode it recommends the human run named TestAcc… cases locally and confirms before gh pr create (skip = wait on Buildkite); implementors, openspec-verify-change, and CI reuse stay acc-free. The full suite runs on Buildkite per PR and is a required status check on master (buildkite/terraform-provider-ec-acceptance); a human working on a change should run the targeted TestAcc… case(s) locally first. See testing.md.
  • There is no local Docker stack for this provider (unlike the Elastic Stack provider). Unit tests (env -u TF_ACC make unit) need no credentials and are always safe to run.

After making changes

  • Build: env -u TF_ACC make build
  • If you changed resource/data-source schemas, templates, or examples, regenerate docs with env -u TF_ACC make docs-generate and verify with make tfproviderdocs. See documentation.md.
  • Lint: env -u TF_ACC make lint
  • env -u TF_ACC make notice (commit if NOTICE is dirty; Go CI fails on a dirty NOTICE)
  • If you changed openspec/: env -u TF_ACC make check-openspec
  • Unit tests (no cloud, always safe): env -u TF_ACC make unit
  • If this is a Terraform entity change, or examples/provider schemas changed: env -u TF_ACC make install validate-examples
  • If you changed the serverless client inputs, regenerate with env -u TF_ACC make gen. See generated-clients.md.
  • Add a .changelog/{PR}.txt entry after the PR number is known (user-facing release-note:… or release-note:none for non-user-facing). See contributing.md.

The OpenSpec CLI is installed via make setup-openspec (Node.js 24, npm ci) and validated by make check-openspec / .github/workflows/openspec.yml. Author specs per openspec-requirements.md. Drive a change with the skills under .agents/skills/ — see openspec-workflows.md. GitHub Agentic Workflows land in later phases of the LLM-driven SDLC epic.

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.