๐Ÿ“ฆ CS2Vault Cheat Sheet

Core Directive: Automate the conversion of verbose developer sessions into ultra-condensed Quartz-compatible wiki vaults using ultrathink loops.

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚               ๐Ÿง  ULTRATHINK SYNTHESIS LOOP             โ”‚
โ”‚ Raw Session Logs โ”€โ”€> [Cleanse] โ”€โ”€> [Condense] โ”€โ”€> Spec โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                           โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚               ๐Ÿ—‚๏ธ QUARTZ VAULT PIPELINE                 โ”‚
โ”‚ Processed MD โ”€โ”€> [Frontmatter] โ”€โ”€> [Wiki Links] โ”€โ”€> Pubโ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

๐Ÿ—๏ธ Core Architecture & Workflows

๐Ÿงผ 1. THE PIPELINE (Session to Vault)

  • ๐Ÿš€ Ingestion: Raw logs/transcripts are cleansed of conversational fluff.
  • ๐Ÿง  Extraction: Invariants, schemas, configurations, and core CLI commands are isolated.
  • โšก Condensation: High-density markdown layouts (side-by-side lists, tables) are generated.
  • ๐ŸŽจ Formatting: Emojis serve as structural landmarks for quick scanning.

๐Ÿ—‚๏ธ 2. QUARTZ VAULT STRUCTURE

  • ๐Ÿ“ฆ Folder Hierarchy: Nested structure under /content/ directory with index.md navigation nodes.
  • ๐Ÿท๏ธ Frontmatter: Standardized YAML headers mapping title, tags, and description.
  • ๐Ÿ”— Wiki Linking: Cross-linking cheat sheets using double-bracket [[Wiki Links]] syntax.
  • ๐Ÿš€ Static Generation: Quartz builds markdown files into highly-optimized static HTML/JS pages.

๐Ÿง  3. ULTRATHINK WORKFLOWS

  • ๐Ÿ“ YAML Planning: Every generation begins with a mandatory ultra-condensed YAML reasoning block.
  • ๐Ÿ•ต๏ธ Verification: Continuous validation of code snippets and configuration syntax.
  • ๐Ÿ”„ Refinement Loop: Multi-agent swarms run check/edit loops before final publication.
  • ๐Ÿšจ Safety Invariant: Deprecated features or unsupported APIs are flagged with clear warning callouts.

๐Ÿš€ Quick Start / CLI Commands

This guide provides the step-by-step CLI commands to execute the cs2vault pipeline. Use this workflow to cleanse raw developer logs, orchestrate agentic validation waves, and publish verified Quartz wikis.

๐Ÿ”ง 1. Cleanse (Noise Stripping)

Strip chat conversational fluff, extract performance metrics, and format standardized commit logs.

# Cleanse raw logs and output structured markdown
cs2vault cleanse ./raw-session.log --output ./content/04-Projects/clean-session.md
  • Noise Removal: Eliminates pleasantries and general setups to keep only absolute developer facts.
  • Log Compression: Compresses git history into standard [EMOJI] [SCOPE]: [ACTION] - [METRIC_DELTA] format.
  • Metrics Extraction: Compresses latency and footprint measurements into high-density markdown tables.

๐Ÿง  2. Ultrathink (Agentic Mapping)

Orchestrate multi-agent validation loops to map wiki nodes and enforce strict architectural constraints.

# Execute agentic validation waves and map node linkages
cs2vault ultrathink ./content/04-Projects/clean-session.md --vault-dir ./content
  • Wiki Linkage: Injects bidirectional wiki backlinks [[node-name]] across relevant files.
  • Node Assignment: Resolves directory bindings targeting specific folders (e.g., /content/01-Core-Architecture/).
  • Invariant Preservation: Identifies and documents compiler, bundler, and database constraints.

โšก 3. Quartz Bind (Verify & Publish)

Inject Quartz frontmatter, compile metadata indices, and run link verification.

# Bind markdown files, generate AI indices, and compile Quartz
cs2vault bind --generate-llms && npx quartz build
  • Frontmatter Injection: Prepends strict YAML frontmatter containing mandatory titles and tags.
  • AI Indexing: Compiles a unified llms.txt file by executing generate-llmstxt.js.
  • Link Verification: Runs npx quartz build locally to guarantee zero broken references.

๐Ÿ’ก Best Practices

  • Cleansing Automation: Always run log cleansing pipelines prior to agent analysis. Retain only metric deltas and path mappings.
  • Verification Builds: Execute npx quartz build locally to validate references. Fix all broken bidirectional [[links]] immediately.
  • Metric Standardization: Format all analytical data into unified comparative markdown tables. Keep headers clean and data high-density.
  • Frontmatter Integrity: Inject complete metadata schemas (title and tags) into every document. Do not omit titles.
ActionTarget FormatKey Metric / Verification
Commit Logs[EMOJI] [SCOPE]: [ACTION] - [METRIC_DELTA]0 downtime / p99 latency / % change
Release NotesMarkdown dashboard with analytical highlights tableBuild Speed / Avg Latency / Bundle Size
Wiki BindingsAbsolute node directories (e.g. /content/01-Core-Architecture/)Bidirectional [[backlinks]] integrity

๐Ÿšจ Gotchas & Traps

  • ๐Ÿšจ No Placeholders/Mock Data: Never ship TODO markers, stub descriptions, or empty fields in production wiki content.
  • ๐Ÿšจ Missing Frontmatter: Page rendering breaks if Quartz frontmatter lacks mandatory title, tags, or description YAML metadata.
  • ๐Ÿšจ Unverified Backlinks: Run local validation builds (npx quartz build) before finalizing to prevent broken internal backlinks.
  • ๐Ÿšจ Raw Log Overflow: Exceeding local log limits causes evaluation timeouts. Always slice log files using direct offset/limit range selectors.
  • ๐Ÿšจ Stale Tag Rejections: Edits using outdated snapshot tags cause immediate code rejection. Re-read files to refresh tags before writing.