Agent skill

Collapse Pass

by EpicenterHQ in EpicenterHQ/epicenter

Remove indirection that does not earn its boundary across a diff or package.

Custom licenceAuto-check passedDevelopment

Install Collapse Pass

skills CLI
$ npx skills add EpicenterHQ/epicenter --skill collapse-pass -a claude-code

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

GitHub CLI
$ gh skill install EpicenterHQ/epicenter collapse-pass --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/EpicenterHQ/epicenter.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/collapse-pass .claude/skills/collapse-pass && 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
collapse-pass
GitHub stars
4.8k
Token cost
~2k tokens
SKILL.md length
940 words
Files
7 (incl. references)
Skills in repo
65
Repo updated
First seen
Licence
Custom licence

At a glance

Remove indirection that does not earn its boundary across a diff or package.

  • Works in 7 steps: Pick one target. Count non-test callers… → Mentally inline every helper, wrapper,… → Run the one-sentence test on the file.… → …
  • The user asks to run a collapse pass
  • SKILL.md covers References, Operating principle, Per-iteration ritual and The anti-cosmetic gate, plus 5 more sections
  • Calls git and bun

What it does

Collapse Pass is an agent skill from EpicenterHQ/epicenter. Remove indirection that does not earn its boundary across a diff or package. Use when the user asks to run a collapse pass, simplify this broadly, audit dead abstractions, or shrink a surface, not when one function’s branching is the target.

Its SKILL.md is about 2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 7 other files, including reference files (for example `references/goal-template.md`, `references/library-refusal.md` and `references/never-touch.md`).

It sits in Development. The repository describes itself as: Open-source, local-first apps.

When your agent uses it

  • The user asks to run a collapse pass
  • Simplify this broadly
  • Audit dead abstractions
  • Shrink a surface

Example prompts

  • “/collapse-pass”

Workflow steps

7 steps, taken from the first numbered list in SKILL.md.

  1. Pick one target. Count non-test callers exactly with rg. If zero, the candidate is a dead-export collapse. If one, it's an…
  2. Mentally inline every helper, wrapper, prop, and indirection layer into its callers. Read the inlined result as a stranger would.
  3. Run the one-sentence test on the file. Write one concrete sentence describing what it does today. If the sentence drifts or grows "or"…
  4. Surface the finding BEFORE editing, in this exact shape
  5. Apply mechanical, low-risk findings only. For each
  6. Re-grep the removed/renamed symbol. Sweep stragglers (stale JSDoc, dead re-exports, orphaned imports) in a follow-up chore: straggler…
  7. Move to the next file.

What it can do on your machine

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

    Shell commands in SKILL.md call:

    • git
    • bun

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

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    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

Collapse Pass loads about 2k tokens when it runs, and up to ~8k if it reads all its reference files. Until then it costs about 64 tokens; SKILL.md has 940 words of instructions outside code blocks.

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

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

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 940 words (~2,018 tokens).

“A collapse pass is a session-long sequence of small commits that each delete one piece of indirection. Every commit must shrink the public surface, the file count, the call-graph depth, or the first-read effort. If a commit moves none of…”

— opening of SKILL.md by EpicenterHQ, Custom licence
name
collapse-pass
metadata.author
epicenter
metadata.version
1.0

Read the full SKILL.md on GitHub

Files

SKILL.md and 6 other files (references) in .agents/skills/collapse-pass of EpicenterHQ/epicenter.

  • SKILL.md
  • references/goal-template.md
  • references/library-refusal.md
  • references/never-touch.md
  • references/periodic-monorepo-pass.md
  • references/report-format.md
  • references/smell-catalog.md

Open the folder on GitHubat commit 9cc65c3

Compare with similar skills

Collapse Pass 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.

Collapse Pass compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Collapse Pass this skillEpicenterHQ/epicenter4.8k—~2kAutomated safety check: PassCustom licence
Vercel Composition Patternssupabase/supabase111k59 repos~726Automated safety check: PassMIT
Finishing a Development Branchobra/superpowers296k5 repos~1.9kAutomated safety check: PassMIT
Typescript Advanced Typesrolling-scopes/rsschool-app10k25 repos~4.2kAutomated safety check: PassMPL-2.0
PR Babysitteropeninterpreter/openinterpreter69k3 repos~4.2kAutomated safety check: PassApache-2.0
Code Review ChecklistshareAI-lab/learn-claude-code78k5 repos~1.1kAutomated safety check: PassMIT

