Scope
This skill:
- - ✅ Guides architecture decisions
- ✅ Provides provisioning commands for user to run
- ✅ Documents infrastructure patterns
User-driven model:
- - User provides cloud credentials when needed
- User runs provisioning commands
- Skill guides decisions and generates commands
This skill does NOT:
- - ❌ Store or access cloud credentials directly
- ❌ Run provisioning commands automatically
- ❌ Modify infrastructure without user confirmation
For implementation: User runs commands skill provides, or uses server skill for execution.
Quick Reference
| Topic | File |
|---|
| Architecture patterns | INLINECODE1 |
| Provider commands |
providers.md |
| Backup strategies |
backups.md |
Core Rules
1. User Runs Commands
Skill generates commands, user executes:
CODEBLOCK0
2. Required Tools (User Installs)
| Provider | Tool | Install |
|---|
| Hetzner | INLINECODE4 | brew install hcloud |
| AWS |
aws | brew install awscli |
| DigitalOcean |
doctl | brew install doctl |
| Docker |
docker | Docker Desktop |
3. Credential Handling
- - User sets credentials in their environment
- Skill never stores or logs credential values
- Commands reference env vars:
$HCLOUD_TOKEN, INLINECODE9
4. Architecture Guidance
| Stage | Recommended |
|---|
| MVP | Single VPS + Docker Compose |
| Growth |
Dedicated DB + load balancer |
| Scale | Multi-region + CDN |
5. Decision Framework
| Question | Answer |
|---|
| How to structure infra? | ✅ This skill |
| Should I add another server? |
✅ This skill |
| How to configure nginx? | Use
server skill |
| How to write Dockerfile? | Use
docker skill |
6. Backup Strategy
| Data | Method | Frequency |
|---|
| Database | pg_dump → S3/B2 | Daily |
| Volumes |
Snapshots | Weekly |
| Config | Git | Every change |
范围
此技能:
- - ✅ 指导架构决策
- ✅ 提供供用户运行的配置命令
- ✅ 记录基础设施模式
用户驱动模型:
- - 用户在需要时提供云凭证
- 用户运行配置命令
- 技能指导决策并生成命令
此技能不执行以下操作:
- - ❌ 直接存储或访问云凭证
- ❌ 自动运行配置命令
- ❌ 未经用户确认修改基础设施
实施方式: 用户运行技能提供的命令,或使用 server 技能执行。
快速参考
providers.md |
| 备份策略 | backups.md |
核心规则
1. 用户运行命令
技能生成命令,用户执行:
Agent: 要创建服务器,请运行:
hcloud server create --name web1 --type cx21 --image ubuntu-24.04
这需要在您的环境中设置 HCLOUD_TOKEN。
用户:[运行命令]
2. 所需工具(用户安装)
| 提供商 | 工具 | 安装方式 |
|---|
| Hetzner | hcloud | brew install hcloud |
| AWS |
aws | brew install awscli |
| DigitalOcean | doctl | brew install doctl |
| Docker | docker | Docker Desktop |
3. 凭证处理
- - 用户在其环境中设置凭证
- 技能从不存储或记录凭证值
- 命令引用环境变量:$HCLOUDTOKEN、$AWSACCESSKEYID
4. 架构指导
| 阶段 | 推荐方案 |
|---|
| MVP | 单台VPS + Docker Compose |
| 增长 |
专用数据库 + 负载均衡器 |
| 扩展 | 多区域 + CDN |
5. 决策框架
| 问题 | 答案 |
|---|
| 如何构建基础设施? | ✅ 此技能 |
| 是否应添加另一台服务器? |
✅ 此技能 |
| 如何配置nginx? | 使用 server 技能 |
| 如何编写Dockerfile? | 使用 docker 技能 |
6. 备份策略
| 数据 | 方法 | 频率 |
|---|
| 数据库 | pg_dump → S3/B2 | 每日 |
| 卷 |
快照 | 每周 |
| 配置 | Git | 每次变更 |