cortex-distill

Solid

Distill raw session records into refined Notes and Projects. Use when the user says "提煉", "整理 raw", "distill", or "distill raw records".

AI & Automation 7 stars 4 forks Updated 5 days ago Apache-2.0

Install

View on GitHub

Quality Score: 78/100

Stars 20%
30
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Cortex Distill — Refine Raw Records Extract valuable knowledge from Raw/ session dumps into Notes/ and Projects/. ## Resolve Vault Path Read `~/.cortex/config.json` to get `vault_path`. If the file doesn't exist, tell the user to run `/cortex:genesis` first. ## Step 1: Find Unprocessed Raw Files List the distill queue: ```bash cortex-vec distill-queue --root <vault_path>/Raw ``` This is **position-anchored**: a Raw counts as distilled only if a `<!-- distilled: ... -->` marker appears in its header (before the first `### User` turn) **or** as its last non-empty line. Do **NOT** `grep` the marker string — a pipeline meta-session's body quotes it dozens of times (it printfs markers onto other files), so `grep -rL '<!-- distilled:'` silently drops genuine work from the queue. To check one file, use `cortex-vec raw-state <file>`. Show the pending list count and ask to proceed. ## Step 1.5: Schedule the Batch (only when queue > 1 file) Size the queue before opening any Raw: ```bash cortex-vec distill-queue --root <vault_path>/Raw --stat ``` Partition by RAW size (the `raw` column) and **present the plan for approval** (do not auto-run): - **Normal lane** — Raws whose raw size fits well inside one session budget (default 100K chars of raw-derived output). Process a batch this session, strictly one Raw at a time. - **Monster lane** — Raws whose complete review clearly exceeds one session budget. One Raw per dedicated session; expect `BUDGET_EXHAUSTED` + `disti...

Details

Author
XBlueSky
Repository
XBlueSky/cortexes
Created
2 months ago
Last Updated
5 days ago
Language
Python
License
Apache-2.0

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Solid

distill

Aggregate already-vaulted notes from multiple sessions or sources on a specific topic into a single structured digest note. Use when the user wants to synthesize a completed research thread — 'distill everything I know about X', 'crystallize my notes on Y'. Do NOT use for: promoting session insights to memory (use recap), writing today's session summary (use wrapup), or clearing raw inbox items (use consolidate — distill works on notes already in the vault).

20 Updated 4 days ago
onebrain-ai
AI & Automation Listed

cortex-pulse-distil

Weekly session-distillation loop for a Cortex project. Use for the scheduled weekly-curation bundle's distil member, or when the user says "run the distil loop", "what do I keep repeating", "mine the sessions for rule candidates", or "which workflows deserve a skill". Runs `cortex pulse-distil --collect`, performs the pattern judgment in-session — including the workflow-mining lens that proposes new skills — runs `cortex pulse-distil --propose`, and summarises .cortex/pulse/suggestions.md.

1 Updated 3 days ago
pedropacheco95
AI & Automation Solid

cortex-broadcast

llm-wiki style broadcast ingest — conversational update of related existing pages when a Raw has been distilled. Use when the user says "broadcast", "跑 broadcast", "compound this into the vault", "merge pending-merge", "process broadcast queue", or when cortex-distill invokes broadcast inline after Step 8 commit (automatic dispatch for every new / pending-merge Raw).

7 Updated 5 days ago
XBlueSky