storage-templates

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Table 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

模板类型

TypePurposeMaturityLifetime
EvergreenStable, proven knowledgeHighPermanent
GrowingActive developmentMedium1-3 months
SeedlingEarly ideasLow1-2 weeks
ReferenceTool/version-specificN/AUntil deprecated
类型用途成熟度生命周期
常青型存储稳定、经过验证的知识永久
成长型用于活跃开发中的内容1-3个月
萌芽型用于早期想法记录1-2周
参考型特定工具/版本相关内容不适用直至废弃

Maturity Lifecycle

成熟度生命周期

seedling → growing → evergreen → archive
    ↓         ↓          ↓           ↓
 1-2 weeks  1-3 months  permanent  deprecated
Verification: Run the command with
--help
flag to verify availability.
seedling → growing → evergreen → archive
    ↓         ↓          ↓           ↓
 1-2 weeks  1-3 months  permanent  deprecated
验证方式: 运行命令时添加
--help
参数以验证可用性。

Quick 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

文件命名规范

TypePatternExample
Evergreen
topic-name.md
functional-core-pattern.md
Growing
topic-name.md
async-patterns.md
Seedling
YYYY-MM-DD-topic.md
2025-12-05-template-idea.md
Reference
tool-version.md
python-3.12-features.md
类型格式示例
常青型
topic-name.md
functional-core-pattern.md
成长型
topic-name.md
async-patterns.md
萌芽型
YYYY-MM-DD-topic.md
2025-12-05-template-idea.md
参考型
tool-version.md
python-3.12-features.md

Domain Applications

领域应用

Add domain-specific fields to templates:
  • memory-palace:
    palace
    ,
    district
    for knowledge organization
  • sanctum:
    scope
    ,
    version
    for commit templates
  • spec-kit:
    phase
    ,
    status
    for specifications
See
modules/template-patterns.md
for detailed examples.
可为模板添加领域特定字段:
  • memory-palace:添加
    palace
    district
    字段用于知识组织
  • sanctum:添加
    scope
    version
    字段用于提交模板
  • spec-kit:添加
    phase
    status
    字段用于规范文档
详细示例请查看
modules/template-patterns.md

Common 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

模板选择指南

StabilityPurposeTemplate
ProvenLong-termEvergreen
EvolvingActive developmentGrowing
ExperimentalExplorationSeedling
VersionedExternal referenceReference
稳定性用途模板类型
已验证长期使用常青型
演进中活跃开发成长型
实验性探索阶段萌芽型
版本化外部参考参考型

Integration Pattern

集成模式

yaml
undefined
yaml
undefined

In 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
    modules/template-patterns.md
    for detailed structures
  • Lifecycle: See
    modules/lifecycle-stages.md
    for maturity progression
  • 模板:查看
    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
--verbose
flag
命令未找到 确保所有依赖已安装且已添加至PATH环境变量
权限错误 检查文件权限,使用适当权限运行命令
意外行为 添加
--verbose
参数启用详细日志