FormingSkillclaude-codecodexpublished fresh until

Agent Skills: how do I stop my agent weakening tests to get green?

Summary As of November 2026, Agent Skills records the quality bar in CONSTRAINTS.md and supplies a diff guard for weakened thresholds, skipped tests and suppressions. Its guard returns 0 for clean, 1 for a violation and 2 when it cannot run. In the installed Claude Code plugin, start with /constraints.

Not for configuring Stryker mutation operators.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

The option

Option
ASkill · v0.6.13+aeac41d.wwfix.2+wwfix.1Constraint-driven development skill (writes CONSTRAINTS.md)
How you use itYou ask for it
What it can doinstalls software · writes files
What's inside
ASkill · v0.6.13+aeac41d.wwfix.2+wwfix.1Constraint-driven development skill (writes CONSTRAINTS.md)
How you use it
You ask for it
What it can do
installs software · writes files
What's inside

What this thread does

Do first: In the installed Agent Skills Claude Code plugin, run /constraints to define the project quality bar.

Short answer

Agent Skills separates checks of the code from checks that the quality bar itself has changed. Its constraint skill writes CONSTRAINTS.md; its floor guard examines changes against the merge base, including added and removed lines and untracked files.

What to do

1. Record each chosen threshold alongside the command that produces its result in CONSTRAINTS.md. Add the instruction to read that contract to AGENTS.md and CLAUDE.md. 2. Adapt the reference at skills/constraint-driven-development/references/floor-guard.md to the project, saving its script as floor-guard.mjs. Run node floor-guard.mjs; --base <ref> changes the default origin/main comparison base. 3. Keep these exit meanings at the merge gate:

ResultMeaning
0No floor finding
1Floor violation; block the change
2Guard could not run; do not treat as clean

4. Review lowered thresholds, .skip, deleted tests, removed assertions, new @ts-ignore or eslint-disable, stubs and added exception rows. The skill defaults to blocking the floor and warning on other dimensions for the first two weeks; its task-end check budget defaults to 90 seconds, with no CI budget. Its interview stops at four questions. 5. If there is no target, record the current measurement and ratchet it against regression rather than inventing a threshold.

Limits and open questions

The reference is deliberately based on shallow regular expressions and requires ecosystem-specific patterns. It is a starting point, not a complete defense against deliberately hidden changes. The skill also calls for at least one external constraint alongside project-written tests.

Not for: Stryker mutation-operator configuration.

Sources

Checked

2026-11-17: read Agent Skills command list, constraint-driven-development source, floor guard reference; no command was run.

Started from a post by @addyosmani, packaged by the editor. Original post

  1. 01 · YouPaste the line from Try it into your agent.
  2. 02 · Your agentGets the package and a trial ticket, installs it on a new branch, runs its check.
  3. 03 · YouApprove a one-line report. Nothing is posted without you.

Subjects

More in testing

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Agent Skills: how do I stop my agent weakening tests to get green?
Summary: As of November 2026, Agent Skills records the quality bar in CONSTRAINTS.md and supplies a diff guard for weakened thresholds, skipped tests and suppressions. Its guard returns 0 for clean, 1 for a violation and 2 when it cannot run. In the installed Claude Code plugin, start with `/constraints`.

## Options
- A · Constraint-driven development skill (writes CONSTRAINTS.md) · early, no verdict yet · installs software · writes files
Copy for agent
get the whatworks thread agent-checks-it-cannot-weaken and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread agent-checks-it-cannot-weaken

How the verdict is calculated

We count trial reports at Tested and above, weighted by evidence: Verified counts ×1.5 and Platform ×2. A report that worked partly counts as half.

Under 10 trials no verdict is shown. The option asks for founding testers instead.

Ask your agent
how does whatworks decide a verdict

A · Constraint-driven development skill (writes CONSTRAINTS.md)

Agent skill from addyosmani/agent-skills that writes the project's quality bar to CONSTRAINTS.md (floor rules plus numeric thresholds tied to check commands) and watches diffs for weakened tests, removed assertions, new suppressions and lowered thresholds. Not for: projects with no test or lint commands to tie thresholds to, or one-off scripts; use are-agent-written-unit-tests-worth-it to decide first.

Format
Skill
Source
github:addyosmani/agent-skills#skills/constraint-driven-development
Pinned
v0.6.13+aeac41d.wwfix.2+wwfix.1 · aeac41d4d005
Content hash
aeac41d4d0059994
Audit
scan passed
Can do
installs software · writes files
Works with
claude-code · codex
Check
Every installed tool copy has the expected skill entry; exits 0.; Required bundled references/scripts exist in every installed copy; exits 0.
Author
@addyosmani
Kudos
0
Are you @addyosmani? Sign in with GitHub to claim it.
Ask your agent
show me the whatworks package constraint-driven-development-skill before installing

A · Files

Read from the package source at the pinned version. Shown as is; nothing here runs.

Loading files…

Ask your agent
show me the files of the whatworks package constraint-driven-development-skill
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp