workthreads
Skill1.3k starsChanged 6 months agoApache-2.0View on GitHub
SpecStory Workthreads - a weekly work-thread rollup across a team's repos from SpecStory coding histories (any agent - Claude Code, Codex, Cursor, Gemini, and more). It groups the window's sessions into threads of work per project and labels each new / open / recently closed, so a lead sees what shipped, what is still an open loop, and what was just started. Use when someone asks "what happened this week", "what is still open", "what did the team finish", "give me the weekly rollup", or wants a status report over a .specstory/history corpus.
- Deletes or force-pushes
Trending
More talk lately.thin dataabout the whole repository
Who's talking about specstoryai/getspecstory
- A Hacker News story“Why Git is no "good" for AI-generated code”Hacker News · Apr 2, 2025 · 35 points
- @mikestaub2.bsky.social“If you are using coding agents, I highly recommend you use this asap. It is very obvious that in the future …”Bluesky · Jan 13, 2026 · 2 likes
- UfoMiao/zcf“Miscellaneous set of tools”GitHub · Aug 18, 2025 · 2 reactions
- sudosubin/agents.nix“agent-skills.github.specstoryai.getspecstory: 2.14.1 → 2.15.1”GitHub · Oct 4, 2026
- sudosubin/agents.nix“agent-skills.github.specstoryai.getspecstory: init at 2.14.1”GitHub · Oct 2, 2026
The biggest 5 of 8 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 8
Talked about on GitHub, Hacker News and Bluesky (8 times).
On GitHub · 6
- Aug 18, 2025Miscellaneous set of tools — UfoMiao/zcf2 reactions · 1 comment
- Oct 4, 2026agent-skills.github.specstoryai.getspecstory: 2.14.1 → 2.15.1 — sudosubin/agents.nix0 reactions
- Oct 2, 2026agent-skills.github.specstoryai.getspecstory: init at 2.14.1 — sudosubin/agents.nix0 reactions
- Sep 30, 2026chore(pkg): bump specstory-cli-bin to 2.15.1 — abstraction/custom-pkgbuilds0 reactions
- Sep 13, 2026feat(hygiene): add guarded UTF-8 repair and encoding diagnostics — daviddwlee84/dev-cli0 reactions
1 more on GitHub
- Jul 20, 2026Add specstory kit — docker/sbx-kits-contrib0 reactions · 1 comment
On Hacker News · 1
- Apr 2, 2025Why Git is no "good" for AI-generated code35 points · 11 comments
On Bluesky · 1
- Jan 13, 2026If you are using coding agents, I highly recommend you use this asap. It is very obvious that in the future the session data will be… — @mikestaub2.bsky.social2 likes and reposts
In this repository5 other files it gives its agents.
- lore/AGENTS.mdAGENTS.md
- lore/CLAUDE.mdCLAUDE.md
- specstory-cli/CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
- loreSkill
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 21
Do not try to read raw transcripts yourself.
- Very specific: line 64
Add a caveat that the week may still be in progress, so open and new threads are snapshots, not final outcomes.
- Very specific: line 76
If the user just invokes the skill with no specifics, ask three short questions (use AskUserQuestion or plain chat), then run the default …
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Workthreads
A lead needs a weekly answer across the team's repos: what work happened this week, what got
finished, and what is still open and needs a next step. Workthreads produces that rollup
from SpecStory histories - the .specstory/history transcripts your coding agents already write.
It reports lines of work and their lifecycle (new / open / recently closed).
A deterministic engine (scripts/workthreads.mjs threads) does the retrieval, clustering, and
classification; you do the synthesis - you turn its evidence into the lead's weekly report.
Do not try to read raw transcripts yourself; they can be hundreds of thousands of lines. Run the
engine and write the rollup from its output.
This skill is harness-portable (agentskills.io format). Where it names a specific tool
(e.g. AskUserQuestion), treat that as "use your harness's equivalent; fall back to plain chat."
How the engine splits the work
- The engine groups the window's beats by project and clusters them into threads (a line
of work that can span several sessions). It assigns each thread one lifecycle status relative
to today:
- new - first activity within the last 7 days.
- open - unresolved, still active (the open loops).
- closed - latest outcome was success and the thread has gone quiet; flagged reverted
when a beat ran a rollback command (
git revert/git reset --hard/git checkout -- ...).
- Output is deterministic (stable sort, no wall-clock timestamps in the body), so two runs on the same corpus are byte-identical.
Default flow: the weekly rollup
- Index the corpus into workthreads' own DB. Point at the team's repos and build/update it:
node "${CLAUDE_SKILL_DIR}/scripts/workthreads.mjs" index --projects <parent-of-repos> --db <db> # or a single tree: --scan <root> or a single history dir: --dir <dir> - Run
threadscross-project for the last 7 days and capture the evidence:
The digest prints, per project, three sections in order - New, Open, Recently closed - each thread with its evidence refs (node "${CLAUDE_SKILL_DIR}/scripts/workthreads.mjs" threads --db <db> --days 7 # human digest node "${CLAUDE_SKILL_DIR}/scripts/workthreads.mjs" threads --db <db> --days 7 --json # machine-readablepath:line), last-activity date, status, and arevertedmarker.--jsonemits an array of threads (project,status,reverted, the files touched, last-activity date). - Write the rollup from that evidence, in the lead's shape:
- (a) a high-level result: session count and active projects in the window;
- (b) per-project highlights of completed work (the
closedthreads); - (c) open loops - the
openthreads, unresolved or needing verification, with a suggested next step each; - (d) notable rollbacks / abandoned efforts (the
revertedthreads); - (e) cite evidence refs (
path:line) so each claim is checkable. Add a caveat that the week may still be in progress, soopenandnewthreads are snapshots, not final outcomes.
- Save it to a dated file so the rollup is durable and diffable week over week:
(ISO week number, e.g..specstory/workthreads/<YYYY>-W<week>.md.specstory/workthreads/2026-W25.md). Also offerthreads --out <file>to drop the raw digest beside your written summary.
Guided start
If the user just invokes the skill with no specifics, ask three short questions (use
AskUserQuestion or plain chat), then run the default flow with the answers:
- Scope - which repos / parent directory holds the team's
.specstory/historycorpus? - Window - how many days back? (default 7 for the weekly rollup;
--days Nto widen.) - Goal - the whole rollup, just the open loops, just recently closed, or a quick status line? Tailor which sections you emphasize to the answer.
Conventions
Node ESM only, zero dependencies, Node >= 22.5. No em dashes anywhere (use " - "). The engine path never calls an LLM or the network; all judgment (the written narrative, suggested next steps, emphasis) is yours.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

