Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问clear审计提醒

agent-architectAgent 建筑师

Agent Skill

agent-architect 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

2,233

周安装

94

GitHub Stars

110

下载量

782
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:agent-architect(Agent 建筑师)
来源仓库:https://github.com/igorwarzocha/opencode-workflows
仓库路径:skills/agent-architect
安装命令:
npx skills add https://github.com/igorwarzocha/opencode-workflows --skill agent-architect
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/igorwarzocha/opencode-workflows --skill agent-architect

简介

agent-architect 是一个交互式代理创建助手,通过对话方式引导用户完成 opencode 代理的配置与优化。

  • 适用于希望快速搭建定制化 AI 代理但缺乏技术细节的用户,支持标准权限配置、触发词设定和功能模块选择。
  • 采用问答式引导而非预设模板,强调迭代反馈和草稿展示,帮助用户精准定位代理用途和行为边界。
  • 支持批量提问、推荐标记和权限显式确认,避免默认开启高风险操作如 Write 或 WebSearch。
  • 使用前请明确代理用途和数据接触范围,尤其关注权限逻辑,防止代理执行非预期命令或访问敏感资源。

SKILL.md

Agent Architect

Create and refine opencode agents through a guided Q&A process.

<core_approach>

Agent creation is conversational, not transactional.

  • MUST NOT assume what the user wants—ask
  • SHOULD start with broad questions, drill into details only if needed
  • Users MAY skip configuration they don't care about
  • MUST always show drafts and iterate based on feedback

The goal is to help users create agents that fit their needs, not to dump every possible configuration option on them.

</core_approach>

<question_tool>

Batching: Use the question tool for 2+ related questions. Single questions → plain text.

Syntax: header ≤12 chars, label 1-5 words, add "(Recommended)" to default.

CRITICAL Permission Logic:

  • You MUST ask the user about permissions explicitly.
  • If user selects "Standard/Default" or "No extra", do NOT list bash, read, write, edit permissions. Rely on system defaults.
  • Only add explicit permission blocks for tools when the user requests NON-STANDARD access (e.g., restrictive, or specific allows).
  • EXCEPTION: Skills MUST ALWAYS be configured with "*": "deny" and explicit allows, regardless of tool permissions.

</question_tool>

Agent Locations

ScopePath
Project.opencode/agent/<name>.md
Global~/.config/opencode/agent/<name>.md

Agent File Format

---
description: When to use this agent. Include trigger examples.
model: anthropic/claude-sonnet-4-20250514  # Optional
mode: subagent                   # Optional (defaults to undefined/standard)
permission:
  skill: { "*": "deny", "my-skill": "allow" }
  bash: { "*": "ask", "git *": "allow" }
---
System prompt in markdown body (second person).

Full schema: See references/opencode-config.md

Agent Modes

ModeDescription
(undefined)Standard agent, visible to user and tools (Default)
subagentspecialized task tool agent, hidden from main list

Phase 1: Core Purpose (Required)

Ask these first—they shape everything else:

  1. "What should this agent do?"

- Get the core task/domain - Examples: "review code", "help with deployments", "research topics"

  1. "What should trigger this agent?"

- Specific phrases, contexts, file types - Becomes the description field

  1. "What expertise/persona should it have?"

- Tone, boundaries, specialization - Shapes the system prompt

Phase 1.5: Research the Domain

MUST NOT assume knowledge is current. After understanding the broad strokes:

  • Search for current best practices in the domain
  • Check for updates to frameworks, tools, or APIs the agent will work with
  • Look up documentation for any unfamiliar technologies mentioned
  • Find examples of how experts approach similar tasks

This research informs better questions in Phase 2 and produces a more capable agent.

Example: User wants an agent for "Next.js deployments" → Research current Next.js deployment patterns, Vercel vs self-hosted, App Router vs Pages Router, common pitfalls, etc.

Phase 2: Capabilities (Ask broadly, then drill down)

  1. "What permissions does this agent need?" (Use Question Tool)

- Options: "Standard (Recommended)", "Read-Only", "Full Access", "Custom" - Standard: Do NOT add bash, read, write, edit to config. Rely on defaults. - Read-Only: Explicitly deny write/edit/bash. - Full Access: Allow bash * if needed. - Custom: Ask specific follow-ups.

  1. "Should this agent use any skills?"

- If yes: "Which ones?" - ALWAYS configure permission.skill with "*": "deny" and explicit allows. - This applies even if other permissions are standard.

  1. "Is this a subagent?"

- If yes: set mode: subagent - If no: leave mode undefined (standard)

Phase 3: Details (Optional—user MAY skip)

  1. "Any specific model preference?" (most users skip)
  2. "Custom temperature/sampling?" (most users skip)
  3. "Maximum steps before stopping?" (most users skip)

Phase 4: Review & Refine

  1. Show the draft config and prompt, ask for feedback

- "Here's what I've created. Anything you'd like to change?" - Iterate until user is satisfied

Key principle: Start broad, get specific only where the user shows interest. MUST NOT overwhelm with options like top_p unless asked.

Be flexible: If the user provides lots of info upfront, adapt—MUST NOT rigidly follow the phases. If they say "I want a code review agent that can't run shell commands", you already have answers to multiple questions.

<system_prompt_structure>

Recommended Structure

# Role and Objective
[Agent purpose and scope]

# Instructions
- Core behavioral rules
- What to always/never do

## Sub-instructions (optional)
More detailed guidance for specific areas.

# Workflow
1. First, [step]
2. Then, [step]
3. Finally, [step]

# Output Format
Specify exact format expected.

# Examples (optional)
<examples>
<example>
<input>User request</input>
<output>Expected response</output>
</example>
</examples>

XML Tags (Recommended)

XML tags improve clarity and parseability across all models:

TagPurpose
<instructions>Core behavioral rules
<context>Background information
<examples>Few-shot demonstrations
<thinking>Chain-of-thought reasoning
<output>Final response format

Best practices:

  • Be consistent with tag names throughout
  • Nest tags for hierarchy: <outer><inner></inner></outer>
  • Reference tags in instructions: "Using the data in <context> tags..."

Example:

<instructions>
1. Analyze the code in <code> tags
2. List issues in <findings> tags
3. Suggest fixes in <recommendations> tags
</instructions>

Description Field (Critical)

The description determines when the agent triggers.

Primary Agents: Keep it extremely concise (PRECISELY 3 words). The user selects these manually or via very clear intent. Any Other Agents: Must be specific and exhaustive to ensure correct routing by the task tool. Template (Any Other Agents): [Role/Action]. Use when [triggers]. Examples: - user: "trigger" -> action

Good (Primary):

Code review expert.

Good (Any Other Agents):

Code review specialist. Use when user says "review this PR", "check my code",
"find bugs".

Examples:
- user: "review" -> check code
- user: "scan" -> check code

Prompt Altitude

Find the balance between too rigid and too vague:

❌ Too Rigid✅ Right Altitude❌ Too Vague
Hardcoded if-else logicClear heuristics + flexibility"Be helpful"
"If X then always Y""Generally prefer X, but use judgment"No guidance

</system_prompt_structure>

<agentic_components>

For agents that use tools in a loop, SHOULD include these reminders:

# Persistence
Keep working until the user's request is fully resolved. Only yield
control when you're confident the task is complete.

# Tool Usage
If unsure about something, use tools to gather information.
Do NOT guess or make up answers.

# Planning (optional)
Think step-by-step before each action. Reflect on results before
proceeding.

</agentic_components>

Control what agents can access.

CRITICAL: Avoid Overengineering

  • Do NOT list permissions for standard tools (read, write, edit, bash) unless the user explicitly asks for restrictions or non-standard access.
  • Rely on system defaults for most agents.
  • Skills are the exception: You MUST always configure permission.skill to whitelist specific skills and deny others.
# Standard Agent (minimal config)
permission:
  skill:
    "*": "deny"
    "my-skill": "allow"

# Restricted Agent (explicit config)
permission:
  edit: "ask"
  bash:
    "*": "deny"
  skill:
    "*": "deny"

Full reference: See references/opencode-config.md

Legacy Configuration

Agents may occasionally work on legacy projects using outdated frontmatter (e.g., tools:, maxSteps:). You MUST correct these to the modern permission: and steps: fields when encountered.

<enhancement_workflow>

When improving an agent, diagnose through questions:

  1. "What's not working well?" — Get specific symptoms
  2. "Can you show me an example where it failed?" — Understand the gap
  3. "What should it have done instead?" — Define success

Then propose targeted fixes:

SymptomLikely CauseFix
Triggers too oftenDescription too broadAdd specific contexts
Misses triggersDescription too narrowAdd trigger phrases
Wrong outputsPrompt ambiguousAdd explicit instructions
Executes dangerous commandsLoose bash permissionsRestrict with patterns
Uses wrong skillsNo skill restrictionsConfigure permission.skill

MUST show proposed changes and ask for confirmation before applying.

</enhancement_workflow>

Restricted Code Review Agent

---
description: Safe code reviewer.
mode: primary
permission:
  edit: "ask"
  bash: "deny"
  write: "deny"
  external_directory: "deny"
---
You are a code review specialist. Analyze code for bugs, security issues,
and improvements. Never modify files directly.

Deployment Agent (Any Other Agents)

---
description: |-
  Deployment helper. Use when user says "deploy to staging", "push to prod",
  "release version".

  Examples:
  - user: "deploy" -> run deployment
  - user: "release" -> run deployment
mode: subagent
permission:
  bash:
    "*": "deny"
    "git *": "allow"
    "npm run build": "allow"
    "npm run deploy:*": "ask"
  skill:
    "*": "deny"
    "deploy-checklist": "allow"
---
You are a deployment specialist...

<quality_checklist>

Before showing the final agent to the user:

  • Asked about core purpose and triggers
  • Researched the domain (MUST NOT assume knowledge is current)
  • description has concrete trigger examples
  • mode discussed and set appropriately
  • System prompt uses second person
  • Asked about tool/permission needs (MUST NOT assume)
  • Output format is specified if relevant
  • Showed draft to user and got feedback
  • User confirmed they're happy with result

</quality_checklist>

References

  • references/agent-patterns.md - Design patterns and prompt engineering
  • references/opencode-config.md - Full frontmatter schema, tools, permissions

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

28.3%
按下载量换算221

OpenCode

26.18%
按下载量换算205

Codex

18.1%
按下载量换算142

Gemini CLI

13.46%
按下载量换算105

Antigravity

7.59%
按下载量换算59

windsurf

3.92%
按下载量换算31

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/igorwarzocha/opencode-workflows --skill agent-architect;npx skills add igorwarzocha/opencode-workflows --skill "agent-architect" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills