Data Analysis
brycewang-stanford/Auto-Empirical-Research-Skills
End-to-end R data analysis for the sewage project. An agent skill from brycewang-stanford/Auto-Empirical-Research-Skills.
Review a diff that touches Polar's billing domain — subscriptions, cycles and crons, orders, billing entries, meters and usage, discounts, checkout, payments and dunning, refunds, disputes, payouts…
$ npx skills add polarsource/polar --skill billing-review -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install polarsource/polar billing-review --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/polarsource/polar.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/billing-review .claude/skills/billing-review && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "billing-review" agent skill from https://github.com/polarsource/polar/tree/main/.agents/skills/billing-review into .claude/skills/billing-review/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "billing-review", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/polarsource/polar/tree/main/.agents/skills/billing-reviewType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add polarsource/polar --skill billing-review -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install polarsource/polar billing-review --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/polarsource/polar.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.agents/skills/billing-review .agents/skills/billing-review && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "billing-review" agent skill from https://github.com/polarsource/polar/tree/main/.agents/skills/billing-review into .agents/skills/billing-review/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "billing-review", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add polarsource/polar --skill billing-review -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install polarsource/polar billing-review --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/polarsource/polar.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.agents/skills/billing-review .cursor/skills/billing-review && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "billing-review" agent skill from https://github.com/polarsource/polar/tree/main/.agents/skills/billing-review into .cursor/skills/billing-review/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "billing-review", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/polarsource/polar.git --path .agents/skills/billing-review--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add polarsource/polar --skill billing-review -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install polarsource/polar billing-review --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/polarsource/polar.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.agents/skills/billing-review .gemini/skills/billing-review && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "billing-review" agent skill from https://github.com/polarsource/polar/tree/main/.agents/skills/billing-review into .gemini/skills/billing-review/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "billing-review", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install polarsource/polar billing-reviewInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add polarsource/polar --skill billing-review -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/polarsource/polar.git skills-src && mkdir -p .github/skills && cp -r skills-src/.agents/skills/billing-review .github/skills/billing-review && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "billing-review" agent skill from https://github.com/polarsource/polar/tree/main/.agents/skills/billing-review into .github/skills/billing-review/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "billing-review", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add polarsource/polar --skill billing-review -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install polarsource/polar billing-review --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/polarsource/polar.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.agents/skills/billing-review .opencode/skills/billing-review && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "billing-review" agent skill from https://github.com/polarsource/polar/tree/main/.agents/skills/billing-review into .opencode/skills/billing-review/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "billing-review", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
billing-reviewReview a diff that touches Polar's billing domain — subscriptions, cycles and crons, orders, billing entries, meters and usage, discounts, checkout, payments and dunning, refunds, disputes, payouts…
Billing Review is an agent skill from polarsource/polar. Review a diff that touches Polar's billing domain — subscriptions, cycles and crons, orders, billing entries, meters and usage, discounts, checkout, payments and dunning, refunds, disputes, payouts, wallets, tax and invoices. Use before opening a PR that changes money movement or subscription lifecycle, when the user asks for a billing review, or when a reviewer needs the domain rules the team enforces in review but that no linter catches.
Its SKILL.md is about 2.3k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Data & Analytics, covering DataFrames, Scheduled and recurring tasks and Forms and invoices. The repository describes itself as: Polar — A billing platform for the intelligence era. The licence is MIT.
10 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 71c1ac6. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md.
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Billing Review loads about 2.3k tokens when it runs. Until then it costs about 115 tokens; SKILL.md has 1,087 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from polarsource/polar at commit 71c1ac6, republished under its MIT licence (© polarsource). 1,087 words, ~2,258 tokens.
.claude/skills/billing-review/SKILL.md (or your agent's skills folder).The handle is the diff. The evidence is where the change breaks a billing invariant the team enforces in review.
Not a general code review. The other lenses know Polar's conventions, contract and deploy shape. This one knows how the billing domain is supposed to behave.
Distilled from ~210 review comments François (frankie567) left on billing PRs between
February and August 2026, plus domain invariants raised by pieterbeulque, psincraian,
joebon and Yopi on the same PRs. Each rule cites its PR.
Read .agents/skills/polar-billing.md first. That is the map of the domain — entities,
services, tasks, the cycle flow, proration, dunning, the ledger. This file is the checklist
that assumes it.
polar/{subscription,order,billing_entry,meter,event,discount,checkout,checkout_link}/
polar/{payment,payment_method,refund,dispute,payout,payout_account,wallet,transaction}/
polar/{invoice,receipt,tax,product,customer_seat,account}/ · polar/benefit/grant/
polar/models/{subscription,order,order_item,product,product_price,discount,checkout,
payment,billing_entry,refund,dispute,wallet,transaction}.py
migrations/ and server/scripts/ when they touch those tablesOwned elsewhere: schema and SDK impact → api-surface-review; migration and actor deploy
safety → ship-safety; lazy="raise" and repository conventions → conventions-check;
ADR-0006 / ADR-0007 → adr-check; existing helpers → reuse-check.
For a domain question you cannot settle from the diff, ask it rather than assert a defect. That is how this team reviews.
BillingEntry is the ledger tying an invoice line back to the events that caused it. Anything
computing an amount from a summary or a recomputation loses that trace.
The cycle already moves periods, writes events, and grants or revokes benefits.
update_trial so periods and events are right, then let
it cycle naturally because the new period is already past — same as ending a trial
immediately. (#11898)subscription/scheduler.py, not a
bespoke loop. (#12990)_handle_first_dunning_attempt, not the caller. Check the
latest payment's decline code, set a retry date if recoverable, leave it None otherwise.
Everything else (past due, benefit enqueue) is untouched. (#9744)Payment model as a @property
(UNRECOVERABLE_DECLINE_CODES), guarded by if self.processor == PaymentProcessor.stripe
so a second processor does not inherit Stripe's codes. (#9744)handle_payment_failure) releases the lock. A
caller that also releases it on its own error path is duplicated logic — delete it and its
test. (#10653)release_on_success was removed from the
codebase for this reason. A diff reintroducing it is a regression. (#10653)with_for_update belongs in the task that owns the unit of work, not inside
transfer_stripe. "This logic should be independent from Stripe behavior." (#12097)accepted was rejected as a dispute
status because Stripe uses lost either way, and diverging breaks the sync. (#12713)while walking forward through skipped cycles
computes credits wrong for the periods it skipped. Prefer an invariant alert that the cycle
did not run. (psincraian, #12510)repository.stream rather than a keyset loop over UUIDs. (#12749)max_redemptions and max_redemptions_per_customer are separate limits; a guard checking
one usually needs both. (#13394)cycle but has been missed elsewhere. New paths that apply a discount
check it too — prefer extracting the shared check. (psincraian, #12510)400. Check the unit before trusting arithmetic.polar_round introduces fractional-cent drift. (#11211)payment, which are on the Polar side and not linked
to the merchant's account. Transactions reach an organization through account_id;
payment_organization_id is a Pledge-era leftover that does not mean what it looks like.
(#12204)applied_balance_amount), not
the customer's current balance. (#11637)These keep breaking because new code assumes a payment exists.
ProductPrice.is_free / Checkout.is_free_product_price checks when reworking price
handling. (#12225)Short pointers only — the owning lens reports the general rule.
orders, subscriptions, payments, customers,
events. Heavy backfills go in a script; indexes go in concurrently. → ship-safetyondelete="restrict". "A DELETE statement is easy to spawn."
(#11206) → ship-safetyassert order.customer does
not protect you — it raises the lazy-load error itself (#11900). When a denormalized column
lands, the matching joinedload usually becomes dead; remove it (#12162). →
conventions-checkapi-surface-review## Billing
### 🔴 Blocking
- `file:line` — <invariant broken>. Fix: <fix>
### 🟠 Should fix
- `file:line` — <claim>. Fix: <fix>
### 🟡 Question
- `file:line` — <question>
### Notes
- domain context the author may not have: <one line, or omit>
### Verdict
✅ Clean | ❌ n blocking, n should-fix© polarsource, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .agents/skills/billing-review of polarsource/polar.
Open the folder on GitHubat commit 71c1ac6
Billing Review next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Billing Review this skillpolarsource/polar | 10k | — | ~2.3k | Automated safety check: Pass | MIT | |
| Data Analysisbrycewang-stanford/Auto-Empirical-Research-Skills | 4.5k | — | ~1.2k | Automated safety check: Notes | Custom licence | |
| Mobile Platform Offline Validateforcedotcom/sf-skills | 1.1k | — | ~2k | Automated safety check: Pass | Apache-2.0 | |
| Review Rbrycewang-stanford/Auto-Empirical-Research-Skills | 4.5k | — | ~1.3k | Automated safety check: Pass | Custom licence | |
| Skill Doli Code ReviewDolibarr/dolibarr | 7.7k | 1 repos | ~1.1k | Automated safety check: Pass | MIT | |
| Qt Cpp ReviewSerial-Studio/Serial-Studio | 7.2k | — | ~4.3k | Automated safety check: Pass | Custom licence |
brycewang-stanford/Auto-Empirical-Research-Skills
End-to-end R data analysis for the sewage project. An agent skill from brycewang-stanford/Auto-Empirical-Research-Skills.
forcedotcom/sf-skills
Review a Lightning Web Component for mobile offline compatibility — the Komaci offline static analyzer that pre-primes the data graph for Salesforce Mobile App Plus and Field Service Mobile App.
brycewang-stanford/Auto-Empirical-Research-Skills
R code review for the sewage project. An agent skill from brycewang-stanford/Auto-Empirical-Research-Skills.
Dolibarr/dolibarr
Reviews Dolibarr PHP code for compliance with coding standards and security best practices, and fixes identified issues.
Serial-Studio/Serial-Studio
Qt6/C++ deep code review for Serial Studio. An agent skill from Serial-Studio/Serial-Studio.
Serial-Studio/Serial-Studio
Qt6/QML deep code review for Serial Studio. An agent skill from Serial-Studio/Serial-Studio.
polarsource/polar
Integrate Polar billing in server-side Python applications using the versioned Polar and PolarAsync clients.
polarsource/polar
Integrate Polar billing in server-side TypeScript applications using the versioned createPolar and createPolarCore clients.
polarsource/polar
Check a code change against the repo's Accepted Architecture Decision Records (ADRs) in handbook/engineering/decisions/ and report violations with citations.
polarsource/polar
Review changes to Polar's API contract — Pydantic schemas, FastAPI endpoints, OpenAPI output and the generated SDKs.
polarsource/polar
Prepare an interview task for a candidate, as part of our hiring process.
polarsource/polar
Open or update a draft GitHub pull request after Polar-specific review and cubic CLI review.
Review a diff that touches Polar's billing domain — subscriptions, cycles and crons, orders, billing entries, meters and usage, discounts, checkout, payments and dunning, refunds, disputes, payouts…. Billing Review is an agent skill from polarsource/polar. Review a diff that touches Polar's billing domain — subscriptions, cycles and crons, orders, billing entries, meters and usage, discounts, checkout, payments and dunning, refunds, disputes, payouts, wallets, tax and invoices.
Billing Review fits situations like: asks for a billing review; A reviewer needs the domain rules the team enforces in review but that no linter catches.
Run `npx skills add polarsource/polar --skill billing-review -a claude-code`. Or copy the skill folder (.agents/skills/billing-review in polarsource/polar) into .claude/skills/billing-review in your project. Claude Code loads it when a task matches its description.
Run `npx skills add polarsource/polar --skill billing-review -a codex`. Or copy the skill folder (.agents/skills/billing-review in polarsource/polar) into .agents/skills/billing-review in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add polarsource/polar --skill billing-review -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/billing-review, .gemini/skills/billing-review, .github/skills/billing-review and .opencode/skills/billing-review in your project.
SKILL.md names no scripts, command-line tools or credentials: Billing Review is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Billing Review is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.3k tokens (SKILL.md is roughly 9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Billing Review: Data Analysis (brycewang-stanford/Auto-Empirical-Research-Skills, 4.5k stars), Mobile Platform Offline Validate (forcedotcom/sf-skills, 1.1k stars), Review R (brycewang-stanford/Auto-Empirical-Research-Skills, 4.5k stars) and Skill Doli Code Review (Dolibarr/dolibarr, 7.7k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
polarsource (a GitHub organization) maintains it in polarsource/polar, which has 10,343 GitHub stars. The repository holds 17 skills in this directory. The repository was last updated on October 9, 2026.
Source: polarsource/polar on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.