Token导航 LogoToken导航TokenDH.com
研究检索只读github未标认证来源可访问clear审计通过

anthropic-architectAnthropic 架构师

Agent Skill

anthropic-architect 用于记录任务执行中的错误、用户纠正、经验和能力缺口,适合在 Codex、Claude、Cursor、Gemini CLI 中希望让 Agent 持续沉淀问题、修正和最佳实践时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

2,564

周安装

109

GitHub Stars

125

下载量

898
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/jamesrochabrun/skills --skill anthropic-architect

简介

人择建筑师技能可以帮助您:

  • 根据您的需求选择正确的基元
  • 设计可扩展、可维护的架构
  • 遵循 2025 年最佳实践
  • 避免常见的陷阱
  • 优化性能和成本
  • 关键原语:
  • 技能 - 可重用的领域专业知识
  • 代理 - 自主的复杂工作流程
  • 提示 - 简单的直接任务
  • SDK - 自定义集成
  • 核心原则:
  • 渐进式披露
  • 上下文作为资源
  • 安全设计
  • 清晰的指示
  • 适合工作的工具
  • “最好的架构是满足您要求的最简单的架构。”
  • 每周安装量
  • 109
  • 存储库
  • 詹姆斯罗查布伦/技能
  • GitHub 之星
  • 125
  • 第一次看到
  • 2天前
  • 安全审计
  • Gen Agent Trust Hub 通行证
  • 套接字通行证
  • 斯尼克通行证

SKILL.md

Anthropic Architect

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.

What This Skill Does

Helps you design the right Anthropic architecture for your project by:

  • Analyzing project requirements - Understanding complexity, scope, and constraints
  • Recommending architectures - Skills vs Agents vs Prompts vs SDK primitives
  • Applying decision rubrics - Data-driven architectural choices
  • Following best practices - 2025 Anthropic patterns and principles
  • Progressive disclosure design - Efficient context management
  • Security considerations - Safe, controllable AI systems

Why Architecture Matters

Without proper architecture:

  • Inefficient context usage and high costs
  • Poor performance and slow responses
  • Security vulnerabilities and risks
  • Difficult to maintain and scale
  • Agents reading entire skill contexts unnecessarily
  • Mixed concerns and unclear boundaries

With engineered architecture:

  • Optimal context utilization
  • Fast, focused responses
  • Secure, controlled operations
  • Easy to maintain and extend
  • Progressive disclosure of information
  • Clear separation of concerns
  • Scalable and reusable components

Quick Start

Analyze Your Project

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]

Get Architecture Recommendation

The skill will provide:

  1. Recommended architecture - Specific primitives to use
  2. Decision reasoning - Why this architecture fits
  3. Implementation guidance - How to build it
  4. Best practices - What to follow
  5. Example patterns - Similar successful architectures

The Four Anthropic Primitives

1. Skills (Prompt-Based Meta-Tools)

What: Organized folders of instructions, scripts, and resources that agents can discover and load dynamically.

When to use:

  • ✅ Specialized domain knowledge needed
  • ✅ Reusable across multiple projects
  • ✅ Complex, multi-step workflows
  • ✅ Reference materials required
  • ✅ Progressive disclosure beneficial

When NOT to use:

  • ❌ Simple, one-off tasks
  • ❌ Project-specific logic only
  • ❌ No need for reusability

Example use cases:

  • Prompt engineering expertise
  • Design system generation
  • Code review guidelines
  • Domain-specific knowledge (finance, medical, legal)

2. Agents/Subagents (Autonomous Task Handlers)

What: Specialized agents with independent system prompts, dedicated context windows, and specific tool permissions.

When to use:

  • ✅ Complex, multi-step autonomous tasks
  • ✅ Need for isolated context
  • ✅ Different tool permissions required
  • ✅ Parallel task execution
  • ✅ Specialized expertise per task type

When NOT to use:

  • ❌ Simple queries or lookups
  • ❌ Shared context required
  • ❌ Sequential dependencies
  • ❌ Resource-constrained environments

Example use cases:

  • Code exploration and analysis
  • Test generation and execution
  • Documentation generation
  • Security audits
  • Performance optimization

3. Direct Prompts (Simple Instructions)

What: Clear, explicit instructions passed directly to Claude without additional structure.

When to use:

  • ✅ Simple, straightforward tasks
  • ✅ One-time operations
  • ✅ Quick questions or clarifications
  • ✅ No need for specialization
  • ✅ Minimal context required

