Xpersona
S

storage-templates

CLAWHUB · Unverified

Provides templates and lifecycle patterns for storage and documentation systems Skill: storage-templates Owner: athola Summary: Provides templates and lifecycle patterns for storage and documentation systems Tags: latest:1.9.19 Version history: v1.9.19 | 2026-08-26T13:15:57.324Z | user Release v1.9.19 v1.9.17 | 2026-07-30T05:36:42.721Z | user Release v1.9.17 v1.9.16 | 2026-07-14T19:53:30.877Z | user Release v1.9.16 v1.9.14 | 2026-06-30T18:02:18.016Z | user Release v1.9.14 v1.9.13 | 2026-06-27T16

62
Rank
84
Safety
1.6k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.6K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17emme0e2m3cpf7k2jvp3a84984b8z9:nm-leyline-storage-templates
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-athola-nm-leyline-storage-templates/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

144,251 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: storage-templates
description: Provides templates and lifecycle patterns for storage and documentation systems
version: 1.9.8
triggers:
  - templates
  - storage
  - lifecycle
  - maturity
  - organization
  - patterns
  - organizing knowledge storage
  - config lifecycle
  - or naming conventions
metadata: {"openclaw": {"homepage": "https://github.com/athola/claude-night-market/tree/master/plugins/leyline", "emoji": "\ud83e\udd9e"}}
source: claude-night-market
source_plugin: leyline
---

> **Night Market Skill** — ported from [claude-night-market/leyline](https://github.com/athola/claude-night-market/tree/master/plugins/leyline). For the full experience with agents, hooks, and commands, install the Claude Code plugin.


## Table of Contents

- [Overview](#overview)
- [When to Use](#when-to-use)
- [Core Concepts](#core-concepts)
- [Template Types](#template-types)
- [Maturity Lifecycle](#maturity-lifecycle)
- [Quick Start](#quick-start)
- [Basic Template Structure](#basic-template-structure)
- [Core Content](#core-content)
- [Metadata](#metadata)
- [File Naming Conventions](#file-naming-conventions)
- [Domain Applications](#domain-applications)
- [Common Patterns](#common-patterns)
- [Promotion Workflow](#promotion-workflow)
- [Template Selection Guide](#template-selection-guide)
- [Integration Pattern](#integration-pattern)
- [Detailed Resources](#detailed-resources)
- [Exit Criteria](#exit-criteria)


# 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 |

### Maturity Lifecycle

```
seedling → growing → evergreen → archive
    ↓         ↓          ↓           ↓
 1-2 weeks  1-3 months  permanent  deprecated
```
**Verification:** Run the command with `--help` flag to verify availability.

## Quick Start

### Basic Template Structure

```yaml
---
title: [Content Title]
created: [YYYY-MM-DD]
maturity: seedling|growing|evergreen|reference
tags: [relevant, tags]
---

# [Title]

## Core Content
[Main information]

## Metadata
[Context and attribution]
```
**Verification:** Run the command with `--help` flag to verify availability.

### File Naming Conventions

| Type | Pattern | Example |
|------|--------

_meta.json

{
  "ownerId": "kn7d107jg9jv602h9ytsegydq184a42s",
  "slug": "nm-leyline-storage-templates",
  "version": "1.9.19",
  "publishedAt": 1787750157324
}

modules/lifecycle-stages.md

---
name: lifecycle-stages
description: Maturity progression patterns, promotion criteria, and lifecycle management workflows
category: lifecycle
tags: [maturity, lifecycle, progression, workflow]
dependencies: [storage-templates]
complexity: beginner
estimated_tokens: 600
---

# Lifecycle Stages

Maturity progression patterns, promotion criteria, and lifecycle management for structured content.

## Maturity Model

```
┌──────────┐    ┌──────────┐    ┌───────────┐    ┌─────────┐
│ Seedling │───▶│ Growing  │───▶│ Evergreen │───▶│ Archive │
└──────────┘    └──────────┘    └───────────┘    └─────────┘
     ↓               ↓                ↓                ↓
  1-2 weeks      1-3 months       Permanent       Deprecated
```

## Stage Definitions

### Seedling

**Purpose**: Capture early ideas without commitment

**Characteristics**:
- Minimal structure
- Date-prefixed filename
- Short review cycle (1-2 weeks)
- Low investment

**Typical Content**:
- Quick observations
- Links to research
- Rough ideas
- Experimental notes

**File Pattern**: `YYYY-MM-DD-topic.md`

**Frontmatter**:
```yaml
maturity: seedling
review_after: [2 weeks from created]
```

**Exit Paths**:
- → Growing (validated, expanded)
- → Archive (not valuable)
- → Stay Seedling (needs more time)

### Growing

**Purpose**: Active development and validation

**Characteristics**:
- Structured content
- Regular updates
- Connected to other content
- Medium investment

**Typical Content**:
- Draft specifications
- Evolving patterns
- Active research
- Under-review documentation

**File Pattern**: `topic-name.md`

**Frontmatter**:
```yaml
maturity: growing
review_date: [quarterly]
updated: [YYYY-MM-DD]
```

**Exit Paths**:
- → Evergreen (stable, proven)
- → Seedling (needs rework)
- → Archive (invalidated)

### Evergreen

**Purpose**: Stable, long-term reference material

**Characteristics**:
- Proven value over time
- Rarely modified
- Well-connected
- High investment

**Typical Content**:
- Core patterns
- Established processes
- Reference documentation
- Canonical guides

**File Pattern**: `topic-name.md`

**Frontmatter**:
```yaml
maturity: evergreen
updated: [YYYY-MM-DD]
```

**Exit Paths**:
- → Archive (superseded, deprecated)
- → Growing (significant changes needed)

### Reference

**Purpose**: Version-specific or tool documentation

**Characteristics**:
- External source
- Version-bound
- Time-limited value
- Attribution required

**Typical Content**:
- Tool documentation
- API references
- Version-specific features
- Third-party guides

**File Pattern**: `tool-version.md`

**Frontmatter**:
```yaml
maturity: reference
version: [version number]
expires: [YYYY-MM-DD]
source: [URL]
```

**Exit Paths**:
- → Archive (version deprecated)
- → Reference (update to new version)

### Archive

**Purpose**: Preserve deprecated or superseded content

**Characteristics**:
- Read-only
- Clearly marked as deprecated
- Redirect to replacement
- Historical value

**Typical Content**:
- Deprecated patterns

modules/storage-patterns.md

---
name: storage-patterns
description: Storage backend patterns for templates and lifecycle data with retention, atomic writes, and selection criteria
category: storage
tags: [storage, files, sqlite, json, retention, atomic-writes]
dependencies: [storage-templates]
complexity: beginner
estimated_tokens: 800
---

# Storage Patterns

Storage backend patterns for the templates and lifecycle data
described in the parent skill. Covers when to use plain files,
when to reach for SQLite, when JSON or YAML is the right
serialization, how to expire data, and how to write without
corruption.

## Backend Selection

Pick the simplest backend that meets the access pattern. Each
step up adds operational cost: schemas to migrate, locks to
manage, indexes to maintain. Start at file-based and move up
only when a measured limit forces it.

| Pattern | Use When | Avoid When |
|---------|----------|------------|
| Plain markdown files | Human reads/edits, low write rate, full-text search via grep is enough | Random-access lookup by key dominates |
| JSON file per record | Single writer, typed data, want diff-friendly history | Many concurrent writers |
| JSONL append log | Append-only event stream, replay is cheap | Need random update or delete |
| SQLite database | Index-heavy queries, joins, transactional updates | Single-writer markdown is enough |
| YAML config file | Human-edited settings, rare writes | Frequent programmatic mutation |

### Real-File Examples

These backends are in use today; cite them when explaining the
pattern to a caller:

| Backend | Real File |
|---------|-----------|
| JSONL append log | `plugins/memory-palace/data/intake_queue.jsonl` |
| YAML config | `plugins/memory-palace/data/seed_topics.yaml` |
| JSON-per-session | `plugins/memory-palace/data/sessions/<uuid>.json` |
| SQLite | `plugins/memory-palace/src/memory_palace/knowledge_graph.py` |
| Markdown staging | `plugins/memory-palace/data/staging/*.md` |

## File-Based Storage

The default. One file per record, organized by maturity (see
`lifecycle-stages.md`) or by date prefix.

### Layout

```
data/
  evergreen/
    functional-core-pattern.md
  growing/
    async-patterns.md
  seedlings/
    2025-12-05-template-idea.md
  archive/
    2024-06-01-old-pattern.md
```

### Read Path

```python
from pathlib import Path
import frontmatter   # python-frontmatter

def load_record(path: Path) -> dict:
    """Read a markdown record with YAML frontmatter."""
    post = frontmatter.load(path)
    return {"metadata": post.metadata, "body": post.content}
```

### When File-Based Wins

- Humans edit the records by hand
- Diffs are reviewed in pull requests
- Total record count stays under ~10k
- Search is "grep over directory"

### When File-Based Hurts

- Lookup-by-key dominates (every read needs a scan)
- Multiple writers race on the same file
- The record count breaks filesystem listing performance

## SQLite Storage

Reach for SQLite when you need indexed lookup, joins, or
transactional updates

modules/template-patterns.md

---
name: template-patterns
description: Detailed template structures for different content types and storage domains
category: templates
tags: [templates, structures, formats, examples]
dependencies: [storage-templates]
complexity: beginner
estimated_tokens: 800
---

# Template Patterns

Detailed template structures for different content types and storage domains.

## Evergreen Template

For stable, proven knowledge that has long-term value:

```yaml
---
title: [Descriptive Title]
created: [YYYY-MM-DD]
updated: [YYYY-MM-DD]
maturity: evergreen
tags: [relevant, tags]
source: [URL or attribution]
author: [Original author if applicable]
---

# [Title]

## Core Thesis
[1-2 sentences summarizing the main concept or pattern]

## Key Concepts
[Detailed breakdown of core ideas]

## Application
[How to apply this knowledge in practice]

## Connections
[Links to related content or concepts]

## Attribution
[Full source citation and credits]
```

### Domain Variants

**Knowledge Management** (memory-palace):
```yaml
---
title: Franklin Protocol for Learning
created: 2025-12-05
maturity: evergreen
palace: learning-methods
district: meta-learning
tags: [learning, memory, techniques]
source: https://example.com/franklin-protocol
---

# Franklin Protocol for Learning

## Core Thesis
Deliberate practice through imitation, analysis, and reconstruction.

## Memory Palace Layout
[Spatial structure mapping key concepts]

## Key Concepts
[Detailed breakdown with sensory encoding]
```

**Configuration Storage** (sanctum):
```yaml
---
title: Conventional Commit Format
created: 2025-12-05
maturity: evergreen
scope: commit-messages
version: 1.0.0
tags: [git, commits, conventions]
source: https://conventionalcommits.org
---

# Conventional Commit Format

## Core Pattern
type(scope): subject

## Valid Types
[feat, fix, docs, style, refactor, test, chore]

## Examples
[Concrete examples]
```

## Growing Template

For content under active development:

```yaml
---
title: [Working Title]
created: [YYYY-MM-DD]
updated: [YYYY-MM-DD]
maturity: growing
review_date: [YYYY-MM-DD]
tags: [relevant, tags]
---

# [Title]

## Current Understanding
[What we know so far]

## Open Questions
[What needs further exploration]

## Recent Updates
[Change log of significant modifications]

## Evolution Path
[Expected direction of development]

## Related Content
[Links to connected topics]
```

### Domain Variants

**Specification Development** (spec-kit):
```yaml
---
title: Feature Specification Template
created: 2025-12-05
updated: 2025-12-05
maturity: growing
phase: planning
status: draft
tags: [spec, planning, template]
---

# Feature Specification

## Requirements
[What must be satisfied]

## Design Considerations
[Open design questions]

## Implementation Notes
[Current implementation ideas]

## Pending Decisions
[Items requiring resolution]
```

## Seedling Template

For early ideas and exploration:

```yaml
---
title: [Brief Title]
created: [YYYY-MM-DD]
maturity: seedling
review_after: 

Sponsored

Ads related to storage-templates and adjacent AI workflows.