AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Lock Tests First

skill-himanshi-28-coding-agent-skills-lock-tests-first · by himanshi-28

Explicit-invocation workflow for test-first implementation that defines behavior, proves new tests fail correctly, protects those tests from implementation-time edits, implements production code, and verifies the final red-to-green result. Use only when the user directly invokes the lock-tests-first skill.

No reviews yet
0 installs
32 views
0.0% view→install

Install

$ agentstack add skill-himanshi-28-coding-agent-skills-lock-tests-first

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-himanshi-28-coding-agent-skills-lock-tests-first)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
2mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Lock Tests First? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Lock Tests First

Treat tests as the behavioral contract. Do not weaken or rewrite protected tests merely to make implementation pass.

Workflow

  1. Confirm the contract.
  • Start from approved acceptance criteria or derive observable inputs, outputs, errors, state changes, and invariants.
  • Resolve any ambiguity that would change expected behavior before editing files.
  1. Inspect the test system.
  • Read repository instructions, test commands, nearby tests, fixtures, and production interfaces.
  • Match existing test levels and conventions.
  1. Design coverage.
  • Cover the happy path, meaningful boundaries, failures, regression cases, and relevant authorization or security behavior.
  • Prefer behavior-level assertions over implementation details, excessive mocks, or broad snapshots.
  1. Write the contract tests only.
  • Modify only tests and the minimum test-only fixtures or infrastructure required to express the contract.
  • Do not write or change production behavior yet.
  1. Prove the red state.
  • Run the smallest relevant test command.
  • Confirm each new test fails because the behavior is missing or wrong, not because of syntax, setup, import, fixture, or unrelated failures.
  • If a test passes unexpectedly, determine whether the behavior already exists or the assertion is ineffective. Do not proceed with a false red state.
  1. Audit and protect the tests.
  • Check that assertions are meaningful, deterministic, and capable of detecting a wrong implementation.
  • Record the protected test paths and their exact pre-implementation diff or content hash.
  • Commit a test-only baseline only when the user requested or approved committing. Otherwise state that the freeze is procedural and keep the baseline for comparison.
  1. Implement the smallest production change.
  • Do not modify protected tests, their expected values, or test selection.
  • If a protected test is genuinely incorrect, stop and explain the flaw; obtain approval before changing the contract.
  1. Prove the green state.
  • Run the focused tests, then relevant surrounding tests and available type, lint, or build checks in proportion to risk.
  • Compare protected tests to the baseline and confirm they were not altered during implementation.
  1. Review the result.
  • Inspect the production diff for overfitting, hard-coded test values, bypassed code paths, weakened validation, or unrelated changes.

Output

Report the red evidence, protected test files, implementation summary, green evidence, broader checks, and anything not verified. Never report success from a passing test whose pre-implementation failure was not established. Use the review-changes skill before packaging commits.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.