regulationsgov-attachments-fetch
Skill11 starsChanged 3 months agoMITView on GitHub
Download bounded public attachment files for exact Regulations.gov comment IDs through the Tiangong CLI. Use when selected regulatory comments have supporting files that must be acquired locally with source lineage, SHA-256 hashes, byte counts, and a manifest; do not use for comment search, arbitrary URL download, file safety certification, text extraction, stance analysis, legal interpretation, or evidence synthesis.
- Reads credentials
In this repository62 other files it gives its agents.
- AGENTS.mdAGENTS.md
- academic-paper-downloadSkill
- airnow-hourly-obs-fetchSkill
- ai-tech-fulltext-fetchSkill
- ai-tech-rss-fetchSkill
- ai-tech-summarySkill
- apply-environmental-thinkingSkill
- bluesky-cascade-fetchSkill
- convert-image-to-jpgSkill
- dify-knowledge-base-searchSkill
- dify-knowledge-base-uploadSkill
- document-granular-decomposeSkill
- domain-onboardingSkill
- eceee-news-fulltext-fetchSkill
- email-imap-appendSkill
- email-imap-fetchSkill
- email-imap-full-fetchSkill
- email-smtp-sendSkill
- epa-eis-records-fetchSkill
- federal-register-doc-fetchSkill
- fetch-abstract-to-kbSkill
- fetch-meta-from-kbSkill
- fetch-meta-to-kbSkill
- figshare-data-downloadSkill
- gdelt-doc-searchSkill
- gdelt-events-fetchSkill
- gdelt-gkg-fetchSkill
- gdelt-mentions-fetchSkill
- gdelt-web-ngrams-searchSkill
- github-contribution-period-analysisSkill
- nasa-firms-fire-fetchSkill
- notebooklmSkill
- openaq-data-fetchSkill
- open-meteo-air-quality-fetchSkill
- open-meteo-flood-fetchSkill
- open-meteo-historical-fetchSkill
- regulationsgov-comment-detail-fetchSkill
- regulationsgov-comments-fetchSkill
- remove-similar-imageSkill
- river-outfall-status-visualizerSkill
- sustainability-fulltext-fetchSkill
- sustainability-rss-fetchSkill
- sustainability-summarySkill
- synology-file-stationSkill
- tiangong-auto-researchSkill
- tiangong-auto-research-workbuddySkill
- tiangong-kb-course-fulltext-fetchSkill
- tiangong-kb-course-searchSkill
- tiangong-kb-edu-searchSkill
- tiangong-kb-esg-searchSkill
- tiangong-kb-ingestSkill
- tiangong-kb-patent-searchSkill
- tiangong-kb-report-searchSkill
- tiangong-kb-sci-searchSkill
- tiangong-kb-textbook-searchSkill
- tsinghua-graduate-thesisSkill
- usbr-project-records-fetchSkill
- usbr-rise-fetchSkill
- use-thuenv-presentation-styleSkill
- usgs-water-iv-fetchSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 3 are distinctive, and 6 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.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 8
Use the CLI-owned regulations-gov.attachments/download operation.
- Distinctive: line 17
Use the caller- or workspace-resolved stable CLI.
- Very specific: line 20
Run data describe with that same CLI.
- Very specific: line 32
Use the returned Discovery Metadata to confirm current coverage, granularity, limits, selection hints, provides, and doesNotProvide.
- Very specific: line 38
Start from exact public comment IDs selected by the user or by the regulationsgov-comments-fetch or regulationsgov-comment-detail-fetch …
- Very specific: line 47
Create a dedicated, empty, existing directory and use its absolute path for --artifact-dir.
- Very specific: line 73
Use run-request limits only when intentionally lowering the manifest's page, record, response-byte, or timeout ceiling.
- Distinctive: line 97
Treat all files as untrusted public-submission bytes.
- Distinctive: line 106
Keep the generated manifest with the files when moving them.
≈ “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
Regulations.gov Attachments Fetch
Use the CLI-owned regulations-gov.attachments/download operation. This Skill
supplies intent routing, explicit-ID selection, local-directory discipline, and
result-use boundaries only. The CLI TypeScript 7 runtime owns the official API
contract, credential injection, endpoint restrictions, schemas, limits,
downloads, transactional file writes, partial results, and receipts.
Before running
- Read
references/tiangong-data-requirement.json. - Use the caller- or workspace-resolved stable CLI. The requirement declares compatible capability and operation contract majors; it does not select a package build.
- Run
data describewith that same CLI. Continue only when the capability ID and required contract majors match, and copy the exact current capability/operation versions from that response into the run request. - Inspect
manifest.availabilityanddiscovery.availability. This capability is currentlysuspendedbecause its prerequisite Regulations.gov live gate returned HTTP 503. Stop while it remains suspended; do not create an artifact run, retry directly, or assume a configured API key restores it.
tiangong-ai data describe regulations-gov.attachments --jsonUse the returned Discovery Metadata to confirm current coverage, granularity,
limits, selection hints, provides, and doesNotProvide. Do not rely on source
facts copied from an older Skill revision.
Select comments and attachments
- Start from exact public comment IDs selected by the user or by the
regulationsgov-comments-fetchorregulationsgov-comment-detail-fetchworkflow. This operation does not search comments, dockets, or documents. - Omit
attachmentIdsto select every attachment returned for those comments, or supply an exact allowlist when only reviewed attachment IDs are needed. - Set
maxFilesandmaxTotalBytesdeliberately. The CLI also applies the lower manifest/runtime limits and reports bounded or missing coverage. - Configure
REGGOV_API_KEYonly in the environment. Never place it in argv, request JSON, a URL, or the artifact directory. - Create a dedicated, empty, existing directory and use its absolute path for
--artifact-dir. The CLI refuses symlink directories and existing target filenames; it never returns the absolute directory in the result or receipt.
Prepare the request
Build one tiangong.data.run-request.v1 envelope. Replace both version
placeholders with the exact versions from the same data describe response and validate input against the current
operation schema returned by data describe.
{
"schemaVersion": "tiangong.data.run-request.v1",
"capabilityId": "regulations-gov.attachments",
"capabilityVersion": "<describe.manifest.capabilityVersion>",
"operationId": "download",
"operationVersion": "<describe.manifest.operations[0].operationVersion>",
"input": {
"commentIds": ["EPA-HQ-OAR-2026-0001-0002"],
"attachmentIds": ["EPA-HQ-OAR-2026-0001-0002-ATTACHMENT-1"],
"maxFiles": 10,
"maxTotalBytes": 10000000
}
}Use run-request limits only when intentionally lowering the manifest's page,
record, response-byte, or timeout ceiling. Do not place a base URL, download
URL, output path, retry setting, or credential in input.
Run
tiangong-ai data run regulations-gov.attachments download \
--input /absolute/path/to/request.json \
--artifact-dir /absolute/path/to/empty-artifact-directory \
--jsonPreserve the complete tiangong.data.run-result.v1 envelope and the generated
manifest together with every committed file. The result binds relative names,
source URLs, content types, provider and actual sizes, SHA-256 hashes,
observations, warnings, errors, and the core receipt.
Result boundaries
- The CLI obtains attachment relationships through official comment-detail
requests and downloads only exact-origin
downloads.regulations.govURLs. It does not accept arbitrary download URLs, standalone attachment lookup, or redirects. - Treat all files as untrusted public-submission bytes. A successful download, matching provider size, content type, or SHA-256 establishes byte identity and lineage, not safety, truth, relevance, or evidentiary sufficiency.
successmeans the explicitly bounded selection completed. A max-file, max-byte, or runtime cap still narrows coverage; report it and never claim that omitted attachments do not exist.partialpreserves verified earlier files and the manifest while identifying missing metadata or files. Report each missing item. Treatblockedas no usable run and do not use temporary or pre-existing directory contents.- Keep the generated manifest with the files when moving them. Verify hashes before downstream processing and retain comment, attachment, format, and URL lineage.
- Malware scanning, safe opening, OCR, text extraction, personal-data review, content interpretation, stance or sentiment analysis, legal conclusions, and durable evidence admission require separate governed workflows.
Reference
references/tiangong-data-requirement.json: stable capability requirement; it is not a package lock.
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.

