Agent skill

Eng Cleanup Failure Paths

by compozy in compozy/compozy

Partial-failure cleanup audit for Compozy Go functions. An agent skill from compozy/compozy.

MITAuto-check passed

Install Eng Cleanup Failure Paths

skills CLI
$ npx skills add compozy/compozy --skill eng-cleanup-failure-paths -a claude-code

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

GitHub CLI
$ gh skill install compozy/compozy eng-cleanup-failure-paths --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/compozy/compozy.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/eng/eng-cleanup-failure-paths .claude/skills/eng-cleanup-failure-paths && 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
eng-cleanup-failure-paths
GitHub stars
2.8k
Token cost
~527 tokens
SKILL.md length
236 words
Files
3 (incl. references)
Skills in repo
47
Repo updated
First seen
Licence
MIT

At a glance

Partial-failure cleanup audit for Compozy Go functions. An agent skill from compozy/compozy.

  • A changed function acquires
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Opens more than one fallible resource before returning
  • Pure transformations

What it does

Eng Cleanup Failure Paths is an agent skill from compozy/compozy. Partial-failure cleanup audit for Compozy Go functions. Use when a changed function acquires, registers, starts, claims, leases, or opens more than one fallible resource before returning. Do not use for pure transformations, read-only helpers, or test-only code.

Its SKILL.md is about 530 tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files, including reference files (for example `references/cleanup-table.md` and `references/test-failure-paths.md`).

The repository describes itself as: An operating system for AI agents. Plug in the agent CLIs you already use (Claude Code, Codex, Gemini CLI, Cursor) and they become a team: they split the work, hand tasks to each… The licence is MIT.

When your agent uses it

  • A changed function acquires
  • Opens more than one fallible resource before returning
  • Pure transformations
  • Read-only helpers

Example prompts

  • “/eng-cleanup-failure-paths”

What it can do on your machine

Read from SKILL.md and the folder at commit eec2ed1. 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

    No scripts in the folder and no shell commands in SKILL.md.

    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

Eng Cleanup Failure Paths loads about 527 tokens when it runs, and up to ~2.1k if it reads all its reference files. Until then it costs about 72 tokens; SKILL.md has 236 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~72
When it runs · the whole SKILL.md, loaded when a task matches
~527
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.1k

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); files beside SKILL.md are not scanned.

SKILL.md

The full file from compozy/compozy at commit eec2ed1, republished under its MIT licence (© compozy). 236 words, ~527 tokens.

Download SKILL.mdSave it as .claude/skills/eng-cleanup-failure-paths/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.
name
eng-cleanup-failure-paths
description
Partial-failure cleanup audit for Compozy Go functions. Use when a changed function acquires, registers, starts, claims, leases, or opens more than one fallible resource before returning. Do not use for pure transformations, read-only helpers, or test-only code.
trigger
implicit

Cleanup Failure Paths

Prove ownership across the affected function's acquisitions and exits. Account for the whole lifetime when a local edit changes cleanup; a matrix in working notes is useful for complex ownership, not a required report.

  • Identify acquired resources, their owners, cleanup/error policy, shutdown order, and any explicit ownership transfer. Use the matching rows of references/cleanup-table.md; read the complete table when the ownership chain spans its rules.
  • Walk success, error, cancellation, and reachable recovery exits after each acquisition. Release or transfer every live resource. Preserve the primary error and handle secondary cleanup failures.
  • Keep responses and writers request-bound. Detached execution needs a bounded lifetime and cancel/stop surface; subprocess trees retain process-group parity and cancel-then-grace shutdown.
  • Repair affected exits together. Split ownership when it cannot be proved locally, not because a function crosses an arbitrary defer-count threshold. Leave unrelated cleanup debt outside the change.

Before changing coverage, name the invariant, owning layer, and existing suite. Use eng-consolidate-test-suites only if placement is unclear and eng-test-conventions for Go test shape. references/test-failure-paths.md supplies patterns for the distinct failure class being changed. Reuse coverage that already proves the invariant; multiple syntactic returns do not imply multiple tests.

Inject failures through an interface or real I/O boundary and assert actual release, reuse, closure, or termination. A mock-call count alone does not prove cleanup. Complete when affected ownership paths are sound and their owning checks pass; the enclosing workstream owns delivery gates.

© compozy, 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 2 other files (references) in .agents/skills/eng/eng-cleanup-failure-paths of compozy/compozy.

  • SKILL.md
  • references/cleanup-table.md
  • references/test-failure-paths.md

Open the folder on GitHubat commit eec2ed1

Compare with similar skills

Eng Cleanup Failure Paths 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.

Eng Cleanup Failure Paths compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Eng Cleanup Failure Paths this skillcompozy/compozy2.8k—~527Automated safety check: PassMIT
Cleanupsimstudioai/sim30k—~1.4kAutomated safety check: PassApache-2.0
Click Path Auditaffaan-m/ECC275k3 repos~2kAutomated safety check: PassMIT
Azure Functionsdavila7/claude-code-templates32k2 repos~344Automated safety check: PassMIT
Neon Functionssickn33/agentic-awesome-skills47k1 repos~8.6kAutomated safety check: NotesApache-2.0
GCP Cloud Functionssickn33/agentic-awesome-skills47k2 repos~2.3kAutomated safety check: PassMIT

