- 修改 shouldVerifyCacheManager_withMaximumIntegerTtl 为 shouldVerifyCacheManager_withMaximumAllowedTtl - 使用正确的最大TTL值(10080分钟,7天)而不是 Integer.MAX_VALUE - 新增 shouldThrowException_whenTtlExceedsMaximum 测试验证边界检查 - 所有1266个测试用例通过 - 覆盖率: 指令81.89%, 行88.48%, 分支51.55% docs: 添加项目状态报告 - 生成 PROJECT_STATUS_REPORT.md 详细记录项目当前状态 - 包含质量指标、已完成功能、待办事项和技术债务
2.3 KiB
2.3 KiB
User Templates
This directory allows you to create custom templates that override the default Spec Workflow templates.
How to Use Custom Templates
-
Create your custom template file in this directory with the exact same name as the default template you want to override:
requirements-template.md- Override requirements document templatedesign-template.md- Override design document templatetasks-template.md- Override tasks document templateproduct-template.md- Override product steering templatetech-template.md- Override tech steering templatestructure-template.md- Override structure steering template
-
Template Loading Priority:
- The system first checks this
user-templates/directory - If a matching template is found here, it will be used
- Otherwise, the default template from
templates/will be used
- The system first checks this
Example Custom Template
To create a custom requirements template:
- Create a file named
requirements-template.mdin this directory - Add your custom structure, for example:
# Requirements Document
## Executive Summary
[Your custom section]
## Business Requirements
[Your custom structure]
## Technical Requirements
[Your custom fields]
## Custom Sections
[Add any sections specific to your workflow]
Template Variables
Templates can include placeholders that will be replaced when documents are created:
{{projectName}}- The name of your project{{featureName}}- The name of the feature being specified{{date}}- The current date{{author}}- The document author
Best Practices
- Start from defaults: Copy a default template from
../templates/as a starting point - Keep structure consistent: Maintain similar section headers for tool compatibility
- Document changes: Add comments explaining why sections were added/modified
- Version control: Track your custom templates in version control
- Test thoroughly: Ensure custom templates work with the spec workflow tools
Notes
- Custom templates are project-specific and not included in the package distribution
- The
templates/directory contains the default templates which are updated with each version - Your custom templates in this directory are preserved during updates
- If a custom template has errors, the system will fall back to the default template