From ac
Create Claude Code agents with optimal structure, tool control, and output contracts. Use when building subagents, advisory agents, or execution workers for Claude Code plugins.
npx claudepluginhub anilcancakir/claude-code-plugin --plugin acThis skill uses the workspace's default tool permissions.
Create Claude Code agents that follow the kodizm 5-section format — Identity, Execution, Output Format, Failure Conditions, Constraints — producing concise, CC-optimized agent definitions.
Generates design tokens/docs from CSS/Tailwind/styled-components codebases, audits visual consistency across 10 dimensions, detects AI slop in UI.
Records polished WebM UI demo videos of web apps using Playwright with cursor overlay, natural pacing, and three-phase scripting. Activates for demo, walkthrough, screen recording, or tutorial requests.
Delivers idiomatic Kotlin patterns for null safety, immutability, sealed classes, coroutines, Flows, extensions, DSL builders, and Gradle DSL. Use when writing, reviewing, refactoring, or designing Kotlin code.
Create Claude Code agents that follow the kodizm 5-section format — Identity, Execution, Output Format, Failure Conditions, Constraints — producing concise, CC-optimized agent definitions.
Determine the agent's role before drafting:
| Type | Tool Control | Model | Key Traits |
|---|---|---|---|
| Advisory | disallowedTools: Write, Edit, NotebookEdit | sonnet/opus | Read-only, analyzes, reports findings |
| Execution | disallowedTools: NotebookEdit | sonnet | Write access, implements changes, runs tests |
| Search | disallowedTools: Write, Edit, NotebookEdit + maxTurns | haiku | Read-only, fast lookup, capped turns |
If the agent's purpose spans types, default to the more restrictive — advisory over execution. Execution agents must justify write access.
Launch 1-2 ac:explore agents to find similar agents in the target project:
If the target project has no agents, read 2-3 agents from plugins/ac/agents/ as reference implementations.
Before drafting, identify what CC already provides so the agent does not repeat it:
Read ${CLAUDE_SKILL_DIR}/../prompt-writer/references/cc-dedup-guide.md for the full dedup checklist. Strip anything CC or CLAUDE.md already covers — every repeated token wastes context budget.
Follow the kodizm 5-section format from references/agent-patterns.md. Read it before drafting any agent.
Section targets:
| Section | Lines | Purpose |
|---|---|---|
| Identity | 1-3 | Role + mission in imperative form |
| Execution | 10-30 | Numbered steps or strategy |
| Output Format | 5-15 | Structured markdown template |
| Failure Conditions | 3-8 | "FAILED if:" checklist |
| Constraints | 2-5 | Scope, style, hard limits |
Body size enforcement:
references/Verify all required fields before finalizing. Read ${CLAUDE_SKILL_DIR}/../prompt-writer/references/frontmatter-schemas.md for the complete schema.
Required fields:
| Field | Format | Notes |
|---|---|---|
name | kebab-case | Unique within plugin |
description | ≤250 chars | Front-load key use case, "slightly pushy" |
model | haiku/sonnet/opus | Per routing guide below |
effort | low/medium/high | Match model tier |
disallowedTools | comma-separated | Denylist — see Tool Control below |
color | green/yellow/red/blue/cyan | See Color Guide in references |
Conditional fields:
| Field | When |
|---|---|
maxTurns | Search agents only (10-30 range) |
tools | Strict allowlist agents only (rare — e.g., LSP-locked) |
skills | Agent needs specific skill access |
memory | Agent uses persistent memory |
isolation: worktree | Agent needs isolated git worktree |
Present draft to user. Verify before finalizing:
| Model | Use For | Effort |
|---|---|---|
| Haiku | Search, simple lookups, fast exploration | low |
| Sonnet | Standard execution, debugging, analysis, code review | medium |
| Opus | Architecture, planning, deep review, complex analysis, creation | high |
Default to Sonnet unless the task clearly needs Haiku speed or Opus depth. Search agents always use Haiku. Advisory agents reviewing architecture or making high-stakes judgments use Opus.
Agents use disallowedTools (denylist) — NOT tools (allowlist). Different from skills, which use allowed-tools.
Denylist rules:
disallowedTools: Write, Edit, NotebookEdit (minimum)disallowedTools: NotebookEdit (minimum)Agent tool is NOT denied — CC prevents subagent-to-subagent spawning nativelyBash to denylist for agents that must not execute commands (pure analysis)Exception — strict allowlist: Agents locked to specific tools (like a linter that only needs LSP) can use tools: allowlist instead. This is rare — default to denylist.
Plugin-shipped agents cannot use: hooks, mcpServers, permissionMode (security restriction).
| Metric | Target | Hard Max |
|---|---|---|
| Body lines | 40-80 | 120 |
| Per section | 5-20 lines | — |
| Description | — | 250 chars |
If exceeding 120 lines:
references/references/If a section exceeds 20 lines, it likely contains reference material that belongs in references/.
| Topic | File | When to read |
|---|---|---|
| Agent patterns | agent-patterns.md | Before drafting any agent — templates for advisory, execution, search |
| CC dedup guide | cc-dedup-guide.md | During dedup audit (step 3) — full checklist of what CC auto-injects |
| Frontmatter schemas | frontmatter-schemas.md | During frontmatter validation (step 5) — complete field reference |