/ai-product-managers-pack:aipm-behavior-contractfrom ai-product-managers-pack
Writes an AI Behavior Contract with must, must never, and when-unsure lines as Given-When-Then scenarios, each with a pass rate and guardrails. Use for behavior specs, refusal rules, or turning safety guidelines into tests.
Ships in ai-product-managers-pack. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
"It should be helpful and safe" is the whole spec. The prompt says be polite and accurate, and the first time a user asks for a refund the assistant cannot grant, nobody knows whether it should decline, promise a callback or hand off. It answers: what must it always do, what must it never do whatever the input, what does it do when unsure, and how will each line be tested?
If you need the instructions the model actually reads, run System Prompt Brief; the contract is the test that prompt must pass. If the open question is who takes over when the assistant is unsure, run Human-in-the-Loop Design.
Given-When-Then comes from behavior-driven development, as set out in the Cucumber Gherkin reference: a context, an event, an observable outcome. A model does not answer the same way twice, so each scenario here runs several trials, the idea of trials and of pass^k (every one of k runs passes) set out by Anthropic Engineering in "Demystifying evals for AI agents". The failure it prevents: a must-never line that held in the demo and broke on the fourth run, in front of a user.
[set by: name]. For must-never lines read pass^k: one failure in k runs fails the line, because the user who hits it does not see the average.# AI Behavior Contract
**Feature:** [name] | **Version:** [number] | **Owner:** [name]
## Must, must never, when unsure
| ID | Type | Line (one behavior) |
|---|---|---|
| M1 | Must | [line] |
| N1 | Must never | [line] |
| U1 | When unsure | [line] |
## Scenarios
**N1** Given [context and state] When [input or event] Then [observable outcome]
| Variant | Input example (masked) | Expected outcome |
|---|---|---|
| [phrasing, language, edge case] | [input] | [outcome] |
## Bar and checks
| ID | Trials | Pass rule | Bar | Guardrail outside the prompt | Eval check |
|---|---|---|---|---|---|
| N1 | [set by: name] | all k pass | [set by: name] | [filter, permission, approval] | [check ID, to write] |
## Decision
[Named person] sets the trials and pass rate for each line and approves the contract by [date].
[not yet run] until a run is pastedRun aipm-human-in-the-loop (Human-in-the-Loop Design) to design where a person steps in for the when-unsure lines.
This pack is made by 90n (90n.ai): AI-native ways of working and tools for Product, Marketing and HR teams, built by ex-McKinsey founders. We map where time and money leak, redesign the work around AI and stay until your people run it themselves, and we run our own company on Claude. If your team has outgrown the self-serve version, message Pauline (linkedin.com/in/paulinebertry).
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub polar-bear-org/claude-skills --plugin ai-product-managers-pack36 skills in this plugin
/aipm-agent-specWrites an Agent Spec with the goal and done-state, allowed tools and permissions, stop conditions and a spend budget per session, the approval points carried over from the human-in-the-loop design, and the list of actions the agent must never take alone. Use for "run aipm-agent-spec", "agent spec", "write the limits for our agent", "agent permissions", "where should the agent stop", "agent guardrails", "excessive agency", "spend cap for the agent", part of the Claude for AI Product Managers Pack by 90n./aipm-ai-failure-modesBuilds an AI Failure Modes Map with the failure list per output type, the cost of a false yes and a false no to the user, severity and detection ratings, a graceful failure per mode and a tolerable error rate left blank for a named person. Use for "run aipm-ai-failure-modes", "AI FMEA", "which AI mistakes matter", "leaders expect it to be right every time", "false positives vs false negatives", "graceful failure", "what happens when the AI is wrong", "AI error budget", part of the Claude for AI Product Managers Pack by 90n./aipm-ai-impact-assessmentDrafts an AI Impact Assessment covering who is affected and how, intended use and foreseeable misuse, data used, human oversight, mitigations and residual risk with a named owner, with every legal point marked as a question for an adviser. Use for "run aipm-ai-impact-assessment", "AI impact assessment", "algorithmic impact assessment", "the customer wants an impact assessment", "foreseeable misuse of our AI feature", "who does this feature affect", "residual risk sign-off", part of the Claude for AI Product Managers Pack by 90n.Other plugins' skills for the same job