SkillsReviewed · specstoryai

SpecStory Lore

SpecStory Lore is an Agent Skill, a reusable instruction package for AI coding assistants such as Claude Code and Codex, that reads session histories recorded by SpecStory and helps developers turn repeated workflows into new skills. Repeated activity and apparent user approval do not prove that a procedure is correct. It combines a local Node.js and SQLite engine with model-led analysis, user-approved skill creation and tracking of previously created skills.

Researched 15 Nov 2026

In short.

SpecStory Lore is an Agent Skill, a reusable instruction package for AI coding assistants such as Claude Code and Codex, that reads session histories recorded by SpecStory and helps developers and teams turn repeated workflows into new skills. Repeated activity and apparent user approval do not prove that a procedure is correct. Version 3.9.0 indexes SpecStory transcripts locally, ranks recurring practices and asks an agent to develop evidence-backed proposals. The README and package.json declare Node.js 22.5 as the minimum; an existing SpecStory coding history is also needed. The source provides useful traceability, while export limits, narrow cache fingerprints and incomplete redaction coverage qualify its stronger assurances. Installation, runtime performance and the effectiveness of generated skills have not been assessed through execution.

Researched and written by an AI model and checked by a second AI model. How it works

Covers the lore folder at commit 19573ae1225531682c4d8eb64b4f33f425fc8d13, including hidden configuration, instructions, documentation, package metadata, engine and workflow scripts, hook, project and provider fixtures, golden plan and tests, plus lore/LICENSE and repository LICENSE.txt. Repository-wide SpecStory CLI implementation, root marketplace configuration, CI and release workflows, external installer behavior and a built lore.skill release archive are outside this source scope. Installation, runtime behavior, performance, provider handling and generated-skill effectiveness remain unassessed through execution.

The overview

Identity

SpecStory Lore is an Agent Skills package maintained under the SpecStory name in the getspecstory repository. Its main instruction file, plugin metadata and package metadata all declare version 3.9.0. Although it includes a command-line engine and Claude Code plugin metadata, its primary use is as instructions and supporting files loaded by a coding agent.

