Agent behaviour

What should the agent do next in each situation?

Define when AI should ask, suggest, explain, act or stay quiet, based on intent, context, confidence and consequences.

Ends with
  • Ask
  • Suggest
  • Explain
  • Act
  • Stay quiet
npx skills add richardsimms/skills --skill agent-behaviour

View skill on GitHub(opens in a new tab)

Use it when

  • Designing conversational or agentic experiences.
  • Introducing proactive recommendations.
  • Defining agent autonomy.
  • Handling ambiguity, uncertainty and failure.

See the difference

Illustrative example, not a measured evaluation result. The prompt is the proactive case from the evaluation set (opens in a new tab).

Prompt

A reading app wants an agent message every time someone opens a chapter; no benefit is established. Specify behaviour.

Without the skill

Message plan

  • Greet the reader on every chapter.
  • Summarise the previous chapter.
  • Suggest discussion questions.
  • Measure the reply rate.

Interrupts with proactive suggestions because it can.

With the skill

Call
Stay quiet
  • Chapter opened: the agent would start it, with no observed benefit. Stay quiet.
  • Reader asks about a passage: Explain, citing the passage.
  • Reader asks for a recap: Explain, and say which chapters it covers.
  • Acceptance: opening a chapter shows no message.

Knows when to stay quiet.

What changed

The agent separated messages the person asked for from messages it would start itself, and held the second kind back until a benefit is observed.

Try it yourself

/agent-behaviour design the rules for when our assistant should ask versus act
/agent-behaviour what should the agent say when a booking call times out?
/agent-behaviour review the clarifying questions in this flow

In Claude Code a skill runs as a slash command. Installed as the plugin, it’s /product-builder:agent-behaviour. In other agents, ask the question in plain words.

How it decides

One move per situation. The first rule that matches decides the call.

  1. 01Forbidden, or beyond its tools or permission: Explain the limit
  2. 02The agent would start it, with no observed benefit: Stay quiet
  3. 03A missing or conflicting input would change the target: Ask once
  4. 04It changes something outside the chat without explicit intent: Suggest a preview
  5. 05Intent and permission are clear: Act, then report
  6. 06The person needs information to decide: Explain

A direct request always gets a reply. Staying quiet is only for messages the agent would start.

Principle

No intervention without sufficient expected value.

Produces A behavioural specification containing decision rules, triggers, permissions, fallback states and acceptance criteria.

Evaluation

Cases written · Not yet run

6 evaluation cases are written, each run with and without the skill. None has been run yet, so there are no results to report. Its rules were also checked against a product management knowledge base. That checks the rules, not how the skill performs.

View evaluation evidence(opens in a new tab)