Przejdź do treści
Biblioteka skilli
AI i agenci · Nauka i wyjaśnianie

agent-behavior-constraints

/agent-behavior-constraints

Opisuje zasady wyboru modelu, uprawnień do narzędzi, ograniczeń zachowania agentów i preferencji MCP, czyli co agenci mogą, a czego nie mogą robić.

Repozytorium
agent-flow ↗
Licencja
MIT
Ostatnia zmiana repozytorium
27.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
5
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 27.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Opisuje zasady wyboru modelu, uprawnień do narzędzi, ograniczeń zachowania agentów i preferencji MCP, czyli co agenci mogą, a czego nie mogą robić.

Oryginalny opis (EN)

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.

Jak działa

  1. Overview
  2. Model Routing
  3. Tool Access Matrix
  4. External CLI dispatch — Codex co-review (Phase 4)
  5. Behavioral Guardrails
  6. MCP Tool Preferences
  7. Quick Reference
  8. Resources
  9. Related Skills
Sekcje z nagłówków SKILL.md, w oryginale · 162 linii, 996 słów
Podgląd SKILL.md
---
name: agent-behavior-constraints
user-invocable: false
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.
---

# 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

| Agent | Model | Rationale |
|-------|-------|-----------|
| Senku (Planner) | Opus | Strategic planning needs deep reasoning |
| Riko (Explorer) | Sonnet (effort: medium) | Exploration is breadth-first search; speed matters more than deep reasoning |
| Loid (Executor) | Sonnet | Balanced speed and capability for implementation |
| Lawliet (Reviewer) | Sonnet | Fast iteration for review feedback loops |
| Alphonse (Verifier) | Sonnet | Quick verification command execution |
| Speedwagon (Authoring) | Sonnet | Fast content authoring for explainer modules |

**Decision Rule:**
- Opus for strategic/planning tasks requiring deep reasoning (Senku, `effort: high`)
- Sonnet for exploration, execution, and verification tasks requiring speed

See [Model Selection Guide](references/model-selection-guide.md) for detailed criteria.

---

## Tool Access Matrix

```
Riko (Explorer):       [Read] [Grep] [Glob] [Bash]* [WebSearch] [WebFetch]
Senku (Planner):       [Read] [Grep] [Glob] [Write]§
Loid (Executor):       [Read] [Write] [Edit] [Bash] [Grep] [Glob]
Lawliet (Reviewer):    [Read] [Grep] [Glob] [Bash]
Alphonse (Verifier):   [Read] [Bash] [Grep]
Speedwagon (Authoring):[Read] [Grep] [Glob] [Write]† [Edit]† [Bash]‡
```

**Key Restrictions:**
- Only Loid can modify files (Write, Edit) — except Speedwagon's scoped authoring exception, Senku's plan/report files§, and Riko/Lawliet/Alphonse writing their own long reports to `.claude/agent-reports/` via Bash heredoc
- Only Riko can access web (WebSearch, WebFetch)
- Senku produces plans as numbered markdown checklists (TodoWrite no longer exists on current models)

**Footnotes:**
- § Senku's Write is scoped to plan/report files under `.claude/agent-reports/` or `.senku/` only — never source code
- * Riko's Bash access is limited to AST analysis tools only (ast-grep, tree-sitter, language parsers)
- † Speedwagon Write/Edit scoped to `explain-out/` and `.claude/explain-briefs/` only
- ‡ Speedwagon Bash limited to `bash ${CLAUDE_PLUGIN_ROOT}/scripts/compile-explain.sh` only

See [Tool Access Details](references/tool-access-details.md) for per-agent breakdowns.

---

## External CLI dispatch — Codex co-review (Phase 4)

The orchestrator may invoke the OpenAI Codex CLI as an external Bash dispatch
during Phase 4 (Review) when the Execution Profile includes Codex (not `fast`) and `codex.available: true` in orchestration state.
This is the only sanctioned non-persona tool call from the orchestrator.

- Codex receives: task description and the `git diff` under review (or only
  the fix diff via `--diff-base <rev>` in review-fix rounds). It runs in
  parallel with Lawliet and Alphonse and does NOT receive Lawliet's findings —
  those are included only on a sequential re-check (e.g. a disputed finding).
  See `skills/verification-gates/references/codex-co-review.md` and
  `docs/guides/using-codex-review.md` for the data boundary.
- Codex runs in `-s read-only --ignore-user-config` sandbox.
- Verdict-merge rules (truth table + Divergence Cap):
  `skills/verification-gates/references/codex-co-review.md` (canonical).
