skills/ops/context-query-rewrite/SKILL.md
# Context Query Rewrite Skill Rewrites user queries for better semantic retrieval by: - Extracting intent from natural language - Adding lane/domain filters automatically - Inferring temporal windows (recent vs. all-time) ## Phase **pre_retrieval** - Runs before semantic search retrieval ## Priority 10 (runs early in pre-retrieval phase) ## Activation - **Lanes**: ops (via `lane` field) - **Modes**: COO, CFO (via `activation.modes`) - **Agent Types**: cursor, codex (via `activation.agent_
npx skillsauth add orionarchitekton/cosmocrat-core skills/ops/context-query-rewriteInstall 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.
Rewrites user queries for better semantic retrieval by:
pre_retrieval - Runs before semantic search retrieval
10 (runs early in pre-retrieval phase)
lane field)activation.modes)activation.agent_types)rewrite_query - Transforms the user query into a better retrieval queryInput:
{
"user_query": "how do we deploy?",
"lane": "ops",
"agent_type": "cursor"
}
Output:
{
"rewritten_query": "deployment process configuration",
"filters": {
"lane": "ops",
"source": "chatgpt"
},
"time_window": 90
}
Located at: app/services/chat-gateway/context_engineering/skills/query_rewrite.py
The skill analyzes the user query to:
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 | |-----