Chuyển đến nội dung
Skillpedia
Phân tích và bảng tính280k · #306

ecc-tools-cost-audit

Skill này làm gì

Công cụ này giúp điều tra và sửa các vấn đề chi phí bất thường trong kho mã ECC Tools. Nó tập trung tìm hiểu vì sao công cụ có thể tạo quá nhiều pull request, dùng nhiều tài nguyên hơn mức cho phép, hoặc hướng người dùng đến các lựa chọn đắt tiền hơn mà không cần thiết.

Khi nào nên dùng

  • ✓Khi bạn nghi ngờ công cụ ECC Tools đang tiêu tốn quá nhiều tiền.
  • ✓Khi có quá nhiều “pull request” được tạo tự động.
  • ✓Khi chi phí sử dụng công cụ tăng đột ngột.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/affaan-m/ECC/blob/main/skills/ecc-tools-cost-audit/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Điều tra chi phí cao của công cụ ECC Tools và việc tạo PR quá mức.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Công cụ xem xét đường đi của các yêu cầu từ lúc tiếp nhận đến lúc thực thi để tìm nơi phát sinh chi phí. Nó kiểm tra xem các giới hạn sử dụng có được tuân thủ không và người dùng có được hướng dẫn đúng đến các dịch vụ hay không.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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

…

Câu hỏi thường gặp

“PR creation” là gì?

“PR creation” là việc tạo “pull request”, tức là một yêu cầu gộp các thay đổi code vào dự án. Công cụ kiểm tra xem có quá nhiều yêu cầu như vậy được tạo ra mà không cần thiết hay không.

“Runaway PR creation” nghĩa là gì?

Đó là khi công cụ tạo “pull request” một cách không kiểm soát, nhiều hơn rất nhiều so với mức mong đợi hoặc cần thiết.

Công cụ này có giải quyết các vấn đề thanh toán chung không?

Không, công cụ này chỉ tập trung điều tra chi phí và vấn đề trong kho mã ECC Tools, không dùng để xử lý thanh toán chung cho các dịch vụ khác.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
280k
Vị trí xếp hạng
#306
Giấy phép
MIT
Cập nhật
15/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự