opencode-design-agents
/opencode-design-agents
Tworzy i doskonali agentów OpenCode przez prowadzone pytania i odpowiedzi: plik agenta, frontmatter AGENTS.md, subagent_type, allowed-tools, uprawnienia, routing i prompt systemowy.
- Autor
- pantheon-org ↗
- Repozytorium
- tekhne ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 21.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 26
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 21.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Tworzy i doskonali agentów OpenCode przez prowadzone pytania i odpowiedzi: plik agenta, frontmatter AGENTS.md, subagent_type, allowed-tools, uprawnienia, routing i prompt systemowy.
Wyzwalacze z opisu
Oryginalny opis (EN)
Create and refine OpenCode agents via guided Q&A. Use when creating an agent file, improving an existing agent, configuring AGENTS.md frontmatter, setting subagent_type, defining allowed-tools, restricting permissions, designing agent routing, writing a system prompt, configuring mode: subagent, setting a permission block, or working with the Task tool delegation pattern. Examples: 'Create an agent for code reviews', 'My agent ignores context', 'Add a database expert subagent', 'Make my agent faster', 'Agent triggers on wrong requests'.
Jak działa
- Quick Start
- Mindset
- Creation Workflow
- Anti-Patterns
- Eval Scenarios
- References
Podgląd SKILL.md
---
name: opencode-design-agents
description: "Create and refine OpenCode agents via guided Q&A. Use when creating an agent file, improving an existing agent, configuring AGENTS.md frontmatter, setting subagent_type, defining allowed-tools, restricting permissions, designing agent routing, writing a system prompt, configuring mode: subagent, setting a permission block, or working with the Task tool delegation pattern. Examples: 'Create an agent for code reviews', 'My agent ignores context', 'Add a database expert subagent', 'Make my agent faster', 'Agent triggers on wrong requests'."
---
# Agent Architect
Create and refine OpenCode agents through a guided Q&A process.
## Quick Start
Create `.opencode/agents/<name>.md`:
```markdown
---
description: Code review specialist. Use when user says "review", "check my code", "find bugs".
---
You are an expert code reviewer. Analyze code for bugs, security issues, and performance problems.
Provide specific, actionable feedback with line references.
```
For subagents (Task tool only), add `mode: subagent`. For permission restrictions, add a `permission:` block:
```yaml
---
mode: subagent
permission:
bash:
"*": "ask"
"npm test": "allow"
---
```
Run `bun run opencode` and type `/agents` to confirm the new agent appears in the list.
## Mindset
**An agent is a markdown file with YAML frontmatter.** Three decisions drive every design:
| Decision | Why it matters |
|----------|----------------|
| **Scope** (`description`) | Controls when the agent triggers — too vague = never fires, too broad = fires on everything |
| **Mode** (`mode:`) | `all` = visible everywhere; `subagent` = Task-tool only; `primary` = main list only |
| **Permissions** (`permission:`) | Standard tools need no config; skills ALWAYS need explicit allowlists |
**When to use**: You need a distinct scope, persona, or permission set that differs from the default.
**When NOT to use**: Do not create an agent just to run a single command — use a slash command instead. Do not create a subagent when you just need a custom system prompt — use `AGENTS.md`.
## Creation Workflow
Ask questions first. Follow phases in [`references/agent-patterns.md`](references/agent-patterns.md):
1. **Phase 1 — Core Purpose**: What does it do? What triggers it? What persona?
2. **Phase 1.5 — Research**: Look up current best practices for the domain.
3. **Phase 2 — Capabilities**: Permissions, skills, mode (subagent vs primary vs all).
4. **Phase 3 — Review**: Show draft, iterate until user approves.
## Anti-Patterns
NEVER use `bash: { "*": "allow" }`. WHY: Allows destructive commands like `rm -rf`. Use `"*": "ask"` plus an explicit allowlist.
```yaml
# BAD
permission:
bash:
"*": "allow"
# GOOD
permission:
bash:
"*": "ask"
"npm test": "allow"
"git status": "allow"
```
NEVER write system prompts in third person. WHY: The model reads its own system prompt — third person is confusing and degrades instruction-following.
```markdown
# BAD — "The assistant analyzes code..."
# GOOD — "You analyze code for bugs, security issues, and performance problems."
```
NEVER add `permission:` block for standard tools. WHY: It creates noise and can accidentally restrict access to built-in capabilities. Only use `permission:` when you need to restrict or explicitly allow skills.
| Anti-Pattern | Fix |
|---|---|
| Vague `description` | Add concrete trigger examples |
| Missing `mode: subagent` on subagents | Set it explicitly |
| `skill: { "my-skill": "allow" }` without `"*": "deny"` | Deny `"*"` first |
## Eval Scenarios
- [Scenario 0: Create specialized agent with permissions](evals/scenario-0/task.md)
- [Scenario 1: Configure skill permission allowlist](evals/scenario-1/task.md)
- [Scenario 2: Fix broken agent triggers and system prompt](evals/scenario-2/task.md)
## References
- [`references/agent-patterns.md`](references/agent-patterns.md) — Creation phases, patterns, prompt engineering, enhancement/troubleshooting
- [`references/opencode-config.md`](references/opencode-config.md) — Full frontmatter schema, tools, permissions reference
Pliki w paczce (26)
- CHANGELOG.md 2 KB
- SKILL.md 4 KB
- .audits/latest 1 KB
- .audits/2026-03-12/analysis.md 1 KB
- .audits/2026-03-12/audit.json 1 KB
- .audits/2026-03-12/remediation-plan.md 3 KB
- .audits/2026-03-14/analysis.md 1 KB
- .audits/2026-03-14/audit.json 1 KB
- .audits/2026-03-14/remediation-plan.md 3 KB
- .audits/2026-04-08/analysis.md 1 KB
- .audits/2026-04-08/audit.json 1 KB
- .audits/2026-09-23/Analysis.md 1 KB
- .audits/2026-09-23/Remediation.md 2 KB
- .audits/2026-09-23/audit.json 1 KB
- .tekhne/plugin.json 1 KB
- evals/scenario-0/capability.txt 1 KB
- evals/scenario-0/criteria.json 1 KB
- evals/scenario-0/task.md 1 KB
- evals/scenario-1/capability.txt 1 KB
- evals/scenario-1/criteria.json 1 KB
- evals/scenario-1/task.md 1 KB
- evals/scenario-2/capability.txt 1 KB
- evals/scenario-2/criteria.json 1 KB
- evals/scenario-2/task.md 1 KB
- references/agent-patterns.md 9 KB
- references/opencode-config.md 5 KB
Wersje
W bazie nie ma innych skilli o nazwie opencode-design-agents.
Migawka bazy z 28.10.2026 · wersja paczki cc35425f4594 (skrót SHA-256 całej paczki)
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100creating-opencode-agents
Prowadzi przez tworzenie agentów OpenCode: markdown z frontmatterem YAML, konfiguracja trybu, narzędzi i uprawnień oraz dobre praktyki. - 100oc-create-agent
Prowadzi przez tworzenie nowego agenta zgodnego z OpenCode: wywiad interaktywny, konfiguracja uprawnień i walidacja pliku markdown agenta. - 100opencode
Konfiguruje OpenCode, otwartego agenta kodującego w terminalu z ponad 75 dostawcami modeli: plik opencode.json, wybór modeli, uprawnienia, własne agenty i komendy, serwery MCP oraz skrypty opencode run w CI. - 100claude-agents
Prowadzi przez tworzenie własnych agentów (subagentów) Claude Code: pliki agents/*.md, frontmatter (tools, model, skills, permissionMode, maxTurns), lista dozwolonych narzędzi i diagnozowanie wywołań. - 95opencode-configure
Konfiguruje OpenCode przez opencode.json i AGENTS.md: dostawców i modele, polityki uprawnień, formatery i zmienne środowiskowe, z diagnozowaniem zachowania konfiguracji. - 100subagent-authoring
Tworzy definicje subagentów dla Claude Code i OpenCode, które delegują zadania do skilli, także przy refaktoryzacji istniejących.