Collapse Passのロゴ

Collapse Pass

組織人気
EpicenterHQ
collapse-pass

Find and carry through worthwhile code simplifications across recent edits, named files, or a subsystem. Use for a collapse pass, a refactoring pass, another simplification pass, "simplify this", clean up code, or a hunt for indirection and dead abstractions. Specific transformations, planning requests, review-only requests, and explicit file limits determine the work. Use control-flow for a request limited to one function's branching.

概要

公開者EpicenterHQ
リポジトリepicenter
スキル名collapse-pass
スター
4.8K
フォーク
386
同梱ファイル
5
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 5個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    EpicenterHQがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Collapse Pass」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/EpicenterHQ/epicenter/tree/main/.agents/skills/collapse-pass
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/EpicenterHQ/epicenter.git /tmp/epicenter
mkdir -p .claude/skills
cp -r /tmp/epicenter/.agents/skills/collapse-pass .claude/skills/collapse-pass
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでCollapse Passを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にCollapse Passを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Collapse Passは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Collapse pass

A collapse pass actively finds and removes complexity that does not earn its place. It owns the hunt and carries worthwhile changes through implementation and verification. Read the relevant refactoring methods for caller evidence, safe inlining, typed boundaries, or straggler cleanup.

Start and expand the hunt

The requested outcome determines the work. A named transformation supplies the candidate: perform and verify it without turning the request into an open-ended hunt. Planning and proposal requests produce plans or proposals; review-only requests produce findings without edits. A broad pass authorizes the hunt below.

Start with named files, recent edits, or the subsystem established in the conversation. Treat that scope as a starting point unless the user explicitly limits it. With no named target, infer the starting area from the conversation and current changes; unrelated dirty files are not permission to edit them.

After implementation, inspect new helpers, components, callbacks, types, and file splits as well as existing code. Trace actual callers, dependencies, and neighboring implementations. Expand when those relationships reveal another concrete opportunity, and explain the connection before editing beyond the starting area. Respect instructions such as "only these files." Read external callers to establish behavior, but defer a candidate if completing it requires edits beyond that hard limit.

"Another pass" means pursue fresh candidates, including simplifications exposed by the previous pass. Use prior findings and rejected candidates to choose new searches rather than repeating the same diff review. Search for the same shape in related code when an accepted simplification suggests a recurring pattern. Revisit a rejected candidate when new evidence changes its justification. Move through the relevant subsystem without requiring the user to nominate every next file.

An implementation pass authorizes routine simplifications within this scope. Do not require a proposal approval for each edit. Stage, commit, push, or create a PR only when authorized; when committing, keep each logical simplification reviewable.

PR and branch starting points

For a PR or branch, establish its comparison base from PR metadata, the upstream tracking branch, or origin/main, then start with changed files and their callers. Use an isolated worktree when switching targets would disturb the current checkout. Never reset the user's active work. Report the checkout path and any uncommitted edits at handoff. A request to review a PR remains read-only unless implementation is authorized.

Judge candidates by what disappears

Look for forwarding layers, shallow aliases, duplicated decisions, derivable state, dead exports, obsolete compatibility paths, and files that only pass work elsewhere. Use code-audit and the smell catalog when a concrete search helps.

For Svelte input wrappers, hunt paired read/write, getValue/setValue, and forwarding value-change props that recreate the binding protocol. Use Svelte function bindings when one bindable value removes that custom API. Trace transformations and lifecycle guards before collapsing them; commands and draft ownership may earn their boundaries.

For input consumers, distinguish immediate editing from explicit submission. Immediate controls read the current editor and submit replacements. Explicit forms own unfinished input, preferably one replace-only raw draft object for fields submitted together. Single values and intentionally mutable proxied forms are valid when they fit the interaction; rune count is not the target. Hunt mirrored editor values, effect-driven synchronization, parallel draft/payload copies, unnecessary snapshot or clone layers, raw-state property mutation, and late results that erase newer typing. Classify search matches before changing them.