Similar skills

  • Cleanup

    simstudioai/sim

    Run all code quality skills — effects, memo, callbacks, state, React Query, emcn design review, url-state, comments, and test-audit — analyzing in parallel, then applying fixes sequentially

    30k GitHub stars~1.4k tokensUpdated today
    DevelopmentAuto-check passed
  • Click Path Audit

    affaan-m/ECC

    Trace every user-facing button/touchpoint through its full state change sequence to find bugs where functions individually work but cancel each other out, produce wrong final state, or leave the UI…

    275k GitHub starsUsed in 3 repos~2k tokens
    DevelopmentAuto-check passed
  • Azure Functions

    davila7/claude-code-templates

    Expert patterns for Azure Functions development including isolated worker model, Durable Functions orchestration, cold start optimization, and production patterns.

    32k GitHub starsUsed in 2 repos~344 tokens
    Backend & APIsAuto-check passed
  • Neon Functions

    sickn33/agentic-awesome-skills

    Long-running, serverless Node.js HTTP functions deployed onto your Neon branch, with DATABASEURL injected automatically and compute that runs next to your data.

    47k GitHub starsUsed in 1 repo~8.6k tokens
    Backend & APIsAuto-check: notes
  • GCP Cloud Functions

    sickn33/agentic-awesome-skills

    Deploy serverless functions on Google Cloud Functions. An agent skill from sickn33/agentic-awesome-skills.

    47k GitHub starsUsed in 2 repos~2.3k tokens
    Backend & APIsAuto-check passed
  • Rust Path Types

    openinterpreter/openinterpreter

    Rules for choosing Rust types for filesystem paths in new Codex code, covering protocol types, internal use and model tool arguments.

    69k GitHub starsUsed in 2 repos~605 tokens
    DevelopmentAuto-check passed

More from compozy/compozy

All 47 skills in this repo
  • Eng Real Scenario QA

    compozy/compozy

    Dogfoods Compozy through an autonomous startup scenario with live providers, cross-surface observation, and strict evidence audit.

    2.8k GitHub stars~3.4k tokensUpdated today
    Auto-check passed
  • Eng Test Conventions

    compozy/compozy

    Go test-shape discipline for Compozy. An agent skill from compozy/compozy.

    2.8k GitHub stars~467 tokensUpdated today
    Auto-check passed
  • Assistant UI

    compozy/compozy

    Guide for assistant-ui library - AI chat UI components. An agent skill from compozy/compozy.

    2.8k GitHub stars~958 tokensUpdated today
    Auto-check passed
  • Guide for assistant-ui UI primitives - ThreadPrimitive, ComposerPrimitive, MessagePrimitive.

    2.8k GitHub stars~999 tokensUpdated today
    Auto-check passed
  • Assistant UI Runtime

    compozy/compozy

    Guide for assistant-ui runtime system and state management. An agent skill from compozy/compozy.

    2.8k GitHub stars~856 tokensUpdated today
    Auto-check passed
  • Assistant UI Streaming

    compozy/compozy

    Guide for assistant-stream package and streaming protocols. An agent skill from compozy/compozy.

    2.8k GitHub stars~813 tokensUpdated today
    Auto-check passed

Questions about Eng Cleanup Failure Paths

What does Eng Cleanup Failure Paths do?

Partial-failure cleanup audit for Compozy Go functions. An agent skill from compozy/compozy. Eng Cleanup Failure Paths is an agent skill from compozy/compozy. Partial-failure cleanup audit for Compozy Go functions.

When should I use Eng Cleanup Failure Paths?

Eng Cleanup Failure Paths fits situations like: A changed function acquires; opens more than one fallible resource before returning; pure transformations; read-only helpers.

How do I install Eng Cleanup Failure Paths in Claude Code?

Run `npx skills add compozy/compozy --skill eng-cleanup-failure-paths -a claude-code`. Or copy the skill folder (.agents/skills/eng/eng-cleanup-failure-paths in compozy/compozy) into .claude/skills/eng-cleanup-failure-paths in your project. Claude Code loads it when a task matches its description.

How do I install Eng Cleanup Failure Paths in Codex?

Run `npx skills add compozy/compozy --skill eng-cleanup-failure-paths -a codex`. Or copy the skill folder (.agents/skills/eng/eng-cleanup-failure-paths in compozy/compozy) into .agents/skills/eng-cleanup-failure-paths in your project. Codex loads it when a task matches its description.

Can I use Eng Cleanup Failure Paths 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 compozy/compozy --skill eng-cleanup-failure-paths -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/eng-cleanup-failure-paths, .gemini/skills/eng-cleanup-failure-paths, .github/skills/eng-cleanup-failure-paths and .opencode/skills/eng-cleanup-failure-paths in your project.

What does Eng Cleanup Failure Paths need to run?

SKILL.md names no scripts, command-line tools or credentials: Eng Cleanup Failure Paths is instructions for the agent only.

Does Eng Cleanup Failure Paths 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 Eng Cleanup Failure Paths 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. Review the folder before installing.

What licence does Eng Cleanup Failure Paths use?

Eng Cleanup Failure Paths 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 Eng Cleanup Failure Paths use?

About 527 tokens (SKILL.md is roughly 2.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.6k tokens, read only when the agent opens those files.

What are the alternatives to Eng Cleanup Failure Paths?

Skills that share tags, products or a category with Eng Cleanup Failure Paths: Cleanup (simstudioai/sim, 30k stars), Click Path Audit (affaan-m/ECC, 275k stars), Azure Functions (davila7/claude-code-templates, 32k stars) and Neon Functions (sickn33/agentic-awesome-skills, 47k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Eng Cleanup Failure Paths?

compozy (a GitHub organization) maintains it in compozy/compozy, which has 2,792 GitHub stars. The repository holds 47 skills in this directory. The repository was last updated on October 8, 2026.

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