/spicyregs:spicyregsfrom spicyregs
Queries regulatory data (dockets, comments, documents, agency activity) using DuckDB against a public Cloudflare R2 parquet bucket or local parquet files.
Ships in spicyregs. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Use this skill to answer natural-language questions about regulatory data in this repo.
Prefer direct DuckDB queries against the public Cloudflare R2 bucket:
Keep this workflow provider-neutral.
uv, Python, and DuckDB.agents/openai.yaml file is only UI metadata for Codex-compatible surfaces. Non-OpenAI runtimes can ignore it and reuse the workflow in this skill plus references/provider-agnostic-prompt.md.uv run --script plugins/spicyregs/skills/spicyregs/scripts/query_spicy_regs.py --source r2 --list-sourcesuv run --script plugins/spicyregs/skills/spicyregs/scripts/query_spicy_regs.py --source r2 --describe docketsuv run --script plugins/spicyregs/skills/spicyregs/scripts/query_spicy_regs.py --source r2 --sql "<SQL>"uv run --script plugins/spicyregs/skills/spicyregs/scripts/find_duplicate_regulations.py --source r2 --limit 20list_sources, describe_table, query_sql tools exposed by the Spicy Regs MCP server in mcp-server/.get_rule_text when the user asks what a rule actually says or changes: call it with no section for the outline, then fetch the sections that matter and cite their numbers.prepare_comment when the user wants to comment on a rule: it returns the open document's regulations.gov comment link and checks a draft's length. It never submits; the user posts the comment themselves, in their own words.uv scripts when running locally where they're faster and cover the duplicate-finder workflow.uv run --script plugins/spicyregs/skills/spicyregs/scripts/query_spicy_regs.py --source local --list-sourcesreferences/data-layout.mdreferences/provider-agnostic-prompt.mdnotebooks/README.md--source local and inspect ./spicy-regs-data/ or the path they provide.sample-data/mirrulations/.--list-sources or --describe to confirm the remote tables and schema.LIKE match proves the claim.Use the helper script's --describe output for the exact schema. In this repo, the core datasets typically map to:
dockets: docket_id, agency_code, title, docket_type, modify_date, abstractdocuments: document_id, docket_id, agency_code, title, document_type, posted_date, modify_date, comment_start_date, comment_end_date, file_urlcomments: comment_id, docket_id, agency_code, title, comment, document_type, posted_date, modify_date, receive_date, attachments_jsoncomments_indexfeed_summaryagency_statsagency_monthly_volumedocket_daily_comment_volumeComplementary federal sources (all queryable by name; see the Data Dictionary for columns):
federal_register (published rules; RIN + CFR refs), unified_agenda (planned actions, keyed by rin), oira_reviews (OIRA EO 12866 review dates and outcomes, by rin), oira_meetings (OIRA meetings with outside parties, 2024 only, by rin), state_program_approvals (FR actions approving a state's rules, e.g. SIPs, by jurisdiction; VA/MD rows carry state code citations), congress_bills, cfr_sectionsstate_actions (a state rulemaking, like a docket), state_stages (NOIRA/Proposed/Final stages with comment periods, by action_id; chapter_citation like 9VAC25-194), state_comments (full-text public comments, by stage_id or forum_type + forum_id). Filter on jurisdiction.sam_entities (entity registry, keyed by uei), lobbying_filings, fec_committees, org_committee_links (commenter org names name-matched to FEC committees; filter on confidence)usaspending_recipients (keyed by uei), court_dockets, gao_reports, crs_reportsJoin keys across sources: rin (unified_agenda ↔ oira_reviews ↔ oira_meetings ↔ federal_register), CFR citations (↔ cfr_sections), uei (sam_entities ↔ usaspending_recipients ↔ commenter orgs), and agency_code.
agency_codedockets and documents on docket_idcomments by docket_id, date, or keywords in title and commentdocuments.comment_start_date and documents.comment_end_datenotebooks/query_data.ipynb and notebooks/cross_docket_analysis.ipynb when the question spans agencies or dockets.find_duplicate_regulations.py first, then verify promising clusters with targeted SQL against dockets or documents.Keep result sets small while exploring. Add LIMIT unless the user explicitly wants a full export.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub civictechdc/spicy-regs --plugin spicyregsOther plugins' skills for the same job