plebeiusgaragicus/mypi/congress-search
Claude Code and agent skill by plebeiusgaragicus/mypi
- community
Checking that the SKILL.md file is still in the repository.
Search and fetch U.S. Congress legislation via bash using congress-search, congress-fetch, and congress-api. Use for bills, laws, amendments, members, votes, CRS summaries, and congress.gov legislative research.
Install
npx vskill@latest install plebeiusgaragicus/mypi/congress-searchSKILL.md
The same SKILL.md was published earlier as plebeiusgaragicus/mypi/congress-search.
Congress.gov API CLI
This skill is path-promoted: in Pi agent sessions this skill’s scripts/ directory is on your PATH. Run `congress-search`, `congress-fetch`, and `congress-api` by basename only (do not call python3 with paths into this skill).
These commands are bash programs, not Pi tools. Use the bash tool with the basename only.
Scripts use only the Python standard library. They print readable text by default, support --json where useful, and print specific Error: lines to stderr on failure.
Congress.gov API vs scraping
Prefer this skill and the Congress.gov API for legislative data on congress.gov. Automated browsing of congress.gov often fails (bot protection).
The API has no full-text search. Use --keyword on congress-search for best-effort filtering over listed results, or narrow with --congress, --type, and date filters.
Commands
congress-search
Subcommands:
- `bills` — list bills;
--type hr|s|...;--from/--to(YYYY-MM-DD);--keywordfilters titles - `summaries` — CRS summaries; good for topic discovery;
--keywordfilters summary text - `members` —
--state+ optional--district, or members in--congress
Shared flags: --congress (default: current), --limit (default 20, max 250 per page), --max-pages (default 3), --json.
congress-fetch
Default sections: summaries, actions, cosponsors. Use --max-chars only for a short stdout preview.
congress-api
Low-level GET for any v3 path:
--max-pages follows pagination.next (default 1). Rate limit: 5,000 requests/hour — keep --max-pages small.
Workflow
- Use `congress-search` to find candidates (5–15 results unless broader coverage is needed).
- Answer the user’s question from search output when possible; do not return only a list unless they asked for one.
- Run `congress-fetch` on one bill when detail (CRS summary, actions, cosponsors) is needed.
- Cite bills as `118 HR 3076` and include congress.gov URLs from script output.
- Run at most one equivalent search per user message unless the query changes.
Failure handling
- If a script exits nonzero, read stderr before retrying.
- Missing API key: scripts exit 1; read stderr (setup URL, config path, and agent guidance). A push notification may also fire if ntfy is configured.
- HTTP 403: check the API key.
- No results: broaden
--keyword, drop--type, or widen date filters.
More detail
See REFERENCE.md for endpoint notes and bill type codes.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingshared/skills/congress-search/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/plebeiusgaragicus/mypi/congress-search)