bkit-templates

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

bkit Document Templates

bkit 文档模板

Use these templates when generating PDCA documents.
生成PDCA文档时请使用这些模板。

Available Templates

可用模板

TemplatePathPurpose
Plan
${CLAUDE_PLUGIN_ROOT}/templates/plan.template.md
Feature planning
Design
${CLAUDE_PLUGIN_ROOT}/templates/design.template.md
Technical design
Analysis
${CLAUDE_PLUGIN_ROOT}/templates/analysis.template.md
Gap analysis
Report
${CLAUDE_PLUGIN_ROOT}/templates/report.template.md
Completion report
Index
${CLAUDE_PLUGIN_ROOT}/templates/_INDEX.template.md
Document index
CLAUDE
${CLAUDE_PLUGIN_ROOT}/templates/CLAUDE.template.md
CLAUDE.md template
模板类型路径用途
Plan
${CLAUDE_PLUGIN_ROOT}/templates/plan.template.md
功能规划
Design
${CLAUDE_PLUGIN_ROOT}/templates/design.template.md
技术设计
Analysis
${CLAUDE_PLUGIN_ROOT}/templates/analysis.template.md
差距分析
Report
${CLAUDE_PLUGIN_ROOT}/templates/report.template.md
完成报告
Index
${CLAUDE_PLUGIN_ROOT}/templates/_INDEX.template.md
文档索引
CLAUDE
${CLAUDE_PLUGIN_ROOT}/templates/CLAUDE.template.md
CLAUDE.md模板

Template Usage

模板使用说明

Plan Template

Plan模板

For Plan phase - feature planning before design.
Key sections:
  • Overview & Purpose
  • Scope (In/Out)
  • Requirements (Functional/Non-Functional)
  • Success Criteria
  • Risks & Mitigation
适用于Plan阶段 - 设计前的功能规划。
核心章节:
  • 概述与目标
  • 范围(包含/排除)
  • 需求(功能/非功能)
  • 成功标准
  • 风险与应对措施

Design Template

Design模板

For Do phase - technical design before implementation.
Key sections:
  • Architecture (diagrams, data flow)
  • Data Model (entities, relationships)
  • API Specification (endpoints, request/response)
  • UI/UX Design (layouts, components)
  • Error Handling
  • Security Considerations
  • Test Plan
  • Implementation Guide
适用于Do阶段 - 开发前的技术设计。
核心章节:
  • 架构(图表、数据流)
  • 数据模型(实体、关系)
  • API规范(端点、请求/响应)
  • UI/UX设计(布局、组件)
  • 错误处理
  • 安全考量
  • 测试计划
  • 实施指南

Analysis Template

Analysis模板

For Check phase - gap analysis between design and implementation.
Key sections:
  • Design vs Implementation comparison
  • Missing features
  • Inconsistencies
  • Quality metrics
  • Recommendations
适用于Check阶段 - 设计与实现之间的差距分析。
核心章节:
  • 设计与实现对比
  • 缺失功能
  • 不一致点
  • 质量指标
  • 建议方案

Report Template

Report模板

For Act phase - completion report and lessons learned.
Key sections:
  • Summary of completed work
  • Metrics (LOC, test coverage, etc.)
  • Issues encountered
  • Lessons learned
  • Future improvements
适用于Act阶段 - 完成报告与经验总结。
核心章节:
  • 已完成工作摘要
  • 指标(代码行数、测试覆盖率等)
  • 遇到的问题
  • 经验教训
  • 未来改进方向

Document Output Paths

文档输出路径

docs/
├── 01-plan/
│   └── features/
│       └── {feature}.plan.md
├── 02-design/
│   └── features/
│       └── {feature}.design.md
├── 03-analysis/
│   └── features/
│       └── {feature}.analysis.md
└── 04-report/
    └── features/
        └── {feature}.report.md
docs/
├── 01-plan/
│   └── features/
│       └── {feature}.plan.md
├── 02-design/
│   └── features/
│       └── {feature}.design.md
├── 03-analysis/
│   └── features/
│       └── {feature}.analysis.md
└── 04-report/
    └── features/
        └── {feature}.report.md

Variable Substitution

变量替换

Templates use
{variable}
syntax:
  • {feature}
    : Feature name
  • {date}
    : Creation date (YYYY-MM-DD)
  • {author}
    : Document author
模板使用
{variable}
语法:
  • {feature}
    :功能名称
  • {date}
    :创建日期(YYYY-MM-DD)
  • {author}
    :文档作者

Pipeline Templates

流水线模板

Additional templates for Development Pipeline phases:
  • ${CLAUDE_PLUGIN_ROOT}/templates/pipeline/
    directory

针对开发流水线阶段的额外模板:
  • ${CLAUDE_PLUGIN_ROOT}/templates/pipeline/
    目录

Document Standards

文档标准

File Naming Rules

文件命名规则

{number}_{english_name}.md      # 01_system_architecture.md
{number}-{english_name}.md      # 01-system-architecture.md
{feature}.{type}.md             # login.design.md
{number}_{english_name}.md      # 01_system_architecture.md
{number}-{english_name}.md      # 01-system-architecture.md
{feature}.{type}.md             # login.design.md

Common Header

通用页眉

All documents should include:
markdown
undefined
所有文档应包含:
markdown
undefined

{Document Title}

{文档标题}

Summary: {One-line description}
Author: {Name} Created: {YYYY-MM-DD} Last Modified: {YYYY-MM-DD} Status: {Draft | Review | Approved | Deprecated}

undefined
摘要:{一句话描述}
作者:{姓名} 创建日期:{YYYY-MM-DD} 最后修改:{YYYY-MM-DD} 状态:{草稿 | 审核中 | 已批准 | 已废弃}

undefined

Version Control

版本控制

Track changes within documents:
markdown
undefined
在文档内跟踪变更:
markdown
undefined

Version History

版本历史

VersionDateChangesAuthor
1.02024-12-01Initial draftKay
1.12024-12-05Added API specKay
undefined
版本日期变更内容作者
1.02024-12-01初始草稿Kay
1.12024-12-05添加API规范Kay
undefined

Cross-References

交叉引用

Link related documents:
markdown
undefined
关联相关文档:
markdown
undefined

Related Documents

相关文档

  • Plan: login.plan.md
  • Design: login.design.md
  • Analysis: login.analysis.md
undefined
  • 计划:login.plan.md
  • 设计:login.design.md
  • 分析:login.analysis.md
undefined

Status Tracking

状态跟踪

Use _INDEX.md in each folder:
StatusMeaningClaude Behavior
✅ ApprovedUse as referenceFollow as-is
🔄 In ProgressBeing writtenNotify of changes
⏸️ On HoldTemporarily pausedRequest confirmation
❌ DeprecatedNo longer validIgnore
使用各文件夹中的_INDEX.md:
状态含义Claude 行为
✅ 已批准作为参考使用严格遵循
🔄 进行中编写中通知变更情况
⏸️ 暂停临时搁置请求确认
❌ 已废弃不再有效忽略

Conflict Resolution

冲突解决

  • Code vs Design mismatch: Code is truth, suggest document update
  • Multiple versions: Reference only the latest version
  • 代码与设计不匹配:代码为基准,建议更新文档
  • 多版本存在:仅参考最新版本