agentleFS
nwiizonwiizo/tfmcp/.claude/skills/e2e-test/SKILL.md

e2e-test

Skill373 starsChanged 2 months agoMITView on GitHub

Verify tfmcp MCP lifecycle, transports, and local Terraform operations end to end with real implementations and isolated fixtures.

9 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 0 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 8 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

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

    Before the first run, isolate test processes from the user's home and credentials.

    line 22
  2. Very specific:

    Use tempfile or mktemp -d for fixture directories.

    line 23
  3. Very specific:

    Prefer local terraform_data fixtures with no remote backend or cloud access.

    line 29

“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “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
SKILL.md

Verify tfmcp End to End

Select coverage for the requested behavior using the existing tests:

Test targetPrimary coverage
e2e_mcp_testRMCP lifecycle, discovery, tools/resources, raw protocol, and Streamable HTTP
local_executionReal stdio subprocess and local Terraform saved-plan operations
mcp_integrationSupporting MCP schema and integration checks; inspect conditional shortcuts

Inspect the selected test and setup before running it. Confirm the Terraform binary is available and compatible with the CI baseline. Some tests return early when Terraform is missing or use CI shortcuts; a successful exit alone does not prove the requested behavior ran.

Before the first run, isolate test processes from the user's home and credentials. Use tempfile or mktemp -d for fixture directories; set subprocess home, Terraform CLI configuration, audit paths, and state paths inside them. Remove inherited HCP/TFE credentials, TF_TOKEN_*, and Terraform CLI argument overrides from the test process. Inspect in-process fixtures too; a temporary project alone does not isolate home-directory access. Keep the shell's own home unchanged.

Prefer local terraform_data fixtures with no remote backend or cloud access. Enable apply/destroy gates only for the owned disposable fixture when that behavior is under test. Real-account verification requires a separate explicit request. Use real RMCP clients, Terraform, and files; do not introduce mocks.

Once isolation is established, run the relevant target and optional test filter:

rtk cargo test --locked --all-features --test e2e_mcp_test
rtk cargo test --locked --all-features --test local_execution

Assert observable protocol responses, error mapping, redaction, saved-plan/state effects, and applicable operation gates. Use loopback and disposable ports for HTTP checks. Stop only processes started by the test and remove only its own fixtures; retain artifacts when requested.

Report exercised scenarios, skips, failures, and retained paths. Fix failures caused by an implementation in scope and rerun affected checks. Follow the repository's required checks for implementation work; a focused smoke test does not establish full-suite coverage.

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.