Project Architect — Structured Planning Protocol
Version: 1.1.0 | Author: Shadows Company | License: MIT
WHEN TO TRIGGER
- - Starting a new project from scratch
- Planning a major feature or module
- User says "plan this", "architect", "design the system"
- Refactoring a large codebase
- Breaking a monolith into services
WHEN NOT TO TRIGGER
- - Small bug fixes or single-file changes
- User already has a detailed plan
- Quick prototyping / experimentation
PREREQUISITES
No binaries required. This is a pure planning and reasoning skill. It produces structured text output (project plans, architecture documents, task breakdowns) without executing any commands or requiring any external tools.
PROTOCOL — 5 PHASES
Phase 1 — REQUIREMENTS CAPTURE
Ask the user (max 5 questions):
- 1. What — What does this system/feature do? (core functionality)
- Who — Who uses it? (user personas)
- Scale — Expected load/data volume? (performance requirements)
- Constraints — Tech stack preferences, budget, timeline?
- Integration — What existing systems does it connect to?
Phase 2 — ARCHITECTURE DESIGN
Based on requirements, define:
System Components:
CODEBLOCK0
For each component:
- - Responsibility (single purpose)
- Interface (inputs/outputs)
- Technology choice (with rationale)
- Data model (key entities)
Architecture Decisions Record (ADR):
CODEBLOCK1
Phase 3 — TASK BREAKDOWN
Break the project into implementable tasks:
CODEBLOCK2
Rules:
- - Each task must be completable in 1-4 hours
- Dependencies explicitly stated
- Effort estimate for each task
- Tasks ordered by dependency chain
Phase 4 — DEPENDENCY MAPPING
Identify critical path:
- 1. Map task dependencies as a directed graph
- Identify the longest path (critical path)
- Identify parallelizable work streams
- Flag external dependencies (APIs, approvals, data)
Phase 5 — MILESTONE DEFINITION
Define 3-5 milestones:
### Milestone 1: Foundation (Week 1)
- [x] Project setup, CI/CD pipeline
- [x] Core data models
- [x] Basic API skeleton
**Demo**: API responds to health check
### Milestone 2: Core Features (Week 2-3)
- [ ] Feature A implementation
- [ ] Feature B implementation
**Demo**: User can perform primary workflow
### Milestone 3: Polish & Deploy (Week 4)
- [ ] Error handling, edge cases
- [ ] Documentation
- [ ] Production deployment
**Demo**: Live system accessible to users
SECURITY CONSIDERATIONS
This skill is purely advisory — it generates project plans, architecture documents, and task breakdowns as text output. It does not execute commands, read sensitive files, make network calls, or modify any configuration. Zero risk profile.
OUTPUT FORMAT
CODEBLOCK4
RULES
- 1. Ask before assuming — never design without understanding requirements
- Simple first — start with the simplest architecture that could work
- No over-engineering — design for current needs, not hypothetical futures
- Explicit dependencies — every task must state what it depends on
- Demo-driven milestones — each milestone must have a demonstrable outcome
Published by Shadows Company — "We work in the shadows to serve the Light."
项目架构师 — 结构化规划协议
版本: 1.1.0 | 作者: Shadows Company | 许可证: MIT
触发条件
- - 从零开始启动新项目
- 规划主要功能或模块
- 用户提出规划这个、架构设计、设计系统
- 重构大型代码库
- 将单体应用拆分为服务
不触发条件
- - 小规模缺陷修复或单文件变更
- 用户已有详细计划
- 快速原型开发/实验性探索
前置条件
无需任何二进制文件。这是一项纯规划和推理技能。它生成结构化文本输出(项目计划、架构文档、任务分解),无需执行任何命令或依赖外部工具。
协议 — 5个阶段
阶段1 — 需求捕获
向用户提问(最多5个问题):
- 1. 什么 — 该系统/功能做什么?(核心功能)
- 谁 — 谁使用它?(用户画像)
- 规模 — 预期负载/数据量?(性能需求)
- 约束 — 技术栈偏好、预算、时间线?
- 集成 — 它连接哪些现有系统?
阶段2 — 架构设计
基于需求,定义:
系统组件:
[组件A] --> [组件B] --> [组件C]
| |
v v
[数据库] [外部API]
每个组件:
- - 职责(单一目的)
- 接口(输入/输出)
- 技术选型(附理由)
- 数据模型(关键实体)
架构决策记录(ADR):
markdown
ADR-001:[决策标题]
- - 状态:已采纳
- 背景:[为何需要此决策]
- 决策:[决定了什么]
- 后果:[接受的权衡]
阶段3 — 任务分解
将项目分解为可执行的任务:
markdown
史诗1:[名称]
- - [ ] 任务1.1:[描述](约X小时)
- [ ] 任务1.2:[描述](约X小时)
- 依赖:任务1.1
史诗2:[名称]
- 依赖:任务1.2
规则:
- - 每个任务需在1-4小时内完成
- 明确说明依赖关系
- 每个任务附工作量估算
- 任务按依赖链排序
阶段4 — 依赖映射
识别关键路径:
- 1. 将任务依赖关系映射为有向图
- 识别最长路径(关键路径)
- 识别可并行的工作流
- 标记外部依赖(API、审批、数据)
阶段5 — 里程碑定义
定义3-5个里程碑:
markdown
里程碑1:基础建设(第1周)
- - [x] 项目搭建、CI/CD流水线
- [x] 核心数据模型
- [x] 基础API骨架
演示:API响应健康检查
里程碑2:核心功能(第2-3周)
演示:用户可执行主要工作流
里程碑3:完善与部署(第4周)
- - [ ] 错误处理、边界情况
- [ ] 文档编写
- [ ] 生产环境部署
演示:系统上线,用户可访问
安全考量
本技能纯属咨询性质——它以文本输出形式生成项目计划、架构文档和任务分解。不执行命令、不读取敏感文件、不发起网络调用、不修改任何配置。风险等级为零。
输出格式
markdown
项目计划:[名称]
日期:[YYYY-MM-DD]
1. 需求摘要
[阶段1的简洁需求]
2. 架构
[图表 + 组件描述 + ADR]
3. 任务分解
[包含任务、估算、依赖的史诗]
4. 关键路径
[依赖链可视化]
5. 里程碑
[3-5个里程碑及演示标准]
6. 风险
7. 下一步行动
[立即开始的3个首要任务]
规则
- 1. 先问再假设 — 不了解需求绝不设计
- 从简开始 — 从最简单的可行架构入手
- 避免过度工程 — 为当前需求设计,而非假设的未来
- 明确依赖 — 每个任务必须说明其依赖项
- 演示驱动里程碑 — 每个里程碑必须有可演示的成果
由Shadows Company发布 — 我们隐于暗影,服务于光明。