- Per-run opt-out: `AGENT_FLOW_NO_CODEX=1` env var.

Personas (Riko/Senku/Loid/Lawliet/Alphonse) must NOT invoke `codex` directly.

---

## 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

| Agent | Key Constraints |
|-------|-----------------|
| Riko | Read-only; summarize findings concisely |
| Senku | Create actionable plans; estimate complexity |
| Loid | Run targeted checks on changed code (Alphonse runs the full suite); follow the plan exactly |
| Lawliet | Cite specific code; distinguish blockers from suggestions; no file writes except its own report in `.claude/agent-reports/` |
| Alphonse | Run all verification commands (except type/lint in parallel mode — reported `COVERED (Lawliet)`); report exact output; no file writes except its own report in `.claude/agent-reports/` |
| Speedwagon | Write only to explain-out/ and .claude/explain-briefs/; Bash only for compile-explain.sh |

---

## MCP Tool Preferences

Prefer MCP tools over shell commands for domain operations.

| Domain | Preferred | Fallback |
|--------|-----------|----------|
| GitHub | `gh` CLI or MCP | API calls |
| Obsidian | MCP tools | File operations |
| Playwright | MCP tools | - |
| Database | MCP tools | Direct SQL |

See [MCP Tool Guide](references/mcp-tool-guide.md) for domain-specific guidance.

---

## Quick Reference

### Tool Access Check

| Tool | Riko | Senku | Loid | Lawliet | Alphonse | Speedwagon |
|------|:----:|:-----:|:----:|:-------:|:--------:|:----------:|
| Read | Yes | Yes | Yes | Yes | Yes | Yes |
| Grep | Yes | Yes | Yes | Yes | Yes | Yes |
| Glob | Yes | Yes | Yes | Yes | - | Yes |
| Write | - | Scoped§ | Yes | - | - | Scoped† |
| Edit | - | - | Yes | - | - | Scoped† |
| Bash | Yes* | - | Yes | Yes | Yes | Scoped‡ |
| WebSearch | Yes | - | - | - | - | - |

*Riko: Bash restricted to AST analysis tools only (ast-grep, tree-sitter, language parsers), plus writing its own report to `.claude/agent-reports/`
§Senku: Write restricted to plan/report files under `.claude/agent-reports/` or `.senku/`

### 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

- [Tool Access Details](references/tool-access-details.md) - Complete permission matrices
- [Model Selection Guide](references/model-selection-guide.md) - Detailed selection criteria
- [MCP Tool Guide](references/mcp-tool-guide.md) - Domain tool preferences
- [Constraint Scenarios](examples/constraint-scenarios.md) - Worked examples

## Related Skills

- [task-classification](../task-classification/SKILL.md) - Uses constraints for agent assignment
- [verification-gates](../verification-gates/SKILL.md) - Defines Alphonse verification commands
- [exploration-strategy](../exploration-strategy/SKILL.md) - Guides Riko's exploration approach
Pliki w paczce (5)
  • SKILL.md 7 KB
  • examples/constraint-scenarios.md 6 KB
  • references/mcp-tool-guide.md 5 KB
  • references/model-selection-guide.md 4 KB
  • references/tool-access-details.md 8 KB

Wersje

W bazie nie ma innych skilli o nazwie agent-behavior-constraints.

Migawka bazy z 13.11.2026 · wersja paczki 093893054fb6 (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 4 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 95ai-agents-and-tools
    Sprawdza w repozytorium aidd kod dotyczący agentów, serwerów MCP, pamięci, uprawnień narzędzi i zabezpieczeń przed iniekcją promptów.
  • 90agent-tool-permissions
    Konfiguruje, co agent kodujący może robić bez pytania, równoważąc autonomię z kosztem niechcianej akcji, przy ustawianiu uprawnień w projekcie.
  • 85agent-governance
    Ustala firmowe zasady, co agenty kodujące zespołu mogą robić w Leverage: zezwalaj, pytaj lub zabraniaj dla każdego narzędzia i roli.
  • 90agent
    Przegląda narzędzia i uprawnienia agenta, wskazując, które mogą zmieniać lub kasować dane i które wymagają zatwierdzenia.
  • 100build-agents
    Dostarcza domyślne wskazówki budowy agentów AI: aplikacje agentów, agenci wywołujący narzędzia, agenci trwałe, systemy wieloagentowe i agenci zaplanowani.
  • 95creating-claude-agents
    Tworzy i poprawia agentów Claude Code: plik agenta, nagłówek, dostęp do narzędzi, dobór modelu i walidację schematu.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.