specstory-organize

specstory-organize is a skill for Claude Code from specstoryai/agent-skills. It costs 51 tokens per session (904 once invoked), scanned A, original, Apache-2.0.

A tool for sorting SpecStory AI coding-session files into year and month folders based on dates in their filenames. SpecStory history is a record of previous agent sessions stored in .specstory/history.

In plain words
What is it for?
Use it to organize all matching Markdown session files, or run a dry run to preview which files would move without changing them.
Why use it?
It makes a large collection of session records easier to browse and keeps the history folder organized.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it to organize all matching Markdown session files, or run a dry run to preview which files would move without changing them.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/specstoryai/agent-skills/specstory-organize
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add specstoryai/agent-skills --skill specstory-organize
Clone the repo
git clone --depth 1 https://github.com/specstoryai/agent-skills

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for specstory-organize

README.md
[![agentmods](https://agentmods.dev/badge/skills/specstoryai/agent-skills/specstory-organize/github.svg)](https://agentmods.dev/skills/specstoryai/agent-skills/specstory-organize)
Your own site
<a href="https://agentmods.dev/skills/specstoryai/agent-skills/specstory-organize"><img src="https://agentmods.dev/badge/skills/specstoryai/agent-skills/specstory-organize/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for specstory-organize

Your own site · 80×15
<a href="https://agentmods.dev/skills/specstoryai/agent-skills/specstory-organize"><img src="https://agentmods.dev/badge/skills/specstoryai/agent-skills/specstory-organize.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 51 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 904 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00051 $0.00904
Opus 5 $0.00026 $0.00452
Sonnet 5 $0.00010 $0.00181
Haiku 4.5 $0.00005 $0.00090

Measured 13d ago against content hash df1f19f92634, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

specstory-organize scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 13d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/organize.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/specstory-organize/SKILL.md · 121 lines

How it starts

The opening of the file, as written. The whole thing — 121 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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 says Action
/specstory-organize Organize all files (default)
/specstory-organize dry run Preview changes without moving
/specstory-organize --dry-run Preview 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

SpecStory History Organizer
===========================

Found 47 files to organize in .specstory/history/

Moving files:
  2026-01-15_10-30-22Z-refactor-auth.md -> 2026/01/
  2026-01-15_14-22-01Z-fix-tests.md -> 2026/01/
  2026-01-22_19-20-56Z-add-feature.md -> 2026/01/
  2025-12-28_09-15-33Z-cleanup.md -> 2025/12/
  ...

Summary:
--------
Files moved: 47
  2026/01/: 23 files
  2025/12/: 18 files
  2025/11/: 6 files

Your history is now organized!

Dry Run Output

When using --dry-run:

SpecStory History Organizer (DRY RUN)
=====================================

Would organize 47 files in .specstory/history/

Preview:
  2026-01-15_10-30-22Z-refactor-auth.md -> 2026/01/
  2026-01-15_14-22-01Z-fix-tests.md -> 2026/01/
  ...

No files were moved. Run without --dry-run to apply changes.

Read the full file on GitHub · 121 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 13d ago First seen · 121 lines · 51 tokens per session scan A df1f19f92634

Subscribe to this mod's changes

specstory-organize is a skill published in the GitHub repository specstoryai/agent-skills (35 stars, last pushed 7mo ago), licensed Apache-2.0. It adds 51 tokens to every session and 904 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

post-dev-recap

Post-development recap wrapper. Use when: AI/Codex just finished implementing a feature and the user wants a guided walkthrough with scope detection + doc generation + follow-up Q&A. Not for: generating only a doc (use /recap-doc), Q&A over an existing recap (use /recap-ask), technical share-out (use /tech-brief)…

sd0xdev/sd0x-harness · 124 tokens

obsidian-cli

Obsidian vault integration via official CLI. Use when: capturing dev artifacts to Obsidian vault, searching vault for context, appending to daily note, managing tasks in vault. Not for: general note-taking without Obsidian (use regular files), browsing Obsidian docs (use agent-browser). Output: vault search results…

sd0xdev/sd0x-harness · 78 tokens

statusline-config

Customize Claude Code statusline. Use when: user says 'statusline', 'status line', 'customize statusline', 'modify statusline', 'statusline settings', 'statusline theme', 'change theme', 'color scheme', wants to add/remove/change segments (cost, git, model, context), switch color themes (catppuccin, dracula, nord), or…

sd0xdev/sd0x-harness · 92 tokens

drive-me

Diagnose personal execution friction and convert a vague, stalled, or over-scoped goal into one bounded next-action plan with explicit scope, non-goals, acceptance criteria, and a lightweight feedback loop. Use when the user asks for help restarting work, overcoming procrastination, choosing what to do next, reducing…

arch3rPro/ark-space · 103 tokens

obsidian-bases

Create and edit Obsidian Bases (.base files) with views, filters, formulas, and summaries. Use when working with .base files, creating database-like views of notes, or when the user mentions Bases, table views, card views, filters, or formulas in Obsidian.

arch3rPro/ark-space · 63 tokens

obsidian-cli

Interact with Obsidian vaults using the Obsidian CLI to read, create, search, and manage notes, tasks, properties, and more. Also supports plugin and theme development with commands to reload plugins, run JavaScript, capture errors, take screenshots, and inspect the DOM. Use when the user asks to interact with their…

arch3rPro/ark-space · 102 tokens