一键导入
agentic-patterns
Patterns from "Agentic Design Patterns" (Gulli & Sauco, 2025) applied to universal project templating and scaffold automation
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Patterns from "Agentic Design Patterns" (Gulli & Sauco, 2025) applied to universal project templating and scaffold automation
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Select and coordinate multi-agent teams (topology kits, role-based squads, lifecycle, worktree isolation). Use this skill whenever launching parallel agents, designing a review board, running a debug council, scheduling an orchestrator-workers team, configuring agent tool restrictions, or deciding between solo and team execution. Triggers on: "launch a team", "parallel agents", "review board", "debug council", "architect-implementer-reviewer", "swarm", "multi-agent", "subagents for X", "team topology", "agent lifecycle".
Select and wire an agentic design pattern (reflection, prompt chaining, routing, parallelization, orchestrator-workers, evaluator-optimizer, ReAct, blackboard) into the 5-layer Claude Code stack. Use this skill whenever deciding how to structure a multi-step task, whether to spawn subagents, how to run parallel review, or when to use which pattern. Triggers on: "which pattern", "orchestrate", "parallel review", "self-review", "chain of thought", "eval-optimizer loop", "blackboard", "ReAct", "how to decompose this task".
Auto mode permission handling — classifier-based approvals, PermissionDenied hook, defer permissionDecision, and autonomy profiles for hands-off Claude Code usage
Configure Claude Code's autonomous operating mode — profile selection (conservative, balanced, aggressive, unattended-review), permission blocks, and the three gate agents (planner, verifier, reviewer). Use this skill whenever enabling autonomous mode, switching profiles, tightening permissions for production branches, or setting up unattended execution. Triggers on: "autonomy", "unattended mode", "auto-approve", "permission mode", "autonomy profile", "gates", "/cc-autonomy", "planner verifier reviewer", "let claude run on its own".
Manage Claude Code's context window — token arithmetic, /compact strategy, anchor preservation, progressive loading, session analytics. Use this skill whenever a session gets long, context approaches limits, after /compact, when deciding what to load into CLAUDE.md vs leave in references, or when analyzing session cost/token usage. Triggers on: "context full", "compact", "too many tokens", "budget", "session analytics", "save tokens", "context window", "/compact strategy".
Evidence-driven deep analysis for hard coding problems — architecture decisions, root-cause investigation, high-stakes refactor planning, performance bottleneck isolation. Use this skill whenever the user asks for "the best approach", a "deep analysis", "root cause", "principal engineer review", or runs /cc-intel. Also triggers on hard debugging questions, major architectural choices, tricky performance problems, or any task where a hypothesis tree and evidence table matter more than a fast answer.
| name | agentic-patterns |
| description | Patterns from "Agentic Design Patterns" (Gulli & Sauco, 2025) applied to universal project templating and scaffold automation |
Patterns from "Agentic Design Patterns" (Gulli & Sauco, 2025) applied to universal project templating and scaffold automation
Relevance: Template generation is inherently sequential — detect format, resolve variables, validate structure, render output, post-process.
Current Implementation: Each command (/template, /scaffold, /generate) runs a discrete step before passing results to the next stage.
Enhancement: Formalize the chain as an explicit pipeline with typed handoff contracts between stages. Each step validates its output schema before forwarding, enabling early-exit on malformed templates without wasting downstream tool calls.
Relevance: Project scaffolding requires upfront decomposition — which directories to create, which files to render, which post-install hooks to run, in what order.
Current Implementation: The scaffold-agent determines structure from template metadata at runtime.
Enhancement: Generate a structured scaffold plan (JSON manifest of operations) before any file is written. Present the plan for review when --dry-run is passed. This separates intent from execution and allows partial rollback on failure.
Relevance: The plugin wraps five distinct templating engines (Handlebars, Cookiecutter, Copier, Maven Archetype, Harness YAML) and MCP servers (harness, scaffold, github). Current Implementation: Agents call the appropriate MCP tool based on detected template format. Enhancement: Apply structured tool-selection reasoning — log which tool was chosen and why, surface tool errors as typed exceptions rather than raw strings, and retry with fallback tools when the primary engine is unavailable.
Relevance: Incoming template requests must be dispatched to the correct engine, agent, or MCP server based on format detection.
Current Implementation: Format detection is implicit inside each command handler.
Enhancement: Introduce an explicit routing layer that inspects the request (file extension, config file presence, explicit --engine flag) and returns a structured { engine, agent, mcp } routing decision before any work begins. Makes routing testable and auditable.
Relevance: Generated templates and scaffolded projects should be validated for correctness, completeness, and security before delivery.
Current Implementation: The testing-agent generates tests post-scaffold but does not feed results back into the scaffold itself.
Enhancement: After scaffold completion, run a lightweight reflection pass: check for placeholder variables left unresolved, verify required files exist, scan for secrets accidentally included in templates. Feed failures back as a correction loop before surfacing output to the user.
Relevance: Five specialized agents (harness-expert, scaffold-agent, codegen-agent, database-agent, testing-agent) handle distinct domains. Current Implementation: Agents are invoked sequentially based on command context. Enhancement: Enable parallel agent execution for independent sub-tasks (e.g., codegen-agent and database-agent run concurrently during a full-stack scaffold). Use a lightweight coordinator to merge outputs and resolve conflicts (e.g., overlapping file paths).
Relevance: Users repeatedly scaffold similar project types with the same variable overrides and engine preferences. Current Implementation: No cross-session preference persistence. Enhancement: Persist template preferences, variable defaults, and engine choices per project/repo. On subsequent invocations, pre-populate variable prompts with remembered values and surface the most recently used templates first.
Relevance: Template rendering can produce unsafe output — credentials in generated files, insecure default configs, path traversal via template variables.
Current Implementation: No systematic safety checks on rendered output.
Enhancement: Add a post-render guardrail pass that scans for: hardcoded secrets patterns, world-writable file permissions in scaffold scripts, ../ path traversal in template variable substitutions, and Harness pipeline stages that disable required approval gates. Block or warn before writing to disk.
User Request
│
▼
[Routing] ──────────────────────────────────────────┐
│ engine/agent/mcp decision │
▼ │
[Planning] ── scaffold manifest ──────────┐ │
│ │ │
▼ ▼ │
[Prompt Chaining] [Memory] │
detect → resolve → render recall prefs │
│ │ │
▼ ▼ │
[Tool Use] ─── Handlebars/Cookiecutter/Copier/Maven/Harness
│
▼
[Multi-Agent] ── scaffold-agent + codegen-agent + database-agent (parallel)
│ │ │
└────────────────┘ │
│ │
▼ │
[Reflection] ── validate output ◄──────────┘
│
▼
[Guardrails] ── security/safety scan
│
▼
Delivered Output + Memory update