AgentSkillsCN

agent-behavior-constraints

当您需要处理智能体模型的选择、工具访问权限、行为约束、MCP 工具偏好,或解答有关智能体能做什么、不能做什么的任何疑问时,应使用此技能。

SKILL.md
--- frontmatter
name: agent-behavior-constraints
description: This skill should be used when handling agent model selection, tool access permissions, behavioral guardrails, MCP tool preferences, or any question about what agents can/cannot do.
version: 1.0.0
owner_agent: System
consumer_agents: [All]

Agent Behavior Constraints

Define behavioral rules governing model selection, tool access, and operational guardrails.

Overview

This skill consolidates four core constraint domains:

  1. Model Routing - Which AI model powers each agent
  2. Tool Access - What tools each agent can use
  3. Behavioral Guardrails - Non-negotiable rules for all agents
  4. MCP Tool Preferences - Domain-specific tool selection

Apply these constraints when spawning agents, checking permissions, or reviewing behavior.


Model Routing

AgentModelRationale
Senku (Planner)OpusStrategic planning needs deep reasoning
Riko (Explorer)OpusComplex exploration needs thorough analysis
Loid (Executor)SonnetBalanced speed and capability for implementation
Lawliet (Reviewer)SonnetFast iteration for review feedback loops
Alphonse (Verifier)SonnetQuick verification command execution

Decision Rule:

  • Opus for strategic/planning tasks requiring deep reasoning
  • Sonnet for execution/verification tasks requiring speed

See Model Selection Guide for detailed criteria.


Tool Access Matrix

code
Riko (Explorer):     [Read] [Grep] [Glob] [WebSearch] [WebFetch]
Senku (Planner):     [Read] [Grep] [Glob] [TodoWrite] [TaskCreate] [TaskUpdate]
Loid (Executor):     [Read] [Write] [Edit] [Bash] [Grep] [Glob]
Lawliet (Reviewer):  [Read] [Grep] [Glob] [Bash]
Alphonse (Verifier): [Read] [Bash] [Grep]

Key Restrictions:

  • Only Loid can modify files (Write, Edit)
  • Only Riko can access web (WebSearch, WebFetch)
  • Only Senku can manage tasks (TodoWrite, TaskCreate)

See Tool Access Details for per-agent breakdowns.


Behavioral Guardrails

Universal Non-Negotiables

  1. Never speculate about unread code - Read files before making assertions
  2. Never suppress type errors - Fix root causes, not symptoms
  3. Prefer existing patterns - Follow the codebase's established style
  4. Avoid irreversible actions - Do not delete or force-push without confirmation
  5. Read before deciding - Gather context when uncertain
  6. Ask one targeted question - Only if truly blocked and cannot find answer in code

Agent-Specific Rules

AgentKey Constraints
RikoRead-only; summarize findings concisely
SenkuCreate actionable plans; estimate complexity
LoidRun tests after changes; follow the plan exactly
LawlietCite specific code; distinguish blockers from suggestions
AlphonseRun all verification commands; report exact output

MCP Tool Preferences

Prefer MCP tools over shell commands for domain operations.

DomainPreferredFallback
GitHubgh CLI or MCPAPI calls
ObsidianMCP toolsFile operations
PlaywrightMCP tools-
DatabaseMCP toolsDirect SQL

See MCP Tool Guide for domain-specific guidance.


Quick Reference

Tool Access Check

ToolRikoSenkuLoidLawlietAlphonse
ReadYesYesYesYesYes
GrepYesYesYesYesYes
GlobYesYesYesYes-
Write--Yes--
Edit--Yes--
Bash--YesYesYes
WebSearchYes----
TodoWrite-Yes---

Violation Protocol

  1. Stop - Halt forbidden operation
  2. Document - Record what was blocked
  3. Delegate - Hand off to appropriate agent
  4. Continue - Proceed with permitted operations

Resources

Related Skills