From ponytail
Model agent mental states as beliefs, desires, intentions over RDF context — cognitive chains, world-state grounding, the Triples→Beliefs→Triples pipeline, explainable agency traces. Use when the user says "model beliefs desires intentions", "BDI", "BDI ontology", "agent mental states", "why did the agent act", "rational agency trace", "RDF to beliefs", "neuro-symbolic", or invokes /bdi-mental-states.
How this skill is triggered — by the user, by Claude, or both
Slash command
/ponytail:bdi-mental-statesThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Context is a finite budget; be lazy with tokens. The agent's head is the scarce
Context is a finite budget; be lazy with tokens. The agent's head is the scarce slot, not the triple store. A belief is context that earned that slot — grounded in a world state, dated, justified. Everything else stays in triples. Don't promote a fact to a belief, a belief to a desire, or a desire to an intention until something downstream needs it. The smallest model that answers "why did the agent act?" is the right one.
| State | Holds | Must reference | Promote when |
|---|---|---|---|
Belief | what's true | a WorldState (never free text) | a fact is goal-relevant |
Desire | what to bring about | the Belief that motivates it | a belief creates a goal |
Intention | what's committed | the Desire it fulfils + a Plan | the agent commits to act |
Endurants (states above, persist over intervals) vs perdurants (BeliefProcess,
DesireProcess, IntentionProcess — events that create/modify states). States are
nouns, processes are verbs — mixing them collapses the perception↔cognition boundary
and breaks type-filtered queries.
Wire the triad with bidirectional pairs so the graph reads both directions:
Belief —motivates→ Desire —fulfilledBy→ Intention —specifies→ Plan —hasComponent→ Task —precedes→ Task
Forward = "what should the agent do?" Backward = "why did it act?" The backward
trace is the whole point: explainable agency for free. Properties:
motivates/isMotivatedBy, fulfils/isFulfilledBy, isSupportedBy (intention←belief),
specifies (intention→plan), addresses (plan→goal), precedes (task order),
isJustifiedBy (any state→Justification), refersTo (belief→worldstate).
Agents consume external RDF and emit new RDF. Two phases, provenance preserved:
WorldState —triggers→ BeliefProcess —generates→ Belief. Source data flows into cognition with a traceable origin.PlanExecution —bringsAbout→ WorldState. Results project back as standard linked data so downstream systems consume agent output.WorldState first.Agent, WorldState, Belief, Desire, Intention, Plan, Task, Justification, TimeInterval). Add a class only when a competency question proves the core can't answer it.TimeInterval — beliefs without bounds can't be GC'd or conflict-checked.hasPart sub-beliefs, so a partial update doesn't replace the whole.Constrain LLM triple generation: serialize the ontology into the prompt, generate, extract, validate against class restrictions, retry-with-feedback on violation — the ontology in context is the guardrail.
Never skip: world-state grounding (ungrounded beliefs break querying and cross-agent interop), justifications (unjustified states can't be audited — the trace dies), temporal bounds (no GC, no conflict detection). These are the spine of explainability; cutting them isn't lean, it's silent drift.
Ship only if these resolve: which beliefs motivated a desire? which desire does an intention fulfil? which process generated a belief? ordered task sequence? states valid at time T? No answer → undermodeled.
memory-systems.multi-agent-patterns.evaluation.context-fundamentals.tool-design."stop ponytail" / "normal mode": revert to verbose BDI mental-state guidance.
npx claudepluginhub robertbarclayy/nwbzpwnr --plugin ponytailGuides completion of development work by verifying tests, detecting environment, and presenting structured options for merge, PR, or cleanup.
Enforces test-driven development: write failing test first, then minimal code to pass. Use when implementing features or bugfixes.
Guides creation and editing of skills using test-driven development with pressure scenarios and subagents to verify agent compliance.