For file editor consumers, selection determines purpose: Files edits full text, product lists edit structured records, and invalid files have a repair route. Hunt per-record Source tabs, raw-mode admission, duplicated selection and selected-tab conditions inside shared Tabs.Content. Follow the Svelte editor ownership patterns. Use shared Input and Textarea retirement rather than forwarding wrappers. Keep genuine unfinished forms, accepted-content owners, path-operation facts, edit identities and rich-widget history. Remove an owner only after naming who will preserve its information.

Trace callers and mentally inline the candidate. Preserve evaluation timing, receiver binding, caching, and snapshot semantics when inlining. Keep a boundary when it names non-obvious work, enforces a shared rule, owns a lifecycle, isolates unsafe input, or makes a long phase understandable. Caller count alone does not decide. Use one-sentence-test when a file's purpose is unclear, rather than forcing the exercise on every small change.

Every accepted change should remove an unnecessary concept, exported surface, file, navigation hop, duplicated decision, or maintenance burden. Fewer lines alone are insufficient. Do not manufacture changes to make a pass look productive. If an edit fails this test on rereading, undo only that edit while preserving unrelated and unsaved work.

When a library refuses the proposed model, treat that as evidence about the model. Do not reimplement its public surface to make the simplification work. Read library refusal for this situation. Use rethink for ownership, lifecycle, API, or package-boundary decisions. Use asymmetric-wins when refusing a small promise would delete a disproportionate code family; name the promise and establish whether the user's authorization covers changing it.

Carry each finding through

Establish the starting state of target files so your changes remain distinguishable from existing edits. Before editing, briefly name the unnecessary complexity, why the proposed shape is better, and any material tradeoff. A routine finding needs a short progress update, not a mandatory transcript template or proposed diff.

Apply the change, inspect its callers, and run checks appropriate to the affected behavior. Verify external library behavior against official docs or installed types when correctness depends on it. Re-search removed or renamed symbols and clean up stale imports, exports, comments, tests, and documentation as part of the same logical change. Preserve coverage for behavior that remains; redundant tests can be removed when retained coverage protects the same contract. Then use what the change revealed to select the next candidate.

Finish with post-implementation-review on the cumulative affected system. Verification failures must be resolved or reported with evidence; do not attribute them to the baseline without checking.

Protect load-bearing information

Read durable contracts before editing affected storage, sync, auth, or public-contract code, and verify its claims against current source. Preserve stored data, unsaved input, and real consumer contracts. For file-authoritative recovery or consistency machinery, establish the visible repair path using repairability before removing a protection.

Surface consequential changes that exceed the authorized outcome: product behavior, durable formats, externally consumed contracts, or unresolved ownership decisions. Existing authorization may already settle the decision; do not ask again merely because files merge or an internal signature changes. Preserve documented invariants when moving code instead of treating the presence of JSDoc as a reason to pause.

Finish a useful pass

Continue while grounded opportunities remain in the relevant subsystem. Stop when further exploration yields no convincing simplifications, remaining changes need a consequential decision from the user, or an explicit budget is reached. A few unproductive files are evidence to change the search; they are not an automatic stopping rule unless the user chose one. Resolve regressions introduced by the pass before proceeding to unrelated candidates.

Report each logical simplification and its files, why it helped, what was verified, and any meaningful remaining decision. Mention important rejected candidates when they prevent repeat work. Use report guidance for a longer campaign; routine passes need a concise result.

A plain "collapse pass" needs no goal, checkpoint count, or scope form. For a sustained campaign, honor any explicit budget or commit preference. Use agent-goal when asked to draft a goal.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Collapse Pass」では何ができますか?

Find and carry through worthwhile code simplifications across recent edits, named files, or a subsystem. Use for a collapse pass, a refactoring pass, another simplification pass, "simplify this", clean up code, or a hunt for indirection and dead abstractions. Specific transformations, planning requests, review-only requests, and explicit file limits determine the work. Use control-flow for a request limited to one function's branching.

TypingMindでCollapse Passを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Collapse Passはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにCollapse Passをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/EpicenterHQ/epicenter/tree/main/.agents/skills/collapse-passを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Collapse Passを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Collapse Passで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもCollapse Passを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Collapse Pass」は無料ですか?

EpicenterHQがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