billing-skill
БесплатноБез исполняемых скриптовНе проверенSkill to help with the xero billing generation
от ProxiBlue★ 17 звёзд на GitHubОб этом скилле
Billing Invoice — Addendum
These rules supplement the billing-invoice skill. Apply them whenever invoicing.
READ THIS: http://ddev-billing-web/docs/BILLING-INTEGRATION.md
Scope
Always use the current project's GitHub repo (determined from gh repo view --json nameWithOwner --jq '.nameWithOwner'). Never hardcode a repo name.
Prerequisites — bridge token must be mounted
Only projects that actually invoice clients need this. Most ddev projects DO NOT bill and should not be configured for the bridge. Set this up per-project, on demand, the first time you try to invoice from that project.
Check whether this project can reach the bridge
Run inside the project's ddev container before invoicing:
# 1. Token mounted?
test -r /etc/billing-bridge/token && echo "TOKEN_PRESENT" || echo "TOKEN_MISSING"
# 2. Billing container reachable on docker net?
getent hosts ddev-billing-web >/dev/null && echo "BRIDGE_REACHABLE" || echo "BRIDGE_UNREACHABLE"
# 3. Bridge responds?
curl -fsS -o /dev/null -w "HTTP %{http_code}\n" http://ddev-billing-web/internal/cli || echo "BRIDGE_DOWN"
If all three pass: proceed with invoicing.
If TOKEN_MISSING — set up the mount
The bridge mount is per-project, opt-in. Adding it once is a one-time setup per project that needs to invoice.
Host side (one-time, only if ~/.config/billing-bridge/token does NOT exist):
mkdir -p ~/.config/billing-bridge
openssl rand -hex 32 > ~/.config/billing-bridge/token
chmod 600 ~/.config/billing-bridge/token
The billing app uses the same file. Generating it again invalidates existing client projects; generate once, share across.
Per-project (create .ddev/docker-compose.billing.yaml in the project root):
services:
web:
volumes:
- $HOME/.config/billing-bridge/token:/etc/billing-bridge/token:ro
Then on the host:
ddev restart # in the project directory — required to apply the new volume mount
That is the only setup; the bridge URL (http://ddev-billing-web/internal/cli) is reachable from every ddev container on the shared docker network once billing is running.
Reference
For the canonical doc on the bridge, see ~/workspace/proxiblue/billing/ai/handoff.md. This skill section is the working subset.
AI-assisted billing format
All work is AI-assisted. Estimate hours as follows for each commit/task:
- Human est — how long this would take a developer without AI
- AI actual — estimated real time with AI assistance
- +20min — add 20 minutes (0.33h) to each item for Lucas's time directing/reviewing AI work
- Billed — AI actual + 20min, rounded to nearest 0.25h, minimum 0.5h
**Rate: determined inside the billing app. can likely query its endpoints if needed to know
Line item description format
Invoice line item descriptions MUST include the time breakdown:
fix: description here (#ticket)
⏱ Human: Xh | AI: Xh | Billed: Xh
Bundling rule
Only bundle if individual AI time < 0.5h. Bundle related small tasks to reach the 0.5h minimum. Do not bundle items that already meet the minimum individually.
Proposal table format
When proposing line items, show this table for approval:
| Ticket | Commit | Description | Human est | AI actual | +20min | Billed | Line total |
|---|
Invoiced label tracking
Setup (run once per repo if missing)
Before processing any invoice, determine the repo:
REPO=$(gh repo view --json nameWithOwner --jq '.nameWithOwner')
Check if the invoiced label exists:
gh label list --repo "$REPO" | grep -i invoiced
If not found, create it:
gh label create "invoiced" --description "Ticket has been billed to client" --color "0e8a16" --repo "$REPO"
Eligibility rules
A ticket is eligible for invoicing ONLY if:
Closed by someone other than ProxiBlue (Lucas van Staden) — tickets closed by ProxiBlue are client-side closures and must NOT be invoiced. Check with:
gh api "repos/$REPO/issues/NNN/timeline" --jq '[.[] | select(.event=="closed")] | last | .actor.login'If result is
ProxiBlue, skip the ticket and note it in the proposal as "skipped — closed by client".Does NOT already have the
invoicedlabel — prevents double-billing. Check with:gh issue view NNN --repo "$REPO" --json labels --jq '.labels[].name' | grep -i invoiced
After invoice is created
After a successful invoice submission, apply the invoiced label to all billed tickets:
gh issue edit NNN --add-label "invoiced" --repo "$REPO"
Finding unbilled work
When searching for commits related to a ticket:
- Search
git log --grep="#NNN"first - If nothing found, also search
git log --grep="GITHUB-NNN"andgit log --grep="GITHUB_NNN"— commit messages use multiple formats - If still nothing, **read the ticket body and com
Установить billing-skill в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл billing-skill?
Skill to help with the xero billing generation
Как установить скилл billing-skill?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл billing-skill запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
gtm-enterprise-account-planning
Strategic account planning and execution for enterprise deals. Use when planning complex sales cycles, managing multiple stakeholders, applying MEDDICC…
от GitHubgtm-partnership-architecture
Build and scale partner ecosystems that drive revenue and platform adoption. Use when building partner programs from scratch, tiering partnerships, managing…
от GitHublanding-page-conversion-audit
Audit a landing page, sales page or checkout page for conversion leaks and return a fix list ordered by expected revenue impact. Use when asked to review…
от GitHubpower-platform-architect
Use this skill when the user needs to transform business requirements, use case descriptions, or meeting transcripts into a technical Power Platform solution…
от GitHub