Agent skill

Ctx Delete

by dchu917 in dchu917/ctx

Delete the latest session in a ContextFun workstream, or delete a specific session id.

MITAuto-check passed

Install Ctx Delete

skills CLI
$ npx skills add dchu917/ctx --skill ctx-delete -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install dchu917/ctx ctx-delete --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/dchu917/ctx.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/codex/ctx-delete .claude/skills/ctx-delete && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
ctx-delete
GitHub stars
127
Token cost
~129 tokens
SKILL.md length
47 words
Files
2 (incl. scripts)
Skills in repo
6
Repo updated
First seen
Licence
MIT

At a glance

Delete the latest session in a ContextFun workstream, or delete a specific session id.

  • Runs Shell scripts from its folder; calls bash and python3

What it does

Ctx Delete is an agent skill from dchu917/ctx. Delete the latest session in a ContextFun workstream, or delete a specific session id.

Its SKILL.md is about 130 tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including scripts (for example `scripts/skills/ctx_delete.sh`).

The repository describes itself as: Local context manager for Claude Code and Codex with workstreams, transcript binding, and branching. The licence is MIT.

Example prompts

  • “/ctx-delete”

Requirements

  • Python 3
  • A Bash shell

What it can do on your machine

Read from SKILL.md and the folder at commit bdb602c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships 1 file in scripts/ (Shell), which the agent can run.

    Shell commands in SKILL.md call:

    • bash
    • python3

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Ctx Delete loads about 129 tokens when it runs. Until then it costs about 24 tokens; SKILL.md has 47 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~24
When it runs · the whole SKILL.md, loaded when a task matches
~129

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.

SKILL.md

The full file from dchu917/ctx at commit bdb602c, republished under its MIT licence (© dchu917). 47 words, ~129 tokens.

Download SKILL.mdSave it as .claude/skills/ctx-delete/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
ctx-delete
description
Delete the latest session in a ContextFun workstream, or delete a specific session id.

Usage

  • In Codex:
    • ctx-delete <workstream> — deletes the latest session in that workstream
    • ctx-delete --session-id <id> — deletes that specific session

What it runs

  • bash ./scripts/skills/ctx_delete.sh
  • Falls back to ctx delete or python3 scripts/ctx_cmd.py delete

Notes

  • This is destructive.
  • Workstream deletion targets the latest session in the named workstream.

© dchu917, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (scripts) in skills/codex/ctx-delete of dchu917/ctx.

  • SKILL.md
  • scripts/skills/ctx_delete.sh

Open the folder on GitHubat commit bdb602c

Compare with similar skills

Ctx Delete next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Ctx Delete compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Ctx Delete this skilldchu917/ctx127—~129Automated safety check: PassMIT
Ctxctxrs/ctx1.2k—~1.5kAutomated safety check: PassApache-2.0
Hunting For Shadow Copy Deletionmukul975/Anthropic-Cybersecurity-Skills34k—~891Automated safety check: PassApache-2.0
Finding Deleted Feature FlagsPostHog/posthog40k—~2kAutomated safety check: PassCustom licence
Deleting ThoughtsNateBJones-Projects/OB14.7k—~995Automated safety check: PassCustom licence
Recovering Deleted Files With Photorecmukul975/Anthropic-Cybersecurity-Skills34k—~2.3kAutomated safety check: NotesApache-2.0

