anthropic-architect by jamesrochabrun/skills
npx skills add https://github.com/jamesrochabrun/skills --skill anthropic-architect为基于 Anthropic 的项目提供专业的架构指导。分析您的需求,并提供关于使用 Skills、Agents、Subagents、Prompts 和 SDK 原语的最佳架构的定制化建议。
通过以下方式帮助您为项目设计合适的 Anthropic 架构:
没有合适的架构会导致:
经过设计的架构能带来:
Using the anthropic-architect skill, help me determine the best
architecture for: [describe your project]
Requirements:
- [List your key requirements]
- [Complexity level]
- [Reusability needs]
- [Security constraints]
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
该技能将提供:
是什么: 指令、脚本和资源的有组织文件夹,代理可以动态发现和加载。
何时使用:
何时不使用:
示例用例:
是什么: 具有独立系统提示、专用上下文窗口和特定工具权限的专用代理。
何时使用:
何时不使用:
示例用例:
是什么: 清晰、明确的指令,直接传递给 Claude,无需额外结构。
何时使用:
何时不使用:
示例用例:
是什么: 来自 Claude Agent SDK 的低级构建块,用于创建自定义代理工作流。
何时使用:
何时不使用:
示例用例:
使用此准则来确定正确的架构:
低复杂性 → Direct Prompts
中等复杂性 → Skills
高复杂性 → Agents/Subagents
20 个步骤或并行任务
自定义复杂性 → SDK Primitives
单次使用 → Direct Prompts
团队复用 → Skills
组织复用 → Skills + Marketplace
产品功能 → SDK Primitives
最小上下文 → Direct Prompts
结构化上下文 → Skills
隔离上下文 → Agents/Subagents
自定义上下文 → SDK Primitives
基本安全 → Direct Prompts + Skills
受控访问 → Agents with Tool Restrictions
高安全性 → SDK Primitives + Custom Controls
适用场景: 构建可复用的专业知识和工作流时
结构:
Project
├── skills/
│ ├── domain-expert/
│ │ ├── SKILL.md
│ │ └── references/
│ │ ├── patterns.md
│ │ ├── best_practices.md
│ │ └── examples.md
│ └── workflow-automation/
│ ├── SKILL.md
│ └── scripts/
│ └── automate.sh
└── .claude/
└── config
优势:
适用场景: 具有隔离关注点的复杂自主任务时
结构:
Main Agent (orchestrator)
├── Explore Agent (codebase analysis)
├── Plan Agent (task planning)
├── Code Agent (implementation)
└── Review Agent (validation)
优势:
适用场景: 需求多样的复杂项目时
结构:
Main Conversation
├── Direct Prompts (simple tasks)
├── Skills (reusable expertise)
│ ├── code-review-skill
│ └── testing-skill
└── Subagents (complex workflows)
├── Explore Agent
└── Plan Agent
优势:
适用场景: 独特需求或产品功能时
结构:
Custom Agent SDK Implementation
├── Custom Tools
├── Specialized Feedback Loops
├── System Integrations
└── Domain-Specific Workflows
优势:
是什么: 只在需要时展示需要的内容。
为什么: 避免上下文限制,降低成本,提高性能。
如何做: 用基于任务的导航组织技能,提供查询工具,分层结构化信息。
是什么: 将上下文窗口视为宝贵、有限的资源。
为什么: 每个 token 都计入限制和成本。
如何做: 使用渐进式披露,优先检索而非全量加载,积极压缩,定期重置。
是什么: 明确、无歧义的指示。
为什么: Claude 4.x 对清晰度响应最佳。
如何做: 要具体,定义输出格式,提供示例,避免模糊。
是什么: 默认全部拒绝,采用允许列表方法。
为什么: 安全、可控的 AI 系统。
如何做: 限制工具访问,要求确认,审计操作,阻止危险命令。
是什么: 利用 Claude 的扩展思考模式。
为什么: 对于复杂推理能获得更好的结果。
如何做: 要求逐步思考,允许工具使用后反思,引导初始思考。
是什么: 使用元消息提供上下文,而不会造成 UI 混乱。
为什么: 在提供必要上下文的同时保持 UI 简洁。
如何做: 为系统消息设置 isMeta: true,用于技能加载,保持 UI 专注。
所有架构模式、决策框架和示例都在 references/ 目录中:
输入:
Using anthropic-architect, I need to build a system that:
- Generates blog posts from product features
- Ensures brand voice consistency
- Includes SEO optimization
- Reusable across marketing team
分析:
建议: Skills-First 架构
content-generator 技能输入:
Using anthropic-architect, I want to:
- Analyze codebase for refactoring opportunities
- Generate refactoring plan
- Execute refactoring with tests
- Review and validate changes
分析:
建议: 基于 Agent 的架构
输入:
Using anthropic-architect, I need to:
- Review this PR for bugs
- Check code style
- Suggest improvements
分析:
建议: Direct Prompt
输入:
Using anthropic-architect, I want to:
- Integrate Claude into CI pipeline
- Custom tool for deployment validation
- Specific workflow for our stack
- Production feature
分析:
建议: SDK Primitives
设计架构时:
问题: 对简单任务使用 Agents/SDK
解决方案: 从简单开始,根据需要扩展复杂性
问题: 将整个技能加载到上下文中
解决方案: 使用渐进式披露,查询工具
问题: 单个技能/代理做太多事情
解决方案: 分离关注点,使用子代理或多个技能
问题: 所有代理拥有完整的工具访问权限
解决方案: 允许列表方法,最小权限原则
问题: 重复创建相同的提示
解决方案: 提取到技能中,跨项目共享
提供清晰的需求、复杂性级别和约束条件。
获取带有理由的定制化架构。
探索类似成功的架构。
遵循实施指南。
根据结果和反馈进行优化。
Anthropic Architect 技能帮助您:
关键原语:
核心原则:
"最好的架构是能满足您需求的最简单的那个。"
每周安装量
79
仓库
GitHub 星标数
111
首次出现
Jan 22, 2026
安全审计
安装于
opencode65
claude-code62
gemini-cli60
codex59
cursor53
github-copilot52
Expert architectural guidance for Anthropic-based projects. Analyze your requirements and receive tailored recommendations on the optimal architecture using Skills, Agents, Subagents, Prompts, and SDK primitives.
Helps you design the right Anthropic architecture for your project by:
Without proper architecture:
With engineered architecture:
Using the anthropic-architect skill, help me determine the best
architecture for: [describe your project]
Requirements:
- [List your key requirements]
- [Complexity level]
- [Reusability needs]
- [Security constraints]
The skill will provide:
What: Organized folders of instructions, scripts, and resources that agents can discover and load dynamically.
When to use:
When NOT to use:
Example use cases:
What: Specialized agents with independent system prompts, dedicated context windows, and specific tool permissions.
When to use:
When NOT to use:
Example use cases:
What: Clear, explicit instructions passed directly to Claude without additional structure.
When to use:
When NOT to use:
Example use cases:
What: Low-level building blocks from the Claude Agent SDK to create custom agent workflows.
When to use:
When NOT to use:
Example use cases:
Use this rubric to determine the right architecture:
Low Complexity → Direct Prompts
Medium Complexity → Skills
High Complexity → Agents/Subagents
20 steps or parallel tasks
Custom Complexity → SDK Primitives
Single Use → Direct Prompts
Team Reuse → Skills
Organization Reuse → Skills + Marketplace
Product Feature → SDK Primitives
Minimal Context → Direct Prompts
Structured Context → Skills
Isolated Context → Agents/Subagents
Custom Context → SDK Primitives
Basic Safety → Direct Prompts + Skills
Controlled Access → Agents with Tool Restrictions
High Security → SDK Primitives + Custom Controls
Use when: Building reusable expertise and workflows
Structure:
Project
├── skills/
│ ├── domain-expert/
│ │ ├── SKILL.md
│ │ └── references/
│ │ ├── patterns.md
│ │ ├── best_practices.md
│ │ └── examples.md
│ └── workflow-automation/
│ ├── SKILL.md
│ └── scripts/
│ └── automate.sh
└── .claude/
└── config
Benefits:
Use when: Complex autonomous tasks with isolated concerns
Structure:
Main Agent (orchestrator)
├── Explore Agent (codebase analysis)
├── Plan Agent (task planning)
├── Code Agent (implementation)
└── Review Agent (validation)
Benefits:
Use when: Complex projects with varied requirements
Structure:
Main Conversation
├── Direct Prompts (simple tasks)
├── Skills (reusable expertise)
│ ├── code-review-skill
│ └── testing-skill
└── Subagents (complex workflows)
├── Explore Agent
└── Plan Agent
Benefits:
Use when: Unique requirements or product features
Structure:
Custom Agent SDK Implementation
├── Custom Tools
├── Specialized Feedback Loops
├── System Integrations
└── Domain-Specific Workflows
Benefits:
What: Show only what's needed, when it's needed.
Why: Avoids context limits, reduces costs, improves performance.
How: Organize skills with task-based navigation, provide query tools, structure information hierarchically.
What: Treat context window as precious, limited resource.
Why: Every token counts toward limits and costs.
How: Use progressive disclosure, prefer retrieval over dumping, compress aggressively, reset periodically.
What: Explicit, unambiguous directions.
Why: Claude 4.x responds best to clarity.
How: Be specific, define output format, provide examples, avoid vagueness.
What: Deny-all default, allowlist approach.
Why: Safe, controlled AI systems.
How: Limit tool access, require confirmations, audit operations, block dangerous commands.
What: Leverage Claude's extended thinking mode.
Why: Better results for complex reasoning.
How: Request step-by-step thinking, allow reflection after tool use, guide initial thinking.
What: Use meta messages for context without UI clutter.
Why: Clean UX while providing necessary context.
How: Set isMeta: true for system messages, use for skill loading, keep UI focused.
All architectural patterns, decision frameworks, and examples are in the references/ directory:
Input:
Using anthropic-architect, I need to build a system that:
- Generates blog posts from product features
- Ensures brand voice consistency
- Includes SEO optimization
- Reusable across marketing team
Analysis:
Recommendation: Skills-First Architecture
content-generator skillInput:
Using anthropic-architect, I want to:
- Analyze codebase for refactoring opportunities
- Generate refactoring plan
- Execute refactoring with tests
- Review and validate changes
Analysis:
Recommendation: Agent-Based Architecture
Input:
Using anthropic-architect, I need to:
- Review this PR for bugs
- Check code style
- Suggest improvements
Analysis:
Recommendation: Direct Prompt
Input:
Using anthropic-architect, I want to:
- Integrate Claude into CI pipeline
- Custom tool for deployment validation
- Specific workflow for our stack
- Production feature
Analysis:
Recommendation: SDK Primitives
When designing your architecture:
Problem: Using Agents/SDK for simple tasks
Solution: Start simple, scale complexity as needed
Problem: Loading entire skills into context
Solution: Use progressive disclosure, query tools
Problem: Single skill/agent doing too much
Solution: Separate concerns, use subagents or multiple skills
Problem: Full tool access for all agents
Solution: Allowlist approach, minimal permissions
Problem: Recreating same prompts repeatedly
Solution: Extract to skills, share across projects
Provide clear requirements, complexity level, and constraints.
Get tailored architecture with reasoning.
Explore similar successful architectures.
Follow implementation guidance.
Refine based on results and feedback.
The Anthropic Architect skill helps you:
Key Primitives:
Core Principles:
"The best architecture is the simplest one that meets your requirements."
Weekly Installs
79
Repository
GitHub Stars
111
First Seen
Jan 22, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
opencode65
claude-code62
gemini-cli60
codex59
cursor53
github-copilot52
AI 代码实施计划编写技能 | 自动化开发任务分解与 TDD 流程规划工具
50,900 周安装
二进制初步分析指南:使用ReVa工具快速识别恶意软件与逆向工程
69 周安装
PrivateInvestigator 道德人员查找工具 | 公开数据调查、反向搜索与背景研究
69 周安装
TorchTitan:PyTorch原生分布式大语言模型预训练平台,支持4D并行与H100 GPU加速
69 周安装
screenshot 截图技能:跨平台桌面截图工具,支持macOS/Linux权限管理与多模式捕获
69 周安装
tmux进程管理最佳实践:交互式Shell初始化、会话命名与生命周期管理
69 周安装
Git Rebase Sync:安全同步分支的Git变基工具,解决冲突与备份
69 周安装