prior-work-retrieval

prior-work-retrieval is a skill for Claude Code from daymade/claude-code-skills. It costs 99 tokens per session (5,682 once invoked), scanned A, original, MIT.

A read-only process for finding and checking earlier work before starting a substantial task. It records which existing material should be reused or adapted and what still needs to be created.

In plain words
What is it for?
Reviewing prior code, procedures, decisions, or other project records when the user explicitly asks to reuse earlier work or history.
Why use it?
It reduces duplicate work and prevents treating an unverified search result as the current or correct source.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: mentions CLAUDE.md; mentions Claude Code; mentions AGENTS.md.

Part of the daymade-claude-code plugin — 21 skills shipped together

Good fit Reviewing prior code, procedures, decisions, or other project records when the user explicitly asks to reuse earlier work or history.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/daymade/claude-code-skills/prior-work-retrieval
About the project

Claude Code Skills Marketplace is a collection and marketplace of skills, plugins, agents, and instructions that extend Claude Code with specialized development workflows. It is for developers who want to install existing workflows or create, validate, and package their own Claude Code skills.

daymade/claude-code-skills · 1,516 stars · on GitHub

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 daymade/claude-code-skills --skill prior-work-retrieval
Clone the repo
git clone --depth 1 https://github.com/daymade/claude-code-skills

Made for: Claude Code.

Or install daymade-claude-code, the plugin that ships this one along with the rest of its 21 skills.

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 prior-work-retrieval

README.md
[![agentmods](https://agentmods.dev/badge/skills/daymade/claude-code-skills/prior-work-retrieval/github.svg)](https://agentmods.dev/skills/daymade/claude-code-skills/prior-work-retrieval)
Your own site
<a href="https://agentmods.dev/skills/daymade/claude-code-skills/prior-work-retrieval"><img src="https://agentmods.dev/badge/skills/daymade/claude-code-skills/prior-work-retrieval/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 prior-work-retrieval

Your own site · 80×15
<a href="https://agentmods.dev/skills/daymade/claude-code-skills/prior-work-retrieval"><img src="https://agentmods.dev/badge/skills/daymade/claude-code-skills/prior-work-retrieval.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 99 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,682 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00099 $0.05682
Opus 5.5 $0.00040 $0.02273
Sonnet 5.5 $0.00020 $0.01136
Haiku 4.5 $0.00010 $0.00568

Measured yesterday against content hash 35bb0934edf9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

prior-work-retrieval 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 yesterday.

The scan reads SKILL.md. This mod also ships 11 executable files (scripts/prior_work_hook.py, scripts/prior_work.py, scripts/prior-work-retrieval.sh, …), 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.

daymade-claude-code/prior-work-retrieval/SKILL.md · 466 lines

How it starts

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

Prior Work Retrieval

Run this before substantial production only when the trigger above is present. Read-only current-state checks stay direct unless the user asks for history. Its job is not to generate another summary. Its job is to answer: what already exists, which source is current, what should be reused, and what remains genuinely new?

Not for: current-file inspection, ordinary bug fixes, mechanical verification, or a task merely because the final answer happens to be a report/summary. A mention of current/现有 tests, README, files, implementation, behavior, or validation is not by itself a prior-work request. Do not infer the trigger merely because new work might duplicate something — that risk alone does not make a request explicit.

Completion contract

A retrieval pass is complete only when all conditions below are true:

  1. The task's real business outcome is written as one sentence.
  2. Every relevant carrier declared in the manifest reports searched, manual_completed, or an explicit failure/coverage gap.
  3. Candidate claims are opened at their original path or record, not accepted from a search snippet alone.
  4. Each adopted item has a reuse or adapt decision and a reason tied to the current task. If nothing is adopted, the receipt carries a concrete no_reuse_reason.
  5. scripts/prior_work.py check accepts the receipt for this session.

retrieved is not verified; verified is not reused. Keep those states separate so “I searched” cannot impersonate “I used our best prior work.”

Workflow

1. Read the local operating context first

Before querying, read the current project's AGENTS.md/CLAUDE.md, navigation index, and any North Star/current-decision file they name. Historical material cannot override a newer explicit decision.

2. Validate the explicit source manifest

The manifest is the only discovery scope. No directory exists merely because a convention says it should. Validate the selected manifest:

Read the full file on GitHub · 466 lines

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. yesterday Changed · +6 lines 35bb0934edf9
  2. 5d ago Changed · +1 lines 8910b9eec63f
  3. 7d ago Changed · +9 lines 1860e1f53a40
  4. 8d ago Changed · +10 lines e069b5ef9625
  5. 14d ago Changed · +21 lines 3f9996709df7
  6. 17d ago Changed · +23 lines a2447be948bf
  7. 18d ago Changed · +27 lines 63a2d2edbe1d
  8. 29d ago Changed · +4 lines bf2731496ec6
  9. 1mo ago Changed f800f448d39d
  10. 1mo ago First seen · 365 lines · 99 tokens per session scan A 3623ba63a562

Subscribe to this mod's changes

prior-work-retrieval is a skill published in the GitHub repository daymade/claude-code-skills (1,516 stars, last pushed yesterday), licensed MIT. It adds 99 tokens to every session and 5,682 once invoked, about $0.0004 per session on Opus 5.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

prior-work-retrieval compared with skills from other repositories

prior-work-retrieval next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
prior-work-retrievaldaymade/claude-code-skillsSkill1.5kyesterdayMITA99Claude Code
knowledge-ingestopenclaw/openclawSkill394kyesterdayMITA80Claude Code, Codex
mem0-oss-to-platformmem0ai/mem0Skill68k2d agoApache-2.0A217Claude Code, Codex
forgetasgeirtj/system_prompts_leaksSkill71k2d agoCC0-1.0A74Claude Code, Codex
Cortexdanielmiessler/LifeOSSkill20kyesterdayMITA184Claude Code
memoryopensquilla/opensquillaSkill7.1k6d agoApache-2.0A44Claude Code, Codex
ha-data-storesshiwenwen/hope-agentSkill1.9kyesterdayMITA115Claude Code, Codex