result-supabase-reporter
Skill2 starsChanged 9 months agoMITView on GitHub
Filter rows from sqlite capture_results and upsert to Supabase with retry-safe sqlite writeback. Use for stat/filter/report/retry-reset workflows, especially task-scoped reporting with --task-id.
In this repository7 other files it gives its agents.
- ai-visionSkill
- android-adbSkill
- feishu-bitable-task-managerSkill
- go-installerSkill
- harmony-hdcSkill
- resolve-kwai-cdn-urlSkill
- result-bitable-reporterSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 0 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Use this skill to run a deterministic sqlite -> Supabase pipeline around capture_results.
- Very specific: line 15
Default status filter is reported IN (0,-1).
- Very specific: line 33
Use npx tsx scripts/result_reporter.ts --help as the CLI source of truth.
- Very specific: line 136
Use report --dry-run to validate selection before network writes.
- Very specific: line 137
Check sqlite report_error for root cause when reported=-1.
≈ “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
Result Supabase Reporter
Use this skill to run a deterministic sqlite -> Supabase pipeline around capture_results.
Workflow
- Select rows
stat: print total sqlite row count for one--task-id.filter: preview upload candidates fromcapture_results.- Default status filter is
reported IN (0,-1).
- Report rows
report: batch upsert to Supabase and write back sqlite status.--max-rows <n>sets total cap for one report run.- For per-task workflows, always pass
--task-id <TASK_ID>to avoid cross-task uploads. - Success writeback:
reported=1,reported_at=now_ms,report_error=NULL. - Failure writeback:
reported=-1,reported_at=now_ms,report_error=<truncated error>.
- Retry failures
retry-reset: move failed rows (reported=-1) back to pending (reported=0), then rerunreport.
Run
npx tsx scripts/result_reporter.ts <subcommand> [flags]Use npx tsx scripts/result_reporter.ts --help as the CLI source of truth.
Hotlist commands:
npx tsx scripts/hotlist_reporter.ts <subcommand> [flags]Use npx tsx scripts/hotlist_reporter.ts --help as the CLI source of truth.
Environment Variables
Required for report:
SUPABASE_URLSUPABASE_SERVICE_ROLE_KEY
Optional overrides:
TRACKING_STORAGE_DB_PATH(default$HOME/.eval/records.sqlite)RESULT_SQLITE_TABLE(defaultcapture_results)SUPABASE_RESULT_TABLE(defaultcapture_results)SUPABASE_HOTLIST_TABLE(defaulthotlist_catalogs)
Recommended Command Patterns
Task-scoped preview:
npx tsx scripts/result_reporter.ts filter --task-id <TASK_ID> --status 0,-1 --limit 20Task-scoped report:
export SUPABASE_URL=https://<project>.supabase.co
export SUPABASE_SERVICE_ROLE_KEY=<service_role_key>
npx tsx scripts/result_reporter.ts report --task-id <TASK_ID> --batch-size 100 --max-rows 500Retry failed rows:
npx tsx scripts/result_reporter.ts retry-reset --app com.tencent.mm --scene onSearch
npx tsx scripts/result_reporter.ts report --task-id <TASK_ID> --status 0,-1Hotlist Usage
Schema fields:
platform_namerankcatalog_namecatalog_typerelease_date(date)collected_date(date)created_at(timestamptz, defaultnow())
Unique constraint:
(platform_name, collected_date, rank)
Initialize hotlist table (Supabase SQL Editor):
-- references/hotlist_init.sqlInsert one row:
npx tsx scripts/hotlist_reporter.ts insert \
--platform-name "腾讯视频" \
--rank 1 \
--catalog-name "太平年" \
--catalog-type "电视剧" \
--release-date "2026-01-01" \
--collected-date "2026-02-28"Batch insert from JSONL:
npx tsx scripts/hotlist_reporter.ts insert --input hotlist.jsonlJSONL line example:
{"platform_name":"腾讯视频","rank":1,"catalog_name":"太平年","catalog_type":"电视剧","release_date":"2026-01-01","collected_date":"2026-02-28"}Query by platform and recent days:
npx tsx scripts/hotlist_reporter.ts query --platform-name "腾讯视频" --last-days 7 --limit 200Query by explicit date range:
npx tsx scripts/hotlist_reporter.ts query --platform-name "腾讯视频" --from "2026-02-22" --to "2026-02-28"Failure Handling
- Use
report --dry-runto validate selection before network writes. - Check sqlite
report_errorfor root cause whenreported=-1. - Fix root cause, then rerun
retry-resetandreport.
Resources
scripts/result_reporter.ts: CLI behavior and flags.scripts/hotlist_reporter.ts: hotlist insert/query behavior and flags.references/sqlite-and-field-mapping.md: sqlite schema and field mapping.references/supabase-api-and-errors.md: Supabase upsert contract and error triage.references/init.sql: Supabase DDL with required unique constraint(task_id, item_id).references/hotlist_init.sql: Supabase DDL forhotlist_catalogs.references/hotlist_http_api.md: shareable HTTP API doc for external callers.
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.

