tres-report-create
Skill4.5k starsChanged 3 months agoApache-2.0View on GitHub
Create (generate) any TRES Finance report end-to-end via the tres-mcp MCP server and GraphQL — trigger the export, verify a report row was actually created (guarding against silent failures), poll until done, and return the download link. Trigger this skill on ANY report creation request, including phrases like "create a report", "generate a report", "export", "run a report", "I need a Transaction Ledger / Balances / Reconciliation / Cost Basis / Roll Forward / Staking / Audit report", "pull the data for", "download a report for", "give me a CSV/XLSX of", or whenever the user wants TRES to produce a report file. Use together with tres-report-advisor when the user is unsure which report they need.
Trending
Quiet since October.about the whole repository
Who's talking about anthropics/claude-plugins-community
- @latreon.bsky.social“claude-plugins-community: Community plugin marketplace for Claude Cowork and Claude Code. It has picked up …”Bluesky · Aug 24, 2026 · 2 likes
- @yug1224.com“Claude Codeなどの機能拡張プラグインをまとめた公式コミュニティ向けのマーケットプレイスらしい 新しい拡張機能を色々探して試したい yug1224 starred …”Bluesky · Aug 24, 2026 · 1 likes
- @hackobar.bsky.social“3. Anthropic Community Plugin Marketplace for Claude Code and Cowork LINK 4. Daedalus-150M Hybrid …”Bluesky · Aug 24, 2026 · 1 likes
- sudosubin/agents.nix“claude-code-plugins.github.anthropics.claude-plugins-community: init at 0-unstable-2026-10-01”GitHub · Oct 4, 2026
- sudosubin/agents.nix“agent-skills.github.anthropics.claude-plugins-community: 0-unstable-2026-08-24 → 0-unstable-2026-10-01”GitHub · Oct 3, 2026
The biggest 5 of 50 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 50
Talked about on GitHub and Bluesky (50 times).
On GitHub · 45
- Oct 4, 2026claude-code-plugins.github.anthropics.claude-plugins-community: init at 0-unstable-2026-10-01 — sudosubin/agents.nix0 reactions
- Oct 3, 2026agent-skills.github.anthropics.claude-plugins-community: 0-unstable-2026-08-24 → 0-unstable-2026-10-01 — sudosubin/agents.nix0 reactions
- Oct 2, 2026ci: bump validate-plugins action to 87c843d — netopsengineer/axiom0 reactions
- Sep 25, 2026agent-skills.github.anthropics.claude-plugins-community: init at 0-unstable-2026-08-24 — sudosubin/agents.nix0 reactions
- Sep 22, 2026Agent Kunjani passed review but is missing from the plugin directory and community catalog — anthropics/claude-code0 reactions
40 more on GitHub
- Sep 20, 2026feat(skills): add archify, i-have-adhd, eli5 under github namespace — teamai-hub/teamai-cli-dev0 reactions
- Sep 18, 2026Track: Anthropic Claude Code plugin directory — RoboAdApp/robowrite-plugin0 reactions
- Sep 13, 2026Add eli5 skill for claude and codex — oinume/dotfiles0 reactions
- Sep 13, 2026eli5 skillのインストール — oinume/dotfiles0 reactions · 2 comments
- Aug 30, 2026claude-community に申請する — BoxPistols/ux-writing-dead-cliche0 reactions
- Aug 30, 2026dead-cliche の配布を個人公開から Claude 公式ディレクトリへ段階的に広げる — BoxPistols/ux-writing-dead-cliche0 reactions
- Aug 27, 2026Run `claude plugin validate --strict` in the gate and CI — rvenutolo/claude-pgrep-pkill-guard0 reactions · 1 comment
- Aug 26, 2026Github trending [anthropics/claude-plugins-community] 社区插件市场镜像库 — web1992/github-trending0 reactions
- Aug 25, 2026🔥 GitHub Trending AI 早报 · 2026-08-26 · Top 9 项目 — happydog-intj/ai-xiaohongshu-daily0 reactions
- Aug 25, 2026🔥 GitHub Trending AI 早报 · 2026-08-26 · Top 9 项目 — Mystery406/ai-xiaohongshu-daily0 reactions
- Aug 25, 2026🔥 GitHub Trending AI 晚报 · 2026-08-25 · Top 9 项目 — Mystery406/ai-xiaohongshu-daily0 reactions
- Aug 25, 2026🔥 GitHub Trending AI 晚报 · 2026-08-25 · Top 9 项目 — happydog-intj/ai-xiaohongshu-daily0 reactions
- Aug 25, 2026ci: bump validate-plugins action to a727be1 — netopsengineer/axiom0 reactions
- Aug 25, 2026Github trending [anthropics/claude-plugins-community] 社区插件市场每日同步 — web1992/github-trending0 reactions
- Aug 24, 2026Audit candidate: anthropics/claude-plugins-community — MarkQWu/agents-in-the-wild0 reactions
- Aug 23, 2026release: lvsea-jieshi v0.1.0 — lhylvsea/lvsea-jieshi0 reactions
- Aug 22, 2026ci: bump validate-plugins action to f4c9452 — netopsengineer/axiom0 reactions
- Aug 20, 2026Manual: Submit to Claude Code Marketplace — azrtydxb/procoder0 reactions
- Aug 19, 2026ci: bump validate-plugins action to 24a5ecd — netopsengineer/axiom0 reactions
- Aug 17, 2026Dérive catalogues détectée (2026-08-17) — CustomDigitalServices-Kevin/claude-config-studio0 reactions
- Aug 14, 2026ci: bump validate-plugins action to 2285a36 — netopsengineer/axiom0 reactions
- Aug 13, 2026ci: bump validate-plugins action to 0e38de0 — netopsengineer/axiom0 reactions
- Aug 12, 2026ci: bump validate-plugins action to bf9b7e6 — netopsengineer/axiom0 reactions
- Aug 11, 2026ci: bump validate-plugins action to 8e69ea5 — netopsengineer/axiom0 reactions
- Aug 10, 2026ci: bump validate-plugins action to 76c3395 — netopsengineer/axiom0 reactions
- Aug 9, 2026ci: bump validate-plugins action to 661d978 — netopsengineer/axiom0 reactions
- Aug 8, 2026ci: bump validate-plugins action to 8d73e67 — netopsengineer/axiom0 reactions
- Aug 7, 2026ci: bump validate-plugins action to 50e56e6 — netopsengineer/axiom0 reactions
- Aug 6, 2026ci: bump validate-plugins action to 80f42f5 — netopsengineer/axiom0 reactions
- Aug 5, 2026ci: bump validate-plugins action to 9247660 — netopsengineer/axiom0 reactions
- Aug 4, 2026ci: bump validate-plugins action to cdd3064 — netopsengineer/axiom0 reactions
- Aug 3, 2026ci: bump validate-plugins action to 534e1ae — netopsengineer/axiom0 reactions
- Aug 2, 2026ci: bump validate-plugins action to 2c3df91 — netopsengineer/axiom0 reactions
- Aug 1, 2026ci: bump validate-plugins action to 8a41041 — netopsengineer/axiom0 reactions
- Jul 31, 2026ci: bump validate-plugins action to 44dd422 — netopsengineer/axiom0 reactions
- Jul 30, 2026ci: bump validate-plugins action to 91947f6 — netopsengineer/axiom0 reactions
- Jul 22, 2026Marketplace, distribution, and launch — tallyfy/repeatable0 reactions · 2 comments
- Jun 15, 2026github.com/anthropics/claude-plugins-official/issues — anthropics/claude-plugins-official0 reactions
- Jun 3, 2026Epic: Preemptive name registration for 'agmsg' across plugin/skill ecosystems — fujibee/agmsg0 reactions · 4 comments
- May 24, 2026Plugin "taketomarket" Published on 2026-05-14 but missing from claude-plugins-community marketplace.json 10 days later — anthropics/claude-plugins-official0 reactions · 1 comment
On Bluesky · 5
- Aug 24, 2026claude-plugins-community: Community plugin marketplace for Claude Cowork and Claude Code. It has picked up 97 stars in the last week.… — @latreon.bsky.social2 likes and reposts
- Aug 24, 2026Claude Codeなどの機能拡張プラグインをまとめた公式コミュニティ向けのマーケットプレイスらしい 新しい拡張機能を色々探して試したい yug1224 starred anthropics/claude-plugins-community… — @yug1224.com1 likes and repost · 1 reply
- Aug 24, 20263. Anthropic Community Plugin Marketplace for Claude Code and Cowork LINK 4. Daedalus-150M Hybrid Architecture Optimized for CPU Inference… — @hackobar.bsky.social1 likes and repost · 1 reply
- Oct 1, 2026Claude-plugins-community provides a curated directory of third-party plugins for Claude Cowork and Claude Code instead of hunting across… — @latreon.bsky.social0 likes and reposts · 1 reply
- Aug 25, 2026📈 Today's GitHub Trending: 1. https://github.com/freestylefly/awesome-gpt-image-2 - JavaScript, 1698 stars today 2.… — @ghtrend.newsmast.social.ap.brid.gy0 likes and reposts · 2 replies
In this repository30 other files it gives its agents.
- eli5Skill
- quickdesignSkill
- testdino-auditSkill
- testdino-healthSkill
- testdino-manual-runsSkill
- testdino-manual-testsSkill
- testdino-releasesSkill
- testdino-runsSkill
- testdino-sessionsSkill
- tres-asc845-swap-reprice-skillSkill
- tres-asset-balance-validationSkill
- tres-cost-basisSkill
- tres-data-collection-commitSkill
- tres-erp-rule-suggestionsSkill
- tres-explorer-tx-to-ledgerSkill
- tres-export-3rd-party-contactsSkill
- tres-import-contactsSkill
- tres-invoice-bill-matchingSkill
- tres-ledger-linkSkill
- tres-onboardingSkill
- tres-recon-gapsSkill
- tres-report-advisorSkill
- tres-report-analyzerSkill
- tres-request-skill-updateSkill
- tres-rollup-reviewSkill
- tres-rollup-rulesSkill
- tres-settings-managementSkill
- tres-tx-storySkill
- tres-upload-tx-header-validationSkill
- tres-wallets-uploadSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
13 rules. About 0 are common, 3 are distinctive, and 10 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
If you are unsure *which* report the user needs, use the tres-report-advisor skill first, then come back here to generate it.
- Distinctive: line 34
If a date range is required and not given, ask.
- Very specific: line 35
Currency: Default "usd" unless the user says otherwise.
- Very specific: line 42
Call the GraphQL query that matches the report's entitiesType, passing the export parameters.
- Very specific: line 101
Add timestamp_Gte / timestamp_Lte for date-ranged reports (LEDGER, AUDIT_LOG).
- Very specific: line 189
Read the format, never invent it: Use exportType from availableReportTypes verbatim as exportFormat.
- Very specific: line 252
Do not filter by exportFormat to find your report: the stored value is lowercase (e.g.
- Distinctive: line 267
Presenting the download link: Never paste the raw presigned URL into the chat — it's long, ugly, and full of credentials.
- Distinctive: line 277
If the user wants the data analyzed (not just the link), download via the presigned URL and inspect it locally with pandas:
- Very specific: line 291
Always start with df.head() and df.dtypes, then run the requested analysis (groupby, value_counts, describe, pivot_table).
- Very specific: line 301
After triggering, verify success on both channels: no error/error_type on the trigger, and status reaches DONE (not ERROR).
- Very specific: line 304
Default currency to "usd" and outputFormat to "CSV" unless the user specifies otherwise.
- Very specific: line 305
Never truncate or shorten transaction hashes, addresses, report IDs, or identifier_In values — always show/pass them in full.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 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
TRES Report Create
You create TRES Finance reports programmatically through the tres-mcp MCP server (GraphQL against the BFF). The flow is always: pick the report → trigger the export → poll until DONE → return the presigned link. Optionally download and analyze the file afterwards.
If you are unsure which report the user needs, use the tres-report-advisor skill first, then come back here to generate it.
Workflow
- [ ] Step 0: Clarify report type + date range + currency
- [ ] Step 1: Trigger the export (GraphQL via MCP `execute`)
- [ ] Step 1b: If the report isn't in the tables below, derive it from the schema
- [ ] Step 1c: VERIFY a report row was actually created (poll by exact name) — catches silent failures
- [ ] Step 2: Poll the report query until status == DONE
- [ ] Step 3 (optional): Download + analyze the fileStep 0 — Clarify scope (mandatory before triggering)
Confirm before doing anything:
- Report type (required). Match the user's wording to the tables below. If unsure, discover what's available:
query { availableReportTypes { name exportType entitiesType llmDescription } } - Date range (if applicable). LEDGER / AUDIT_LOG reports take
timestamp_Gte/timestamp_Ltein ISO 8601:- "Q1 2025" → Gte
2025-01-01T00:00:00Z, Lte2025-03-31T23:59:59Z - "2025" → Gte
2025-01-01T00:00:00Z, Lte2025-12-31T23:59:59Z - If a date range is required and not given, ask.
- "Q1 2025" → Gte
- Currency. Default
"usd"unless the user says otherwise. - Analysis goal (only if they want the data analyzed, not just the file). What should the data answer? Default to a general summary (totals, top items, trends). Drives Step 3.
Confirm briefly, e.g. "I'll generate a Transaction Ledger for Q1 2025 as CSV. Starting now."
Step 1 — Trigger the export
Call the GraphQL query that matches the report's entitiesType, passing the export parameters. Run it with the MCP execute tool (validate first with validate_query if unsure).
entitiesType → query to call
| entitiesType | Query |
| LEDGER | transaction |
| ASSETS | organizationBalance |
| BALANCE | organizationBalance |
| HISTORICAL_BALANCE | organizationBalance |
| ACCOUNTS | internalAccount |
| GENERAL | internalAccount |
| STAKING_DATA | stakingYieldRecord |
| AUDIT_LOG | auditLog |
| LOGIN_HISTORY | loginHistoryExport |
Report catalog (exportFormat values — verified against prod)
| Report name | exportFormat | entitiesType |
| Transaction Ledger | BASIC_RAW_TRANSACTIONS | LEDGER |
| Realized Gains & Losses | EXTENDED_RAW_TRANSACTIONS | LEDGER |
| Cost Breakdown Raw Transactions | COST_BREAKDOWN_RAW_TRANSACTIONS | LEDGER |
| Rollup Breakdown † | ROLLUP_BREAKDOWN | LEDGER |
| Ledger Reconciliation | RECONCILIATION | LEDGER |
| Cost Basis Roll Forward | COST_BASIS_ROLL_FORWARD | LEDGER |
| Asset Roll Forward | ASSET_ROLL_FORWARD | LEDGER |
| ERP Pre-Sync | PRE_SYNC_JOURNAL | LEDGER |
| ERP Post-Sync | POST_SYNC_JOURNAL | LEDGER |
| MT940 Statement | MT940 | LEDGER |
| Asset Balances | RAW_BALANCES | ASSETS |
| Asset Balances V2 | RAW_BALANCES_V2 | ASSETS |
| Asset Balances - Archives † | ARCHIVED_BALANCES | ASSETS |
| Balance Trends | BALANCE_TRENDS | ASSETS |
| Wallet Balances | INTERNAL_ACCOUNTS_BALANCES | ASSETS |
| Cost Basis Stack Per Asset | COST_BASIS_STACK_PER_ASSET | ASSETS |
| Asset Fiat Values | DAILY_ASSET_PRICING | ASSETS |
| Revaluation Report | REEVALUATION | ASSETS |
| Historical Balance Format | HISTORICAL_BALANCE | HISTORICAL_BALANCE |
| Cost Basis Inventory † | COST_BASIS_INVENTORY | BALANCE |
| Organization Wallets | INTERNAL_ACCOUNTS | ACCOUNTS |
| Contacts | CONTACTS | ACCOUNTS |
| Third Party Addresses | THIRD_PARTY_ADDRESSES | ACCOUNTS |
| Chart of Account | CHART_OF_ACCOUNT | GENERAL |
| ERP Rules | ERP_RULES | GENERAL |
| Connected Custodians | CONNECTED_CUSTODIANS | GENERAL |
| Staking Rewards & Positions | STAKING_DATA | STAKING_DATA |
| Audit Trail / Log | AUDIT_LOG | AUDIT_LOG |
| Login History | LOGIN_HISTORY | LOGIN_HISTORY |
† = special handling (see "Reports needing extra parameters" below). The org catalog evolves — availableReportTypes is authoritative. If a requested report isn't in this table, go to Step 1b and derive it from the schema rather than guessing.
Export parameters (always include):
exportFormat— value from the table above (UPPER_CASE)exportName— a descriptive, unique name (e.g."Transaction Ledger Q1 2025") — you'll match on this in Step 2currency—"usd"unless told otherwiseoutputFormat—"CSV"for downstream analysis, or"XLSX"if the user wants a spreadsheet
Add timestamp_Gte / timestamp_Lte for date-ranged reports (LEDGER, AUDIT_LOG).
⚠️ GraphQL variable types — get these EXACTLY right (first-run correctness)
The BFF strictly validates variable types. A wrong type returns HTTP 400 and no report is created — and the
executetool surfaces this under anerror/error_typefield, not the GraphQLerrorsarray, so it is easy to miss. Declare variables with these exact types:
Variable GraphQL type Notes exportFormatStringthe UPPER_CASE value exportNameStringunique name currencyStringe.g. "usd"outputFormatReportOutputFormatNOT String. Value"CSV"/"XLSX"timestamp_Gte/timestamp_LteDateTimeNOT String. ISO 8601 valueidentifier_In,children_Asset_AssetClass_In,children_BelongsTo_In[String]NOT [ID]The params must be passed as variables named exactly
exportName,exportFormat, etc. — the BFF reads them frominfo.variable_valuesby name. Inline literals or renamed variables ($ef) silently create no report.
Example — trigger a Transaction Ledger export (verified working form):
query($limit: Int, $offset: Int, $timestamp_Gte: DateTime, $timestamp_Lte: DateTime,
$exportFormat: String, $exportName: String, $currency: String, $outputFormat: ReportOutputFormat) {
transaction(limit: $limit, offset: $offset, timestamp_Gte: $timestamp_Gte,
timestamp_Lte: $timestamp_Lte, exportFormat: $exportFormat,
exportName: $exportName, currency: $currency, outputFormat: $outputFormat) {
results { id }
totalCount
}
}{
"limit": 1,
"offset": 0,
"timestamp_Gte": "2025-01-01T00:00:00Z",
"timestamp_Lte": "2025-03-31T23:59:59Z",
"exportFormat": "BASIC_RAW_TRANSACTIONS",
"exportName": "Transaction Ledger Q1 2025",
"currency": "usd",
"outputFormat": "CSV"
}The export then generates asynchronously in the background. A 200 with totalCount only confirms the query ran — it does not mean a report was created (verify in Step 1c) and it does not mean the file is ready (poll in Step 2).
Reports needing extra parameters (omit these and the report errors or comes back empty)
Report (exportFormat) | Trigger via | Required extra params |
ROLLUP_BREAKDOWN | transaction | identifier_In: [String] — rollup parent hashes to decompose. Without it the report is empty. |
COST_BASIS_INVENTORY | transaction (not organizationBalance) | exactly one children_Asset_AssetClass_In: [String] (asset-class id). Optional: at most one children_BelongsTo_In: [String]. Missing/multiple → report finishes with status: ERROR ("must select exactly one asset class"). Get an asset-class id from query { assetClass(limit: N) { results { id name symbol } } }. |
ARCHIVED_BALANCES | organizationBalance | Requires an existing commit snapshot for the target date. If none exists it stays pending — prefer HISTORICAL_BALANCE (Time Capsule) for arbitrary dates. |
Point-in-time balances. For a balance report as of a past date, organizationBalance also accepts balanceDate: DateTime (reconstructs balances at that date — this is the Time Capsule path; passing RAW_BALANCES + balanceDate is promoted to HISTORICAL_BALANCE) and commitId: UUID (pull from a specific commit snapshot). Omit both for current balances.
LOGIN_HISTORY has a different shape
loginHistoryExport takes only exportFormat: String!, exportName: String!, outputFormat: ReportOutputFormat (no currency/limit/timestamps) and returns { success reportId }:
query($exportFormat: String!, $exportName: String!, $outputFormat: ReportOutputFormat) {
loginHistoryExport(exportFormat: $exportFormat, exportName: $exportName, outputFormat: $outputFormat) {
success
reportId
}
}Step 1b — Unknown or newly added report? Derive it from the schema (self-service)
availableReportTypes is the source of truth — it lists every report the org supports, including ones not in the tables above. When a requested report has no row here, do not guess: discover the trigger from the live schema using the MCP introspection tools.
- [ ] 1. availableReportTypes -> get this report's exportType + entitiesType + llmDescription
- [ ] 2. Pick the trigger query from entitiesType (Step 1 table). If entitiesType is new/unclear,
default: transaction (tx / ledger / cost-basis), organizationBalance (balances / assets),
internalAccount (accounts / metadata).
- [ ] 3. introspect(<query>) -> read the EXACT arg names AND types
- [ ] 4. build_query(<query>) -> canonical variables-as-args template (optional, handy)
- [ ] 5. validate_query(<assembled query>) BEFORE executing
- [ ] 6. Trigger with the 4 export params (+ timestamps only if the query exposes them)
- [ ] 7. Poll; if it errors, apply the error->fix table, then re-trigger
- [ ] 8. On DONE: return the link AND record the working recipePrinciples that make this work first-try:
- Read the format, never invent it. Use
exportTypefromavailableReportTypesverbatim asexportFormat. - Derive variable types from
introspect, not from memory. Declare each variable with the exact type the schema reports. This alone prevents the 400 "used in position expecting type X" failures. Sanity-check the usual ones:outputFormat→ReportOutputFormat,currency→String,timestamp_*→DateTime, list filters →[String]. - Validate before executing.
validate_querycatches arg/type/selection mistakes without creating a junk report. - Start minimal, then add only what the error demands. Trigger with just the export params first; let the error messages tell you which extra filter a generator requires.
Error → fix table (covers every failure mode seen against prod):
| Error | Meaning | Fix |
Variable '$X' of type 'A' used in position expecting type 'B' | wrong declared type | re-declare $X as B, re-validate |
Unknown argument 'X' on field 'Y' | that filter isn't on this query | switch to a query that exposes it (often transaction) or drop it |
Variable '$X' is never used | declared a var with no matching arg | make it a real arg on the query, or remove it |
200 trigger, but report status: ERROR ("must select exactly one …" / "required …") | generator needs an extra required filter | introspect to find the matching arg name, fetch valid values from its list query (e.g. assetClass, internalAccount), add exactly what's required, re-trigger |
report stays IN_PROGRESS indefinitely | data prerequisite missing (e.g. no commit snapshot) | tell the user what's missing and suggest an alternative report |
Persist what you learn. Once a new report triggers cleanly to DONE:
- Short term: save the recipe via the MCP
memorytool — trigger query,exportFormat, working variable types, and any required filters. - Durable: propose a new row for this skill's tables (report name,
exportFormat, trigger query, required params) and surface it to the user so the skill stays current.
Step 1c — Verify a report row was created (MANDATORY anti-silent-failure check)
Do this immediately after every trigger, before you tell the user anything succeeded. The trigger is a query side effect: if the request is even slightly malformed (inline literals instead of variables, a renamed variable like $ef, a missing required param), the BFF returns 200 with errors: null and silently creates no report. The only reliable way to know it worked is to look the row up by name.
Query for the row using the exact exportName you triggered with:
query($name: String, $ordering: String, $limit: Int) {
report(name: $name, ordering: $ordering, limit: $limit) {
results { id name status }
}
}{ "name": "<the exact exportName from Step 1>", "ordering": "-created_at", "limit": 1 }resultsis empty (no row) → this is a SILENT FAILURE, not "in progress". Do NOT report success. Re-check the trigger against the rules above — params passed as variables (not inline literals), variables named exactlyexportName/exportFormat/currency/outputFormat/timestamp_*, correct types — then re-trigger once. If it still creates no row, stop and tell the user it failed silently and could not be created (don't loop forever).- A row exists → good, the report was created. Continue to Step 2 to poll it to
DONE.
Make the
exportNameunique per run (e.g. append the date or a timestamp) so this lookup matches your row and not an older report with the same name.
Step 2 — Poll until done
Find the report by the exact exportName from Step 1 (most reliable match):
query($name: String, $ordering: String, $limit: Int) {
report(name: $name, ordering: $ordering, limit: $limit) {
results { id name status link reportSize exportFormat createdAt }
}
}{ "name": "<the exportName from Step 1>", "ordering": "-created_at", "limit": 1 }Field/arg gotchas (these fail silently — get them right):
- The ordering arg is
ordering, notorderBy. - The download field is
link(a presigned S3 URL), notdownloadUrl. - The report-type field is
exportFormat, notexportType. - Do not filter by
exportFormatto find your report: the stored value is lowercase (e.g.rollup_breakdown) while you triggered with UPPER_CASE, so an exact filter matches nothing. Filter byname.
Polling loop:
- Query for the latest report by name.
- Check
status:IN_PROGRESS→ wait ~60s (e.g.sleep 60in a shell), then query again.DONE→linkholds the presigned download URL. Proceed.ERROR→ the generator rejected the inputs (e.g. a missing required filter). Read the failure message, fix the params, and re-trigger. Do not silently retry the same call.
- Repeat up to 10 times, waiting ~60s between attempts.
Check BOTH error channels. A report can fail in two ways: (1) the trigger returns HTTP 400 with the problem under
error/error_type(and an empty/absent GraphQLerrors) — treat any non-emptyerroras a hard failure, do not report success; (2) the trigger returns 200 but the report later finishes withstatus: ERROR. Never assume success from a 200 alone.
Small reports finish in seconds; large reports (many assets, wide date ranges, large orgs) can take minutes to hours — set expectations early. Once status == DONE, share the link with the user.
Presenting the download link. Never paste the raw presigned URL into the chat — it's long, ugly, and full of credentials. Always render it as a clean clickable markdown link with friendly anchor text, putting the full URL in the link target:
[Click here to download your report](<the full presigned link>)You may tailor the anchor text to the report, e.g. [Download your ERP Pre-Sync report (CSV)](<link>). Keep the anchor short and human; the URL itself stays hidden behind it. Mention that the link is presigned and expires after a limited window (~24h).
Step 3 — Download + analyze (optional)
If the user wants the data analyzed (not just the link), download via the presigned URL and inspect it locally with pandas:
import pandas as pd, requests
from io import BytesIO
resp = requests.get("<presigned_url>")
resp.raise_for_status()
df = pd.read_csv(BytesIO(resp.content))
print(df.shape, list(df.columns))
print(df.head())
print(df.dtypes)Always start with df.head() and df.dtypes, then run the requested analysis (groupby, value_counts, describe, pivot_table). Format money as f"${value:,.2f}" and summarize large frames rather than dumping every row. For deeper per-report analysis guidance, use the tres-report-analyzer skill.
Rules
- ALWAYS confirm report type (and date range, if required) before triggering.
- Match the query to the report's
entitiesTypeusing the table above — except the special-case reports above (COST_BASIS_INVENTORYtriggers viatransaction). - For any report NOT in the tables, follow Step 1b:
introspectthe query for exact arg types,validate_query, trigger minimal, fix from the error→fix table, then persist the recipe. Never hand-guess types or filters for an unknown report. - Variable types are strict:
outputFormatisReportOutputFormat,timestamp_*areDateTime, list filters are[String]. A wrong type = HTTP 400 = no report. Pass params as variables named exactlyexportName/exportFormat/ etc. - ALWAYS run Step 1c after triggering. Verify the report row exists by exact
exportNamebefore claiming anything worked. An empty lookup means a silent failure (200 +errors: null+ no row), not "in progress" — never report success without a confirmed row. Use a uniqueexportNameper run so the lookup matches your row. - For
ROLLUP_BREAKDOWN, you MUST passidentifier_In; forCOST_BASIS_INVENTORY, exactly onechildren_Asset_AssetClass_In— otherwise the report is empty or ERRORs. - After triggering, verify success on both channels: no
error/error_typeon the trigger, andstatusreachesDONE(notERROR). - Poll the
reportquery byname, notexportFormat; useordering(notorderBy) andlink(notdownloadUrl). - Present the download link as a clickable markdown link (e.g.
[Click here to download your report](<link>)), never the raw presigned URL. Note that the link is presigned and expires after a limited window. - Default
currencyto"usd"andoutputFormatto"CSV"unless the user specifies otherwise. - Never truncate or shorten transaction hashes, addresses, report IDs, or
identifier_Invalues — always show/pass them in full. - This is a read/export skill — NEVER run mutations that modify platform data.
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.

