financial-review
Skill6 starsChanged 2 months agoMITView on GitHub
Periodic financial-accuracy review for calculation-heavy projects — cross-layer parity audit (DB ↔ server ↔ UI) with severity-ranked report. Concrete checks live in a per-project checks file.
2 other projects use a version of this.
Adopted by
Most recently taken up by
- markbaindesign/bain-studiotheir own version, first seen Jul 22, 2026
- jack4world/auditstacktheir own version, first seen Mar 30, 2026
Other versions2 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 2
- jack4world/auditstack★ 9same name
- markbaindesign/bain-studio★ 0same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository32 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- brainstorm-reviewSkill
- brainstormSkill
- conceptSkill
- defineSkill
- light-spec-reviseSkill
- light-specSkill
- linear-hygieneSkill
- linearSkill
- phase-planSkill
- pipekit-helpSkill
- pipekit-updateSkill
- pk-bugSkill
- pk-exitSkill
- pk-expressSkill
- pr-fixSkill
- prod-readySkill
- pr-security-reviewSkill
- release-changelogSkill
- repo-security-reviewSkill
- review-planSkill
- roadmap-createSkill
- roadmap-reviewSkill
- security-gateSkill
- spec-preflightSkill
- startupSkill
- strategy-createSkill
- strategy-syncSkill
- sync-linearSkill
- tpmSkill
- verifySkill
- workSkill
The file
We split this skill into the rules it gives an agent
11 rules. About 0 are common, 7 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈7
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 33
Read the checks file at Financial review checks (default resources/financial-review-checks.md).
- Very specific: line 38
If pipekit/templates/financial-review-checks.template.md exists (synced projects), copy it to <path>.
- Distinctive: line 40
Do not invent project specifics — leave clearly-marked placeholders for the user.
- Very specific: line 46
If Financial review issue is set:
- Distinctive: line 50
If blank, skip — proceed straight to the audit and just produce the report.
- Distinctive: line 56
Read the calculation source files named in the checks file (the source of truth for the math).
- Distinctive: line 58
Run the checks file's test command.
- Distinctive: line 62
Run the checks file's audit groups as parallel read-only sub-agents.
- Distinctive: line 73
Run the checks file's regression-watch over recent history:
- Distinctive: line 85
If blank, skip transitions.
- Very specific: line 137
If Financial review issue set: move to Done (pk issue update <ID> --state Done), post pk issue comment <ID> "Review complete — {STATUS}.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Financial Review
You are a senior finance engineer conducting a periodic financial-accuracy review: verifying that the same monetary figure agrees across every layer that computes it (database view, server/client calculation, UI footer), that the calculation tests pass, and that recent changes haven't introduced silent drift.
This is the portable framework. The concrete, project-specific checks (which files hold the math, which SQL proves DB integrity, which formulas to compare) live in a project checks file you read at runtime — never hardcode them here. A non-finance project simply won't have a checks file, and won't invoke this skill.
Different from /repo-security-review (repo-wide security audit) and /pr-security-review (PR-scoped security). This one is domain-specific to money math and is periodic, not PR-triggered.
Triggers
/financial-review- "run financial review", "financial accuracy check"
Config (read from method.config.md)
| Key | Purpose | Default |
| Project display name | Used in the report header + comments | (project name) |
| Financial review issue | Recurring Linear issue id for the review (e.g. PROJ-101). Blank → skip the Linear lifecycle entirely (just run + report). | (blank) |
| Financial review checks | Path to the project checks file | resources/financial-review-checks.md |
| Reports path | Where to write the review report | Reports/ |
| Spec ready state / state names | Linear state names for transitions (see below) | per board |
Linear transitions are by state NAME, never hardcoded UUIDs. Use the project's Linear route — pk issue update <ID> --state "In Progress" takes the name and resolves the workflow-state id itself (verb table: sop/Linear_SOP.md § Linear transport; the mcp route's equivalent — a state lookup by name, then an issue update — is listed there). The three states this skill moves through are In Progress, In Review, Done — they must exist in the team's workflow.
Step 0 — Load the checks file (gate)
Read the checks file at Financial review checks (default resources/financial-review-checks.md).
- If it doesn't exist, STOP and tell the user:
No financial-review checks file found at
<path>. This skill is the framework; the project supplies the checks. Then scaffold one and stop for the user to fill it in:- If
pipekit/templates/financial-review-checks.template.mdexists (synced projects), copy it to<path>. - Otherwise create
<path>directly with these sections, each filled for the project: Test command, Calculation source files, DB integrity queries, Client↔server parity, Margin / footer / derived, Snapshot / version integrity (optional), Regression-watch paths, Known gaps. Do not invent project specifics — leave clearly-marked placeholders for the user.
- If
The checks file defines, for this project: the test command, the calculation source files, the DB-integrity queries, the client↔server parity formulas, the margin/footer checks, and the regression-watch paths. Everything below executes that project's checks — this skill provides the discipline and the report shape, the checks file provides the substance.
Step 1 — Open the review (Linear lifecycle)
If Financial review issue is set:
- Move it to In Progress —
pk issue update <ID> --state "In Progress"(state by name; see Config above). - Post a comment:
pk issue comment <ID> "Starting financial accuracy review — {YYYY-MM-DD}"
If blank, skip — proceed straight to the audit and just produce the report.
Recurring-issue note: for a recurring Linear issue, Done means "this cycle's review is complete"; Linear's recurrence re-opens it next cycle.
Step 2 — Read current state + baseline tests
- Read the calculation source files named in the checks file (the source of truth for the math).
- Find the previous report:
ls -t <Reports path>/Financial_Review_*.md 2>/dev/null | head -1(for trend comparison). - Run the checks file's test command. If tests fail → Critical finding, surfaced immediately.
Step 3 — Cross-layer parity audit (parallel sub-agents)
Run the checks file's audit groups as parallel read-only sub-agents. The canonical groups (each project's checks file fills in the specifics):
- DB integrity — run the checks file's SQL against the configured DB (via the project's DB MCP /
execute_sql). Any row returned where a stored/view total disagrees with the recomputed total beyond the tolerance defined in the checks file (checks own their thresholds; the example checks use> 0.01) is a Critical discrepancy. - Client↔server parity — compare the server/DB formulas (e.g.
GENERATED ALWAYS AScolumns, RPCs) against the client calculation implementation named in the checks file. A formula mismatch is High (UI shows a different number than the source of truth). - Margin / footer / derived metrics — verify inline/derived calculations (margins, fees, contingency) per the checks file, including divide-by-zero guards and rounding accumulation.
- Snapshot / version integrity (if applicable) — verify version-comparison math and sign conventions per the checks file.
Spawn these as independent sub-agents (they return findings; they do not fix). Each finding carries file:line or a query result as evidence.
Step 4 — Regression scan
Run the checks file's regression-watch over recent history:
git log --oneline --since="7 days ago" -- <financial paths from checks file>Flag any change touching financial logic for manual review.
Step 5 — Update Linear by findings
If Financial review issue is set:
- Critical or High findings: move to In Review (
pk issue update <ID> --state "In Review"), post a comment summarizing findings + proposed fixes (pk issue comment <ID> …). Work each fix, posting a comment per fix with evidence. After all fixes verified, move to Done (pk issue update <ID> --state Done). - Only Medium/Low, or clean: proceed to the report; move to Done after it's written.
If blank, skip transitions.
Step 6 — Generate the report
Write <Reports path>/Financial_Review_{YYYY-MM-DD}.md:
# Financial Accuracy Review — {YYYY-MM-DD} · {Project display name}
## Summary
- **Status**: PASS / FAIL / WARNINGS
- **Previous Review**: {date or "First review"}
- **Tests Passed**: {X}/{Y}
- **DB Integrity Checks**: {PASS/FAIL per check}
## Unit Test Results
{test output summary}
## Database Integrity
{per-check results — "PASS: no discrepancies" or the mismatching rows}
## Client↔Server Parity
{findings}
## Margin / Footer / Derived
{findings}
## Snapshot / Version Integrity
{findings, or "n/a"}
## Recent Changes (Last 7 Days)
{git log of financial-related changes}
## Findings
### Critical
{list or "None"}
### High
{list or "None"}
### Medium
{list or "None"}
### Low / Recommendations
{list or "None"}
## Known Gaps
{carried from the checks file's known-gaps section + anything new}
## Next Review Actions
{specific items to check next cycle}Step 7 — Close + summarize
- If
Financial review issueset: move to Done (pk issue update <ID> --state Done), postpk issue comment <ID> "Review complete — {STATUS}. Report: <path>". - Present the user: overall status, discrepancy count, top findings by severity, comparison to the previous review, recommended actions.
Severity rubric
- Critical — a stored/view figure disagrees with the recomputed aggregation: users see a wrong number.
- High — client↔server formula mismatch: one surface shows a different total than the source of truth.
- Medium — unhandled edge case (divide-by-zero, null markup, excluded items).
- Low — code quality, missing test coverage, doc gaps.
Key principles
- Numbers must match — the same figure from the DB view, the calculation code, and the UI must agree; any delta beyond tolerance is a finding.
- Evidence-based — every finding cites a query result or
file:line. - Regression-aware — always check what changed recently.
- Consistent — run the same checks-file checklist every cycle so trends are comparable.
- Framework here, checks in the project — never hardcode a project's schema, paths, or issue id in this skill; they live in the checks file and
method.config.md.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

