storage-templates
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseTable of Contents
目录
Storage Templates
存储模板
Overview
概述
Generic template patterns and lifecycle management for structured content storage. Provides reusable templates, maturity progression models, and file naming conventions that work across different storage domains.
结构化内容存储的通用模板模式与生命周期管理方案。提供可跨不同存储领域复用的模板、成熟度演进模型及文件命名规范。
When To Use
适用场景
- Building knowledge management systems
- Organizing documentation with maturity stages
- Need consistent file naming patterns
- Want template-driven content creation
- Implementing lifecycle-based workflows
- 构建知识管理系统
- 按成熟度阶段组织文档
- 需要统一的文件命名模式
- 希望采用模板驱动的内容创建方式
- 实施基于生命周期的工作流
When NOT To Use
不适用场景
- Simple storage without lifecycle or structure needs
- 无需生命周期或结构的简单存储场景
Core Concepts
核心概念
Template Types
模板类型
| Type | Purpose | Maturity | Lifetime |
|---|---|---|---|
| Evergreen | Stable, proven knowledge | High | Permanent |
| Growing | Active development | Medium | 1-3 months |
| Seedling | Early ideas | Low | 1-2 weeks |
| Reference | Tool/version-specific | N/A | Until deprecated |
| 类型 | 用途 | 成熟度 | 生命周期 |
|---|---|---|---|
| 常青型 | 存储稳定、经过验证的知识 | 高 | 永久 |
| 成长型 | 用于活跃开发中的内容 | 中 | 1-3个月 |
| 萌芽型 | 用于早期想法记录 | 低 | 1-2周 |
| 参考型 | 特定工具/版本相关内容 | 不适用 | 直至废弃 |
Maturity Lifecycle
成熟度生命周期
seedling → growing → evergreen → archive
↓ ↓ ↓ ↓
1-2 weeks 1-3 months permanent deprecatedVerification: Run the command with flag to verify availability.
--helpseedling → growing → evergreen → archive
↓ ↓ ↓ ↓
1-2 weeks 1-3 months permanent deprecated验证方式: 运行命令时添加参数以验证可用性。
--helpQuick Start
快速开始
Basic Template Structure
基础模板结构
yaml
---
title: [Content Title]
created: [YYYY-MM-DD]
maturity: seedling|growing|evergreen|reference
tags: [relevant, tags]
---yaml
---
title: [Content Title]
created: [YYYY-MM-DD]
maturity: seedling|growing|evergreen|reference
tags: [relevant, tags]
---[Title]
[Title]
Core Content
Core Content
[Main information]
[Main information]
Metadata
Metadata
[Context and attribution]
**Verification:** Run the command with `--help` flag to verify availability.[Context and attribution]
**验证方式:** 运行命令时添加`--help`参数以验证可用性。File Naming Conventions
文件命名规范
| Type | Pattern | Example |
|---|---|---|
| Evergreen | | |
| Growing | | |
| Seedling | | |
| Reference | | |
| 类型 | 格式 | 示例 |
|---|---|---|
| 常青型 | | |
| 成长型 | | |
| 萌芽型 | | |
| 参考型 | | |
Domain Applications
领域应用
Add domain-specific fields to templates:
- memory-palace: ,
palacefor knowledge organizationdistrict - sanctum: ,
scopefor commit templatesversion - spec-kit: ,
phasefor specificationsstatus
See for detailed examples.
modules/template-patterns.md可为模板添加领域特定字段:
- memory-palace:添加、
palace字段用于知识组织district - sanctum:添加、
scope字段用于提交模板version - spec-kit:添加、
phase字段用于规范文档status
详细示例请查看。
modules/template-patterns.mdCommon Patterns
通用模式
Promotion Workflow
晋升流程
Seedling → Growing:
- Accessed more than once
- Connected to other entries
- Expanded with new insights
Growing → Evergreen:
- Proven useful over 3+ months
- Stable, not frequently edited
- Well-connected in system
Evergreen → Archive:
- Superseded by newer knowledge
- Technology/approach deprecated
- No longer applicable
萌芽型 → 成长型:
- 被访问超过一次
- 与其他条目建立关联
- 补充了新的见解
成长型 → 常青型:
- 经过3个月以上验证,证明实用
- 内容稳定,不频繁编辑
- 在系统中与其他内容充分关联
常青型 → 归档:
- 被更新的知识取代
- 相关技术/方法已废弃
- 不再适用当前场景
Template Selection Guide
模板选择指南
| Stability | Purpose | Template |
|---|---|---|
| Proven | Long-term | Evergreen |
| Evolving | Active development | Growing |
| Experimental | Exploration | Seedling |
| Versioned | External reference | Reference |
| 稳定性 | 用途 | 模板类型 |
|---|---|---|
| 已验证 | 长期使用 | 常青型 |
| 演进中 | 活跃开发 | 成长型 |
| 实验性 | 探索阶段 | 萌芽型 |
| 版本化 | 外部参考 | 参考型 |
Integration Pattern
集成模式
yaml
undefinedyaml
undefinedIn your skill's frontmatter
In your skill's frontmatter
dependencies: [leyline:storage-templates]
**Verification:** Run the command with `--help` flag to verify availability.dependencies: [leyline:storage-templates]
**验证方式:** 运行命令时添加`--help`参数以验证可用性。Detailed Resources
详细资源
- Templates: See for detailed structures
modules/template-patterns.md - Lifecycle: See for maturity progression
modules/lifecycle-stages.md
- 模板:查看获取详细结构
modules/template-patterns.md - 生命周期:查看了解成熟度演进过程
modules/lifecycle-stages.md
Exit Criteria
退出标准
- Template selected for use case
- File naming convention applied
- Maturity stage assigned
- Promotion criteria understood
- 已根据使用场景选择合适模板
- 已应用文件命名规范
- 已分配成熟度阶段
- 已理解晋升条件
Troubleshooting
故障排查
Common Issues
常见问题
Command not found
Ensure all dependencies are installed and in PATH
Permission errors
Check file permissions and run with appropriate privileges
Unexpected behavior
Enable verbose logging with flag
--verbose命令未找到
确保所有依赖已安装且已添加至PATH环境变量
权限错误
检查文件权限,使用适当权限运行命令
意外行为
添加参数启用详细日志
--verbose