ai-credit-routing
Use when minimising GitHub Copilot AI credits, selecting a mode, model, or reasoning effort, gating escalation to a stronger model, attributing spend by tokens and by cost, classifying wasted spend, or deciding whether to start a fresh session.
- License 许可
- GPL-3.0
- 最近更新
- 2026-11-15
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- ai-credit-routing
- description
- Use when minimising GitHub Copilot AI credits, selecting a mode, model, or reasoning effort, gating escalation to a stronger model, attributing spend by tokens and by cost, classifying wasted spend, or deciding whether to start a fresh session.
03 SKILL.md 正文
Optimise outcome per billed token:
- Simple question or review: use Ask mode. Multi-step edits: use Agent mode.
- Default to Auto when eligible; use stronger models only for ambiguity or planning, then execute from a compact plan with the least costly adequate model.
- Escalate to a stronger model or higher reasoning effort only via a stated conditional gate: a failed first attempt, an assignment tagged as demanding, or an irreversible step. A gate that matches everything is the stronger model by default.
- Default reasoning effort one notch below the maximum; effort is predominantly output tokens and frequently the largest single lever. Escalate per assignment, never globally.
- Never cite a price, limit, or benchmark discount from memory or from an external source; verify it from the current source, or present it as the user's own measurement only after measuring.
- Keep model, reasoning effort, agent, skills, and tool set stable within a session to preserve cache reuse.
- Start a fresh session via
session-handoffwhen changing these or when history is predominantly irrelevant. - Disable unused MCP servers and extensions; prefer the smallest capable tool set.
- Convert rich documents to Markdown prior to AI processing.
- Attribute spend by tokens and by cost separately; a high-volume cheap model and a costly strong model rank differently, so never read a token ranking as a cost ranking.
- Judge savings by cost per completed assignment, not per token; retries or additional passes on the cheaper path can invert the gain.
- Label every cost figure as measured, estimated, or extrapolated, and state its period and scope. Never present an estimate as a measurement; extrapolation is the lowest-confidence class and carries its method.
- Separate the cost of the observed work from the cost of the observing or note-taking model, and never fold the note-taker into the reported per-assignment cost.
- Classify wasted spend by failure type rather than by operation type: repeated attempts at one defect, hedging, wrong approach, rework, regression, premature completion, unnecessary escalation, repeated context read, and duplicated work. Count each wasted turn once, in one set, in every view that reports it.
- Rework is a failure type, never an operation category; keep the intended operation type separate from the failure that occurred, and record both when both apply.
- Cap optional inference passes such as classification, review, or summarisation with an explicit spend ceiling, keep the pass inactive by default, and report its spend separately from the assignment it annotates.
- Establish which figure a source genuinely proves and which the user must measure on their own traffic; a published discount presumes a call rate or workload that the user's may not reproduce.
- Pair each attributed cost with its confidence, and list unpriced or partially priced usage explicitly rather than pricing it at zero.
- Measure usage where available; never infer savings from request count alone.
04 同仓库更多 Skills
ui-design-review
Use when designing, building, reviewing, or repairing user interfaces, or when UI work must be verified before delivery. Covers accessibility, touch and interaction, performance, style selection, layout and responsive behaviour, typography and colour, animation, forms and feedback, navigation, and charts, with a prioritised rule set, a native and mobile pre-delivery checklist, and a browser-driven audit procedure that reports evidence-ranked findings.
release-verification
Use after a release, publication, or deployment to verify the delivered artefact and observe the affected surfaces until the observation window is clean. Covers release identity, surface evidence, finding classification, observation cadence, and partial-verification reporting.
pr-babysit
Use when monitoring a pull request or review cycle until it is ready to merge. Covers check observation, unresolved review threads, verification prior to resolution, and evidence-based completion.
supply-chain-security
Use when assessing software supply chain exposure from dependency manifests, lockfiles, SBOMs, VEX records, licence declarations, package names, or CVE identifiers. Covers dependency and transitive risk, SBOM validation against the NTIA minimum elements in CycloneDX and SPDX, VEX status interpretation, licence compliance, typosquatting and dependency confusion, and CVE triage through CVSS 4.0, EPSS, SSVC 2.1, and the CISA KEV catalogue. Produces a prioritised, SLA-bound remediation assessment.
secure-code-review
Use when performing a security-focused code review of a pull request, diff, file, or module, or when code touching authentication, authorisation, cryptography, input handling, deserialisation, file handling, or logging requires verification. Performs a structured review against OWASP ASVS 4.0.3 requirements and the CWE Top 25 (2024), producing findings mapped to ASVS controls and CWE identifiers with severity ratings and specific remediation guidance.
secrets-management
Use when examining secret handling, credential exposure, vault or cloud secrets manager integration, environment-file hygiene, rotation policy, or credential access for agents and CI/CD pipelines. Performs a structured secrets management assessment against the OWASP Secrets Management Cheat Sheet and NIST SP 800-57 Part 1 Rev 5, covering detection tooling, exposure routes, rotation automation, and centralised storage, without ever reproducing a secret value.