When NOT to use:

  • ❌ Complex, multi-step processes
  • ❌ Need for reusability
  • ❌ Requires domain expertise
  • ❌ Multiple related operations

Example use cases:

  • Code explanations
  • Quick refactoring
  • Simple bug fixes
  • Documentation updates
  • Direct questions

4. SDK Primitives (Custom Workflows)

What: Low-level building blocks from the Claude Agent SDK to create custom agent workflows.

When to use:

  • ✅ Unique workflow requirements
  • ✅ Custom tool integration needed
  • ✅ Specific feedback loops required
  • ✅ Integration with existing systems
  • ✅ Fine-grained control needed

When NOT to use:

  • ❌ Standard use cases covered by Skills/Agents
  • ❌ Limited development resources
  • ❌ Maintenance burden concern
  • ❌ Faster time-to-market priority

Example use cases:

  • Custom CI/CD integration
  • Specialized code analysis pipelines
  • Domain-specific automation
  • Integration with proprietary systems

Decision Rubric

Use this rubric to determine the right architecture:

Task Complexity Analysis

Low Complexity → Direct Prompts

  • Single operation
  • Clear input/output
  • No dependencies
  • < 5 steps

Medium Complexity → Skills

  • Multiple related operations
  • Reusable patterns
  • Reference materials helpful
  • 5-20 steps

High Complexity → Agents/Subagents

  • Multi-step autonomous workflow
  • Needs isolated context
  • Different tool permissions
  • 20 steps or parallel tasks

Custom Complexity → SDK Primitives

  • Unique workflows
  • System integration required
  • Custom tools needed
  • Specific feedback loops

Reusability Assessment

Single Use → Direct Prompts

  • One-time task
  • Project-specific
  • No future reuse

Team Reuse → Skills

  • Multiple team members benefit
  • Common workflows
  • Shareable knowledge

Organization Reuse → Skills + Marketplace

  • Cross-team benefit
  • Standard patterns
  • Company-wide knowledge

Product Feature → SDK Primitives

  • End-user facing
  • Production deployment
  • Custom integration

Context Management Needs

Minimal Context → Direct Prompts

  • Self-contained task
  • No external references
  • Simple instructions

Structured Context → Skills

  • Progressive disclosure needed
  • Reference materials required
  • Organized information

Isolated Context → Agents/Subagents

  • Separate concerns
  • Avoid context pollution
  • Parallel execution

Custom Context → SDK Primitives

  • Specific context handling
  • Integration requirements
  • Fine-grained control

Security & Control Requirements

Basic Safety → Direct Prompts + Skills

  • Standard guardrails
  • No sensitive operations
  • Read-only or low-risk

Controlled Access → Agents with Tool Restrictions

  • Specific tool permissions
  • Allowlist approach
  • Confirmation required

High Security → SDK Primitives + Custom Controls

  • Deny-all default
  • Explicit confirmations
  • Audit logging
  • Custom security layers

Architecture Patterns

Pattern 1: Skills-First Architecture

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:

  • Reusable across projects
  • Progressive disclosure
  • Easy to share and maintain
  • Clear documentation

Pattern 2: Agent-Based Architecture

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:

  • Parallel execution
  • Isolated contexts
  • Specialized expertise
  • Clear responsibilities

Pattern 3: Hybrid Architecture

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:

  • Right tool for each task
  • Optimal resource usage
  • Flexible and scalable
  • Best of all approaches

Pattern 4: SDK Custom Architecture

Use when: Unique requirements or product features

Structure:

Custom Agent SDK Implementation
├── Custom Tools
├── Specialized Feedback Loops
├── System Integrations
└── Domain-Specific Workflows

Benefits:

  • Full control
  • Custom integration
  • Unique workflows
  • Production-ready

Key Principles (2025)

1. Progressive Disclosure

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.

2. Context as Resource

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.

3. Clear Instructions

What: Explicit, unambiguous directions.

Why: Claude 4.x responds best to clarity.

How: Be specific, define output format, provide examples, avoid vagueness.

4. Security by Design

What: Deny-all default, allowlist approach.

Why: Safe, controlled AI systems.

How: Limit tool access, require confirmations, audit operations, block dangerous commands.

5. Thinking Capabilities

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.

6. Two-Message Pattern

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.

Reference Materials

