crystallize-workflow

Manage crystallized QA answers with versioning, TTLs, and atomic writes.

1|Updated Apr 12, 2026
One-click install
npx skills add https://github.com/mengsi16/brain-base --skill crystallize-workflow
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: crystallize-workflow
Source: https://github.com/mengsi16/brain-base/tree/main/skills/crystallize-workflow
Command: npx skills add https://github.com/mengsi16/brain-base --skill crystallize-workflow

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill encapsulates the crystallization workflow that preserves proven answers and avoids re-running full RAG chains for repeated questions.

Core Features & Use Cases

  • Maintains a crystallized knowledge layer on top of raw data to deliver quick, reliable answers.
  • Supports freshness checks, selective refresh, and automatic integration with qa-workflow.
  • Use Case: after a successful answer, it crystallizes the outcome for future similar questions, bypassing redundant RAG.

Quick Start

Trigger crystallization after a final answer to create or refresh a crystallized skill.

Frequently Asked Questions about crystallize-workflow

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is a crystallized knowledge layer for QA workflows?

A crystallized knowledge layer caches proven QA answers to serve repeated questions directly, avoiding redundant RAG runs. It maintains frontmatter metadata, versioning, and atomic writes to ensure stable answers are delivered quickly.

How do I cache proven RAG answers to avoid re-running retrieval chains?

You cache proven RAG answers by triggering crystallization after a successful response, which writes the outcome to a crystallized skill layer. This enforces frontmatter metadata and freshness TTLs for future similar questions.

When should I use crystallized content instead of standard RAG generation?

Use crystallized content when QA answers are stable over time and similar questions are frequently repeated. It bypasses redundant RAG generation by serving cached answers, refreshing them only when their freshness TTL expires.

How does the crystallization workflow handle stale answers and version updates?

The crystallization workflow handles stale answers using freshness TTLs and selective refresh triggers. It enforces versioning and atomic writes to index.json during updates, ensuring data integrity when refreshing outdated crystallized skills.

Can I integrate crystallized skill caching with an existing QA workflow?

Yes, the crystallization workflow supports automatic integration with existing QA workflows. After your QA workflow generates a final answer, it triggers crystallization to cache the outcome and bypass redundant RAG for future queries.

What metadata and file structures are enforced when creating crystallized skills?

Creating crystallized skills enforces frontmatter metadata, versioning, and freshness TTLs. It uses atomic writes to save data to a crystallized directory and update an index.json file, preventing data corruption during creation or updates.