affaan-m/ECC

ecc-tools-cost-audit

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.

89Collecting
See how to use itView GitHub source
npx skills add https://github.com/affaan-m/ECC --skill "skills/ecc-tools-cost-audit"
Automated source guide

Source checked Jul 28, 2026·Refresh due Oct 26, 2026

Reorganized from the pinned upstream SKILL.md

Turn ecc-tools-cost-audit's source instructions into a guide you can follow

According to the pinned SKILL.md from affaan-m/ECC: 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.

npx skills add https://github.com/affaan-m/ECC --skill "skills/ecc-tools-cost-audit"
Check the pinned source

Best fit

  • 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

Bring this context

  • A concrete task that matches the documented purpose of ecc-tools-cost-audit.
  • The files, examples, or context the task depends on.
  • Your constraints, target environment, and definition of done.

Expected outputs

  • root causes cite exact file paths and code areas
  • fixes are ordered by burn impact, not code neatness
  • proving commands are named

Key source sections

Read ecc-tools-cost-audit through these 5 source sections

Sections are extracted automatically from the pinned SKILL.md and link back to the source.

01

Workflow

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

SKILL.md · Workflow
switch into the sibling ECC-Tools repocheck branch and local diff firstidentify the exact surface under audit:
02

2. Post-enqueue usage reservation

If usage is checked at the front door but only incremented in the worker, concurrent requests can all pass the gate and exceed quota.

SKILL.md · 2. Post-enqueue usage reservation
If usage is checked at the front door but only incremented in the worker, concurrent requests can all pass the gate and exceed quota.
03

Verification

root causes cite exact file paths and code areas

SKILL.md · Verification
root causes cite exact file paths and code areasfixes are ordered by burn impact, not code neatnessproving commands are named
04

Skill Stack

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

SKILL.md · Skill Stack
autonomous-loops for bounded multi-step audits that cross webhooks, queues, billing, and retriesagentic-engineering for tracing the request path into discrete, provable unitscustomer-billing-ops when repo behavior and customer-impact math must be separated cleanly
05

When To Use

user says ECC Tools burn rate, PR recursion, over-created PRs, usage-limit bypass, or premium-model leakage

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

SkillSignal prompt templates

Provide the task, context, and acceptance criteria

These prompts were written by SkillSignal from the source structure; they are not upstream text.

Task-start prompt

Confirm source fit, inputs, and outputs before acting.

Use ecc-tools-cost-audit to help me with: [specific task]. Context: [files, data, or background]. Constraints: [environment, scope, and prohibited actions]. Before acting, check the pinned SKILL.md and explain which sections apply, what inputs are still missing, and what you will deliver.

Source-guided execution

Make the Agent explicitly follow the key extracted sections.

Apply the pinned ecc-tools-cost-audit source to [task]. Pay particular attention to these source sections: “Workflow”, “2. Post-enqueue usage reservation”, “Verification”, “Skill Stack”, “When To Use”. Preserve the important decision at each step. Mark facts not covered by the source as “needs confirmation” instead of inventing them. Then verify the result against my acceptance criteria: [criteria].

Result-review prompt

Check omissions, permissions, and source drift before delivery.

Review the current ecc-tools-cost-audit result: (1) does it satisfy the original task; (2) were any applicable steps or limits in the pinned SKILL.md missed; (3) did it perform any unauthorized file, command, network, or data action; and (4) which conclusions remain unverified? List issues first, then fix only what the source or user authorization supports.

Output checklist

Verify each item before delivery

The task matches the purpose documented in the SKILL.md.

The source section “Workflow” has been checked.

The source section “2. Post-enqueue usage reservation” has been checked.

The source section “Verification” has been checked.

The source section “Skill Stack” has been checked.

Inputs, constraints, and acceptance criteria are explicit.

Unverified facts, compatibility, and outcome claims are clearly marked.

Any file, command, network, or data action has been reviewed.

Choose a different workflow

When another Skill is the better fit

FAQ

What does ecc-tools-cost-audit do?

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.

How do I start using ecc-tools-cost-audit?

The catalog detected this source-specific install command: npx skills add https://github.com/affaan-m/ECC --skill "skills/ecc-tools-cost-audit". Inspect the command and pinned source before running it.

Which Agent platforms does it declare?

No dedicated Agent platform is declared in the pinned source record.

Repository stars
234,327
Repository forks
35,711
Quality
89/100
Source repository last pushed

Quality breakdown

Based on traceable docs and repository signals; stars are not treated as quality.

89/100
Documentation24/30
Specificity25/25
Maintenance20/20
Trust signals20/25

Compare before choosing

Related Agent Skills and source variants

These links are selected from shared tasks, functions, stacks, platforms, and same-name variants. Compare the source owner, documentation, permissions, and maintenance signals.

View original Skill.mdThis page is parsed directly from the repository SKILL.md without editorial rewriting. Collected: Jul 28, 2026 · about 5 min

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 everything-claude-code
  • 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
    • verified locally
    • pushed
    • deployed
    • still blocked

High-Signal Failure Patterns

1. One queue type for all triggers

If pushes, PR syncs, and manual audits all enqueue the same job and the worker always creates a PR, analysis equals PR spam.

2. Post-enqueue usage reservation

If usage is checked at the front door but only incremented in the worker, concurrent requests can all pass the gate and exceed quota.

3. Free tier on premium path

If free queued jobs can still route into Anthropic or another premium provider when keys exist, that is real spend leakage even if the user never sees the premium result.

4. App-generated branches re-enter the webhook

If pull_request.synchronize, branch pushes, or comment-triggered runs fire on app-owned branches, the app can recursively analyze its own output.

5. Expensive work before persistence safety

If the system can spend tokens and then fail on PR creation, file update, or branch collision, it is burning cost without shipping value.

Pitfalls

  • do not begin with broad repo wandering; settle webhook -> queue -> worker first
  • do not mix customer billing inference with code-backed product truth
  • do not fix lower-value quality issues before the highest-burn path is contained
  • do not claim burn is fixed until the narrow proving step was rerun
  • do not push or deploy unless the user asked
  • do not touch unrelated repo-local changes if they are already in progress

Verification

  • root causes cite exact file paths and code areas
  • fixes are ordered by burn impact, not code neatness
  • proving commands are named
  • final status distinguishes local change, verification, push, and deployment
Source repo
affaan-m/ECC
Skill path
skills/ecc-tools-cost-audit/SKILL.md
Commit SHA
4e973d3eaf92
Repository license
MIT
Data collected