agentleFS
gear-foundationgear-foundation/vara-skills/skills/gtest-tdd-loop/SKILL.md

gtest-tdd-loop

Skill17 starsChanged 7 months agoMITView on GitHub

Use when Gear or Vara behavior changes need a deterministic local gtest loop before the work can be considered complete. Do not use for deploy-only work, live-node-only smoke checks, or features without a local test target.

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 5 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    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
  1. Very specific:

    Read ../../references/gtest-cheatsheet.md, ../../references/sails-gtest-and-local-validation.md, and …

    line 14
  2. Very specific:

    Use ../../assets/gtest-report-template.md as the output shape.

    line 16
  3. Very specific:

    Write the result to docs/plans/YYYY-MM-DD-<topic>-gtest.md.

    line 18
  4. Very specific:

    Use ../../scripts/run_gtest.sh to execute the loop and ../../scripts/parse_test_output.py to summarize failures.

    line 20
  5. Distinctive:

    Write or update the smallest failing gtest case for the current task.

    line 24
  6. Distinctive:

    Verify the test fails for the expected reason.

    line 25
  7. Very specific:

    Run the local loop through ../../scripts/run_gtest.sh.

    line 27
  8. Distinctive:

    Do not skip the failing-test step.

    line 32
  9. Distinctive:

    Do not claim success from compile output alone.

    line 33
  10. Distinctive:

    Keep gtest evidence tied to the current task, not a generic workspace run.

    line 34

≈ “Common” is an estimate: at least 1 in 5 of the 308,232 skill 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
SKILL.md

Gtest Tdd Loop

Overview

Drive local verification through a red-green loop and summarize failures in a machine-readable form.

Start Here

Read ../../references/gtest-cheatsheet.md, ../../references/sails-gtest-and-local-validation.md, and ../../references/gear-gas-reservations-and-waitlist.md.

Use ../../assets/gtest-report-template.md as the output shape.

Write the result to docs/plans/YYYY-MM-DD-<topic>-gtest.md.

Use ../../scripts/run_gtest.sh to execute the loop and ../../scripts/parse_test_output.py to summarize failures.

Workflow

  1. Write or update the smallest failing gtest case for the current task.
  2. Verify the test fails for the expected reason.
  3. Apply the minimal implementation change.
  4. Run the local loop through ../../scripts/run_gtest.sh.
  5. Capture the parser output and record the final green or remaining gap state.

Guardrails

  • Do not skip the failing-test step.
  • Do not claim success from compile output alone.
  • Keep gtest evidence tied to the current task, not a generic workspace run.
  • Escalate if the workspace cannot produce a stable local gtest target.

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.

Reviews can't be read right now.

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.