specstoryai avatar

Specstory Organize

If you're using SpecStory AI and your .specstory/history folder is getting cluttered with dozens or hundreds of session markdown files, this skill sorts them into year/month subdirectories based on the timestamps in their filenames. Just say "organize my history" and it scans for files like 2026-01-22_19-20-56Z-fix-bug.md and moves them into folders like 2026/01/. It includes a dry run flag so you can preview what gets moved before committing. The script is straightforward Python that parses dates from filenames and creates the folder structure. Nothing fancy, but after a few months of sessions you'll appreciate having them organized by date instead of scrolling through a flat list of files.

skills.sh installs
289
GitHub stars
35
last updated
Aug 21, 2026

Install

$ npx -y skills add specstoryai/agent-skills --skill specstory-organize --agent claude-code

Installs into .claude/skills of the current project.

Files

SpecStory Organize

Organizes your .specstory/history directory by moving session files into YYYY/MM/ subdirectories based on the timestamp in each filename.

How It Works

  1. Scans .specstory/history/ for markdown files
  2. Extracts the date from filenames (e.g., 2026-01-22_19-20-56Z-fix-bug.md)
  3. Creates year/month folders (e.g., 2026/01/)
  4. Moves files into the appropriate subdirectory
  5. Reports what was moved

Why Organize?

Over time, your history directory can accumulate hundreds of session files. Organizing by date makes it easier to:

  • Find sessions from a specific time period
  • Archive old sessions
  • Keep your project directory clean

Usage

Slash Command

User saysAction
/specstory-organizeOrganize all files (default)
/specstory-organize dry runPreview changes without moving
/specstory-organize --dry-runPreview changes without moving

Direct Script Usage

# From project root
python skills/specstory-organize/scripts/organize.py

# Preview what would be moved (no changes made)
python skills/specstory-organize/scripts/organize.py --dry-run

Output

Sponsors

Details

Repository
github.com/specstoryai/agent-skills
Category
AI & Agent Building
First seen
Jun 3, 2026

More from specstoryai/agent-skills

All 6
1tuist avatarcompare-bundlestuist/agent-skillsCompares two app bundles to identify size changes, new or removed artifacts, and platform differences. Can be invoked with bundle IDs, dashboard URLs, or branch289skills.sh installs
2itechmeat avatarmantine-devitechmeat/llm-codeMantine UI library for React: 100+ components, hooks, forms, theming, dark mode, CSS modules, and Vite/TypeScript setup. Use when building React applications wi288skills.sh installs
3sebas5384 avatarconvex-ddd-architecturesebas5384/agentic-stuffconvex ddd architecture288skills.sh installs
4bagisto avatarpayment-method-developmentbagisto/agent-skillsPayment gateway development in Bagisto. Activates when creating payment methods, integrating payment gateways like Stripe, PayPal, or any third-party payment pr287skills.sh installs
5bocato avatarswift-testingbocato/swift-testing-agent-skillswift testing287skills.sh installs
6h1d avataresp32-serial-commandsh1d/agent-skills-esp32Send commands to ESP32 and microcontrollers via serial port to emulate button presses and user actions. Use for automated testing, stress testing, and debugging287skills.sh installs