atena
Skill0 starsChanged 4 months agoMITView on GitHub
Plan and execute dataset-read-only AWS Athena analysis through a constrained MCP server, using verified Glue schemas, partition filters, bounded results, workgroup cost controls, and explicit confirmation before chargeable queries. Use for AWS Athena, Glue catalog discovery, lakehouse analysis, query results, or scan-cost investigations.
In this repository33 other files it gives its agents.
- AGENTS.mdAGENTS.md
- argosSkill
- ask-mattSkill
- clioSkill
- codebase-designSkill
- code-reviewSkill
- diagnosing-bugsSkill
- domain-modelingSkill
- grillingSkill
- grill-meSkill
- grill-with-docsSkill
- handoffSkill
- hefestoSkill
- hermesSkill
- implementSkill
- improve-codebase-architectureSkill
- medusaSkill
- metisSkill
- prometeuSkill
- prototypeSkill
- researchSkill
- resolving-merge-conflictsSkill
- setup-matt-pocock-skillsSkill
- tddSkill
- teachSkill
- to-questionnaireSkill
- to-specSkill
- to-ticketsSkill
- triageSkill
- wait-whatSkill
- wayfinderSkill
- wizardSkill
- writing-for-agentsSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 2 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈2
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 8
Treat Athena SELECT as a chargeable side effect: it calls the IAM write-classified StartQueryExecution action and creates results even …
- Distinctive: line 14
Read Clio's glossary, rules, schemas, sensitivity notes, and source verification dates.
- Distinctive: line 20
Call STS identity first and compare account, ARN/role, region, and workgroup with the frozen scope.
- Very specific: line 34
Create a self-contained record from assets/preflight.example.json.
- Very specific: line 46
Run the preflight validator again without --allow-unconfirmed for the execution record.
- Very specific: line 48
Read references/athena-safety.md.
≈ “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
Atena
Treat Athena SELECT as a chargeable side effect: it calls the IAM write-classified StartQueryExecution action and creates results even though it does not mutate source datasets.
Progressive workflow
1. Freeze purpose and authority
Read Clio's glossary, rules, schemas, sensitivity notes, and source verification dates. Confirm business question, output grain, period/time zone, freshness, approximation tolerance, result limit, intended recipients, region, expected account, catalog, database, and workgroup.
Gate: distinguish authority to inspect metadata from authority to expose row data. Stop if purpose, audience, sensitivity, or access basis is unclear.
2. Verify runtime identity and boundaries
Call STS identity first and compare account, ARN/role, region, and workgroup with the frozen scope. Inspect workgroup enforcement, result configuration, encryption, engine version, and bytes-scanned cutoff. Stop on an unexpected boundary or a permissive configuration that exceeds the approved task.
3. Resolve metadata and policy
Resolve every catalog, database, table, column, partition, and type through Glue. Never invent identifiers. Confirm Lake Formation/IAM row, column, and location controls with the target owner when sensitive data is involved. Retrieve results through Athena; do not add a generic S3 read path that could bypass those controls.
Gate: record schema evidence, partitions, sensitivity, stale/conflicting metadata, and allowed output fields. Remove direct identifiers and small-cell disclosures unless explicitly authorized.
4. Specify and plan the query
Delegate SQL, grain/cardinality proof, test cases, and cost rationale to Prometeu. Require direct partition predicates when partitions exist unless the approver accepts a documented exception. Run EXPLAIN (TYPE IO, FORMAT JSON) for the exact SELECT; treat estimates as incomplete/heuristic. Never substitute EXPLAIN ANALYZE, which executes and charges.
5. Present the consequential checkpoint
Create a self-contained record from assets/preflight.example.json. Show the business question, SQL/hash, identity, workgroup cutoff, tables/columns/partitions, sensitivity, explain limitations, heuristic scan range, output bound, result handling, timeout, and cancellation plan. Run node scripts/validate-preflight.mjs <preflight.json> --allow-unconfirmed, then obtain explicit confirmation tied to the hash.
Gate: any SQL, scope, identity, workgroup, or cost-control change invalidates confirmation and requires a new checkpoint.
6. Execute and observe
Use an idempotency token bound to the exact request, bounded backoff/polling, deadline, and cancellation. Do not silently retry with wider scope or altered parameters. Bind the returned query ID to the current session. On timeout/interruption, request cancellation and report the final known state honestly.
7. Validate and close
Page results within row/byte bounds, preserve types/nulls, and neutralize spreadsheet formulas in CSV exports. Reconcile row counts, grain, duplicates, nulls, control totals, and approved fields before interpretation. Report query ID, terminal state/reason, rows/truncation, actual scanned bytes, engine time, queue time, reuse status, output handling, and validation limitations. Never persist raw results to the vault automatically.
Run the preflight validator again without --allow-unconfirmed for the execution record. It checks record structure only; it does not authorize, parse SQL, inspect IAM/Lake Formation, predict cost, or prove query correctness.
Read references/athena-safety.md. Use the repository template at templates/aws-athena-mcp; it is not AWS-tested and must be reviewed against the target IAM/Lake Formation configuration.
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.

