eli5
Explain a topic like I'm a 5 year old. Use when the user types /eli5 <topic> or asks for a dead-simple picture explainer of how…
Compute the EXACT sub-transaction impact of a rollup rule in TRES Finance — every filter applied — and flag genuine problems (zero matches, overlap, config mistakes) before the rule is created. Two modes. Mode A: a pre-create quality gate invoked by the tres-rollup-rules skill
Claude Code
$ npx -y skills add anthropics/claude-plugins-community --skill tres-rollup-review --agent claude-code
Codex
$ npx skills add anthropics/claude-plugins-community --skill tres-rollup-review -a codex -y
Cursor
$ npx skills add anthropics/claude-plugins-community --skill tres-rollup-review -a cursor -y
Gemini CLI
$ npx skills add anthropics/claude-plugins-community --skill tres-rollup-review -a gemini-cli -y
GitHub Copilot
$ npx skills add anthropics/claude-plugins-community --skill tres-rollup-review -a github-copilot -y
OpenCode
$ npx skills add anthropics/claude-plugins-community --skill tres-rollup-review -a opencode -y
Windsurf
$ npx skills add anthropics/claude-plugins-community --skill tres-rollup-review -a windsurf -y
name: tres-rollup-review description: > Compute the EXACT sub-transaction impact of a rollup rule in TRES Finance — every filter applied — and flag genuine problems (zero matches, overlap, config mistakes) before the rule is created. Two modes. Mode A: a pre-create quality gate invoked by the tres-rollup-rules skill to vet proposed candidate rules. Mode B: standalone review of a rule someone submitted or of existing PENDING rules. Trigger this skill when the user says "review this rollup rule", "what would this rollup rule actually match", "preview the rollup impact", "how many transactions would this rule catch", "is this rollup rule valid", "validate my rollup rule", "check my pending rollup rules", or "review the rollup requests". Do NOT use this to design or propose new rollups — that is tres-rollup-rules. This skill only measures impact and flags issues; it never executes mutations. compatibility: "Requires TRES Finance MCP connector"
Take a fully-specified rollup rule and compute **exactly** which sub-transactions it will claim — with every one of its filters applied — then flag genuine problems. You do NOT design new rollups and you do NOT execute mutations.
All GraphQL runs through the **TRES Finance MCP connector** (`execute` tool). All variable keys and nested input fields MUST use **camelCase**, never snake_case.
---
The `tres-rollup-rules` discovery step groups sub-txs only at the (wallet, asset, direction) level — it never applies a single candidate's *full* filter combination (fees + method_ids + subtx_type + amount bounds + counterparty + excludeRollups together). This skill does exactly that, per rule, via the `subTransactionRollupRulePreview` query (which runs the engine's real `query_sub_transactions`), giving:
not be created), and
It is also usable **standalone** to review a rule someone submitted (Mode B) — a case the discovery skill doesn't cover.
---
When `tres-rollup-rules` invokes this skill (via the Skill tool), these instructions load into the **same** context that already holds the candidate rule objects — they are not passed as arguments, they are already in the conversation above. Iterate those candidates **one at a time**; for each, run the checks below and emit exactly one verdict:
"recipientIdentifier on an INFLOW rule — should be senderIdentifier").
Overlaps are reported as **notes**, not DROP/FIX (see Check 2). Produce one verdict line per candidate, then control returns to `tres-rollup-rules` Step 2.5.
Fetch pending rules and review each; produce a per-rule findings summary.
query PendingRollupRules {
subTransactionRollupRule(status: "Pending", limit: 50) {
totalCount
results { id name interval startDate endDate status rule createdBy createdAt }
}
}The status filter is title-case (`"Pending"`, `"Active"`, `"Disabled"`). If `totalCount` is 0, say "No pending rollup requests in this org" and stop.
---
A rule claims sub-transactions matching ALL of (this mirrors the engine's `query_sub_transactions`):
`platform` matches, `balanceFactor` matches `balance_factor`
`sender_identifier`/`recipient_identifier`, `original_sender_prefix`/`original_recipient_prefix`
The rule JSON (as stored / returned) uses snake_case. `balance_factor = -1` is **OUTFLOW**, `+1` is **INFLOW** — get this right or every direction check is backwards.
| Intent | Filter | |---|---| | Wallet | `belongsTo_In: [ID]` | | Asset by key | `asset_In: [ID]` | | Direction | `balanceFactor: Float` (-1 / 1) | | Min / max amount | `amount_Gte` / `amount_Lte` | | Sender / recipient | `sender_Identifier_In: [String]` / `recipient_Identifier_In: [String]` | | Method id | `tx_MethodId: String` (single) / `tx_Classification_MethodId_In: [String]` | | Sub-tx type | `type: String` / `type_In: [String]` (lowercase FinancialAction value) | | Exclude already-rolled-up | `excludeRollups: true` | | Exclude gas/fee | `excludeGasFees: true` | | Dates | `timestamp_Gte` / `timestamp_Lte` (DateTime) |
`type` / `type_In` take the **lowercase** FinancialAction value (`"gas"`, `"fee"`, `"reward"`, …) — opposite casing from the rule's UPPERCASE `subtxType` enum. So `subtx_type` is countable exactly (`type: "<value>"`) and `fees: ONLY` ≈ `type_In: ["gas", "fee"]`.
> Gotcha: `fees: ONLY` already selects GAS+FEE, so a gas/fee rollup needs `fees: ONLY` > alone — adding `subtxType: GAS` on top is redundant (and narrows to GAS, dropping FEE).
**`typeId` is NOT a rule filter here.** `type_id` is only the rollup rule's id **when paired with** `type_In: ["rollup", "rollup_fee"]`. On other types it means something else entirely. To inspect what an existing rollup rule produced, query `type_In: ["rollup","rollup_fee"], typeId: "<rule_id>"` — never `typeId` alone.
**Sentinel dates (operational note):** if `startDate == "0001-01-01"` or `endDate == "9999-12-31"`, omit that bound (don't pass the sentinel — it may not parse). Unboun
Explain a topic like I'm a 5 year old. Use when the user types /eli5 <topic> or asks for a dead-simple picture explainer of how…
Write an implementation plan as one interactive HTML page - a tree of claims (why › what › how › where), each proved by one…
Use the `quickdesign` CLI to generate AI media — UGC promo videos, image edits, product creatives, video upscales — through…
Use only when the user explicitly asks for a TestDino audit of Playwright automated test code. Routes through the audit tools the…
Use when the user wants to check TestDino connection status, validate their PAT, discover available organizations and projects,…
Use when the user wants to manage a manual execution run or update case-level results inside a run — listing runs, creating runs…
Complete, populate and fill out 3-statement financial model templates (Income Statement, Balance Sheet, Cash Flow Statement) .…
Complete, populate and fill out 3-statement financial model templates (Income Statement, Balance Sheet, Cash Flow Statement) .…