Insights

From mycelium-hq/ai-brain-starter · View interactive version

Insights is an AI agent skill from the GitHub repository mycelium-hq/ai-brain-starter. Use when the user types /weekly or /monthly, asks for a weekly or monthly journal review or retrospective, asks 'how was my week' or 'how was my month', or wants trends, anomalies, or patterns across recent journal entries. Also fires when regenerating an insight report for a past week or month. NOT

How to use this skill

Skill file

When the user types /weekly or /monthly, generate an insight report from their recent journal entries.

Language

Generate the entire report in the language the user writes in. If Spanish, all sections — coach, therapist, panel, floor notes — are in Spanish.

Spanish floor aliases: Asco (1) · Vergüenza (2) · Bochorno (3) · Culpa (4) · Apatía (5) · Resignación (6) · Confusión (7) · Soledad (8) · Aburrimiento (9) · Duelo (10) · Decepción (11) · Herida (12) · Miedo (13) · Frustración (14) · Deseo (15) · Rabia (16) · Desprecio (17) · Orgullo (18) · Valentía (19) · Esperanza (20) · Neutralidad (21) · Disposición (22) · Aceptación (23) · Razón (24) · Confianza (25) · Compasión (26) · Humildad (27) · Pertenencia (28) · Amor (29) · Gratitud (30) · Entusiasmo (31) · Asombro (32) · Alegría (33) · Paz (34)

Floor wikilinks in the report use Spanish aliases in Spanish: [[Miedo]], [[Valentía]] etc.

For /weekly -- read all journal entries from the current calendar week (Monday-Sunday). If today is Monday or Tuesday, default to the previous week (since there's barely any data yet). The user can specify "this week" to override.

For /monthly -- read all journal entries from the current calendar month (1st-last day). If today is the 1st-3rd, default to the previous month. The user can specify "this month" to override.

Journal entries are in: [VAULT_PATH]/Journals/

CRITICAL: How to find entries by date

DO NOT grep thousands of files. Use the journal index instead.

Step 0: Load the journal index

Read [VAULT_PATH]/⚙️ Meta/journal-index.json (or [VAULT_PATH]/Meta/journal-index.json on vaults without an emoji-prefixed Meta — the same folder build-journal-index.py writes to). Structure: {"total": N, "last_updated": "YYYY-MM-DD", "entries": [{file, date, floor, floor_level, floor_arc}, ...]}. Access entries via idx["entries"], then filter by entry["date"].

floor_arc is present only on entries that moved, and build-journal-index.py already stores it as a real list (e.g. ["Fear", "Frustration", "Courage"]) — read it straight from the index for the section 0e movement report instead of re-grepping frontmatter. If no entry in the period carries it, the field is genuinely absent from those entries; do not infer arcs.

If the index doesn't exist or is more than 7 days old, rebuild it first. Note this check measures age, not completeness — a freshly built index can still be missing entries written after it. The daily-journal skill rebuilds the index every time it writes an entry, which is what keeps this guard honest; if entries are missing here, that step is the first thing to check:

/usr/bin/python3 "[VAULT_PATH]/Meta/scripts/build-journal-index.py"

Step 1: Filter entries by date range

From idx["entries"], filter where entry["date"] starts with the target YYYY-MM (monthly) or falls within the target Mon-Sun range (weekly).

Floor counting — primary vs. arc. Each entry has one primary floor (where it landed). Entries that moved also carry floor_arc, the ordered path of floors they passed through. Compute BOTH views and name which one a number is: (a) landed-floor distribution counts the primary floor once per entry; (b) floors-touched distribution expands floor_arc — count +1 for every floor in the arc, and an entry with no arc contributes just its primary floor. Do NOT collapse an arc to a single item, and treat a legacy list-form floor: [A, B, C] the same way (expand it, never count as one). Verify by running a Python script against the index, never hand-counting.

Step 2: Read ONLY the matching files

Read the full content of each matching file. Do NOT read files outside the date range. With the index, you're reading 5-15 files instead of searching the entire vault.

Step 2b: Pull RescueTime + session time data (if available)

If the RescueTime MCP is connected: Try calling mcp__rescuetime__get_daily_summary for each day. If the MCP is disconnected or returns errors, note "RescueTime unavailable for this period" in the report and skip all RescueTime-dependent sections. Do NOT silently omit. For weekly, also call mcp__rescuetime__get_productivity_trend with days: 7.

If a Time Tracking file exists (check CLAUDE.md for the path, typically ⚙️ Meta/Time Tracking.md): Read it and filter entries for the period. This shows what categories were worked on during Claude Code sessions (Writing, Business, Vault, Personal, Admin). Merge with RescueTime app data for a combined picture: RescueTime shows which apps were used, session logs show what purpose they served.

Add to the report if data is available:

Step 2e: Token usage report (weekly + monthly, optional)

If the vault has scripts/token-usage-report.py, run it to surface real per-session token consumption + estimated USD cost from Claude Code session JSONLs:

# /weekly: 7-day window
VAULT_ROOT="<VAULT_PATH>" python3 "<VAULT_PATH>/scripts/token-usage-report.py" --days 7 --top 10

# /monthly: 30-day window
VAULT_ROOT="<VAULT_PATH>" python3 "<VAULT_PATH>/scripts/token-usage-report.py" --days 30 --top 20

The script writes ⚙️ Meta/Token Usage Report.md. Read it and surface a compact block in the report. If Opus cost share >60% or Sessions ≥60 turns >3, surface as a coach line in Section 3 (model-routing or session-length drift). Single-session cost outliers (>$200) get one bullet in Section 2.

This replaces guess-work with real numbers from ~/.claude/projects/<vault-hash>/*.jsonl (the only ground-truth source for token consumption — Claude Code does not surface this in any UI). Inspired by JuliusBrussee/caveman's /caveman-stats.

Step 2f: Drift compression candidates (weekly + monthly, optional)

If the vault has scripts/compress-vault-doc.py, run the compression-candidate sweep on docs flagged by Drift Audit:

VAULT_ROOT="<VAULT_PATH>" python3 "<VAULT_PATH>/scripts/compress-vault-doc.py" --auto-from-drift --dry-run

If candidates show >2KB savings, surface as a compact block. If <2KB, skip silently.

Step 2g: Baseline + anomaly computation (LEAD-WITH SIGNAL)

The reason this skill exists is to surface insight, not to summarize. A report that says "you had 6 Courage entries" is data. A report that says "Courage was 25% in the prior three months, dropped to 3% this month" is signal. That's the lead.

If the vault has monthly-baseline.py, run it for the target period. Check both scripts/ and the Meta scripts folder — on emoji-prefixed vaults it lives at ⚙️ Meta/scripts/monthly-baseline.py, the same place build-journal-index.py is invoked from above:

VAULT_ROOT="<VAULT_PATH>" python3 "<PATH_TO>/monthly-baseline.py" --month YYYY-MM --pretty

The script outputs floor distribution shifts ≥3pp from baseline, word-frequency anomalies ≥2× or ≤0.5× baseline, numeric metric deltas ≥10%, activity deltas, top people mentions, and missing-data flags. Use this output as the FIRST DATA SECTION (sections 0a/0b/0c below). Don't bury it under "Month at a glance." Anomaly-led framing means the reader sees what's different before they see what's present.

Step 2c: Data availability check

Before writing the report, check which data sources exist for the target period:

If a data source has no entries for the period, skip that section silently. If 3+ data sources are missing, add a one-line note at the top: "Note: some tracking systems started after this period. Sections that depend on them are omitted."

Report Structure

REPORT OPTIMIZATION FUNCTION: Optimize for INSIGHT (anomaly + delta + counterfactual + said-vs-did), NOT for COMPLETENESS (cover every section). A great report surfaces 3-5 things you didn't already know. Sections 0a, 0b, 0c are the load-bearing ones. Sections 1, 1b, 6 are appendix material. Don't lead with summary content. If a section has nothing genuinely surprising, write one short line and move on rather than padding.

The audit shaping every section: would this observation surprise the reader? If no, it's summary not insight. Cut it or compress it.

0a. Anomalies + deltas (LEAD WITH THIS)

From the Step 2g baseline output. Surface the floor shifts, word-frequency spikes, numeric metric changes, and activity deltas — but synthesize them, don't just paste the table. Format as 3-5 bullet points:

Each bullet names the data, the magnitude, AND the hypothesis the data invites. Don't stop at "X happened" — say "X happened, here's what it might mean."

0b. Said vs. did (counterfactual check)

Pull commitments from the period:

For each commitment: what was the outcome? Format as a 2-column comparison. Surface gaps explicitly. A missed deadline or stalled decision is signal, not an error to skip.

This is the section that converts "summary of what happened" into "report card on what was said." Without this, the skill produces narrative without accountability.

0c. Hidden connections (graph + co-occurrence)

For the period, surface:

Goal: surface 1-2 connections invisible from sequential reading. The graph sees aggregate patterns the diary doesn't.

0d. Body track (health-mcp)

The body has its own data and its own arc. When biometric / cycle / sleep / nutrition / lab data is available, it answers questions journals alone can't: which Floor-low days were physiology and which were content; whether the recovery score's "rest more" was the right prescription or whether the actual signal was "eat enough"; whether a Floor pattern this month is anniversary-coupled to the same month two years ago; whether a nutrient deficiency is masquerading as a low-mood pattern.

If the health MCP is not registered or returns errors, skip this entire section silently. Graceful degradation, never block the main report.

Tools to call (weekly)
Tools to call (monthly only — additional)
Synthesis instruction (HELPFUL, NOT JUST COOL)

The reason this section exists is to change what the user does tomorrow, not to display body numbers. Lead with patterns that pair body data with the Floor/journal track in ways neither could surface alone.

Surface 3-7 bullets, each shaped:

Worked examples (not for the report — the SHAPE):

HRV ran 18% below baseline mid-period — and you were in mid-luteal phase. Cycle-phase context (Sims) says luteal HRV dips are physiology. The recovery score over-fired here. Don't trust the "rest more" prompts during luteal week 3 unless RHR also climbed.

Floor 4 (Fear) days correlated r=-0.42 with HRV across 12 paired observations. On Fear days, sleep latency was 23min vs 11min average. The body is registering threat before the journal names it. For the next two weeks, when sleep latency runs >20min, write before bed instead of in the morning.

5 of 14 days you ate under 70% of energy burned. Recovery score recommended rest 4 of those days. This is the under-fuel signal — recovery wants you to eat enough, not rest more. Set a daily kcal floor of [basal+active*0.8] until HRV returns to baseline.

HRV is 14% below same-month-last-year AND same-month-two-years-ago. Third-year asymmetry. Persistent-asymmetry detector flagged it. Anniversary-pattern hypothesis (van der Kolk). What was happening this time of year in [year-3]? /deconstruct on the period.

Vitamin D 25-OH = 28 ng/mL (ref 30-100). Below range. Vitamin D deficiency drives mood, immunity, and recovery. The persistent low-Floor pattern this month may have a metabolic floor under it. Get tested again in 3 months after supplementing 5000 IU/day; flag with your physician.

Sleep-regularity score 52/100. Bed-time stdev 87min, wake-time stdev 72min. Body is in chronic low-grade jet lag. The recovery formula doesn't capture this — single-night scores look fine. Pick a wake time within a 30-min window for 14 days; the score should climb 20+ points.

VO2Max trended down 4% over 90 days. Zone 2 minutes 124/week (target 180+). Cardio capacity is the priority longevity lever and it's drifting. One Zone 2 walk (60-70% HRmax) per workday for the next month — measurable in the next monthly review.

Banned shapes for this section
Cycle-phase qualifier (always apply if cycle data exists)

When health_cycle_context(today) returns a phase, ALL biometric interpretations in this section must be qualified by phase. Saying "your HRV dropped" without naming the phase is medically incomplete and the substrate gaslights its menstruating users without it. The phase tag is the first line of any biometric finding.

Lab status flags (always surface ANY out-of-range lab)

If health_lab_panel(today) returns ANY marker with status: low or status: high, surface it as its own bullet with the WHY for that marker (pull from health_recommended_labs if useful) and a specific re-check or supplementation suggestion. Out-of-range labs change the prescription; never bury them under "your body had a tough month."

Voice profile

Use the curious register: observation + question. Do NOT use clinical for this section even though the data is clinical. The reader is reading their own life, not a chart review. The data is the input; the question is the load-bearing artifact.

0e. Movement report (transitions, loops, resilience direction, ropes, doors)

A floor is a point; a period of floors is a vector field. This section reads the movement frontmatter the daily-journal skill records (floor_yesterday, floor_arc, moved_because, body_check, rope, door, door_prev) and reports on motion, not position. If fewer than ~10 entries carry these fields yet, write one line ("movement data is still thin — [X] entries carry it") and report only what's real. Never fabricate transitions from entries that lack the fields.

Compute (by script against the index/frontmatter, never hand-counted):

  1. Transition pairs (the elevators) — the recurring floor→floor movements for THIS user, pooled from two sources: (a) BETWEEN entries — consecutive entries and floor_yesterday where present; (b) WITHIN an entry — every adjacent pair in floor_arc (an arc [Fear, Frustration, Hope] yields Fear→Frustration and Frustration→Hope). Pool both, then surface the top 2-3: "Your Fear goes to Frustration (4 of 5 times), not to Shame. That's your wiring — the generic map doesn't apply to you." These transitions ARE the elevators the framework points at — name the single most common movement for the period ("your most common movement this month was Fear → Frustration").
  2. Loop detection — a 2-3 floor cycle appearing 3+ times in the period (or vs. baseline months). Cross-reference each loop with people mentions, topics, and calendar position (same week of month? same season? cycle-phase if health data exists). Name the loop AND its likely mechanism class: protective (guarding a worse floor underneath), structural (same person/context keeps rebuilding it), or physiological (calendar/cycle-coupled). The mechanism matters more than the floors: loops need the mechanism addressed, not the floor's generic "way out."
  3. Resilience direction (not just speed) — for each low-floor dip (floor ≤ 18 after a higher entry): where did the next 1-3 entries land? Above the pre-dip baseline, back at it, or at a recurring stuck floor? Fast-back-to-stuck is reactivity, not resilience — the stopwatch can't tell them apart, the direction can. Report the period's bounces and, monthly, the trend: "Your bounces this quarter land on Willingness; in March they landed back on Resignation. That's the single most important line in this report."
  4. Body-attribution rate — of the period's low-floor entries, what fraction had 2+ "no" values in body_check? "5 of your 7 low-floor days were underslept days. Before working on the psychology, protect the sleep."
  5. Rope inventory — aggregate rope: values across all time (not just the period). These are the user's proven handholds. Surface as a short list in the report AND append new ropes to the relevant floor notes' Personal Patterns: "What has actually pulled you up: the dogs (6×), walking (4×), calling [person] (2×)."
  6. Door completion rate — doors set vs. door_prev: done. This is the insight-vs-action gauge: a high floor-naming accuracy with a low door rate means the journal is producing articulate stuckness. Say so directly (coach voice): "You named the floor correctly 12 times and walked through the door 3 times. The map is not the walking."

Banned shapes: transition claims from non-consecutive entries presented as consecutive; calling a fast return to a low baseline "resilient"; prescribing a floor's generic way-out for a loop without naming the loop's mechanism; padding this section when the data is thin.

1. The week/month at a glance (DEMOTED — appendix-level)

Keep this short. The deltas are in 0a. This section is the snapshot context for a reader who skipped 0a, not the lead.

1b. Floor-Topic Correlations

Compute a matrix: for each floor that appeared 3+ times this period, count how many entries co-occur with each topic cluster. Use keyword matching against entry content. Define 5-7 topic clusters relevant to the user's life (e.g., work, writing, money, relationships, health, spiritual, social). Present as a table (floor rows x topic columns). Then write 3-4 bullet points naming the strongest correlations: "Money correlates with Fear (7) and barely with Peace (2). When you think about money, you're on the worried floors."

Only report what the data shows. Do not interpret beyond the numbers.

2. What stood out

3. Patterns a life coach would flag

Be direct. Coach energy. Specific references to entries:

4. Patterns a therapist would explore

Gentler. Curious. Not prescriptive:

4b. Coaching Sessions check-in (re-eval surface)

If the user has the /coaching skill installed and a 🏠 Home/Coaching Sessions/ folder exists, scan it for any sessions whose re_eval_date has passed (date <= today) and whose status is still open. For each one:

Be honest about the data. If the user committed to "send the written follow-up" and there's no journal entry mentioning it, name that. If the pattern surfaced once in a different context, that's the 2nd-mention promotion threshold — name that too.

If no coaching sessions exist or none are due, skip this section silently.

5. Panel thoughts on the week/month

Select 3-5 advisors most relevant to what came up. 1-2 sentences each, in character. Challenge assumptions, don't just validate.

Use the full advisory panel. Each advisor has a distinct voice, match it when they speak.

Wealth & Strategy -- for money, business models, leverage, risk, and building wealth:

Leadership -- for managing people, making decisions, and growing as a leader:

Gatherings -- for how people come together, events, and creating belonging:

Psychology -- for inner work, patterns, emotional processing, and growth:

Relationships -- for love, dating, attachment, conflict, and connection:

Health -- for body, sleep, hormones, movement, and longevity:

Wisdom -- for meaning, perspective, and the bigger picture:

Creativity -- for making things, creative blocks, and artistic practice:

5a. Becoming-better-human pass (PRESCRIPTIVE, /monthly only)

Where Section 5 has the panel REACT to anomalies (what to notice), Section 5a has a different panel PRESCRIBE actions (what to do). Use the "Personal Growth & Becoming Better Humans" roster from templates/rules/advisory-panel.md. Seat 5-7 voices most relevant to this month's anomalies.

The instruction to each voice is the same: "Given this month's data, what should the journaler actually DO over the next 30 days to grow as a human, not just to ship more work?" The output is a concrete practice, ritual, identity-shift, or belief-examination. Not generic encouragement.

Format each voice as 2-3 sentences:

  1. The pattern they noticed (in their lens)
  2. The specific practice or shift they prescribe
  3. The metric or signal that would tell the journaler it's working

Required diversity:

Banned shapes:

Skip for /weekly (too short a window for prescriptive month-long practices).

5b. First-principles audit

Scan [VAULT_PATH]/Meta/Decisions/ for any decisions logged this period with stakes: high. Check whether they have deconstruct: true in their YAML frontmatter.

> "You made [X] high-stakes decision(s) this week without running a first-principles check: [decision name(s)]. Not every decision needs one, but if any of these feel like you followed a playbook instead of thinking it through, it's not too late to run /deconstruct on them."

This is the accountability loop for first-principles thinking. The deconstruct skill catches decisions in real time. This catches the ones that slipped through.

5b2. Decision retrospective

Scan [VAULT_PATH]/Meta/Decisions/ for active decision files (those NOT in the Archive/ subfolder). For each one:

  1. Check if enough time has passed to evaluate the outcome. Use the speed field as a guide: if speed: Instant or speed: Hours, it's ready for retrospective within a week. If speed: Days, wait 2-4 weeks. If speed: Weeks, wait 1-3 months.
  2. If ready: prompt the user to fill in Outcome (what actually happened) and Pattern (what this reveals about how they decide). Don't fill these in yourself; ask the user. The learning only works if they articulate it.
  3. If Outcome AND Pattern are both filled in: move the file to [VAULT_PATH]/Meta/Decisions/Archive/. The decision is complete; it has taught what it can teach.
  4. Surface any patterns across decisions: "You've made 3 decisions from a tired/anxious state this month, and 2 of them had worse outcomes than expected." Or: "Every time you decided quickly on hiring, the outcome was positive. Your instinct here is reliable."

If there are no active decisions to review, skip this section silently.

5c. Skill usage snapshot (if data exists)

Check if [VAULT_PATH]/Meta/skill-usage-log.jsonl exists and has entries for the period. If it does, include a brief summary:

Keep this to 2-3 sentences. If the log file doesn't exist or is empty, skip this section silently.

5d. Obsidian ecosystem check (monthly only, skip for /weekly)

Once a month, scan the Obsidian community plugin registry (github.com/obsidianmd/obsidian-releases, specifically community-plugins.json) for:

Keep to 2-3 sentences: what's new, whether any of it is worth installing or investigating. If nothing relevant, skip silently.

6. Wins to celebrate

Things that went well that might get overlooked. Good days matter MORE to document than bad ones.

7. One question to sit with

End with ONE question. Not homework. Not an action item. A question worth thinking about based on what the data showed. Make it specific to THEIR week, not a fortune cookie.

Save the Report

Journals are organized by month folder. Save reports INSIDE the appropriate month folder, not in a separate subfolder.

The month folder will already exist if journals are organized (run scripts/organize-journals.py to set that up). Create it if it doesn't exist.

Format:

---
creationDate: [today]
type: insight
period: weekly OR monthly
date_range: [start] to [end]
entries_analyzed: [X]
primary_floor: [Floor]
floor_trend: [up/down/stable]
gym_total: [X]
avg_bedtime: [time]
---

[Full report]

*Primary floor: [[Floor]] · [[Level Floors]]*

After Saving: Update Floor Notes with Personal Insights

Floor wikilinks in report body: Every floor name in sections 1–7 — [[Fear]], [[Courage]], etc. — first occurrence per floor. In Spanish reports use Spanish aliases: [[Miedo]], [[Valentía]]. This builds the graph and links readers to the floor files where the Substack reference lives.

After saving the insight report, check whether any floor that appeared this period has a new personal pattern worth capturing. Floor concept notes live in the vault's concept folder (e.g., Notes/ or Writing/The High-Rise/Floors/).

For each floor that appeared 2+ times this period:

  1. Read the floor note (e.g., [[Fear]], [[Courage]], [[Joy]])
  2. Check if it has a ## Personal Patterns section. If not, create one.
  3. Ask: Is there a NEW trigger, pattern, or movement insight from this period that isn't already captured?
  1. If yes, append it under ## Personal Patterns with the date range: - *(Week of Apr 7-13, 2026)* Joy tends to show up after back-to-back gym days and uninterrupted writing mornings.
  2. If nothing new, skip silently, don't add filler.

What makes a pattern worth adding:

What to skip:

Floor note bootstrap: If a floor note doesn't exist for a floor that appeared this period, create it:

---
aliases: [floor-name-lowercase, common-synonyms, spanish-equivalents]
floor_number: [X]
type: concept
floor_tier: [low|middle|high]
creationDate: YYYY-MM-DD
---
# [[FloorName|FloorName]]

**[[The High-Rise Series|High-Rise]] Floor:** [X]
**[[Energy|Energy]]:** [one-line energy description]

[2-3 sentences about the floor.]

## How it shows up
- [symptom or behavior]

## The way out
[1-2 sentences.]

## From your journals
*(Fills in over time.)*

## Personal Patterns

- *(Week of [date])* [first observation from this period]

## [[Connection|Connected]]
[[Adjacent Floor]] | [[Related Concept]]

**Substack:** [Internal Design](https://adelaidadiazroa.substack.com/s/internal-design) | [Diseño Interior](https://adelaidadiazroa.substack.com/s/internal-design)

Existing notes: Check each updated floor note for the bilingual Substack line at the bottom. Add if missing.

Over time, clicking [[Fear]] won't show a textbook definition. It'll show YOUR fear: what triggers it, who brings it, what moves you out of it, and how it's changed over the months.

For monthly insights: Do a deeper review. Read ALL personal patterns accumulated so far and see if any need updating, merging, or retiring. A pattern from January might not hold in April.

After Floor Notes: Auto-Wikilink Check

After updating floor notes, scan this week's journal entries for missing wikilinks:

  1. Read the Wikilink Reference at [VAULT_PATH]/Meta/Wikilink Reference.md
  2. For each journal entry from this period, check if key concepts mentioned in plain text have matching entries in the Wikilink Reference that aren't wikilinked
  3. Add [[wikilinks]] where they're missing (first occurrence per file only, use alias syntax)
  4. Don't over-link, only link concepts that are actual vault notes, not random words

Graphify integration: If graphify-out/graph.json exists, also check:

8. System health audit (monthly only, skip for /weekly)

Run python3 "[VAULT_PATH]/Meta/scripts/context-audit.py" and include the results. Then pull 3 panel voices to comment on the overall setup:

The panel should answer: "What's one thing about this setup that's slowing you down that you haven't noticed?"

If the audit script flags warnings, include specific fix recommendations. If everything passes, say so briefly and move on.

Rules

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.