Loading...
Loading...
Compare original and translation side by side
kitty-specs/<feature>/tasks/kitty-specs/<feature>/tasks/$ARGUMENTS$ARGUMENTS.kittify/memory/constitution.md.kittify/memory/constitution.mdDo you want to establish a project constitution?
A) No, skip it - I don't need a formal constitution
B) Yes, minimal - Core technical standards only (≈1 page, 3-5 questions)
C) Yes, comprehensive - Full governance and tribal knowledge (≈2-3 pages, 8-12 questions).kittify/memory/constitution.md是否需要创建项目章程?
A) 不,跳过 - 我不需要正式的项目章程
B) 是,精简版 - 仅包含核心技术标准(约1页,3-5个问题)
C) 是,完整版 - 包含完整治理规则和团队经验共识(约2-3页,8-12个问题).kittify/memory/constitution.mdPhase 1: Technical Standards
These are the non-negotiable technical requirements that all features must follow.
This phase is recommended for all projects.What languages and frameworks are required for this project?
Examples:
- "Python 3.11+ with FastAPI for backend"
- "TypeScript 4.9+ with React 18 for frontend"
- "Rust 1.70+ with no external dependencies"What testing framework and coverage requirements?
Examples:
- "pytest with 80% line coverage, 100% for critical paths"
- "Jest with 90% coverage, unit + integration tests required"
- "cargo test, no specific coverage target but all features must have tests"What are the performance and scale expectations?
Examples:
- "Handle 1000 requests/second at p95 < 200ms"
- "Support 10k concurrent users, 1M daily active users"
- "CLI operations complete in < 2 seconds"
- "N/A - performance not a primary concern"What are the deployment constraints or platform requirements?
Examples:
- "Docker-only, deployed to Kubernetes"
- "Must run on Ubuntu 20.04 LTS without external dependencies"
- "Cross-platform: Linux, macOS, Windows 10+"
- "N/A - no specific deployment constraints"第一阶段:技术标准
这是所有功能必须遵守的硬性技术要求。
推荐所有项目完成该阶段。本项目要求使用哪些编程语言和框架?
示例:
- "Python 3.11+ 搭配 FastAPI 用于后端开发"
- "TypeScript 4.9+ 搭配 React 18 用于前端开发"
- "Rust 1.70+,无外部依赖"有哪些测试框架和覆盖率要求?
示例:
- "pytest ,行覆盖率80%,核心路径覆盖率100%"
- "Jest ,覆盖率90%,要求编写单元+集成测试"
- "cargo test,无明确覆盖率要求,但所有功能必须有对应测试"性能和扩容预期是怎样的?
示例:
- "Handle 1000 requests/second at p95 < 200ms"
- "支持1万并发用户,100万日活用户"
- "CLI操作执行完成时间<2秒"
- "无要求 - 性能不是核心关注点"有哪些部署约束或平台要求?
示例:
- "仅支持Docker镜像,部署到Kubernetes"
- "必须运行在Ubuntu 20.04 LTS上,无外部依赖"
- "跨平台支持:Linux、macOS、Windows 10+"
- "无要求 - 无特定部署约束"Phase 2: Code Quality
Skip this if your team uses standard practices without special requirements.
Do you want to define code quality standards?
A) Yes, ask questions
B) No, skip this phase (use standard practices)What are the requirements for pull requests?
Examples:
- "2 approvals required, 1 must be from core team"
- "1 approval required, PR must pass CI checks"
- "Self-merge allowed after CI passes for maintainers"What should reviewers check during code review?
Examples:
- "Tests added, docstrings updated, follows PEP 8, no security issues"
- "Type annotations present, error handling robust, performance considered"
- "Standard review - correctness, clarity, maintainability"What quality gates must pass before merging?
Examples:
- "All tests pass, coverage ≥80%, linter clean, security scan clean"
- "Tests pass, type checking passes, manual QA approved"
- "CI green, no merge conflicts, PR approved"What documentation is required?
Examples:
- "All public APIs must have docstrings + examples"
- "README updated for new features, ADRs for architectural decisions"
- "Inline comments for complex logic, keep docs up to date"
- "Minimal - code should be self-documenting"第二阶段:代码质量
如果你的团队使用通用标准无特殊要求,可跳过该阶段。
是否需要定义代码质量标准?
A) 是,开始提问
B) 否,跳过该阶段(使用通用标准)拉取请求(PR)有哪些要求?
示例:
- "需要2个审批,其中1个必须来自核心团队"
- "需要1个审批,PR必须通过CI检查"
- "维护者CI通过后可自行合并"代码评审时评审人需要检查哪些内容?
示例:
- "新增测试、更新文档字符串、符合PEP 8规范、无安全问题"
- "存在类型注解、错误处理健壮、考虑性能影响"
- "标准评审项:正确性、清晰度、可维护性"合并前必须通过哪些质量门禁?
示例:
- "所有测试通过、覆盖率≥80%、linter检查通过、安全扫描无问题"
- "测试通过、类型检查通过、手动QA验收通过"
- "CI运行正常、无合并冲突、PR已获审批"有哪些文档要求?
示例:
- "所有公共API必须有文档字符串+使用示例"
- "新功能需更新README,架构决策需要编写ADR"
- "复杂逻辑需要加行内注释,保持文档同步更新"
- "最低要求 - 代码应做到自解释"Phase 3: Tribal Knowledge
Skip this for new projects or if team conventions are minimal.
Do you want to capture tribal knowledge?
A) Yes, ask questions
B) No, skip this phaseWhat team conventions or coding styles should everyone follow?
Examples:
- "Use Result<T, E> for fallible operations, never unwrap() in prod"
- "Prefer composition over inheritance, keep classes small (<200 lines)"
- "Use feature flags for gradual rollouts, never merge half-finished features"What past mistakes or lessons learned should guide future work?
Examples:
- "Always version APIs from day 1"
- "Write integration tests first"
- "Keep dependencies minimal - every dependency is a liability"
- "N/A - no major lessons yet"Do you want to document historical architectural decisions?
A) Yes
B) NoAny historical architectural decisions that should guide future work?
Examples:
- "Chose microservices for independent scaling"
- "Chose monorepo for atomic changes across services"
- "Chose SQLite for simplicity over PostgreSQL"第三阶段:团队经验共识
新项目或团队约定较少时可跳过该阶段。
是否需要留存团队经验共识?
A) 是,开始提问
B) 否,跳过该阶段有哪些团队约定或编码风格需要所有人遵守?
示例:
- "使用Result<T, E>处理易错操作,生产环境禁止使用unwrap()"
- "优先使用组合而非继承,保持类大小<200行"
- "使用特性开关做灰度发布,禁止合并半完成的功能"有哪些过往错误或经验教训可指导后续工作?
示例:
- "API从第一天开始就要做版本控制"
- "优先编写集成测试"
- "尽量减少依赖 - 每个依赖都是潜在风险"
- "无 - 暂无重大经验教训"是否需要归档历史架构决策?
A) 是
B) 否有哪些需要指导后续工作的历史架构决策?
示例:
- "选择微服务架构是为了支持独立扩容"
- "选择单体仓库是为了支持跨服务原子变更"
- "选择SQLite而非PostgreSQL是为了简化实现"Phase 4: Governance
Skip this to use simple defaults.
Do you want to define governance process?
A) Yes, ask questions
B) No, skip this phase (use simple defaults)How should the constitution be amended?
Examples:
- "PR with 2 approvals, announce in team chat, 1 week discussion"
- "Any maintainer can update via PR"
- "Quarterly review, team votes on changes"Who validates that features comply with the constitution?
Examples:
- "Code reviewers check compliance, block merge if violated"
- "Team lead reviews architecture"
- "Self-managed - developers responsible"Do you want to define exception handling?
A) Yes
B) NoHow should exceptions to the constitution be handled?
Examples:
- "Document in ADR, require 3 approvals, set sunset date"
- "Case-by-case discussion, strong justification required"
- "Exceptions discouraged - update constitution instead"第四阶段:治理规则
使用简单默认规则可跳过该阶段。
是否需要定义治理流程?
A) 是,开始提问
B) 否,跳过该阶段(使用简单默认规则)项目章程如何修订?
示例:
- "PR需2个审批,团队群同步公告,预留1周讨论时间"
- "任何维护者都可通过PR更新"
- "每季度评审一次,团队投票决定变更"谁负责校验功能符合章程要求?
示例:
- "代码评审人检查合规性,违反要求则阻止合并"
- "团队负责人评审架构"
- "自管理 - 开发者自行负责"是否需要定义例外处理规则?
A) 是
B) 否违反章程的例外情况如何处理?
示例:
- "在ADR中归档,需要3个审批,设置失效日期"
- "逐案讨论,需要充分的正当理由"
- "不鼓励例外情况 - 建议优先更新章程"Constitution Summary
====================
You've completed [X] phases and answered [Y] questions.
Here's what will be written to .kittify/memory/constitution.md:
Technical Standards:
- Languages: [Q1]
- Testing: [Q2]
- Performance: [Q3]
- Deployment: [Q4]
[If Phase 2 completed]
Code Quality:
- PR Requirements: [Q5]
- Review Checklist: [Q6]
- Quality Gates: [Q7]
- Documentation: [Q8]
[If Phase 3 completed]
Tribal Knowledge:
- Conventions: [Q9]
- Lessons Learned: [Q10]
- Historical Decisions: [Q11 if present]
Governance: [Custom if Phase 4 completed, otherwise defaults]
Estimated length: ≈[50-80 lines minimal] or ≈[150-200 lines comprehensive]
Proceed with writing constitution?
A) Yes, write it
B) No, let me start over
C) Cancel, don't create constitution项目章程摘要
====================
你已完成[X]个阶段,回答了[Y]个问题。
以下内容将写入 .kittify/memory/constitution.md 文件:
技术标准:
- 编程语言与框架:[Q1回答]
- 测试要求:[Q2回答]
- 性能指标:[Q3回答]
- 部署约束:[Q4回答]
[如果完成第二阶段则展示]
代码质量:
- PR要求:[Q5回答]
- 评审检查清单:[Q6回答]
- 质量门禁:[Q7回答]
- 文档标准:[Q8回答]
[如果完成第三阶段则展示]
团队经验共识:
- 团队约定:[Q9回答]
- 经验教训:[Q10回答]
- 历史决策:[如果有Q11回答则展示]
治理规则:[如果完成第四阶段则展示自定义规则,否则展示默认规则]
预估长度:精简版约[50-80行] / 完整版约[150-200行]
是否确认写入章程?
A) 是,写入文件
B) 否,重新开始
C) 取消,不创建章程undefinedundefinedAuto-generated by spec-kitty constitution command Created: [YYYY-MM-DD] Version: 1.0.0
由spec-kitty constitution命令自动生成 创建时间:[YYYY-MM-DD] 版本:1.0.0
undefinedundefined