skills/ops/memory-spool-drain/SKILL.md
# memory-spool-drain **Lane:** ops **Version:** 0.1.0 **Owner:** system **Schedule:** */5 * * * * ## Purpose Drains the JSONL spool files to ClickHouse when they exist. This is the "parachute" for events that couldn't be written directly. Retries with backoff, quarantines poison files after max attempts. ## Memory Contract ### Access Mode **`service_only`** - All writes go through MemoryClient. No direct ClickHouse access. ### Writes None - read-only skill ## Provenance Every wri
npx skillsauth add orionarchitekton/cosmocrat-core skills/ops/memory-spool-drainInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Lane: ops
Version: 0.1.0
Owner: system
Schedule: */5 * * * *
Drains the JSONL spool files to ClickHouse when they exist. This is the "parachute" for events that couldn't be written directly. Retries with backoff, quarantines poison files after max attempts.
service_only - All writes go through MemoryClient. No direct ClickHouse access.
None - read-only skill
Every write includes:
| Field | Source |
|-------|--------|
| run_id | Generated UUID |
| trace_id | From Langfuse or run_id |
| source_ref | memory-spool-drain:run |
| actor | memory-spool-drain |
See task definition in app/cosmocrat_tasks.yaml
# Run locally
python -m app.services.mcp.jobs.{domain}.{module}
# Integration tests
pytest tests/skills/test_memory_spool_drain.py -v
tools
# tiktok-overnight-pipeline **Lane:** tbm **Version:** 0.1.0 **Owner:** system **Schedule:** 0 1 * * * ## Purpose Complete overnight pipeline for 3-channel TikTok content generation. Generates 9 videos (3 per channel) with TikTok Shop affiliate products. Timeline: 01:00 - 06:10 PT with GPU management (Llama on/off cycles). ## Memory Contract ### Access Mode **`service_only`** - All writes go through MemoryClient. No direct ClickHouse access. ### Writes None - read-only skill ## Pr
tools
# tiktok-health-monitor **Lane:** tbm **Version:** 0.1.0 **Owner:** system **Schedule:** 24 * * * * ## Purpose Hourly health check for TikTok Auto-Gen pipeline. Monitors video generation, QC pass rates, upload success. Alerts to Slack #tiktok-autogen on issues. ## Memory Contract ### Access Mode **`service_only`** - All writes go through MemoryClient. No direct ClickHouse access. ### Writes None - read-only skill ## Provenance Every write includes: | Field | Source | |-------|--
tools
# tbm-supabase-sync **Lane:** tbm **Version:** 0.1.0 **Owner:** system **Schedule:** 12 * * * * ## Purpose Push the latest TikTok readings from ClickHouse into the Supabase tiktok_posts table so tarotbymarie.com shows new content. ## Memory Contract ### Access Mode **`service_only`** - All writes go through MemoryClient. No direct ClickHouse access. ### Writes None - read-only skill ## Provenance Every write includes: | Field | Source | |-------|--------| | `run_id` | Generated
tools
# tbm-reading-sync **Lane:** tbm **Version:** 0.1.0 **Owner:** system **Schedule:** 30 22 * * * ## Purpose Daily sync of tiktok_transcripts to tbm_readings. Uses rule-based extraction for cards, themes, and spread type. Runs after backfill has completed for the day. ## Memory Contract ### Access Mode **`service_only`** - All writes go through MemoryClient. No direct ClickHouse access. ### Writes None - read-only skill ## Provenance Every write includes: | Field | Source | |-----