itallstartedwithaidea/claude-googleadsagent/agent-instinct-system
Claude Code and agent skill by itallstartedwithaidea/claude-googleadsagent
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
The Agent Instinct System implements pre-cognitive reflexes — automatic safety checks and validations that fire before every code change, tool call, or output generation.
Install
npx vskill@latest install itallstartedwithaidea/claude-googleadsagent/agent-instinct-systemSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as itallstartedwithaidea/claude-googleadsagent/agent-instinct-system.
Agent Instinct System
Part of Agent Skills™ by googleadsagent.ai™
Description
The Agent Instinct System implements pre-cognitive reflexes — automatic safety checks and validations that fire before every code change, tool call, or output generation. Just as biological reflexes protect organisms from harm faster than conscious thought, agent instincts protect codebases and systems from damage faster than deliberate reasoning. These instincts operate below the level of task-specific logic, forming a universal safety layer that activates regardless of what the agent is doing.
Developed for the Buddy™ agent at googleadsagent.ai™, where a single incorrect Google Ads API call could burn through a client's entire monthly budget, the instinct system enforces invariants that must never be violated. Budget caps are checked before bid modifications. Destructive operations require confirmation signals. File deletions are validated against protection lists. These checks happen automatically, without the agent needing to "remember" to perform them.
The instinct system is organized into three tiers: reflexes (instant, zero-cost checks like "is this file in the protected list"), gates (lightweight validations like "does this change pass the linter"), and assessments (more expensive checks like "does this modification align with the stated task"). Each tier adds latency but catches increasingly subtle issues.
Use When
- Agents operate on production systems where mistakes have real consequences
- You need defense-in-depth beyond what a single verification step provides
- Multiple agents or team members work on the same codebase simultaneously
- The agent handles destructive operations (deletions, deployments, API mutations)
- Compliance requirements mandate pre-action validation for AI-generated changes
- You want to prevent entire categories of mistakes rather than catching them after the fact
How It Works
When the agent forms an intent to act (write a file, call a tool, generate output), the intent passes through the instinct tiers sequentially. Tier 1 reflexes are hardcoded checks that execute in microseconds: protected file lists, forbidden operation patterns, budget ceiling checks. Tier 2 gates run lightweight validations: syntax checks, dependency verification, scope validation. Tier 3 assessments perform deeper analysis: task alignment verification, impact estimation, side-effect prediction. After execution, post-action audits feed back into the instinct system, allowing it to learn new protective patterns from near-misses.
Implementation
Instinct Engine Core:
Built-In Reflexes:
Gate: Scope Validation:
Best Practices
- Keep reflexes zero-cost — Tier 1 reflexes must execute in under 1ms with no I/O; anything requiring network calls or model inference belongs in a higher tier.
- Make rejections actionable — every blocked intent should include a reason and, when possible, an alternative action the agent can take instead.
- Start with a deny-list, evolve to an allow-list — begin by blocking known-dangerous operations, then progressively tighten to only allowing explicitly safe operations.
- Log all instinct activations — every blocked and allowed intent should be logged for audit and for instinct learning.
- Never skip instincts for "trusted" tasks — the instinct system is a safety net; bypassing it for convenience defeats its entire purpose.
- Derive new instincts from incidents — every production incident should produce at least one new reflex or gate that prevents recurrence.
- Test instincts with adversarial intents — craft intents designed to bypass each instinct and verify they are caught.
- Version instinct configurations — track which instincts are active per environment (dev/staging/prod) and audit changes.
Platform Compatibility
| Feature | Claude Code | Cursor | Codex | Gemini CLI | |
|---|---|---|---|---|---|
| Pre-action hooks | ✅ PreToolUse | ✅ Rules | ✅ Instructions | ✅ System prompts | |
| File protection | ✅ Full | ✅ Full | ✅ Sandbox | ✅ Full | |
| Shell command filtering | ✅ Full | ✅ Full | ✅ Sandbox | ✅ Full | |
| Budget enforcement | ✅ Custom hooks | ✅ Extensions | ✅ Custom | ✅ Custom | |
| Post-action audit | ✅ PostToolUse | ✅ Rules | ✅ Custom | ✅ Custom |
Related Skills
- Adversarial Resilience - Layered defense against prompt injection and data exfiltration that pairs with instinct-level protection
- Verification Loops - Post-action evaluation pipelines that validate outputs after instincts approve the action
- Self-Healing Agents - Autonomous error recovery that activates when instinct gates detect failures
Keywords
agent-instincts, pre-flight-checks, safety-gates, reflexes, destructive-operation-prevention, scope-validation, budget-ceiling, protected-files, defense-in-depth, agent-skills
© 2026 googleadsagent.ai™ | Agent Skills™ | MIT License
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/agent-instinct-system/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/itallstartedwithaidea/claude-googleadsagent/agent-instinct-system)