Search & Analysis v0.1.0

parliament-cli

UK Parliament CLI — search bills, divisions, members, and written questions from official UK Parliament APIs, with...

shan8851 更新于 2026-04-19 1 浏览
下载 SKILL

技能说明

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.

使用场景

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

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

帮我下载并安装这个SKILL:https://skillhub.cstcloud.cn/download/parliament-cli
  1. 点击上方「下载 SKILL」按钮,获取技能压缩包。
  2. 将压缩包解压到你的 Agent 技能目录。
  3. 重启客户端后即可在技能列表中选择该技能。

技能文件内容

4 个文件 · 19 kB
SKILL.md text/markdown
---
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`

文件内容直接读取自技能仓库,仅供安装前审阅;以实际下载的压缩包为准。