/research-core:donefrom research-core
Closes a session or explicitly scoped worker task after completing requested work, reconciling records, verifying changes, and reporting the actual outcome.
Ships in research-core. 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.
done is a final reconciliation, not a project-wide maintenance event. Finish the intended work,
preserve scientific meaning and unrelated state, then account for what actually happened.
An actual request to close the session triggers this skill even when it also requests a final edit, record, check or deliverable. Quoted discussion, a finished subtask, or “commit then continue” does not trigger it. Complete requested work before closeout unless it crosses an unresolved scientific, destructive, external, deployment, or publication boundary. Do not reduce “update the plan and wrap up” to a summary of work that has not been done.
Use the conversation and current state to identify:
Verify the physical project root, host, branch, remote, dirty/staged state, and unrelated changes. Read project instructions, applicable overrides/extensions, and the coordination declaration with the read-only reader. Project type does not select task authority.
Read any project-specific closeout extension named by the native project instructions, including
.claude/done_extensions.md where that convention is established. Apply authorized additions at the
specified points without letting them erase core truthfulness, ownership, or safety boundaries.
Match older numbered extension steps to their named operation, not this version's new step number;
surface an ambiguous extension before doing its dependent action.
In a collaborator/third-party repository, keep personal overlays, private review notes, and local session artifacts in their established private locations and out of the owner's commit. Recommend the exact shared change set, but do not push, open a PR, or publish feedback without the applicable collaborator authorization. Preserve owner conventions instead of installing the user's own project records or cleanup rules.
If this task is a bounded worker/subagent assignment, complete the assigned actions and always end with a scoped handback. Preserve only assigned deliverables and relevant evidence; report changed files, checks, limitations, host/checkout, and unresolved seams. Do not rewrite shared project plans/logs/registries, commit/push, integrate branches, retire worktrees, or perform external actions unless the brief expressly assigns that action. Assignment of a checkpoint or push does not assign integration or a broader closeout. Use only worker and task controls the current client actually provides; do not invent retirement or messaging actions. The lead handles every unassigned closeout action and reconciles canonical records and Git once.
Summarize what changed, why, what evidence supports it, and what remains unresolved. Update only records whose current meaning changed during this session.
When a substantial phase reached an audit/review point, integrate relevant worker notes into one durable record with scope, consequential findings/dispositions, evidence, and limits. Do not save a per-script or per-worker report merely because one participated.
If the project already uses session logs or another chronological record, add one concise entry for this session in its established location and format. Record work, authority links, consequential decisions, checks, limitations, and a dated resumption cue. GitHub/Hybrid logs remain history, not a parallel backlog. Do not migrate log formats, trim history, manufacture a new log system, or scan all old entries during closeout.
Update the root Project Document Registry only for a document created, removed, renamed, or whose declared role changed in this session. Keep the entry descriptive and link the actual authority. Do not rebuild a catalog of scripts, datasets, skills, numerical results, or task status.
Do not regenerate STATUS_SUMMARY.md by default. A project-specific instruction or real consumer
may require it; then treat that as an explicit local closeout step without making it a universal
rule. Do not perform broad project audits, global memory/skill maintenance, system-incident redesign,
or unrelated documentation cleanup at wrap-up.
If this session submitted or reviewed SLURM jobs and the optional Yale/HPC package is installed,
follow its hpc/references/resource-learning.md procedure for the known relevant job IDs. Reuse
already reviewed evidence; check completed-but-unreviewed jobs and keep only useful sizing decisions
in the existing project record and any already configured private resource profile. For jobs still
pending/running or accounting still unavailable, leave their IDs and the next review cue there.
Do not wait for completion, scan unrelated jobs, create per-run resource files, or rewrite installed
skills. Without that optional package or authorized host access, preserve the relevant IDs/evidence
in the project and report what remains unchecked. Ordinary non-HPC closeout skips this step.
If this work exposes a reusable defect in shared tooling, use the project's or distribution's established support route when that write is already in scope. Otherwise include the occurrence, consequence, checks, and actual deployment state in the handoff. Keep project science in its project, and do not create an incident for every observation or ask each worker to perform global maintenance. A public closeout has no dependency on a personal delegation guide, outcome ledger, or maintainer script.
Preserve the distinction between prepared, technically checked, review-ready, scientifically accepted, published, and closed. If the agreed stop is scientific review, orient the user to the question, inputs, transformations, actual figures/tables, principal findings, anomalies, and limits. Invite their interpretation before recording acceptance. Do not accept on their behalf.
Before reporting a scientific run as retained, downstream-ready, or shareable, verify that its
relevant producer, wrapper, helpers and configuration match a focused commit. Reuse an existing
commit when those source bytes are unchanged; unrelated dirty work does not block the scoped
provenance. Keep source in tracked source locations and outputs in their owned destinations rather
than creating a generic code-copy bundle in outs/. Preserve any specialized custody record the
project already requires.
The lead, or a worker expressly assigned the scoped checkpoint or working-branch push, handles that
Git action only when the task and user or project instructions authorize it; this skill grants no
additional Git permission. A worker's assigned Git action does not assign integration, shared records, or
other closeout work. Do not place git add, git commit, or git push inside an analytical script.
Owned draft or experimental code may be committed before scientific acceptance; the commit does not
accept the method or result. If the approach is still unsettled, hold retained scientific use rather
than inventing acceptance from Git.
Before the final commit, inspect session-owned code/config changes for new, removed, or changed runtime dependencies. This applies to general, documentation, and data-science projects alike.
done ran.If required dependency metadata cannot be updated or verified, remove the unsupported dependency or hold the final commit and report the exact blocker. A project with no dependency change needs no environment scan.
Read the main changed workflow in execution/data-flow order and challenge whether each added layer is needed and understandable. Run the smallest checks that can catch plausible failures introduced by the actual diff. Reuse current relevant passing evidence; do not rerun science or unrelated suites for a wording or bounded change.
Check as applicable:
Distinguish static review, executed checks, installed readback, natural use, scientific acceptance, and publication. Stop when further checks repeat the same evidence rather than change confidence.
Inspect the full session-owned diff, staged state, and outgoing ancestry. Stage only owned files or hunks. Preserve unrelated dirty/staged work and shared history.
For repositories the user owns, follow the current task and native user or project instructions for commit, push, and integration authority. Make ordinary coherent Git changes without repeating a permission question when that authority is already established. When accepted work is authorized for integration, follow the repository's normal workflow, including a PR where used: review its exact head and full diff, confirm the target and permissions, resolve routine mechanical conflicts, check required checks, integrate, and verify the default branch. Follow the repository's reviewer and exception policy; this public skill grants no auto-push policy or owner/admin exception. Never alter branch protection to make a merge possible. Preserve producing commits cited by retained scientific provenance and follow the project's Git conventions.
Failed checks or a changed reviewed head pause integration for investigation, scoped repair, renewed review and affected checks. Confirm a changed target remains authorized. Ask the user about substantive boundaries: public publication, deployment/live installation, collaborator or third-party repository writes, remote/authentication changes, shared-history rewriting, semantic conflicts, changes to others' work, or an explicit substantive hold. Git integration is not scientific acceptance. A wrap-up request does not authorize an external message, Issue mutation, deployment or public release that was not already in scope.
Before each mutation, recheck the relevant baseline. After commit/push/integration, read back refs and report exact hashes/destinations. No owned changes is a valid result; do not invent a commit. If an action fails or is held, keep dependent publication/closure claims pending and report the actual disposition.
For valid GitHub/Hybrid work with a material authorized Issue action, follow GitHub closeout after required local checks/Git prerequisites. Apply accepted closure last and read back actual state.
Do not post Slack/email or another external update as a standard wrap-up step. If the user already requested one, use the relevant skill/connector and its explicit destination/content boundary. Otherwise leave a ready draft in chat only when it materially helps; do not add an approval ritual for routine closeout.
The lead assesses only worktrees/branches owned by completed implementation work. Confirm that changes are recoverable from recorded refs, preserve useful untracked/ignored evidence, and verify no task, process, job, or installed consumer still depends on the checkout.
Follow project-specific retirement policy and use the supported Git/app mechanism. Unfinished work or a concrete dependency justifies retention. Delayed pilot/acceptance alone need not retain a worktree once version, deployment, recovery, evidence, and pending acceptance are recorded. Branch deletion is separate. Keep conversation history visible; never archive or delete a task/chat unless the user explicitly asks.
Changing chat pins or other user organization needs the current user's authorization; this public skill grants no standing unpin permission. A worker closing only its assigned subtask does not manage the parent chat. Preserve the conversation and all recovery, integration and dependency checks above.
For Codex Desktop, inspect list_artifacts and distinguish an agent-created attached worktree
from the chat's primary checkout. After the checks above, use archive_worktree with the exact
owned attachment identity. It saves recovery state and removes eligible attached checkouts while
keeping the chat open. Read back the recovery attachment, filesystem absence and Git worktree
inventory; branch deletion remains separate and requires verified tips, integration and no other
worktree use. Check task/process/job/installed consumers before removal. Preserve useful ignored
files separately, since the archive snapshot does not include them.
A primary, shared or pinned checkout is protected. Unpinning, when authorized, or attaching a
primary checkout afterward does not remove its primary status. If the chat runs inside its primary worktree, prepare an exact
supported transition with source, destination and Git/file effects, or report the concrete hold.
The calling chat cannot use handoff_thread on itself. Do not manually remove its active checkout,
silently enlist another chat, promise an unavailable self-handoff or move Git state into live
configuration without reviewed scope. On other clients, use only their supported route and name
any unavailable operation. Never use chat archival as a cleanup shortcut.
Report private Git integration, original-checkout file updates, live installation, acceptance and worktree/branch retirement separately when applicable. A merged PR does not update live files. If transition or retirement is unavailable or unauthorized, name the exact pending action and preserve the checkout rather than declaring cleanup complete.
Give a concise factual handback:
Do not say the wrap-up is complete while a required action or approval remains unresolved. An explicit hold is a truthful disposition, not a successful action. Preserve unrelated work and name the exact remaining owner/boundary.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
25 skills in this plugin
/analysis-distillationDistill exploratory or complex scientific analysis into the smallest readable workflow that supports a phase review, paper, report, or durable handoff. Use when a settled phase result needs consolidation, or selected results need publication-ready code, a newcomer reproduction route, or a maintained analysis path. Do not use to choose an unresolved scientific method, perform ordinary session cleanup, or rewrite a working pipeline merely to impose a preferred structure.
/analysis-review-dashboardBuild or refresh a browser dashboard for independently reviewing a scientific analysis, from a short workflow to a branching pipeline. Organize existing evidence into a pipeline overview, scientific task pages and complete script reviews with file and object previews. Use when the user asks for an analysis review dashboard or linked pipeline/task/script pages. Do not use for a task-status dashboard, source-code distillation alone, or a script audit alone.
/audit-projectReview project documentation, authority, navigation and workflow drift; propose careful, reversible consolidation when useful. Use for project health or documentation reconciliation, not script correctness (audit-script) or skill quality (a separate maintainer audit; use plugin-feedback for a student plugin report).
npx claudepluginhub musserlab/lab-claude-skills --plugin research-core