Communitygithub.com

curiositech/windags-skills

Logic-based agent programming language implementing BDI architecture for practical autonomous agent development

What is windags-skills?

windags-skills is a Claude Code agent skill that logic-based agent programming language implementing BDI architecture for practical autonomous agent development.

Works with✓Claude Code~Codex CLI~Cursor
npx skills add https://github.com/curiositech/windags-skills/tree/HEAD/skills/agentspeak-bdi

Ask in your favorite AI

Open a new chat with this agent skill pre-loaded.

Documentation

SKILL.md — AgentSpeak(L) & BDI Agent Architecture

When autonomous entities must perceive, deliberate, and act while managing competing goals and responding to events without abandoning ongoing work.


Decision Points

Primary Architecture Selection

IF system needs only event-reaction with no persistent goals
  → Use reactive/rule system (BDI is overkill)
ELIF system needs planning in static environment with no interrupts  
  → Use classical planner
ELIF system needs both reactivity AND goal persistence in dynamic environment
  → Use BDI architecture

Selection Function Invocation Table

SituationUse FunctionDecision Criteria
New event arrivesSE (Event Selection)Priority, urgency, resource constraints
Event needs planSO (Option Selection)Context guards, plan success history, risk tolerance
Multiple active intentionsSI (Intention Selection)Deadlines, resource allocation, fairness policy
Plan failure occursSO then SIFind failure-handling plan, then reschedule intentions

Plan Failure Recovery Decision Tree

Plan P fails executing action A:
IF failure-handling plan exists for this failure type
  → Post failure event, let SO select recovery plan
  → Continue with modified intention stack
ELIF alternative plans exist for same triggering event
  → Backtrack to event, let SO try next applicable plan  
  → Remove failed plan from consideration
ELIF no alternatives available
  → Propagate failure up intention stack
  → IF parent plan exists → trigger failure event at parent level
  → ELSE drop intention entirely

Belief Update Impact Assessment

