/skillry-product-docs-and-research:research-ledgerfrom skillry-product-docs-and-research
Captures and reuses structured research findings with citations, dates, and freshness classes (14/28/90 days) to avoid redundant web searches.
Ships in skillry-product-docs-and-research. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Capture, index, and reuse structured research findings across projects and work sessions. The ledger enforces a lookup-first discipline before initiating external web queries or page fetches, eliminating redundant research costs, token usage, and latency. Every saved record retains its question, hierarchical topic, validated claims with evidence classes, source citations, contradictions, open questions, and a computed expiration date based on data volatility.
market-research-synthesis for full market reports).Research records decay at different rates depending on how rapidly the underlying facts change. The ledger categorizes each entry into one of three standardized freshness tiers:
| Freshness class | TTL | Scope and typical topics |
|---|---|---|
volatile | 14 days | Model releases, API pricing, rate limits, token quotas, CLI flags, minor SDK releases, terms of service. |
moderate | 28 days | Framework benchmarks, library comparisons, vendor evaluation matrices, workflow guides, competitor features. |
stable | 90 days | Architectural RFCs, network protocols, data format specifications, core math/algorithms, foundational standards. |
Date arithmetic is executed deterministically in code at save time:
researched_on (ISO 8601 date, defaulting to today in UTC).valid_until = researched_on + TTL_DAYS.valid_until is compared against current UTC date. Entries past their expiration are classified as hit_stale.Always run a lookup before calling search engines, web scraping tools, or external APIs:
python3 scripts/research_ledger.py lookup "<question>" [--topic "<topic>"]
Inspect the returned JSON object and handle the status code:
hit_fresh: An exact or strong match exists within the same topic, product/provider identity, and version scope, and its expiration date has not passed. If the entity or scope differs, treat the result as partial. When scope matches, do not perform external web queries and directly consume the existing findings, claims, and citations.hit_stale: A matching record exists but its validity period has expired (valid_until < today). Re-verify only the specific claims that may have changed (e.g., pricing or version numbers). Retain unchanged foundational facts.partial: Related records or topical overlaps exist. Review existing findings to refine your query and narrow the scope of external investigation.miss: No relevant records found in the ledger. Proceed with full external research.When a query results in miss, partial, or hit_stale, conduct targeted external lookups:
s1, s2, ...).contradictions list.open_questions.Tag each finding with an explicit evidence class:
fact: Verifiable objective data, test output, or official specification.vendor: Vendor claims, product marketing copy, or vendor-published roadmaps.community: Forum discussions, GitHub issues, or third-party blog reports.inference: Derived architectural conclusion, synthesis, or recommendation.Structure the research result into a JSON payload and persist it using the ledger CLI:
python3 scripts/research_ledger.py save --json record.json
The script validates required fields, computes valid_until from the freshness tier, updates the SQLite database and full-text search index, and returns confirmation.
What save enforces:
research_revisions.source_id that names no source, and a fact without a source. A finding without a class counts as inference.structure_complete) when it has findings and sources, every finding cites a source, and every cited source has a url, path or artifact saying where it can be checked; an id alone does not count. A complete record is verified unless you save it with "evidence": "draft", which always stays a draft; asking for verified on an incomplete record is refused. A draft never comes back as hit_fresh, only as partial.hit_stale unless the record was researched today. lookup --revalidate does the same on request.research_ledger.py migrate previews moving a database written by an earlier release to these keys; migrate --apply backs the database up first, refuses on key conflicts and changes nothing on a second run.{
"kind": "research",
"question": "What are the token limits and pricing tiers for the target API?",
"topic": "ai/apis/provider-limits",
"freshness": "volatile",
"researched_on": "2026-11-07",
"confidence": "high",
"findings": [
{
"claim": "Standard tier allows 10,000 requests per minute with pay-as-you-go billing.",
"class": "fact",
"source_ids": ["s1"],
"as_of": "2026-11-07"
}
],
"sources": [
{
"id": "s1",
"title": "Provider Rate Limits and Pricing Documentation",
"url": "https://api.example.com/docs/rate-limits"
}
],
"contradictions": [],
"open_questions": [
"Enterprise throughput discounts for sustained monthly volumes above 50M tokens."
],
"supersedes": null,
"projects": ["web-platform"],
"plan_items": ["TASK-102"]
}
# Set custom database or stats locations (optional; defaults to ~/.research-ledger/)
export RESEARCH_LEDGER_DB="$HOME/.research-ledger/ledger.db"
export RESEARCH_LEDGER_STATS="$HOME/.research-ledger/stats.json"
# Look up prior research before searching the web
python3 scripts/research_ledger.py lookup "Postgres JSONB index performance vs regular column"
python3 scripts/research_ledger.py lookup "Vite build worker configuration" --topic "frontend/bundlers"
# Save research from a file
python3 scripts/research_ledger.py save --json path/to/record.json
# Save research piped directly from stdin
cat <<'EOF' | python3 scripts/research_ledger.py save --json -
{
"question": "Does Node.js test runner support mock timers natively?",
"topic": "nodejs/testing",
"freshness": "moderate",
"confidence": "high",
"findings": [
{
"claim": "node:test provides mock.timers with enable(), tick(), and reset().",
"class": "fact",
"source_ids": ["s1"],
"as_of": "2026-11-07"
}
],
"sources": [
{
"id": "s1",
"title": "Node.js Test Runner Documentation",
"url": "https://nodejs.org/api/test.html#mock-timers"
}
]
}
EOF
# Display daily query performance metrics and hit ratios
python3 scripts/research_ledger.py stats
stable (90 days) leads to acting on stale constraints.hit_stale rather than isolating and re-verifying only the outdated claims.market-research-synthesis: Use when aggregating large multi-source industry research into a structured market analysis.product-requirements-review: Use when translating verified research claims into product requirement documents.technical-writing-review: Use when incorporating researched findings into public documentation or architecture decision logs.cost-control-token-review: Use when auditing research queries to minimize external token and API consumption.research_ledger.py lookup was executed for the question prior to any web queries.hit_fresh, existing findings were reused without web lookups. If hit_stale, only outdated claims were refreshed.fact, vendor, community, inference), and the date of verification.volatile 14d, moderate 28d, or stable 90d) with valid_until calculated automatically in code.research_ledger.py save --json <file>.What SKILL.md sets; muted values are Claude Code's defaults
7 skills in this plugin
/product-requirements-reviewRequirements: user stories, acceptance criteria, scope, prioritization, outcome roadmaps, pre-mortem risks./market-research-synthesisMarket and customer research: competitors, audience, positioning, interviews, surveys, cited synthesis./business-model-reviewBusiness model: monetization, unit economics, pricing and packaging, lean canvas, North Star, network effects.npx claudepluginhub fluxonlab/skillry --plugin skillry-product-docs-and-researchOther plugins' skills for the same job