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-contractInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
AutomationSupported Platforms
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.
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 foundOur 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.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| behavior-contract (this skill)by a5c-ai | 80 | 1.8k | 2mo ago | SKILL.md |
| Agent-Reachby Panniantong | 100 | 112.3k | 9d ago | CLAUDE.md |
| rufloby ruvnet | 100 | 81.9k | today | CLAUDE.md |
| Claude-Code-Game-Studiosby Donchitos | 100 | 39.7k | 7d ago | CLAUDE.md |
| Scraplingby D4Vinci | 100 | 103.6k | 2d ago | MCP 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.
Skill content
View source on GitHubname: 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
- Bug analysis identifies root cause at file:line
- This skill formalizes the contract from the analysis
- tdd-enforcer writes failing test from Bug Condition
- tdd-enforcer writes preservation tests from Invariants
- Minimal fix applied, contract audited
Related Skills
Agent-Reach
112.3kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
ruflo
81.9k🌊 The original agent harness. Deploy intelligent multi-player swarms, coordinate autonomous workflows, and build conversational AI systems. Features adaptive memory, self-learning intelligence, federation, vector RAG integration, and native Claude Code / Codex / Hermes and many more Integrated
Claude-Code-Game-Studios
39.7kTurn Claude Code into a full game dev studio — 49 AI agents, 72 workflow skills, and a complete coordination system mirroring real studio hierarchy.
Scrapling
103.6k🕷️ The BEST Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