Similar skills

  • Ctx

    ctxrs/ctx

    Use ctx as working memory for prior agent work. An agent skill from ctxrs/ctx.

    1.2k GitHub stars~1.5k tokensUpdated 3 days ago
    Auto-check passed
  • Hunting For Shadow Copy Deletion

    mukul975/Anthropic-Cybersecurity-Skills

    Runs a hypothesis-driven threat hunt for Volume Shadow Copy deletion (T1490) by querying SIEM/EDR telemetry for vssadmin, wmic shadowcopy, and PowerShell shadow-copy-deletion commands.

    34k GitHub stars~891 tokensUpdated 1 mo ago
    SecurityAuto-check passed
  • Official

    Find feature flags that were soft-deleted in the active project within a recent time window.

    40k GitHub stars~2k tokensUpdated yesterday
    DatabasesAuto-check passed
  • Deleting Thoughts

    NateBJones-Projects/OB1

    A skill your agent uses when asked to delete, remove, purge, wipe, or "get rid of" an Open Brain thought, or before calling deletethought (the open-brain-delete-thought connector), which…

    4.7k GitHub stars~995 tokensUpdated yesterday
    Auto-check passed
  • Recovering Deleted Files With Photorec

    mukul975/Anthropic-Cybersecurity-Skills

    Recovers deleted files from disk images and storage media using PhotoRec's file signature-based carving engine, which works regardless of file system damage or corruption.

    34k GitHub stars~2.3k tokensUpdated 1 mo ago
    SecurityAuto-check: notes
  • Ctx Stats

    mksglu/context-mode

    Show how much context window context-mode saved this session.

    26k GitHub stars~290 tokensUpdated yesterday
    Agent WorkflowsAuto-check passed

More from dchu917/ctx

  • Ctx

    dchu917/ctx

    Use or bootstrap the ctx CLI to search, start, resume, rename, delete, branch, and inspect saved coding workstreams.

    127 GitHub stars~503 tokensUpdated 5 mo ago
    Auto-check passed
  • Ctx

    dchu917/ctx

    Show the current workstream, or dispatch ctx subcommands like list, start, resume, delete, and branch.

    127 GitHub stars~231 tokensUpdated 5 mo ago
    Auto-check passed
  • Ctx Resume

    dchu917/ctx

    Resume a ContextFun workstream and print a markdown pack. An agent skill from dchu917/ctx.

    127 GitHub stars~199 tokensUpdated 5 mo ago
    Auto-check passed
  • Ctx Start

    dchu917/ctx

    Create a new ContextFun workstream and its first session, then print a markdown pack.

    127 GitHub stars~272 tokensUpdated 5 mo ago
    Auto-check passed
  • Branch

    dchu917/ctx

    Branch one workstream into a new workstream with a frozen starting snapshot.

    127 GitHub stars~104 tokensUpdated 5 mo ago
    Auto-check passed

Questions about Ctx Delete

What does Ctx Delete do?

Delete the latest session in a ContextFun workstream, or delete a specific session id. Ctx Delete is an agent skill from dchu917/ctx. Delete the latest session in a ContextFun workstream, or delete a specific session id.

How do I install Ctx Delete in Claude Code?

Run `npx skills add dchu917/ctx --skill ctx-delete -a claude-code`. Or copy the skill folder (skills/codex/ctx-delete in dchu917/ctx) into .claude/skills/ctx-delete in your project. Claude Code loads it when a task matches its description.

How do I install Ctx Delete in Codex?

Run `npx skills add dchu917/ctx --skill ctx-delete -a codex`. Or copy the skill folder (skills/codex/ctx-delete in dchu917/ctx) into .agents/skills/ctx-delete in your project. Codex loads it when a task matches its description.

Can I use Ctx Delete in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add dchu917/ctx --skill ctx-delete -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ctx-delete, .gemini/skills/ctx-delete, .github/skills/ctx-delete and .opencode/skills/ctx-delete in your project.

What does Ctx Delete need to run?

Going by SKILL.md and its folder, Ctx Delete needs a shell for the scripts in its folder and the command-line tools its instructions call (bash and python3). Our summary lists: Python 3; A Bash shell.

Does Ctx Delete access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Ctx Delete safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Ctx Delete use?

Ctx Delete is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Ctx Delete use?

About 129 tokens (SKILL.md is roughly 516 characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Ctx Delete?

Skills that share tags, products or a category with Ctx Delete: Ctx (ctxrs/ctx, 1.2k stars), Hunting For Shadow Copy Deletion (mukul975/Anthropic-Cybersecurity-Skills, 34k stars), Finding Deleted Feature Flags (PostHog/posthog, 40k stars) and Deleting Thoughts (NateBJones-Projects/OB1, 4.7k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Ctx Delete?

dchu917 (a GitHub user) maintains it in dchu917/ctx, which has 127 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on April 21, 2026.

Source: dchu917/ctx on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.