All architectural patterns, decision frameworks, and examples are in the references/ directory:

  • decision_rubric.md - Comprehensive decision framework
  • architectural_patterns.md - Detailed pattern catalog
  • best_practices.md - 2025 Anthropic best practices
  • use_case_examples.md - Real-world architecture examples

Usage Examples

Example 1: Determining Architecture for Content Generation

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:

  • Medium complexity (structured workflow)
  • High reusability (team-wide)
  • Domain expertise needed (content, SEO, brand)
  • Progressive disclosure beneficial

Recommendation: Skills-First Architecture

  • Create content-generator skill
  • Include brand voice references
  • SEO guidelines in references
  • Example templates
  • Progressive disclosure for different content types

Example 2: Code Refactoring Tool

Input:

Using anthropic-architect, I want to:
- Analyze codebase for refactoring opportunities
- Generate refactoring plan
- Execute refactoring with tests
- Review and validate changes

Analysis:

  • High complexity (multi-step, autonomous)
  • Different contexts needed (explore, plan, code, review)
  • Parallel execution beneficial
  • Tool permissions vary by stage

Recommendation: Agent-Based Architecture

  • Main orchestrator agent
  • Explore subagent (read-only, codebase analysis)
  • Plan subagent (planning, no execution)
  • Code subagent (write permissions)
  • Review subagent (validation, test execution)

Example 3: Simple Code Review

Input:

Using anthropic-architect, I need to:
- Review this PR for bugs
- Check code style
- Suggest improvements

Analysis:

  • Low complexity (single operation)
  • One-time task
  • No reusability needed
  • Minimal context

Recommendation: Direct Prompt

  • Simple, clear instructions
  • No skill/agent overhead
  • Fast execution
  • Sufficient for task

Example 4: Custom CI/CD Integration

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:

  • Custom complexity
  • System integration required
  • Production deployment
  • Unique workflows

Recommendation: SDK Primitives

  • Build custom agent with SDK
  • Implement custom tools
  • Create specialized feedback loops
  • Integration with CI system

Best Practices Checklist

When designing your architecture:

  • Analyzed task complexity accurately
  • Considered reusability requirements
  • Evaluated context management needs
  • Assessed security requirements
  • Applied progressive disclosure where beneficial
  • Chose simplest solution that works
  • Documented architectural decisions
  • Planned for maintenance and updates
  • Considered cost implications
  • Validated with prototype/POC

Common Anti-Patterns

Anti-Pattern 1: Over-Engineering

Problem: Using Agents/SDK for simple tasks

Solution: Start simple, scale complexity as needed

Anti-Pattern 2: Context Dumping

Problem: Loading entire skills into context

Solution: Use progressive disclosure, query tools

Anti-Pattern 3: Mixed Concerns

Problem: Single skill/agent doing too much

Solution: Separate concerns, use subagents or multiple skills

Anti-Pattern 4: No Security Boundaries

Problem: Full tool access for all agents

Solution: Allowlist approach, minimal permissions

Anti-Pattern 5: Ignoring Reusability

Problem: Recreating same prompts repeatedly

Solution: Extract to skills, share across projects

Getting Started

Step 1: Describe Your Project

Provide clear requirements, complexity level, and constraints.

Step 2: Receive Recommendation

Get tailored architecture with reasoning.

Step 3: Review Patterns

Explore similar successful architectures.

Step 4: Implement

Follow implementation guidance.

Step 5: Iterate

Refine based on results and feedback.

Summary

The Anthropic Architect skill helps you:

  • Choose the right primitives for your needs
  • Design scalable, maintainable architectures
  • Follow 2025 best practices
  • Avoid common pitfalls
  • Optimize for performance and cost

Key Primitives:

  • Skills - Reusable domain expertise
  • Agents - Autonomous complex workflows
  • Prompts - Simple direct tasks
  • SDK - Custom integrations

Core Principles:

  • Progressive disclosure
  • Context as resource
  • Security by design
  • Clear instructions
  • Right tool for the job

"The best architecture is the simplest one that meets your requirements."

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

能力 5

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

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

平台分布

Claude Code

30.55%
按下载量换算274

OpenCode

24.71%
按下载量换算222

Gemini CLI

16.39%
按下载量换算147

Codex

12.52%
按下载量换算112

Antigravity

7.32%
按下载量换算66

windsurf

3.72%
按下载量换算33

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills