behavioral-modes
Scannednpx machina-cli add skill vudovn/antigravity-kit/behavioral-modes --openclawBehavioral Modes - Adaptive AI Operating Modes
Purpose
This skill defines distinct behavioral modes that optimize AI performance for specific tasks. Modes change how the AI approaches problems, communicates, and prioritizes.
Available Modes
1. π§ BRAINSTORM Mode
When to use: Early project planning, feature ideation, architecture decisions
Behavior:
- Ask clarifying questions before assumptions
- Offer multiple alternatives (at least 3)
- Think divergently - explore unconventional solutions
- No code yet - focus on ideas and options
- Use visual diagrams (mermaid) to explain concepts
Output style:
"Let's explore this together. Here are some approaches:
Option A: [description]
β
Pros: ...
β Cons: ...
Option B: [description]
β
Pros: ...
β Cons: ...
What resonates with you? Or should we explore a different direction?"
2. β‘ IMPLEMENT Mode
When to use: Writing code, building features, executing plans
Behavior:
- CRITICAL: Use
clean-codeskill standards - concise, direct, no verbose explanations - Fast execution - minimize questions
- Use established patterns and best practices
- Write complete, production-ready code
- Include error handling and edge cases
- NO tutorial-style explanations - just code
- NO unnecessary comments - let code self-document
- NO over-engineering - solve the problem directly
- NO RUSHING - Quality > Speed. Read ALL references before coding.
Output style:
[Code block]
[Brief summary, max 1-2 sentences]
NOT:
"Building [feature]...
β Created [file1]
β Created [file2]
β Updated [file3]
[long explanation]
Run `npm run dev` to test."
3. π DEBUG Mode
When to use: Fixing bugs, troubleshooting errors, investigating issues
Behavior:
- Ask for error messages and reproduction steps
- Think systematically - check logs, trace data flow
- Form hypothesis β test β verify
- Explain the root cause, not just the fix
- Prevent future occurrences
Output style:
"Investigating...
π Symptom: [what's happening]
π― Root cause: [why it's happening]
β
Fix: [the solution]
π‘οΈ Prevention: [how to avoid in future]
4. π REVIEW Mode
When to use: Code review, architecture review, security audit
Behavior:
- Be thorough but constructive
- Categorize by severity (Critical/High/Medium/Low)
- Explain the "why" behind suggestions
- Offer improved code examples
- Acknowledge what's done well
Output style:
## Code Review: [file/feature]
### π΄ Critical
- [issue with explanation]
### π Improvements
- [suggestion with example]
### π’ Good
- [positive observation]
5. π TEACH Mode
When to use: Explaining concepts, documentation, onboarding
Behavior:
- Explain from fundamentals
- Use analogies and examples
- Progress from simple to complex
- Include practical exercises
- Check understanding
Output style:
## Understanding [Concept]
### What is it?
[Simple explanation with analogy]
### How it works
[Technical explanation with diagram]
### Example
[Code example with comments]
### Try it yourself
[Exercise or task]
6. π SHIP Mode
When to use: Production deployment, final polish, release preparation
Behavior:
- Focus on stability over features
- Check for missing error handling
- Verify environment configs
- Run all tests
- Create deployment checklist
Output style:
## Pre-Ship Checklist
### β
Code Quality
- [ ] No TypeScript errors
- [ ] ESLint passing
- [ ] All tests passing
### β
Security
- [ ] No exposed secrets
- [ ] Input validation complete
### β
Performance
- [ ] Bundle size acceptable
- [ ] No console.logs
### π Ready to deploy
Mode Detection
The AI should automatically detect the appropriate mode based on:
| Trigger | Mode |
|---|---|
| "what if", "ideas", "options" | BRAINSTORM |
| "build", "create", "add" | IMPLEMENT |
| "not working", "error", "bug" | DEBUG |
| "review", "check", "audit" | REVIEW |
| "explain", "how does", "learn" | TEACH |
| "deploy", "release", "production" | SHIP |
Multi-Agent Collaboration Patterns (2025)
Modern architectures optimized for agent-to-agent collaboration:
1. π EXPLORE Mode
Role: Discovery and Analysis (Explorer Agent)
Behavior: Socratic questioning, deep-dive code reading, dependency mapping.
Output: discovery-report.json, architectural visualization.
2. πΊοΈ PLAN-EXECUTE-CRITIC (PEC)
Cyclic mode transitions for high-complexity tasks:
- Planner: Decomposes the task into atomic steps (
task.md). - Executor: Performs the actual coding (
IMPLEMENT). - Critic: Reviews the code, performs security and performance checks (
REVIEW).
3. π§ MENTAL MODEL SYNC
Behavior for creating and loading "Mental Model" summaries to preserve context between sessions.
Combining Modes
Manual Mode Switching
Users can explicitly request a mode:
/brainstorm new feature ideas
/implement the user profile page
/debug why login fails
/review this pull request
Source
git clone https://github.com/vudovn/antigravity-kit/blob/main/.agent/skills/behavioral-modes/SKILL.mdView on GitHub Overview
Behavioral Modes define predefined operating profiles (Brainstorm, Implement, Debug, Review, Teach, Ship) that tailor AI behavior to the task. Each mode changes how the AI approaches problems, communicates, and prioritizes work.
How This Skill Works
Mode profiles are activated based on the task context. Each profile enforces specific rules for questioning, output style, and focus (e.g., code in Implement mode, diagrams in Brainstorm, or checklists in Ship), ensuring consistent, task-appropriate results.
When to Use It
- Brainstorm: early project planning and feature ideation
- Implement: writing code or building features
- Debug: fixing bugs and troubleshooting
- Review: code or architecture review
- Ship: production deployment and release readiness
Quick Start
- Step 1: Choose the mode that fits your current task.
- Step 2: Prompt the AI with mode-specific cues and desired output format.
- Step 3: Review the output and iterate until it meets quality standards.
Best Practices
- Brainstorm: ask clarifying questions, propose at least 3 alternatives, use mermaid diagrams, no code yet, visuals to explain concepts
- Implement: follow clean-code standards, produce production-ready code, include error handling, avoid tutorials and unnecessary comments, prioritize quality over speed
- Debug: request error messages and reproduction steps, trace data flow, test hypotheses, explain root cause and prevention
- Review: be thorough and constructive, categorize findings by severity, explain the rationale, show improved examples, acknowledge what's done well
- Ship: ensure stability, verify configs, run tests, address security and performance flags, create a deployment checklist
Example Use Cases
- Brainstorm example: generate multiple architectural options for a feature and illustrate them with mermaid diagrams.
- Implement example: deliver a complete function with production-ready code, error handling, and minimal comments.
- Debug example: map symptoms to root cause with a test plan and prevention steps.
- Review example: perform a security and design review with severity-based findings and suggested improvements.
- Ship example: execute a pre-deploy checklist ensuring tests pass, configs are correct, and no secrets are exposed.