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.

32 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use unit-test, design-md and 7 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • kevinaimonsterSkill

    unit-test

    单元测试生成助手。帮用户编写单元测试、集成测试、Mock 设计、测试覆盖率提升。当用户说「帮我写单元测试」「写个测试用例」「怎么测这个函数」「mock怎么写」「测试覆盖率」「写测试」「unit test」「test case」「jest测试」「pytest」「vitest」「testing」时触发。关键词:单元测试、测试用例、测试覆盖率、mock、stub、spy、jest、pytest、vitest、mocha、junit、testing-library、断言、边界测试、异常测试、集成测试、e2e测试、测试驱动、代码覆盖率、coverage、test runner、describe、it、expect、assert、fixture、parametrize、测试金字塔

    Also in 5 projects that use this

  • klauswgSkill

    design-md

    Analyze Stitch projects and synthesize a semantic design system into DESIGN.md files

    Also in 3 projects that use this

  • VercelSkill

    agent-browser

    Automates browser interactions for web testing, form filling, screenshots, and data extraction. Use when the user needs to navigate websites, interact with web pages, fill forms, take screenshots, test web applications, or extract information from web pages.

    Also in 3 projects that use this

  • HashiCorpSkill

    changelog

    Add a Changie change fragment (`.changes/<major>.x/unreleased/*.yaml`) for a GitHub Pull Request, commit, and push.

    Also in 3 projects that use this

  • MicrosoftSkill

    playwright-cli

    Automate browser interactions, test web pages and work with Playwright tests.

    Also in 3 projects that use this

  • BlockSkill

    plan

    Draft a TDD, PRD, or lightweight plan in the conversation without committing it.

    Also in 3 projects that use this

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 27 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 27 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.