本文へスキップ
Skillpedia
分析とスプレッドシート280k · #306

ecc-tools-cost-audit

できること

このツールは、ECC Toolsリポジトリで予想外のコストの問題を調査し、修正するためのものです。ツールが必要以上に多くのプルリクエスト(PR)を作成していないか、許容量を超えてリソースを使っていないか、本来必要ないのに高額なオプションへ利用者を誘導していないかを特定することに重点を置いています。

使う場面

  • ✓ECC Toolsが想定以上にお金を使っていると思われるとき。
  • ✓プルリクエストが自動で大量に作成されているとき。
  • ✓ツールの利用料金が予想外に増えたとき。

スキルのリンク

https://github.com/affaan-m/ECC/blob/main/skills/ecc-tools-cost-audit/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/affaan-m/ECC/blob/main/skills/ecc-tools-cost-audit/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“ECC Toolsの高いコストと、過剰なプルリクエスト作成について調査してください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

ツールは、リクエストを受け取ってから実行されるまでの流れをたどり、どこでコストが発生しているかを調べます。利用上限が守られているか、また利用者が適切なサービスに案内されているかも確認します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

ECC Tools Cost Audit

Use this skill when the user suspects the ECC Tools GitHub App is burning cost, over-creating PRs, bypassing usage limits, or routing free users into premium analysis paths.

This is a focused operator workflow for the sibling ECC-Tools repo. It is not a generic billing skill and it is not a repo-wide code review pass.

Skill Stack

Pull these ECC-native skills into the workflow when relevant:

  • autonomous-loops for bounded multi-step audits that cross webhooks, queues, billing, and retries
  • agentic-engineering for tracing the request path into discrete, provable units
  • customer-billing-ops when repo behavior and customer-impact math must be separated cleanly
  • search-first before inventing helpers or re-implementing repo-local utilities
  • security-review when auth, usage gates, entitlements, or secrets are touched
  • verification-loop for proving rerun safety and exact post-fix state
  • tdd-workflow when the fix needs regression coverage in the worker, router, or billing paths

When To Use

  • user says ECC Tools burn rate, PR recursion, over-created PRs, usage-limit bypass, or premium-model leakage
  • the task is in the sibling ECC-Tools repo and depends on webhook handlers, queue workers, usage reservation, PR creation logic, or paid-gate enforcement
  • a customer report says the app created too many PRs, billed incorrectly, or analyzed code without producing a usable result

Scope Guardrails

  • work in the sibling ECC-Tools repo, not in ECC
  • start read-only unless the user clearly asked for a fix
  • do not mutate unrelated billing, checkout, or UI flows while tracing analysis burn
  • treat app-generated branches and app-generated PRs as red-flag recursion paths until proved otherwise
  • separate three things explicitly:
    • repo-side burn root cause
    • customer-facing billing impact
    • product or entitlement gaps that need backlog follow-up

Workflow

1. Freeze repo scope

  • switch into the sibling ECC-Tools repo
  • check branch and local diff first
  • identify the exact surface under audit:
    • webhook router
    • queue producer
    • queue consumer
    • PR creation path
    • usage reservation / billing path
    • model routing path

2. Trace ingress before theorizing

  • inspect src/index.* or the main entrypoint first
  • map every enqueue path before suggesting a fix
  • confirm which GitHub events share a queue type
  • confirm whether push, pull_request, synchronize, comment, or manual re-run events can converge on the same expensive path

3. Trace the worker and side effects

  • inspect the queue consumer or scheduled worker that handles analysis
  • confirm whether a queued analysis always ends in:
    • PR creation
    • branch creation
    • file updates
    • premium model calls
    • usage increments
  • if analysis can spend tokens and then fail before output is persisted, classify it as burn-with-broken-output

4. Audit the high-signal burn paths

PR multiplication

  • inspect PR helpers and branch naming
  • check dedupe, synchronize-event handling, and existing-PR reuse
  • if app-generated branches can re-enter analysis, treat that as a priority-0 recursion risk

Quota bypass

  • inspect where quota is checked versus where usage is reserved or incremented
  • if quota is checked before enqueue but usage is charged only inside the worker, treat concurrent front-door passes as a real race

Premium-model leakage

  • inspect model selection, tier branching, and provider routing
  • verify whether free or capped users can still hit premium analyzers when premium keys are present

Retry burn

  • inspect retry loops, duplicate queue jobs, and deterministic failure reruns
  • if the same non-transient error can spend analysis repeatedly, fix that before quality improvements

5. Fix in burn order

If the user asked for code changes, prioritize fixes in this order:

  1. stop automatic PR multiplication
  2. stop quota bypass
  3. stop premium leakage
  4. stop duplicate-job fanout and pointless retries
  5. close rerun/update safety gaps

Keep the pass bounded to one to three direct fixes unless the same root cause clearly spans multiple files.

6. Verify with the smallest proving steps

  • rerun only the targeted tests or integration slices that cover the changed path
  • verify whether the burn path is now:
    • blocked
    • deduped
    • downgraded to cheaper analysis
    • or rejected early
  • state the final status exactly:
    • changed locally

…

よくある質問

「PR作成」とは何ですか?

「PR作成」とは、プルリクエストを作成することを指します。プルリクエストは、コードの変更をプロジェクトに取り込むよう依頼する仕組みです。ツールは、こうしたリクエストが不必要に作成されていないかを確認します。

「暴走するPR作成」とはどういう意味ですか?

「暴走するPR作成」とは、ツールが制御されないまま、想定や必要を大きく超えてプルリクエストを作成してしまう状態を指します。

このツールは一般的な請求の問題も解決しますか?

いいえ。このツールは、ECC Toolsリポジトリ内のコストや問題を調査することに特化しており、他のサービスの一般的な請求には対応していません。

詳細

作者による元の説明

Evidence-first ECC Tools burn and billing audit workflow. Use when investigating runaway PR creation, quota bypass, premium-model leakage, duplicate jobs, or GitHub App cost spikes in the ECC Tools repo.

repo: affaan-m/ECC

人気

GitHubのスター
280k
ランキング
#306
ライセンス
MIT
更新日
2026/10/15

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル