codex-scoped-cleanup
Use in Codex when archiving or deleting native threads, or retiring worktrees, recovery copies, caches, and stale connections.
Skill by ririnto
Chalk Labs
Need help deploying codex-scoped-cleanup?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/ririnto-codex-scoped-cleanup
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/codex-scoped-cleanup
What's inside
- Skill name
codex-scoped-cleanup- Description
- Use in Codex when archiving or deleting native threads, or retiring worktrees, recovery copies, caches, and stale connections.
- License
- MIT
- Instructions
- 80 lines in SKILL.md · view on GitHub
Files (3)
- SKILL.md
- app-server.md · references/
- native-attachments.md · references/
SKILL.md (first lines)
# Codex scoped cleanup Use only in Codex within cleanup authority, through authorized owners and supported host operations. ## Authority Before cleanup, record IDs, owners, allowed operations, before-state, preservation needs/references, and protected IDs in the owner's private temporary receipt. Keep archive, permanent deletion, attachment retirement, and physical removal as distinct scopes. Require explicit human authority for permanent deletion of the exact scope. Honor tool-required action-time confirmations. Thread methods establish no Project, Session, or Chat deletion support. Do not edit authoritative SQLite, rollout files, or raw host state. Do not bypass ownership guards by restarting shared services or killing unrelated workers. Exclude private IDs, paths, payloads, and logs from publications and shared reports. Find owners via supported inventory and controls, not pane focus, membership, or idleness. If owner access or supported operations are unavailable, preserve resources and report the exact limit. Verify each installed operation's type support, permissions, scope, and preservation effects before mutation. Request/result controls or other-version source cannot prove installed lifecycle support. Historical transport research grants no cleanup interface or fallback authority. Send the owner this scope, affected descendants, and required readbacks. Await existing requests and collect results through supported controls. Neither submission nor settled agent state proves completion. Create no permanent cleanup poller or scheduler. ## Inventory Inventory active and archived IDs, not titles, through complete pagination with unchanged filters. Check provider/source/project/section defaults and remove unrelated search or working-directory filters. Pass opaque continuations unchanged, even after empty pages. Repeated cursors, failed pages, or missing coverage leave inventory incomplete. Cover all affected owners and descendants, including live children and persisted children without user messages. Check for omitted ephemeral children or failed spawn links. Include parents omitted from descendant listings. Preserve parents of protected descendants or unverified subtrees, including interactive-only or incomplete listings. Verify completion and continuation from supported history/metadata, including latest request and result. Empty summaries and idle, loaded, unloaded, archived, or old Threads prove neither completion nor sole writer ownership. Check live turns/descendants, pending operations, guards, and external process consumers. Refresh exact IDs, ownership, and working-tree state immediately before mutation. Serialize each resource's writes and stop on unexplained concurrent changes or uncertain scope, subtree, ownership, or preservation. ## Preservation Remove completed, unused resources by default when retained Git history preserves required source. Verify reachability from retained branches, tags, or snapshot refs. Merged PRs preserve their merged source. Do not rely on dangling objects, expiring reflogs, or unspecified remote copies. Compare staged, unstaged, untracked, and required ignored content before checkout removal. Preserve unique source, configuration, runtime storage, and database data outside Git. Preserve needed evidence, contracts, associations, and recovery assets before container removal. Check fork-history and other consumers beyond attachments. Remove redundant recovery copies without another full backup. Evaluate sessions individually and worktrees independently of project or owning Thread activity. Apply requested inactivity windows only when they define scope. Retire verified completed, unnecessary resources within explicit authority without age delays after handback. Recent timestamps alone prove neither continued need nor retirement eligibility. Check session events, compressed rollouts, running descendants, and exact worktree consumers. Exclude the current session and running work. Keep current, unfinished, blocked, recurring, explicitly retained, and continuing work and recovery assets, even if committed. Preserve primary, shared, and pinned checkouts during generic task cleanup. ## Operations Verify recoverable conversation state before archive. Conversation deletion does not prove checkout, GitHub object, or Cloud filesystem removal. Archive/delete can stop runtimes before persistent changes or a protected descendant's later refusal. Use supported owner release for live workers and writer conflicts. Honor owner/writer errors without changing control paths or killing workers. Verify installed worktree archive/restore contracts separately from conversation archival. Use supported owner archiving for physical retirement needing recovery state. Archive can remove the checkout while retaining a Git snapshot. Preserve required ignored files separately if excluded. Restore may create a detached checkout with prior uncommitted changes in a snapshot commit. Verify restored content and associations without promising original staging. ## Recovery Record runtime teardown, archive moves, deletion, attachments, and checkout state separately. After error, interruption, or timeout, inspect owner results and fresh state of all affected IDs and descendants before retrying. Check for partial preparation or file removal despite errors or absent notifications. Retry only remaining authorized work after changed evidence with a bounded exit condition, never confirmed successes. Verify archive against fresh complete inventories and preflight IDs: each ID must leave active and appear archived. Reconcile descendant outcomes despite root acknowledgement or success. Use only supported owner restore for authorized recovery. Verify deletion with exact-ID reads and fresh active/archived inventories covering every affected ID. Distinguish verified absence from permission, connection, or storage failures. Verify protected resources and associations remain accessible after each batch. Report permanent deletion as irreversible unless a supported recovery path was verified beforehand. Retain receipts until verification and required recovery finish. ## Worktrees and caches Use supported owner worktree tools or Git worktree commands, not direct directory deletion. Do not force removal past unique dirty or untracked content. Check exact scoped process arguments, working directories, open handles, and active containers. Remove only isolated, unused, reproducible cache or build leaves. Preserve active shared caches and dependencies needed by current executions. Verify quarantined caches' inode, owner, and device before deletion. Change owned directory permissions only within the selected cache. Child removal also requires write permission on its parent. Preserve hard-linked contents and permissions shared with other checkouts. ## Thread Worktree Artifacts For Worktree Artifact connection changes, read [Native Attachment Cleanup](references/native-attachments.md) unless fully loaded. ## Acceptance Obtain fresh owner lifecycle, attachment, and filesystem readbacks separately. Verify selected paths and quarantine directories are absent after physical cleanup. After verification, have the owner remove temporary payload copies, scripts, logs, and task-owned processes. Report attachment counts separately from physical disk-space changes.
From ririnto/workgraph, MIT.
More from ririnto/workgraph
- 0.569score
development
ririnto
Use when implementing, refactoring, debugging, or reviewing source code or maintained code examples.
SkillAFreshness: AClaude Code +9 - 0.569score
subagent-context
ririnto
Use when executing a bounded task as a Workgraph dispatch node.
SkillAFreshness: AClaude Code +9 - 0.565score
instruction-authoring
ririnto
Use when creating, editing, or reviewing SKILL.md, repository guidance files, role contracts, agent prompts, hook instructions, or supporting instruction…
SkillAFreshness: AClaude Code +9 - 0.564score
delivery
ririnto
Use in the main session for repository changes or authorized branch publication and integration.
SkillAFreshness: AClaude Code +9 - 0.564score
verification
ririnto
Use when running an application, reproducing reported behavior, or gathering acceptance evidence.
SkillAFreshness: AClaude Code +9 - 0.564score
workflow
ririnto
Use in Claude Code main sessions for dependent stages, expected follow-up phases, or explicit Workflow requests.
SkillAFreshness: AClaude Code +9 - 0.564score
writing
ririnto
Use when drafting, editing, or reviewing prose, Markdown documentation, or instruction text.
SkillAFreshness: AClaude Code +9 - 0.564score
main-agent-contract
ririnto
Use in the Workgraph main-session mode when orchestrating authorized outcomes, not as a dispatched node.
SkillAFreshness: AClaude Code +9 - 0.561score
astra-dual-review
ririnto
Use for an explicit cross-host review and adjudication request, ending with verified issue handoffs before implementation.
SkillAFreshness: AClaude Code +9 - 0.559score
principle-preserve-behavior
ririnto
Use when inlining values, restructuring control flow, or changing an expression's form where observable behavior must survive.
SkillAFreshness: AClaude Code +9 - 0.558score
principle-production-interfaces
ririnto
Use when adding helpers or abstractions, changing production code for tests, or deciding what tests may observe.
SkillAFreshness: AClaude Code +9 - 0.558score
memory-maintenance
ririnto
Use before creating, editing, merging, or deleting durable memory records or their index.
SkillAFreshness: AClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 5
- Last commit (this folder)
- Oct 10, 2026 (22 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/ririnto/workgraph
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from ririnto
- 0.569score
development
ririnto
Use when implementing, refactoring, debugging, or reviewing source code or maintained code examples.
SkillAFreshness: AClaude Code +9 - 0.569score
subagent-context
ririnto
Use when executing a bounded task as a Workgraph dispatch node.
SkillAFreshness: AClaude Code +9 - 0.565score
instruction-authoring
ririnto
Use when creating, editing, or reviewing SKILL.md, repository guidance files, role contracts, agent prompts, hook instructions, or supporting instruction…
SkillAFreshness: AClaude Code +9 - 0.564score
delivery
ririnto
Use in the main session for repository changes or authorized branch publication and integration.
SkillAFreshness: AClaude Code +9 - 0.564score
verification
ririnto
Use when running an application, reproducing reported behavior, or gathering acceptance evidence.
SkillAFreshness: AClaude Code +9 - 0.564score
workflow
ririnto
Use in Claude Code main sessions for dependent stages, expected follow-up phases, or explicit Workflow requests.
SkillAFreshness: AClaude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get codex-scoped-cleanup running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
codex-scoped-cleanup skill. Agent Mart. https://agentmart.dev/skills/ririnto-codex-scoped-cleanup (last updated 2026-10-24)