360 Secure SkillHub
360 安全技能中心

Parliament CLI

该 Skill 提供 parliament 命令行工具,用于查询英国议会公开数据:按编号或标题查法案、按姓名或编号查议员、检索与查询表决(divisions,别名 votes)、检索书面质询。输出在终端下为文本、管道下或加 --json 时为带 ok、schemaVersion、command、requestedAt、data/error 字段的 JSON 信封,歧义查询返回 AMBIGUOUS…

shan8851
shan8851
热度 38.40
最近更新 2026-05-11 17:44:22
分类:搜索依赖:代码执行 / 第三方 API应用场景:研究

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add parliament-cli
Metadata
name
parliament-cli
description
UK Parliament CLI — search bills, divisions, members, and written questions from official UK Parliament APIs, with stable JSON envelopes for agents. Use when looking up UK Parliament bills, members, votes/divisions, written questions, or when an agent needs structured Parliament API results.
homepage
https://www.parliment-cli.xyz
metadata
{"openclaw":{"emoji":"🏛️","requires":{"bins":["parliament"]},"install":[{"id":"npm","kind":"node","package":"@shan8851/parliament-cli","bins":["parliament"],"label":"Install parliament-cli (npm)"}]}}

parliament-cli

Use parliament for UK Parliament data: bills, members, divisions/votes, and written questions.

Setup

  • npm install -g @shan8851/parliament-cli
  • No API key or auth required

Bills

  • By id: parliament bill 3973
  • By title: parliament bill "renters rights"
  • Search: parliament search bills "energy"

Divisions and Votes

  • Search divisions: parliament divisions "budget"
  • Lookup by id: parliament divisions 2211
  • Alias: parliament votes 2211

Members

  • By name: parliament member "Keir Starmer"
  • By id: parliament member 4514

Written Questions

  • Search: parliament questions "transport"
  • Lookup by id or UIN query: parliament questions 902178

Output

  • Defaults to text in a TTY and JSON when piped
  • Force JSON: parliament bill 3973 --json
  • Success envelope: { ok, schemaVersion, command, requestedAt, data }
  • Error envelope: { ok, schemaVersion, command, requestedAt, error }

Agent Notes

  • Ambiguous text queries return AMBIGUOUS_QUERY with candidate hints in error.details
  • No auth setup needed, so agents can use it immediately
  • Exit codes are explicit and errors stay structured in JSON mode

Notes

  • Official sources include the Bills, Members, Written Questions, and Commons Votes APIs
  • votes is an alias of divisions