Similar skills

  • Official

    React composition patterns that scale. An agent skill from supabase/supabase.

    111k GitHub starsUsed in 59 repos~726 tokens
    DevelopmentAuto-check passed
  • Walks the last step of a branch: confirm tests pass, detect the git environment, ask how to integrate, carry out your choice and clean up the worktree.

    296k GitHub starsUsed in 5 repos~1.9k tokens
    DevelopmentAuto-check passed
  • Typescript Advanced Types

    rolling-scopes/rsschool-app

    Master TypeScript's advanced type system including generics, conditional types, mapped types, template literals, and utility types for building type-safe applications.

    10k GitHub starsUsed in 25 repos~4.2k tokens
    DevelopmentAuto-check passed
  • PR Babysitter

    openinterpreter/openinterpreter

    Watches an open GitHub pull request until it merges, handling review comments, diagnosing CI failures and retrying flaky checks along the way.

    69k GitHub starsUsed in 3 repos~4.2k tokens
    DevelopmentAuto-check passed
  • Code Review Checklist

    shareAI-lab/learn-claude-code

    Reviews code against a five-part checklist covering security, correctness, performance, maintainability and testing, and reports findings in a fixed format.

    78k GitHub starsUsed in 5 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Greploop

    onyx-dot-app/onyx

    Iteratively improves a PR (GitHub), MR (GitLab), or shelved changelist (Perforce) until Greptile gives it a 5/5 confidence score with zero unresolved comments.

    32k GitHub starsUsed in 4 repos~3.3k tokens
    DevelopmentAuto-check passed

More from EpicenterHQ/epicenter

All 65 skills in this repo
  • Agent Instructions

    EpicenterHQ/epicenter

    Write and maintain repository guidance across AGENTS.md, CLAUDE.md, and .agents/skills.

    4.8k GitHub stars~1.2k tokensUpdated yesterday
    Auto-check passed
  • Consult Claude

    EpicenterHQ/epicenter

    Assign Claude Code a read-only investigation, recommendation, or finished text draft.

    4.8k GitHub stars~2k tokensUpdated yesterday
    Auto-check passed
  • Better Auth security hardening: rate limits, secrets, CSRF, trusted origins, cookies, sessions, OAuth tokens, and audit logging.

    4.8k GitHub stars~896 tokensUpdated yesterday
    Auto-check passed
  • Cohesion Over Testability

    EpicenterHQ/epicenter

    Collapse test-shaped production boundaries while preserving behavior and coverage.

    4.8k GitHub stars~2k tokensUpdated yesterday
    Auto-check passed
  • Error Handling

    EpicenterHQ/epicenter

    Apply Wellcrafted Result patterns to fallible operations and preserve failures at boundaries.

    4.8k GitHub stars~1.4k tokensUpdated yesterday
    Auto-check passed
  • Factory Function Composition

    EpicenterHQ/epicenter

    Factory function patterns to compose clients and services. An agent skill from EpicenterHQ/epicenter.

    4.8k GitHub stars~3k tokensUpdated yesterday
    Auto-check passed

Categories

Questions about Collapse Pass

What does Collapse Pass do?

Remove indirection that does not earn its boundary across a diff or package. Collapse Pass is an agent skill from EpicenterHQ/epicenter. Remove indirection that does not earn its boundary across a diff or package.

When should I use Collapse Pass?

Collapse Pass fits situations like: the user asks to run a collapse pass; simplify this broadly; audit dead abstractions; shrink a surface.

How do I install Collapse Pass in Claude Code?

Run `npx skills add EpicenterHQ/epicenter --skill collapse-pass -a claude-code`. Or copy the skill folder (.agents/skills/collapse-pass in EpicenterHQ/epicenter) into .claude/skills/collapse-pass in your project. Claude Code loads it when a task matches its description.

How do I install Collapse Pass in Codex?

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

Can I use Collapse Pass 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 EpicenterHQ/epicenter --skill collapse-pass -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/collapse-pass, .gemini/skills/collapse-pass, .github/skills/collapse-pass and .opencode/skills/collapse-pass in your project.

What does Collapse Pass need to run?

Going by SKILL.md and its folder, Collapse Pass needs the command-line tools its instructions call (git and bun).

Does Collapse Pass access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Collapse Pass 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 Collapse Pass use?

Collapse Pass has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Collapse Pass use?

About 2k tokens (SKILL.md is roughly 8.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 6k tokens, read only when the agent opens those files.

What are the alternatives to Collapse Pass?

Skills that share tags, products or a category with Collapse Pass: Vercel Composition Patterns (supabase/supabase, 111k stars), Finishing a Development Branch (obra/superpowers, 296k stars), Typescript Advanced Types (rolling-scopes/rsschool-app, 10k stars) and PR Babysitter (openinterpreter/openinterpreter, 69k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Collapse Pass?

EpicenterHQ (a GitHub organization) maintains it in EpicenterHQ/epicenter, which has 4,819 GitHub stars. The repository holds 65 skills in this directory. The repository was last updated on October 8, 2026.

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