gsd-orchestration
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseGSD Orchestration
GSD 开发编排
"The complexity is in the system, not in your workflow." — TÂCHES
"复杂度存在于系统之中,而非你的工作流内。" — TÂCHES
Philosophy
设计理念
GSD solves context rot — the quality degradation as Claude fills its context window.
Each task runs in fresh context. Plans are atomic. Verification is built-in.
GSD 解决了上下文衰减问题——即Claude的上下文窗口被填满时,输出质量下降的问题。每个任务都在全新上下文中运行,计划是原子化的,内置验证机制。
Quick Reference
速查指南
| Command | Purpose |
|---|---|
| New project: questions → research → requirements → roadmap |
| Capture decisions for phase N (NO CODE) |
| Create atomic task plans for phase N |
| Run tasks with fresh context per task |
| Verify deliverables work as expected |
| Current position and next action |
| Archive phase, update state |
| 命令 | 用途 |
|---|---|
| 新建项目:提问→调研→需求梳理→路线图制定 |
| 记录第N阶段的决策(不涉及代码) |
| 为第N阶段创建原子化任务计划 |
| 在全新上下文中执行每个任务 |
| 验证交付成果是否符合预期 |
| 查看当前进度与下一步操作建议 |
| 归档阶段,更新项目状态 |
Parallel Execution Commands (NEW)
并行执行命令(新增)
| Command | Purpose |
|---|---|
| Execute all phases sequentially (background optional) |
| Execute phase N with parallel tasks where possible |
| Full autopilot mode for unattended execution |
| Analyze PLANs for file conflicts before parallel execution |
| Live monitoring of running background agents |
| 命令 | 用途 |
|---|---|
| 按顺序执行所有阶段(可选后台运行) |
| 尽可能以并行方式执行第N阶段的任务 |
| 全自动无人值守执行模式 |
| 并行执行前分析计划中的文件冲突 |
| 实时监控后台运行的Agent |
Core Workflow
核心工作流
gsd init → gsd discuss 1 → gsd plan 1 → gsd execute 1 → gsd verify 1 → gsd complete 1
↓
gsd discuss 2 → gsd plan 2 → ...For detailed workflow instructions, see references/WORKFLOW.md.
gsd init → gsd discuss 1 → gsd plan 1 → gsd execute 1 → gsd verify 1 → gsd complete 1
↓
gsd discuss 2 → gsd plan 2 → ...详细工作流说明,请查看 references/WORKFLOW.md。
Project Structure
项目结构
.gsd/
├── PROJECT.md # Vision, goals, tech stack (always loaded)
├── REQUIREMENTS.md # Scoped v1/v2 requirements
├── ROADMAP.md # All phases with status
├── STATE.md # Current position, blockers, decisions
└── phases/
└── phase-N/
├── CONTEXT.md # Decisions from discuss
├── ARCHITECTURE.md # AI agent architecture (if AI phase)
├── RESEARCH.md # Domain research (optional)
├── PLAN-1.md # Atomic task plan
├── PLAN-2.md # Atomic task plan
└── SUMMARY.md # What was built.gsd/
├── PROJECT.md # 愿景、目标、技术栈(始终加载)
├── REQUIREMENTS.md # 分版本的v1/v2需求
├── ROADMAP.md # 所有阶段及状态
├── STATE.md # 当前进度、阻塞问题、决策记录
└── phases/
└── phase-N/
├── CONTEXT.md # 讨论阶段的决策记录
├── ARCHITECTURE.md # AI Agent架构(若为AI相关阶段)
├── RESEARCH.md # 领域调研(可选)
├── PLAN-1.md # 原子化任务计划
├── PLAN-2.md # 原子化任务计划
└── SUMMARY.md # 阶段交付成果总结Context Engineering Rules
上下文工程规则
Critical: These rules prevent context rot.
- Fresh context per task - Clear mental state between tasks
- Load only relevant files - Never load all .gsd/ files at once
- Maximum 3 tasks per plan - Keeps execution focused
- Size limits:
- PROJECT.md: ~500 lines max
- Each PLAN.md: ~200 lines max
- RESEARCH.md: ~1000 lines max
For context engineering principles, see references/CONTEXT-ENGINEERING.md.
关键规则:这些规则用于防止上下文衰减。
- 每个任务使用全新上下文 - 任务间清空状态
- 仅加载相关文件 - 绝不一次性加载所有.gsd/目录下的文件
- 每个计划最多包含3个任务 - 保持执行聚焦
- 文件大小限制:
- PROJECT.md:最多约500行
- 每个PLAN.md:最多约200行
- RESEARCH.md:最多约1000行
上下文工程原则,请查看 references/CONTEXT-ENGINEERING.md。
Configuration
配置说明
This skill is configured for:
- Project types: Mixed (all types - adaptive based on project)
- Verification: Automated tests + manual checks
- Planning depth: Adaptive (adjust based on complexity)
- Git workflow: Atomic commits per task with conventional format
本工具的配置适用于:
- 项目类型:混合类型(自适应所有项目)
- 验证方式:自动化测试 + 人工检查
- 规划深度:自适应(根据复杂度调整)
- Git工作流:每个任务对应一次原子化提交,采用规范提交格式
Command Implementations
命令实现细节
gsd init
gsd initgsd init
gsd initContext to load: Nothing - fresh start
Process:
- Ask 5 focused questions: project description, core problem, target user, tech stack, success criteria
- Optional: Spawn research subagent for complex domains
- Generate: PROJECT.md, REQUIREMENTS.md, ROADMAP.md, STATE.md
Output: "Project initialized. Run to begin."
gsd discuss 1加载上下文:无 - 全新开始
执行流程:
- 提出5个聚焦问题:项目描述、核心问题、目标用户、技术栈、成功标准
- 可选:针对复杂领域启动调研子Agent
- 生成文件:PROJECT.md、REQUIREMENTS.md、ROADMAP.md、STATE.md
输出:"项目初始化完成。执行开始下一阶段。"
gsd discuss 1gsd discuss [N]
gsd discuss [N]gsd discuss [N]
gsd discuss [N]Context to load: PROJECT.md, ROADMAP.md (phase N), STATE.md (decisions)
CRITICAL RULE: NO CODE. NO FILE CREATION. Only conversation.
Process:
- Summarize phase goal
- Offer agent-architect for complex phases (see ARCHITECT-INTEGRATION.md)
- Identify gray areas (visual, API, data, CLI decisions)
- Ask clarifying questions until clear
- Generate
.gsd/phases/phase-N/CONTEXT.md
Output format:
undefined加载上下文:PROJECT.md、ROADMAP.md(第N阶段)、STATE.md(决策记录)
关键规则:禁止编写代码、禁止创建文件。仅用于讨论。
执行流程:
- 总结阶段目标
- 可选:针对复杂阶段提供Agent架构师支持(查看ARCHITECT-INTEGRATION.md)
- 识别模糊领域(视觉设计、API、数据、CLI相关决策)
- 提出澄清问题直至达成共识
- 生成文件:
.gsd/phases/phase-N/CONTEXT.md
输出格式:
undefinedPhase [N] Discussion Complete
第[N]阶段讨论完成
Decisions Made:
已做出的决策:
- [Decision 1 with reasoning]
- [Decision 2 with reasoning]
- [决策1及理由]
- [决策2及理由]
Out of Scope:
暂不纳入范围:
- [Deferred item with reason]
- [延迟处理的事项及理由]
Edge Cases Identified:
已识别的边缘情况:
- [Edge case 1 and how to handle]
- [Edge case 2 and how to handle]
Ready to plan? Run:
gsd plan [N]
**CONTEXT.md template**:
```markdown- [边缘情况1及处理方案]
- [边缘情况2及处理方案]
准备好制定计划了吗?执行:
gsd plan [N]
**CONTEXT.md模板**:
```markdownPhase [N] Context
第[N]阶段上下文
Decisions
决策记录
- [Topic]: [Decision] - [Reasoning]
- [Topic]: [Decision] - [Reasoning]
- [主题]: [决策内容] - [理由]
- [主题]: [决策内容] - [理由]
Out of Scope
暂不纳入范围
- [Item] - [Why deferred/rejected]
- [事项] - [延迟/拒绝的原因]
Edge Cases
边缘情况
- [Case] → [How to handle]
- [场景] → [处理方案]
Open Questions
待解决问题
- [Question that needs answering during planning]
---- [规划阶段需要回答的问题]
---gsd plan [N]
gsd plan [N]gsd plan [N]
gsd plan [N]Context to load:
- PROJECT.md (tech stack section)
- ROADMAP.md (phase N only)
- CONTEXT.md (if exists)
- ARCHITECTURE.md (if exists from agent-architect) ← Architectural decisions
- Previous phase SUMMARY.md (if exists)
Process:
-
Research (optional): Spawn researcher subagent for complex/unfamiliar domains
-
Plan: Break into 2-3 atomic tasks
- If ARCHITECTURE.md present (agent-architect was used):
- Use agent definitions (identity + task dispatch templates) → Task for implementing agents
- Use tool specifications (built-in + custom MCP + external MCP) → Task for tools + MCP setup
- Use orchestration pattern + guiding skill → Task for orchestration + interaction loop
- Reference architecture decisions in all plans
- Instruct prompts to be stored as markdown files in directory
prompts/
- Standard phases: Break phase into logical atomic tasks
- If ARCHITECTURE.md present (agent-architect was used):
-
Validate: Check plan completeness
Generate: Task plans using XML format.
For XML task templates, see references/XML-TEMPLATES.md.
Output: , , etc.
.gsd/phases/phase-N/PLAN-1.mdPLAN-2.mdPlanning depth (adaptive based on configuration):
- Quick: Minimal specs, basic acceptance criteria
- Standard: Clear descriptions, testable criteria
- Comprehensive: Detailed specs, edge cases, examples
- Adaptive: Adjust based on task complexity
Each PLAN.md should be executable - another Claude instance can implement it without additional context.
加载上下文:
- PROJECT.md(技术栈部分)
- ROADMAP.md(仅第N阶段)
- CONTEXT.md(若存在)
- ARCHITECTURE.md(若由Agent架构师生成) ← 架构决策记录
- 上一阶段的SUMMARY.md(若存在)
执行流程:
-
调研(可选):针对复杂/不熟悉的领域启动调研子Agent
-
制定计划:拆分为2-3个原子化任务
- 若存在ARCHITECTURE.md(使用了Agent架构师):
- 使用Agent定义(身份 + 任务分发模板)→ 实现Agent的任务
- 使用工具规范(内置工具 + 自定义MCP + 外部MCP)→ 工具与MCP配置任务
- 使用编排模式 + 指导工具 → 编排与交互循环任务
- 所有计划中引用架构决策
- 要求将提示词存储在目录下的markdown文件中
prompts/
- 标准阶段:将阶段拆分为逻辑独立的原子化任务
- 若存在ARCHITECTURE.md(使用了Agent架构师):
-
验证:检查计划的完整性
生成:采用XML格式的任务计划。
XML任务模板,请查看 references/XML-TEMPLATES.md。
输出:、等文件。
.gsd/phases/phase-N/PLAN-1.mdPLAN-2.md规划深度(根据配置自适应):
- 快速模式:最小化规范,基础验收标准
- 标准模式:清晰的描述,可测试的验收标准
- 全面模式:详细规范,边缘情况,示例
- 自适应模式:根据任务复杂度调整
每个PLAN.md都应是可直接执行的——其他Claude实例无需额外上下文即可实现。
gsd execute [N]
gsd execute [N]gsd execute [N]
gsd execute [N]For EACH task in phase:
Context to load (fresh per task):
- PROJECT.md (tech stack only - ~50 lines)
- Current PLAN-X.md (full)
- Relevant source files only
Process:
- Announce: "Starting Task [X]: [Name]"
- Execute according to plan
- Self-verify against acceptance criteria
- Commit (if git workflow enabled):
bash
git add -A && git commit -m "type(phase-N): description - Detail 1 - Detail 2 Co-Authored-By: Claude <noreply@anthropic.com>" - Announce: "Task [X] complete - [summary]"
- Clear context
- Next task
Commit types: feat, fix, docs, refactor, test, chore
Between tasks output:
---
✓ Task 1 complete: [one-line summary]
Clearing context for Task 2...
Loading: PROJECT.md (tech), PLAN-2.md, [relevant files]
Starting Task 2: [Name]
---Important: The "clearing context" announcement is a mental cue to actually reset context. Don't carry forward details from previous tasks.
针对阶段中的每个任务:
加载上下文(每个任务使用全新上下文):
- PROJECT.md(仅技术栈部分 - 约50行)
- 当前PLAN-X.md(完整内容)
- 仅相关源码文件
执行流程:
- 通知:"开始执行任务[X]:[任务名称]"
- 根据计划执行任务
- 根据验收标准自我验证
- 提交代码(若启用Git工作流):
bash
git add -A && git commit -m "type(phase-N): description - 细节1 - 细节2 Co-Authored-By: Claude <noreply@anthropic.com>" - 通知:"任务[X]完成 - [总结]"
- 清空上下文
- 执行下一个任务
提交类型:feat(新功能)、fix(修复)、docs(文档)、refactor(重构)、test(测试)、chore(杂项)
任务间输出:
---
✓ 任务1完成: [一行总结]
正在清空上下文以执行任务2...
正在加载: PROJECT.md(技术栈)、PLAN-2.md、[相关文件]
开始执行任务2: [任务名称]
---重要提示:“清空上下文”的通知是一个明确的信号,必须实际重置上下文,不得携带上一个任务的细节。
gsd verify [N]
gsd verify [N]gsd verify [N]
gsd verify [N]Context to load:
- ROADMAP.md (phase N goals)
- All PLAN-X.md files for phase
- STATE.md
Process:
- Extract testable deliverables from plans
- For each deliverable:
- Automated: Run test commands (based on configuration)
- Manual: Provide verification instructions
- Document results
- If all pass → suggest
gsd complete [N] - If any fail → identify failing task, suggest fix
Verification based on configuration:
- Automated tests: pytest, jest, npm test, go test, etc.
- Manual checks: curl commands, UI walkthrough, CLI usage
Output:
undefined加载上下文:
- ROADMAP.md(第N阶段目标)
- 第N阶段的所有PLAN-X.md文件
- STATE.md
执行流程:
- 从计划中提取可测试的交付成果
- 针对每个交付成果:
- 自动化验证:运行测试命令(根据配置)
- 人工验证:提供验证步骤说明
- 记录验证结果
- 若全部通过 → 建议执行
gsd complete [N] - 若有失败 → 识别失败任务,建议修复
基于配置的验证方式:
- 自动化测试:pytest、jest、npm test、go test等
- 人工检查:curl命令、UI走查、CLI使用验证
输出:
undefinedVerification Results: Phase [N]
第[N]阶段验证结果
Automated Tests
自动化测试
[✓ / ✗] Unit tests pass
[✓ / ✗] Integration tests pass
[✓ / ✗] Type checking clean
[✓ / ✗] Linter clean
[✓ / ✗] 单元测试通过
[✓ / ✗] 集成测试通过
[✓ / ✗] 类型检查通过
[✓ / ✗] 代码检查通过
Manual Checks
人工检查
- Check 1: [specific instruction]
- Check 2: [specific instruction]
- 检查1: [具体步骤]
- 检查2: [具体步骤]
Overall Status
整体状态
[PASS / FAIL with summary]
[If PASS]
All verification passed. Run to finalize.
gsd complete [N][If FAIL]
Issues found:
- Task [X]: [specific failure] Suggested action: Fix and re-verify
---[通过 / 失败及总结]
[若通过]
所有验证已通过。执行完成本阶段。
gsd complete [N][若失败]
发现问题:
- 任务[X]: [具体失败内容] 建议操作:修复后重新验证
---gsd status
gsd statusgsd status
gsd statusContext to load: STATE.md only
Output:
undefined加载上下文:仅STATE.md
输出:
undefinedGSD Status
GSD 项目状态
Project: [Name]
Phase: [N] - [Phase Name]
Status: [Not Started / Planning / Executing / Verifying]
项目: [名称]
阶段: [N] - [阶段名称]
状态: [未开始 / 规划中 / 执行中 / 验证中]
Progress
进度
[■■■□□□□□□□] 30% (3/10 phases)
[■■■□□□□□□□] 30% (3/10阶段)
Completed Phases
已完成阶段
- Phase 1: [Name] ✓
- Phase 2: [Name] ✓
- 阶段1: [名称] ✓
- 阶段2: [名称] ✓
Current Phase Tasks
当前阶段任务
- Task 1: [brief description]
- Task 2: [brief description] ← YOU ARE HERE
- Task 3: [brief description]
- 任务1: [简要描述]
- 任务2: [简要描述] ← 当前位置
- 任务3: [简要描述]
Next Action
下一步操作
gsd execute 3gsd execute 3Recent Decisions
近期决策
- [Most recent decision from STATE.md]
- [STATE.md中最新的决策]
Blockers
阻塞问题
[None / list of blockers]
---[无 / 阻塞问题列表]
---gsd complete [N]
gsd complete [N]gsd complete [N]
gsd complete [N]Process:
- Generate SUMMARY.md (deliverables, files, decisions, metrics)
- Update STATE.md (mark complete, advance to N+1)
- Update ROADMAP.md (mark requirements done)
- Optional: Git tag if milestone complete
Output: "Phase [N] complete ✓. Run for next phase."
gsd discuss [N+1]执行流程:
- 生成SUMMARY.md(交付成果、文件、决策、指标)
- 更新STATE.md(标记阶段完成,推进至N+1阶段)
- 更新ROADMAP.md(标记需求已完成)
- 可选:若为里程碑阶段,创建Git标签
输出:"第[N]阶段完成 ✓。执行开始下一阶段。"
gsd discuss [N+1]Parallel Execution Commands
并行执行命令
GSD supports parallel execution using the Fan-Out / Fan-In pattern with automatic dependency detection.
Critical Claude Code Constraints (enforced by the platform):
- No MCP tools in background agents - Use built-in tools only (Read, Write, Edit, Bash, Glob, Grep)
- No nested subagents - Orchestrator spawns all agents, agents cannot delegate
- Max ~10 concurrent agents - Batch execution for larger phases
For complete documentation, see references/PARALLEL-EXECUTION.md.
For detailed command reference, see references/COMMANDS-REFERENCE.md.
GSD 支持使用扇出/扇入模式进行并行执行,并自动检测依赖。
Claude平台关键限制(平台强制要求):
- 后台Agent无法使用MCP工具 - 仅使用内置工具(Read、Write、Edit、Bash、Glob、Grep)
- 不支持嵌套子Agent - 由编排器启动所有Agent,Agent无法再委派任务
- 最多约10个并发Agent - 大型阶段采用批量执行
完整文档,请查看 references/PARALLEL-EXECUTION.md。
命令详细参考,请查看 references/COMMANDS-REFERENCE.md。
Quick Command Summary
命令速查
| Command | Syntax | Purpose |
|---|---|---|
| | Run all phases sequentially |
| | Fan-Out/Fan-In parallel execution |
| | Full autopilot for unattended execution |
| | Detect file conflicts before parallel |
| | Real-time monitoring of background agents |
| 命令 | 语法 | 用途 |
|---|---|---|
| | 按顺序执行所有阶段 |
| | 扇出/扇入并行执行 |
| | 全自动无人值守执行 |
| | 并行执行前检测文件冲突 |
| | 实时监控后台Agent |
Overnight Execution Workflow
夜间执行工作流
bash
undefinedbash
undefinedDay: Plan all phases
白天:规划所有阶段
gsd discuss 1 && gsd plan 1
gsd discuss 2 && gsd plan 2
gsd discuss 1 && gsd plan 1
gsd discuss 2 && gsd plan 2
... repeat for all phases
... 重复上述步骤完成所有阶段规划
Before sleep: Check conflicts and start
睡前:检查冲突并启动执行
gsd check-conflicts 2 --fix
gsd execute-overnight --from 2 --parallel
gsd check-conflicts 2 --fix
gsd execute-overnight --from 2 --parallel
Next morning: Check results
次日早晨:查看结果
gsd status
---gsd status
---Additional Commands
额外命令
gsd add-phase
gsd add-phasegsd add-phase
gsd add-phaseAppend a new phase to the roadmap interactively.
交互式为路线图添加新阶段。
gsd pause
gsd pausegsd pause
gsd pauseSave current state for resuming later. Updates STATE.md with pause timestamp and context.
保存当前状态以便后续恢复。更新STATE.md,记录暂停时间戳和上下文。
gsd resume
gsd resumegsd resume
gsd resumeRestore from paused state. Shows what was in progress and suggests next action.
从暂停状态恢复。显示之前的进度并建议下一步操作。
gsd quick [description]
gsd quick [description]gsd quick [description]
gsd quick [description]Execute a quick ad-hoc task without full planning workflow. Useful for small fixes.
无需完整规划工作流,执行快速临时任务。适用于小型修复。
Subagent Architecture
子Agent架构
When spawning subagents, use minimal focused context:
| Subagent | Purpose | Context |
|---|---|---|
| Researcher | Investigate domain | Query + PROJECT.md tech stack |
| Planner | Create task plans | Phase goal + CONTEXT.md |
| Checker | Validate plans | Plan + requirements |
| Executor | Implement tasks | Single PLAN.md + relevant files |
Rule: The orchestrator (main GSD) never does heavy lifting. It spawns, waits, integrates.
启动子Agent时,使用最小化的聚焦上下文:
| 子Agent | 用途 | 上下文 |
|---|---|---|
| 调研Agent | 领域调研 | 查询内容 + PROJECT.md技术栈 |
| 规划Agent | 创建任务计划 | 阶段目标 + CONTEXT.md |
| 检查Agent | 验证计划 | 计划 + 需求 |
| 执行Agent | 实现任务 | 单个PLAN.md + 相关文件 |
规则:编排器(主GSD)从不执行具体任务,仅负责启动、等待、整合结果。
Best Practices
最佳实践
- Fresh context per task - Never accumulate across tasks
- No code during discuss - Discuss is for requirements only
- Atomic means atomic - If >15 min, split it
- Verify everything - Even if it "looks right"
- Document decisions - Future Claude instances need this
- Commit per task - Git bisect finds exact failures
- Keep PROJECT.md lean - Details go in REQUIREMENTS or phase docs
- One phase at a time - Complete current before planning next
- Prompts as markdown files - For agent projects, store prompts in
prompts/*.md
For complete command reference, see references/COMMANDS-REFERENCE.md.
- 每个任务使用全新上下文 - 绝不跨任务累积上下文
- 讨论阶段禁止编写代码 - 讨论仅用于梳理需求
- 原子化任务的定义 - 若执行时间超过15分钟,拆分任务
- 验证所有内容 - 即使看起来正确也要验证
- 记录所有决策 - 未来的Claude实例需要这些信息
- 每个任务对应一次提交 - Git bisect可精确定位问题
- 保持PROJECT.md简洁 - 细节放入REQUIREMENTS或阶段文档
- 一次专注一个阶段 - 完成当前阶段后再规划下一阶段
- 提示词存储为markdown文件 - 对于Agent项目,将提示词存储在中
prompts/*.md
命令详细参考,请查看 references/COMMANDS-REFERENCE.md。
When to Use GSD
何时使用GSD
Use GSD when:
- Projects taking > 2 hours
- Multiple interconnected features
- Need to maintain context across sessions
- Want systematic verification
- Working on production code
Skip GSD when:
- Quick scripts (< 1 hour)
- Exploratory prototyping
- Single-file changes
- Emergency hotfixes
- You already have detailed specs
建议使用GSD的场景:
- 项目耗时超过2小时
- 包含多个相互关联的功能
- 需要跨会话保持上下文一致性
- 希望系统化验证交付成果
- 开发生产环境代码
建议跳过GSD的场景:
- 快速脚本(耗时少于1小时)
- 探索性原型开发
- 单文件修改
- 紧急热修复
- 已有详细规范的项目
Integrations
集成功能
agent-architect Integration
Agent架构师集成
During , GSD offers professional architectural design via agent-architect for complex phases. Creates with 5-phase design process covering strategy, components, tools, orchestration, and production readiness.
gsd discuss [N]ARCHITECTURE.mdSee: references/ARCHITECT-INTEGRATION.md
在执行时,GSD会针对复杂阶段提供专业架构设计支持,通过agent-architect生成,包含5阶段设计流程:战略、组件、工具、编排、生产就绪性。
gsd discuss [N]ARCHITECTURE.md查看:references/ARCHITECT-INTEGRATION.md
Domain Skill Integration
领域工具集成
GSD auto-detects domain-specific needs (ML/DL, etc.) from PROJECT.md and offers specialized expertise during discuss/plan/execute phases.
See: references/DOMAIN-INTEGRATION.md
GSD会从PROJECT.md中自动检测领域特定需求(如ML/DL等),并在讨论/规划/执行阶段提供专业支持。
查看:references/DOMAIN-INTEGRATION.md
File Size Management
文件大小管理
To keep context loading efficient:
| File | Target Lines | Max Lines |
|---|---|---|
| PROJECT.md | 200-300 | 500 |
| REQUIREMENTS.md | 500-800 | 1000 |
| ROADMAP.md | 300-400 | 500 |
| STATE.md | 100-150 | 200 |
| PLAN-X.md | 100-150 | 200 |
| CONTEXT.md | 150-200 | 300 |
If files exceed max, refactor or split into reference documents.
为保证上下文加载效率:
| 文件 | 目标行数 | 最大行数 |
|---|---|---|
| PROJECT.md | 200-300 | 500 |
| REQUIREMENTS.md | 500-800 | 1000 |
| ROADMAP.md | 300-400 | 500 |
| STATE.md | 100-150 | 200 |
| PLAN-X.md | 100-150 | 200 |
| CONTEXT.md | 150-200 | 300 |
若文件超过最大行数,需重构或拆分为参考文档。