New belief B arrives:
IF B contradicts existing beliefs
  → Run belief revision protocol
  → Check all active intentions for context guard violations
  → IF context no longer holds → suspend intention (don't drop)
ELIF B enables new applicable plans
  → Check event queue for dormant events that now have applicable plans
  → Reprioritize using SE
ELIF B satisfies pending goal conditions  
  → Mark achievement, clean up related intentions
  → Post achievement event for plan cleanup

Failure Modes

1. Plan Thrashing

Symptoms: Agent rapidly cycles between plans without making progress; same event triggers different plans repeatedly. Detection Rule: If the same event is processed >3 times in N execution cycles with different plan selections each time, you have plan thrashing. Root Cause: SO (option selection) function is non-deterministic or context guards are too weak/overlapping. Fix: Make SO explicitly ordered by priority; strengthen context guards to be mutually exclusive; add plan success/failure history to selection criteria.

2. Stale Belief Paralysis

Symptoms: Agent selects plans based on outdated world model; plans fail immediately due to false assumptions about environment. Detection Rule: If plan failure rate >50% and failures are due to context guard violations at execution time (not planning time), you have stale beliefs. Root Cause: Belief update frequency is too low relative to environment change rate; belief revision is not propagating to intention context checks. Fix: Increase perception frequency; add belief staleness timestamps; suspend intentions when their context guards become invalid.

3. Infinite Intention Loops

Symptoms: Agent creates intentions that post events that create more intentions for the same goal; intention stack grows without bound. Detection Rule: If intention stack depth increases monotonically over time without corresponding goal achievements, you have intention loops. Root Cause: Plans create subgoals that eventually lead back to the original goal without termination conditions. Fix: Add achievement detection in context guards; implement intention subsumption (merge duplicate intentions); add maximum recursion depth limits.

4. Policy-in-Plans Anti-Pattern

Symptoms: Same events trigger different behaviors based on conditionals inside plan bodies; agent policy is scattered and hard to change. Detection Rule: If plan bodies contain priority/urgency conditionals (if high_priority then X else Y), policy is in the wrong place. Root Cause: Agent rationality is encoded in plan logic instead of selection functions. Fix: Move all priority/policy logic to SE/SO/SI functions; make plans policy-neutral and context-sensitive only.

5. Single-Intention Bottleneck

Symptoms: Agent cannot handle interrupts; urgent events wait while agent completes long-running tasks; no concurrency. Detection Rule: If agent has at most one active intention at any time, you have single-intention bottleneck. Root Cause: SI (intention scheduling) function is not implementing true concurrency; treating intentions as exclusive rather than concurrent. Fix: Allow multiple active intentions; implement preemptive scheduling in SI; design plans as interruptible sequences.


Worked Examples

Example 1: Multi-Agent Task Allocation with Plan Conflicts

Scenario: Two agents (A1, A2) coordinate to achieve deliver(package, destination). Both have plans but different capabilities.

Initial State:

  • A1 beliefs: location(A1, warehouse), can_carry(A1, small_items), location(package, warehouse)
  • A2 beliefs: location(A2, depot), can_carry(A2, any), has_vehicle(A2)
  • Shared belief: size(package, large), destination(customer_site)

Event: +!deliver(package, customer_site) posted to both agents

Decision Process:

  1. A1 Plan Selection (SO):

    • Plan P1: +!deliver(X,Y) : can_carry(A1,small_items) & size(X,small) <- pickup(X); transport(X,Y)
    • Context guard fails: size(package,large) contradicts size(X,small)
    • No applicable plans → posts plan_failure(deliver, no_capability)
  2. A2 Plan Selection (SO):

    • Plan P2: +!deliver(X,Y) : can_carry(A2,any) & has_vehicle(A2) <- pickup(X); drive(X,Y); dropoff(X)
    • Context guard succeeds → P2 selected
    • Creates intention I1: [pickup(package), drive(package,customer_site), dropoff(package)]
  3. A1 Belief Update:

    • Receives message: attempting(A2, deliver, package)
    • Updates beliefs: +delegated(deliver, package, A2)
    • Drops failed intention

Novice Error: Would have both agents attempt delivery, creating resource conflicts. Expert Insight: Coordination happens through belief sharing and plan context guards, not hardcoded agent knowledge.

Example 2: Interrupt Handling with Intention Reconsideration

Scenario: Agent executing long-running data processing task receives urgent security alert.

Initial State:

  • Active intention I1: [process_batch(data1), process_batch(data2), generate_report()]
  • Current execution: middle of process_batch(data1) (will take 10 more minutes)

Event: +security_alert(intrusion_detected, server_3)

Decision Process:

  1. Event Selection (SE):

    • SE priorities: security_events > routine_processing
    • security_alert selected over continuing I1
  2. Plan Selection (SO):

    • Plan P3: +security_alert(Type,Location) : has_admin_access <- isolate_system(Location); notify_team(Type)
    • Context guard satisfied → P3 selected
    • Creates intention I2: [isolate_system(server_3), notify_team(intrusion_detected)]
  3. Intention Scheduling (SI):

    • Current intentions: I1 (suspended at process_batch(data1)), I2 (new, urgent)
    • SI policy: security intentions preempt processing intentions
    • Selects I2 for execution
  4. Execution:

    • Executes isolate_system(server_3) immediately
    • Executes notify_team(intrusion_detected)
    • I2 completes, drops from intention set
  5. Resumption:

    • Only I1 remains: [process_batch(data1), process_batch(data2), generate_report()]
    • Resumes process_batch(data1) from suspension point

Novice Error: Would either ignore the security alert or abandon the processing task entirely. Expert Insight: Intention suspension preserves progress while enabling responsive behavior. SI scheduling policy is explicit and configurable.


Quality Gates

  • Agent architecture has explicit SE, SO, SI selection functions with documented policies
  • Each plan has well-defined triggering event and context guard that can be evaluated against current beliefs
  • Plan library includes failure-handling plans for each major plan type (not just success paths)
  • Belief update mechanism can handle contradictory information and propagate changes to active intentions
  • Multiple intentions can be active concurrently with clear scheduling/preemption rules
  • Event queue processing is prioritized (not FIFO) with explicit priority assignment
  • Plan failure triggers events rather than system crashes or silent failures
  • Context guards are mutually exclusive OR plan selection is explicitly ordered to avoid non-determinism
  • Agent can explain its actions by exposing intention stack and triggering events
  • System performance degrades gracefully under high event load (no infinite loops or stack overflow)

NOT-FOR Boundaries

NOT FOR: Simple rule-based systems where all behavior is reactive (no persistent goals) → USE INSTEAD: Basic rule engine or event-action system

NOT FOR: Static planning problems where environment doesn't change during execution
→ USE INSTEAD: Classical planners (A*, STRIPS, HTN)

NOT FOR: Real-time systems requiring guaranteed response times or hard deadlines → USE INSTEAD: Real-time scheduling systems with timing analysis

NOT FOR: Systems where all coordination can be handled by a central controller → USE INSTEAD: Workflow orchestration or centralized task queuing

NOT FOR: Pure data transformation pipelines with no autonomous decision-making → USE INSTEAD: ETL tools, stream processing frameworks

NOT FOR: Applications requiring machine learning or statistical inference as primary capability → USE INSTEAD: ML frameworks with BDI as coordination layer if needed

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

curiositech/windags-skills

Expert in 2000s-era music visualization (Milkdrop, AVS, Geiss) and modern WebGL implementations. Specializes in Butterchurn integration, Web Audio API AnalyserNode FFT data, GLSL shaders for audio-reactive visuals, and psychedelic generative art. Activate on "Milkdrop", "music visualization", "WebGL visualizer", "Butterchurn", "audio reactive", "FFT visualization", "spectrum analyzer". NOT for simple bar charts/waveforms (use basic canvas), video editing, or non-audio visuals.

curiositech/windags-skills

Expert legal research agent for finding and scraping expungement data state by state. Knows authoritative sources, URL patterns, Firecrawl configuration, and 2026 legal landscape.

curiositech/windags-skills

Expert in 3D computer vision labeling tools, workflows, and AI-assisted annotation for LiDAR, point clouds, and sensor fusion. Covers SAM4D/Point-SAM, human-in-the-loop architectures, and vertical-specific training strategies. Activate on '3D labeling', 'point cloud annotation', 'LiDAR labeling', 'SAM 3D', 'SAM4D', 'sensor fusion annotation', '3D bounding box', 'semantic segmentation point cloud'. NOT for 2D image labeling (use clip-aware-embeddings), general ML training (use ml-engineer), video annotation without 3D (use computer-vision-pipeline), or VLM prompt engineering (use prompt-engineer).

curiositech/windags-skills

Implement WCAG 2.2 AA/AAA compliance with automated testing, keyboard navigation, screen reader support, and focus management. Activate on: accessibility audit, WCAG compliance, keyboard navigation, screen reader, aria attributes, axe-core, focus trap. NOT for: design-level accessibility review (use design-accessibility-auditor), color contrast only (use css-in-js-architect).

curiositech/windags-skills

Time-blind friendly planning, executive function support, and daily structure for ADHD brains. Specializes in realistic time estimation, dopamine-aware task design, and building systems that actually work for neurodivergent minds.

curiositech/windags-skills

Designs digital experiences for ADHD brains using neuroscience research and UX principles. Expert in reducing cognitive load, time blindness solutions, dopamine-driven engagement, and compassionate design patterns. Activate on 'ADHD design', 'cognitive load', 'accessibility', 'neurodivergent UX', 'time blindness', 'dopamine-driven', 'executive function'. NOT for general accessibility (WCAG only), neurotypical UX design, or simple UI styling without ADHD context.

curiositech/windags-skills

>- Apply crisis decision-making research to agent routing, uncertainty triage, and coordination failure analysis in time-pressured systems. Use when diagnosing handoff failures, analytical paralysis, or expert judgment under incomplete information. NOT for routine coding, simple CRUD design, or static single-agent tasks with complete information.

curiositech/windags-skills

Extend and modify the admin dashboard, developer portal, and operations console. Use when adding new admin tabs, metrics, monitoring features, or internal tools. Activates for dashboard development, analytics, user management, and internal tooling.

curiositech/windags-skills

Conversation patterns and interaction protocols for multi-agent systems. Covers request/response, pub/sub, blackboard, delegation chains, debate, critique, consensus, fan-out/fan-in, supervisor-worker, and peer negotiation. Deep analysis of AutoGen conversation patterns, CrewAI delegation, LangGraph state passing, and FIPA-ACL performatives. Teaches how to design what agents say to each other and in what order. Activate on: "agent conversation", "agent protocol", "multi-agent debate", "agent delegation", "supervisor worker pattern", "agent voting", "consensus protocol", "fan-out fan-in", "agent negotiation", "blackboard pattern", "agent dialogue", "conversation topology", "agent handoff". NOT for: wire format or serialization (use agent-interchange-formats), orchestration infrastructure (use agentic-infrastructure-2026), single agent behavior (use agentic-patterns).

curiositech/windags-skills

Meta-agent for creating new custom agents, skills, and MCP integrations. Expert in agent design, MCP development, skill architecture, and rapid prototyping. Activate on 'create agent', 'new skill', 'MCP server', 'custom tool', 'agent design'. NOT for using existing agents (invoke them directly), general coding (use language-specific skills), or infrastructure setup (use deployment-engineer).

curiositech/windags-skills

AI-powered calendar management and agent-based scheduling coordination. Covers calendar APIs (Google Calendar, CalDAV/iCal), AI scheduling assistants (Reclaim, Clockwise, Motion, Cal.com), building custom calendar agents with MCP, multi-calendar merging, timezone management, focus block protection, meeting fatigue detection, and agent-to-agent meeting negotiation protocols. Activate on: "calendar agent", "AI scheduling", "calendar coordination", "meeting scheduling", "calendar API", "focus time protection", "calendar optimization", "Google Calendar MCP", "Reclaim", "Clockwise", "Motion", "Cal.com", "smart scheduling", "calendar-aware agent", "timezone scheduling", "agent negotiation meetings". NOT for: manual calendar UI component design (use form-validation-architect), project management scheduling or Gantt charts (use project-management-guru-adhd), general time-tracking or pomodoro apps (use adhd-daily-planner for time-awareness), building the agent itself from scratch (use agent-creator).

curiositech/windags-skills

Build and adopt production AI agent infrastructure in 2026. Covers framework selection (LangGraph, CrewAI, AutoGen, MCP), orchestration patterns, evaluation, observability, memory systems, and tool use. Also covers the SOCIAL dimension: how to sell agent infrastructure internally, change management, measuring ROI, building trust in autonomous systems, and scaling adoption across teams. Activate on: "agent infrastructure", "agent framework comparison", "which agent framework", "sell AI tools internally", "agent adoption", "agent observability", "agent evaluation", "MCP architecture", "agentic mesh", "enterprise AI agents", "AI change management", "agent ROI". NOT for: building specific agents (use ai-engineer), designing agent behavior patterns (use agentic-patterns), prompt tuning (use prompt-engineer).

curiositech/windags-skills

Fundamental patterns for effective agentic behavior. Teaches decomposition, tool orchestration, error recovery, context management, quality self-assessment, and knowing when to stop. Model-agnostic principles that make any agent more effective regardless of domain. Activate on: "how should I structure this agent", "agentic workflow", "agent patterns", "multi-step task", "tool orchestration", "/agentic-patterns", "decompose this", "agent best practices", "chain of actions", "when should the agent stop", "agent loop design". NOT for: creating agent infrastructure (use agent-creator), building DAGs (use windags-architect), specific tool implementation.

curiositech/windags-skills

Automated discovery and matching of agent skills for dynamic task routing and capability assessment

curiositech/windags-skills

Cryptographic security for agentic systems — zero-trust agent networking, signed message envelopes (JWS/JWE), capability-based security (ocaps), Merkle tree audit trails, WASM sandboxing, and formal verification. Covers CLI dev tool security, mTLS between agents, permission boundaries (least privilege for AI agents), and supply chain security for skills/plugins. Activate on: "agent security", "zero trust agents", "secure agent communication", "capability-based security", "ocap", "signed messages between agents", "agent audit trail", "sandbox agent execution", "agent permissions", "mTLS agents", "cryptographic verification", "agent supply chain", "OWASP agentic", "prove agent did X", "tamper-proof agent logs". NOT for: application-level SAST scanning (use security-auditor), network firewall rules (use infrastructure), SOC2/HIPAA compliance (organizational), or prompt injection defense (use prompt-engineer).

curiositech/windags-skills

Data structures and serialization formats for agent-to-agent communication. Covers message envelopes, structured output schemas, capability declarations, task handoff payloads, error/retry signaling, and context windows as data structures. Deep comparison of A2A protocol, MCP, OpenAI function calling, and LangChain message types. Teaches when to use rigid schemas vs free-form with validation, typed vs untyped, streaming vs batch. Activate on: "agent message format", "agent communication schema", "agent-to-agent protocol", "A2A protocol", "MCP message format", "structured output for agents", "agent interop", "interchange format", "agent serialization", "task handoff format", "capability declaration". NOT for: what agents say to each other (use agent-conversation-protocols), orchestration topology (use multi-agent-coordination), building agent infrastructure (use agentic-infrastructure-2026).

curiositech/windags-skills

>- Design AgentSpeak(L)-style BDI agents with context-guarded plans, selection functions, and intention stacks. Use for interruptible autonomy, agent policy, and multi-agent orchestration in dynamic environments. NOT for simple rule engines, static planners, or centralized workflows.

curiositech/windags-skills

Foundational concurrent computation model where actors communicate exclusively through asynchronous message passing

curiositech/windags-skills

Build production-ready LLM applications, advanced RAG systems, and intelligent agents. Implements vector search, multimodal AI, agent orchestration, and enterprise AI integrations. Use PROACTIVELY for LLM features, chatbots, AI agents, or AI-powered applications.

curiositech/windags-skills

license: Apache-2.0 NOT for unrelated tasks outside this domain.

Related Skills