chronicle-delete-experiment
Permanently removes open Chronicle experiments and their associated data.
Install
mkdir -p .claude/skills/chronicle-delete-experiment && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/11377" && unzip -o skill.zip -d .claude/skills/chronicle-delete-experiment && rm skill.zipInstalls to .claude/skills/chronicle-delete-experiment
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Use this skill when the user wants to permanently delete one or more **open (uncommitted)** Chronicle experiments — phrases like "delete this experiment", "remove that draft", "I/the agent created too many experiments, clean them up", "consolidate these experiments", "throw away the experiments I'm not using". The skill resolves the target experiment(s), shows the user exactly what will be removed, requires an explicit confirmation (delete is irreversible), then hard-deletes each open one via the SDK. Committed or concluded experiments are NOT deleted — the skill reports them and points the user at retraction (`chronicle-retract-experiment` / `chronicle.experiments.retract`) instead. Do not invoke this to undo results on a committed experiment (that's retraction) or to remove a single variation (that's a variation operation).Key capabilities
- →Hard-delete open (uncommitted) Chronicle experiments
- →Resolve target experiments from user input or listing open drafts
- →Show the user a concrete list of experiments to be deleted for confirmation
- →Report on deleted, skipped, and failed experiment deletions
- →Distinguish between hard-delete and retraction for committed experiments
How it works
The skill identifies open Chronicle experiments, presents them to the user for explicit confirmation, and then hard-deletes the confirmed open experiments via the SDK, reporting the outcome.
Inputs & outputs
When to use chronicle-delete-experiment
- →Cleaning up abandoned drafts
- →Removing redundant experiment variations
- →Managing experimental workspace
About this skill
Delete experiment
Hard-delete open Chronicle experiments — the right tool for cleaning up drafts that were started and abandoned (e.g. an agent that spun up more experiments than intended). The end state is: each targeted open experiment and everything it owns (variations, runs, asset/research-prompt links, ACLs, auto-roles, and best-effort its GitHub repo + search document) is gone.
This is distinct from retraction. Retraction is a soft flag that preserves the row, lineage, and audit trail — the right tool for committed/concluded work that is part of the historical record. Hard delete physically removes a draft that was never committed, and the server only allows it while the experiment is open. The skill never deletes committed or concluded experiments; it reports them so the user can retract instead.
Delete is irreversible. Always confirm with the user before deleting, and show them the concrete list first.
Transport — MCP-direct (no SDK needed)
This skill uses the bundled MCP tools directly — no pip install. (If the
methodic SDK happens to be installed and you prefer it, the SDK equivalents
are noted inline.) The bundled launcher resolves credentials from ~/.methodic
— see the repo README "The MCP tools (bundled — zero config)".
chronicle.delete_experiment is creator-guarded: via MCP an agent may only
hard-delete experiments it created, even where Delete RBAC would allow more.
Deleting another principal's draft you hold Delete on goes through the SDK/HTTP
path. The open-only rule, the committed/concluded refusal, and the descendants
refusal are identical in both paths.
Inputs
experiment_ids— one or more experiment UUIDs (or short slugs/names the user used). Resolve in order:- Explicit ids/slugs from the user.
- "The ones I just created" / "my unused drafts" → list the user's open experiments and propose the set (confirm before deleting).
- Detect a single experiment from cwd (a clone of an experiment repo) if the user means "this one".
- Prompt the user.
confirmed(defaultFalse) — explicit go-ahead. Delete is irreversible, so never proceed without it. Showing the list and getting a "yes" is mandatory, even for a single experiment.
Workflow
-
Resolve the candidate set. For "clean up the drafts I'm not using", call
chronicle.list_experimentsfiltered to open experiments (e.g.{ "status": "open" }) and let the user pick / confirm. Pass"owner": "_all"to span every scope the caller can see; omit for just their personal scope. The result (JSON in the tool's text content) is a list of experiment summaries.(SDK equivalent:
chronicle.experiments.iter(status="open").) -
Show the user EXACTLY what will be deleted — id, slug/name, hypothesis, state — and get an explicit confirmation. Do NOT skip this. For each target, call
chronicle.get_experimentwith{ "experiment_id": "<id>" }to make the preview concrete; the result is anExperimentDetailwhoseexperimentcarriesid,state,slug,hypothesis_summary. Present the list, then ask: "Delete these N experiments? This is permanent and cannot be undone." Proceed only on an explicit yes — getting a "yes" is mandatory, even for a single experiment.(SDK equivalent:
chronicle.experiments.get(exp_id)→detail.experiment.) -
Delete each OPEN experiment. For each confirmed target, first check its state via
chronicle.get_experimentand skip (and collect) anything not open — the server would 409 it anyway, but checking first gives a cleaner report. For the open ones, callchronicle.delete_experimentwith{ "experiment_id": "<id>" }. Collect what was deleted, what was skipped (not open), and any that failed (409 / 404 / 403).(SDK equivalent:
chronicle.experiments.delete(exp_id).) -
Report how many were deleted, how many skipped (not open), and how many failed.
After the skill completes
Tell the user:
- Which experiments were deleted (ids + slugs) and, briefly, the removal summary the server returned (variations/runs/links/auto-roles removed).
- Which were skipped because they were committed or concluded, and that
those can't be hard-deleted — to take one out of use, retract it
(
chronicle.retract_experiment— see chronicle-retract-experiment), which flags it and auto-invalidates its output assets while preserving the record. - Any that failed and why (verbatim server message).
- That the underlying asset rows/bytes were intentionally left intact
(they may be shared across experiments); only the deleted experiments'
link rows were removed. Assets that are now unlinked everywhere
(orphans) can be purged with chronicle-delete-asset
(
chronicle.delete_asset) if the user wants them gone too.
Failure modes
- 409 — "committed or concluded; hard delete is only allowed while open. Retract it instead.": the experiment was committed/concluded between the preview and the delete (or the user pointed at one directly). Don't retry the delete — offer retraction instead.
- 409 — "experiment has descendants …": another experiment recorded this one as explicit lineage (only possible once it had committed). Deleting would orphan formed lineage. Surface the message; the user must remove the dependent experiment(s) first, or retract instead. (Tentative fork edges off an open draft do not block deletion — they're dropped in the cascade.)
- 403: the caller lacks the
Deleteaction on the experiment. Surface verbatim. - 404: no such experiment (already deleted, or a bad id). Treat as already-gone in a cleanup loop; don't error the whole run.
- Resolved the wrong set: if you derived candidates from a list/heuristic rather than explicit ids, the confirmation step is the safety net — re-list and re-confirm rather than guessing.
For retraction the MCP tool is chronicle.retract_experiment — see
chronicle-retract-experiment; unlike delete it has no creator guard (retraction
preserves the record, so any holder of Delete may flag it).
Requires
Nothing to install — uses the bundled MCP tools. (API-only operation; the
experiment's repo is torn down server-side as part of the delete; no git.)
When not to use it
- →To undo results on a committed experiment
- →To remove a single variation from an experiment
- →For committed or concluded experiments
Limitations
- →Only deletes open (uncommitted) experiments
- →Requires explicit user confirmation before deletion
- →Cannot delete committed or concluded experiments
How it compares
This skill performs irreversible hard-deletes specifically for open, uncommitted experiments, requiring explicit user confirmation, which is distinct from the soft-flagging 'retraction' for committed experiments.
Compared to similar skills
chronicle-delete-experiment side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| chronicle-delete-experiment (this skill) | 0 | 1mo | No flags | Intermediate |
| session-logs | 8 | 2mo | Review | Intermediate |
| context-management-context-restore | 10 | 3mo | Review | Advanced |
| conversation-memory | 8 | 6mo | No flags | Advanced |
Try saying
Example prompts that trigger this skill in your AI assistant.
You might also like
session-logs
openclaw
Search and analyze your own session logs (older/parent conversations) using jq.
context-management-context-restore
sickn33
Use when working with context management context restore
conversation-memory
davila7
Persistent memory systems for LLM conversations including short-term, long-term, and entity-based memory Use when: conversation memory, remember, memory persistence, long-term memory, chat history.
zlibrary-to-notebooklm
zstmfhy
自动从 Z-Library 下载书籍并上传到 Google NotebookLM。支持 PDF/EPUB 格式,自动转换,一键创建知识库。
workiq-copilot
github
Guides the Copilot CLI on how to use the WorkIQ CLI/MCP server to query Microsoft 365 Copilot data (emails, meetings, docs, Teams, people) for live context, summaries, and recommendations.
compound-learnings
parcadei
Transform session learnings into permanent capabilities (skills, rules, agents). Use when asked to "improve setup", "learn from sessions", "compound learnings", or "what patterns should become skills".