Agent skill · daymade
prior-work-retrieval
Only for explicit prior-work/reuse/history requests; never for read-only status or inspection. Finds and verifies existing successful work before substantial new production when reuse is materially plausible. Use when the user explicitly references earlier work, existing code/SOPs, history, prior decisions, another project, or says 以前做过, 已有代码, 别重复造轮子, reuse, or retrieve before produce. A mention of current/现有 tests, README, files, implementation, behavior, or validation is not a prior-work request. Do not infer the trigger merely because new work might duplicate something. Do not invoke for current-file inspection, ordinary bug fixes, mechanical verification, or merely because the final answer is a report/summary. Produces a source-verified reuse/adapt/reject receipt; zero hits never prove absence.
What it needs
About 12k tokens when loaded.
What this skill does
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? Completion contract A retrieval pass is complete only when all five are true: 1. The task's real business outcome is written as one sentence. 2. Every relevant carrier declared in the manifest reports searched, manualcompleted, 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 noreusereason. 5. scripts/priorwork.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. Default path: The default is ~/.config/daymade/prior-work/sources.json; a project may pin another path. Global options precede the subcommand. The schema and carrier examples are in references/source-manifest.md. 3. Retrieve across declared carriers Write the user-world outcome separately from the proposed implementation. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills daymade/prior-work-retrieval