The source version described here is commit 19573ae1225531682c4d8eb64b4f33f425fc8d13: [https://github.com/specstoryai/getspecstory/tree/19573ae1225531682c4d8eb64b4f33f425fc8d13/lore].

Assessment

Lore is most useful when a developer already has substantial SpecStory histories and wants help finding repeatable procedures or habits worth documenting. Its distinctive contribution is linking a request to recorded agent activity and the following user reaction, rather than merely counting popular commands.

Treat its proposals as material for informed review. Deterministic counting improves traceability, but parsing can still lose context, feedback labels can be misleading and model-written procedures can overgeneralize. The source supports a useful discovery system; it does not establish that adopting its proposals improves software outcomes.

Users

Individual developers can use Lore to recover recurring build, deployment, diagnosis or review practices from past sessions. Teams can use committed histories to identify shared practices and propose project-scoped skills. Guided prompts reduce the need to learn its engine flags, although reviewing the resulting procedures still requires knowledge of the project.

It offers little immediate value without existing SpecStory transcripts. Team attribution also needs scrutiny: the implementation identifies authors through the Git author who added a transcript, then names found in home-directory paths, then the local machine user. Those fallbacks are attribution heuristics, not verified identity.

Capabilities

The engine implements incremental indexing, ranked command and intent patterns, exact-span exports, semantic theme storage, cached candidate dossiers and saved curation plans. It can distinguish recurrence across projects, inventory installed skills and track the evidence associated with created or declined candidates.

The agent-facing process adds naming, interpretation, miner-and-verifier passes and user selection before creating skills. A registry recommends updates when evidence grows and detects edited or missing skill files. These are recommendations for the calling agent; the engine does not independently decide whether a generated procedure is sound.

Using it

Requirements

The README and package.json declare Node.js 22.5 as the minimum; the engine uses its built-in node:sqlite module. Lore needs histories in SpecStory's Markdown format, normally under .specstory/history. SpecStory is a separate recorder that must already have written these transcripts. The Lore files at this commit do not cover installing or configuring SpecStory, so those steps are unknown. The engine has no declared npm runtime dependencies. Full skill generation additionally needs a compatible coding agent with model access and permission to read histories, invoke the engine and write selected skill files.

Claude Code has bundled orchestration scripts and a curation hook. Other agents are instructed to use their own subagents or process candidates sequentially. Installation examples use Unix-style paths and symbolic links; Windows behavior is not established. The engine itself makes no model calls, but full use sends exported evidence to the calling model, whose data handling depends on the chosen harness and provider.

Mechanism

Lore divides conversations into beats: one user request and the agent activity before the next request. It extracts commands from recognized shell-tool blocks, records tool activity and assigns an outcome from the next user message. Recognized approval phrases produce success, opening correction phrases produce corrected, other replies produce neutral and the final beat receives end.

SQLite queries group command sequences, lexical intent signatures and fixed behavioral detectors. Corroborated candidates join an intent and command sequence occurring in the same beat. Model agents separately propose semantic themes from sampled spans and develop candidate dossiers. Approved skills are written as SKILL.md packages, with evidence and file hashes recorded for later comparison.

Setup

The README documents npx skills add specstoryai/getspecstory --skill lore. Claude Code also has a plugin route using /plugin marketplace add specstoryai/getspecstory followed by /plugin install lore@specstory. Documented invocation is /lore in Claude Code and $lore in Codex. These installation commands do not pin the source revision described here.

From a source checkout's lore directory, an engine-only preview can use node scripts/mine-skills.mjs index --dir /path/to/project/.specstory/history --db /tmp/lore-preview.db, followed by node scripts/mine-skills.mjs report --db /tmp/lore-preview.db --emit json. These documented interfaces index and rank evidence; they do not perform model synthesis or create a skill. Indexing writes to the selected database.

Example

A synthetic fixture in the repository records a request to build and test a Go project, followed by go build ./..., go test ./... and golangci-lint run. The next user message asks for a commit, providing the approval phrase used to label the previous beat successful. A companion fixture repeats the commands but includes failing output and a subsequent correction about stale lint configuration.

Lore is designed to combine such examples into a candidate containing a trigger, procedure, verification steps and failure recoveries. The golden plan illustrates this presentation. These are fixture conversations and expected output examples, not evidence that a real project or Lore itself was executed successfully.

Assessment & evidence

Limitations

The documentation's claim that deep mining reads every beat needs qualification. Command-cluster exports default to 25 beats and 120 lines per beat, and the bundled deep-mine workflow explicitly requests --max 25. Corrected beats receive priority, but large clusters can exceed the cap and long spans can be truncated. The exported totalMatching and truncated fields help expose these limits.

The Claude Code approval hook checks for a marker, a final count sentinel and enough card headers. It does not compare the plan's actual contents with cached dossiers or establish that the text came unchanged from the renderer. It is a structural guard, not proof that every supporting fact was displayed.

Secret masking covers beat text, report output and rendered dossiers, themes and plans. However, the database stores prompt snippets and command text before masking, while CLI paths such as dossier get, theme get and theme expand emit stored data without applying the redaction function. Confidential values may therefore appear through those paths; no actual disclosure is established here. Pattern-based masking also cannot establish complete removal of confidential information.

Interpreting the results

Matching intent and procedure within the same beat provides more context than command frequency alone, but normalization removes important distinctions. For example, npm run build and npm run test both reduce to npm run. Arguments, many reconnaissance commands and later pipeline segments are omitted from command patterns. Inspect the underlying spans before treating a cluster as one reusable procedure.

Outcome percentages measure recognized reactions among labelled beats, not independently verified task success. A request to commit can count as approval, and theme outcome lift is an association rather than proof of improvement. Model verification adds scrutiny but remains fallible: the theme workflow retains candidates marked unverified when no verifier result is available, filtering out only explicitly refuted themes.

Alternatives

For a procedure you already understand, manually writing a SKILL.md using Lore's template is a reasonable alternative. This avoids mining a large history, although you must identify the trigger, steps, verification and failure modes yourself.

For historical exploration without skill creation, use Lore's engine directly or request candidates only. That retains indexing and ranking while avoiding installation of generated skills. Comparative quality, cost and performance against external products are not established by the repository files at this commit.

Evidence

The source includes the main skill instructions, parser and database implementation, ranking queries, model orchestration scripts, approval hook and test definitions. Tests specify expected behavior for modern and legacy transcript formats, provider headers, indexing, pruning, registry drift, semantic expansion, rendering and selected redaction cases.

Synthetic fixtures and a golden plan demonstrate intended inputs and presentation. They do not establish exhaustive semantic accuracy or successful use across supported agents. Documentation reports corpus audits and timings, but those remain project-reported claims. No commands, tests, installations or model workflows were executed for this report.

Access & freshness

Costs

The Apache-2.0 license grants royalty-free use of the covered work. The repository files do not establish a separate Lore service price or a total operating cost.

The local engine requires no provider API key and performs no model inference itself. Interpretation, theme mining and adversarial verification use the calling agent and potentially multiple subagents, so they may consume model tokens or subscription allowances. Applicable rates, typical usage, storage requirements and end-to-end cost are unknown.

Rights

The skill declaration, folder license and repository-level license identify Apache-2.0. The license permits use, modification and redistribution subject to its conditions, including providing the license, retaining applicable notices, marking modified files and carrying relevant NOTICE attributions when present.

The license provides no general trademark permission and disclaims warranties. These repository notices do not establish rights to redistribute private coding histories or third-party material found inside a user's sessions.

Freshness

The source snapshot at commit 19573ae1225531682c4d8eb64b4f33f425fc8d13 was captured on 15 November 2026. It declares version 3.9.0, with a corresponding changelog entry dated 11 June 2026. Whether a newer release or later compatibility changes exist is unknown. The changelog describes the move into getspecstory; the archived standalone repository is the previous location.

Session reindexing checks file size, modification time and parser version. Dossier and theme fingerprints are narrower: they hash beat identity, start line, outcome and command count rather than transcript text. An edit preserving those fields need not invalidate cached interpretation. The runtime source sets parser version 6, despite the architecture document describing an older value.

Candidate recency scoring is relative to the latest session in the selected corpus, rather than today's date. An old corpus can therefore give its newest patterns the highest recency contribution. The --days filter provides an explicit calendar-based restriction.

Practical next steps

Start with one project, a scratch database and candidates only. Inspect the underlying commands, outcome labels, author attribution and any truncated spans before approving a skill. Check that cached interpretations still match the transcripts and review confidential content before exposing histories or raw getter output to a model.

Approve a narrow trigger and project or personal scope, then validate the resulting skill against current project behavior. Keep a backup of valuable cached analysis. The direct CLI reset command deletes accumulated persistence without its own confirmation prompt; --and-skills additionally removes registered skill directories and can leave dangling symbolic links. The skill instructions delegate confirmation to the calling agent.

Evidence for this report

LICENSE.txtnotice · checked 2026-11-15
lore/.claude-plugin/plugin.jsonselected · checked 2026-11-15
lore/.gitattributesselected · checked 2026-11-15
lore/.gitignoreselected · checked 2026-11-15
lore/AGENTS.mdselected · checked 2026-11-15
lore/AS-BUILT-ARCHITECTURE.mdselected · checked 2026-11-15
lore/CHANGELOG.mdselected · checked 2026-11-15
lore/CLAUDE.mdselected · checked 2026-11-15
lore/CONTRIBUTING.mdselected · checked 2026-11-15
lore/HOW-IT-WORKS.mdselected · checked 2026-11-15
lore/LICENSEnotice · checked 2026-11-15
lore/README.mdselected · checked 2026-11-15
lore/SKILL.mdselected · checked 2026-11-15
lore/fixtures/golden/forge-plan.mdselected · checked 2026-11-15
lore/fixtures/projA/.specstory/.project.jsonselected · checked 2026-11-15
lore/fixtures/projB/.specstory/.project.jsonselected · checked 2026-11-15
lore/fixtures/projC/.specstory/.project.jsonselected · checked 2026-11-15
lore/package.jsonselected · checked 2026-11-15
lore/scripts/deep-mine.workflow.jsselected · checked 2026-11-15
lore/scripts/hooks/validate-plan.mjsselected · checked 2026-11-15
lore/scripts/lib/beats.mjsselected · checked 2026-11-15
lore/scripts/lib/db.mjsselected · checked 2026-11-15
lore/scripts/lib/discover.mjsselected · checked 2026-11-15
lore/scripts/lib/forged.mjsselected · checked 2026-11-15
lore/scripts/lib/indexer.mjsselected · checked 2026-11-15
lore/scripts/lib/parse.mjsselected · checked 2026-11-15
lore/scripts/lib/patterns.mjsselected · checked 2026-11-15
lore/scripts/lib/report.mjsselected · checked 2026-11-15
lore/scripts/mine-skills.mjsselected · checked 2026-11-15
lore/scripts/theme-sweep.workflow.jsselected · checked 2026-11-15
lore/tests/engine.test.mjsselected · checked 2026-11-15