SkillAgentSearch skills...

behavior-contract

Bug condition/postcondition formalization as testable Behavior Contracts. Defines invariants that must be preserved across fixes.

Install / Use

npx skills add a5c-ai/babysitter --skill behavior-contract

Installs into whichever agent you are using.

About this skill
📄

SKILL.md

Installable skill definition

Quality Score

80/100

Category

Automation

Supported Platforms

Universal

Our assessment of behavior-contract

behavior-contract scores 80/100 on our quality scale, 2496th of 2,780 Automation skills we index.

Its SKILL.md is 2.2 KB long, well organised into 9 sections with 1 code example: moderately detailed.

With 1,809 GitHub stars, it is one of the more widely adopted skills in the catalogue.

Substance
20/30
Structure
17/20
Description
15/15
Adoption
14/20
Freshness
15/15

Maintenance, license and trust

  • The repository was last updated about 2 months ago, so behavior-contract is actively maintained.
  • It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
  • Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.

Safety scan

No issues found

Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful.

AI review by kimi-k2.7-code on 2026-09-30. Automated pattern scan on 2026-09-30. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.

behavior-contract compared with similar skills

All 4 of these similar skills score higher than behavior-contract; compare them before choosing.

SkillScoreStarsUpdatedFormat
behavior-contract (this skill)by a5c-ai801.8k2mo agoSKILL.md
Agent-Reachby Panniantong100112.3k9d agoCLAUDE.md
rufloby ruvnet10081.9ktodayCLAUDE.md
Claude-Code-Game-Studiosby Donchitos10039.7k7d agoCLAUDE.md
Scraplingby D4Vinci100103.6k2d agoMCP Server

Frequently asked questions

How do I install behavior-contract?
Run npx skills add a5c-ai/babysitter --skill behavior-contract. The install tabs above show the steps for each supported agent.
Which AI agents does behavior-contract work with?
It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
Is behavior-contract safe to use?
Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. An AI review of the same text found nothing harmful. It is MIT-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
Is behavior-contract still maintained?
The repository was last updated about 2 months ago, so behavior-contract is actively maintained.

name: behavior-contract description: Bug condition/postcondition formalization as testable Behavior Contracts. Defines invariants that must be preserved across fixes. allowed-tools: Bash(*) Read Write Edit Glob Grep metadata: author: babysitter-sdk version: "1.0.0" category: pilot-shell-bugfix attribution: "Adapted from Pilot Shell by Max Ritter (https://github.com/maxritter/pilot-shell)" graph: domains: [domain:software-engineering] skillAreas: [skill-area:agentic-loops, skill-area:orchestration-loop] workflows: [workflow:feature-development] topics: [topic:developer-experience] roles: [role:tech-lead, role:backend-engineer] The exact input, state, or sequence that triggers the bug. Must be specific enough to write a failing test.

Example: "When processPayment() receives an amount of exactly $0.00, it throws an unhandled TypeError instead of returning a zero-amount receipt."

Postcondition

The correct behavior that must hold after the fix is applied.

Example: "When processPayment() receives $0.00, it returns a valid Receipt object with amount: 0 and status: 'completed'."

Invariants

Existing correct behaviors that must be preserved by the fix.

Example:

  • "Positive amounts still process correctly"
  • "Negative amounts still throw InvalidAmountError"
  • "Receipt format remains unchanged for all amount types"

Contract Document Template

# Behavior Contract: [Bug Title]

## Bug Condition
[Precise description of triggering conditions]

## Postcondition
[Expected correct behavior after fix]

## Invariants
- [ ] Invariant 1: [existing behavior to preserve]
- [ ] Invariant 2: [existing behavior to preserve]

## Testable Assertions
1. `expect(processPayment(0)).toEqual({ amount: 0, status: 'completed' })`
2. `expect(processPayment(100)).toEqual({ amount: 100, status: 'completed' })`
3. `expect(() => processPayment(-1)).toThrow(InvalidAmountError)`

Usage in Bugfix Workflow

  1. Bug analysis identifies root cause at file:line
  2. This skill formalizes the contract from the analysis
  3. tdd-enforcer writes failing test from Bug Condition
  4. tdd-enforcer writes preservation tests from Invariants
  5. Minimal fix applied, contract audited

Related Skills

View on GitHub
GitHub Stars1.8k
CategoryAutomation
Updated2mo ago
Forks110

Languages

JavaScript

Trust signals

100/100

From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.

No cautions