跳到正文
Skillpedia
分析与电子表格280k · #306

ecc-tools-cost-audit

它能做什么

这个技能可以帮你排查并修复 ECC Tools 代码仓库中意外的费用问题。它重点查找工具为什么会创建过多的 Pull Request(PR),占用超出限额的资源,或者在没有必要的情况下把用户引导到更贵的选项上。

适用场景

  • ✓当你怀疑 ECC Tools 花费了过多费用时。
  • ✓如果自动创建了太多 Pull Request(PR)。
  • ✓当工具的使用费用出现意外上涨时。

技能链接

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

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/affaan-m/ECC/blob/main/skills/ecc-tools-cost-audit/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“调查 ECC Tools 费用过高以及 PR 创建过多的问题。”

每周 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 创建”指的是创建 Pull Request(PR),也就是请求把代码改动合并到项目中的操作。这个技能会检查这些请求是否被不必要地创建了。

“失控式 PR 创建”是什么意思?

“失控式 PR 创建”是指工具不受控制地大量创建 Pull Request,数量远超预期或实际需要。

这个技能能解决一般的账单问题吗?

不能。这个技能专门用于排查 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

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能