Skip to content

~/Documents/Last30Days/ output directory never created automatically #395

@vinnyp

Description

@vinnyp

Bug

The README states that HTML briefs are saved to ${LAST30DAYS_MEMORY_DIR} (defaulting to ~/Documents/Last30Days/) — but nothing in the skill actually creates this directory. Not the SessionStart hook, not the skill instructions, nothing. The directory must already exist or saves silently fail.

Repro

  1. Fresh install — no prior ~/Documents/Last30Days/ directory
  2. Run /last30days <topic> --emit=html

Expected: Brief is saved to ~/Documents/Last30Days/<topic>-brief.html
Actual: Directory doesn't exist; save either silently fails or errors depending on implementation

Evidence

The hook (hooks/scripts/check-config.sh) reads LAST30DAYS_MEMORY_DIR but never creates it. There's no mkdir -p anywhere in the hook or skill spec for the output directory.

Fix

Either:

  • Add mkdir -p "${LAST30DAYS_MEMORY_DIR:-$HOME/Documents/Last30Days}" to the SessionStart hook
  • Or have the skill create it on first --emit=html run before writing

Impact

Every new user hits this. The README prominently describes the auto-save feature but it doesn't work out of the box. User has to discover it from the README themselves rather than from a helpful error or automatic setup.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions