Prerequisites: Install the CLI
This skill drives the elezioni-sicilia-pp-cli binary. You must verify the CLI is installed before invoking any command from this skill. If it is missing, install it first:
- Install via the Printing Press installer. It defaults binaries to
$HOME/.local/binon macOS/Linux and%LOCALAPPDATA%\Programs\PrintingPress\binon Windows:npx -y @mvanhorn/printing-press-library install elezioni-sicilia --cli-only - Verify:
elezioni-sicilia-pp-cli --version - Ensure the reported install directory is on
$PATHfor the agent/runtime that will invoke this skill.
If the npx install fails (no Node, offline, etc.), fall back to a direct Go install (requires Go 1.26.6 or newer):
go install github.com/mvanhorn/printing-press-library/library/other/elezioni-sicilia/cmd/elezioni-sicilia-pp-cli@latest
If --version reports "command not found" after install, the runtime cannot see the binary directory on $PATH. Do not proceed with skill commands until verification succeeds.
When to Use This CLI
Use this CLI during election nights to monitor Sicilian municipal results in real time. Also useful for historical analysis: compare how a municipality voted from 2009 to today.
When Not to Use This CLI
Do not activate this CLI for requests that require creating, updating, deleting, publishing, commenting, upvoting, inviting, ordering, sending messages, booking, purchasing, or changing remote state. This printed CLI exposes read-only commands for inspection, export, sync, and analysis.
Unique Capabilities
These capabilities aren't available in any other tool for this API.
Temporal analysis
-
storico— Compare turnout, votes, and candidates of the same municipality across all available years (2009-2026).Enables multi-decade electoral trend analysis on a single Sicilian municipality without access to a database.
elezioni-sicilia-pp-cli storico Agrigento --json
Territorial analysis
-
riepilogo— Show turnout and vote-counting status for all 9 Sicilian provinces in a single structured output.Instant snapshot of the regional picture during election night.
elezioni-sicilia-pp-cli riepilogo --json
Live monitoring
-
watch— Periodic polling of vote-counting status for all municipalities, with alerts on progress.Lets you monitor vote-counting progress in real time without manually refreshing the browser.
elezioni-sicilia-pp-cli watch --intervallo 5m --json
HTTP Transport
This CLI uses standard HTTP transport with HTTP/2 disabled for browser-facing endpoints. It does not require a resident browser process for normal API calls.
Command Reference
affluenza — Turnout data for all Sicilian municipalities across multiple hourly readings.
elezioni-sicilia-pp-cli affluenza— Complete regional turnout table with all hourly readings and comparison with previous elections.
candidati — Votes per mayoral candidate by municipality.
elezioni-sicilia-pp-cli candidati— Votes for each mayoral candidate in a specific municipality.
comuni — List of municipalities participating in the elections for a given province and year.
elezioni-sicilia-pp-cli comuni— List of municipalities with a dropdown for navigation, using the site's internal codes.
liste — Votes for the electoral list linked to each mayoral candidate.
elezioni-sicilia-pp-cli liste— Votes for the list linked to each mayoral candidate in a municipality.
results — Final election results by municipality (available once vote counting is complete).
elezioni-sicilia-pp-cli risultati— Final result for the municipality: elected mayor, polling stations, voters, seats by list.
seggi — Distribution of council seats by list.
elezioni-sicilia-pp-cli seggi— Distribution of seats in the Municipal Council for each list.
regionali — Data from the Sicilian regional elections (ARS). Years: 2017, 2022.
elezioni-sicilia-pp-cli regionali presidente [--anno 2022]— Presidential candidates with regional list and linked provincial lists (votes, %, seats).elezioni-sicilia-pp-cli regionali affluenza [--anno 2022]— Turnout by province with 3 hourly readings and comparison with the previous round.elezioni-sicilia-pp-cli regionali seggi [--anno 2022]— Seat allocation by provincial list (9 provinces + total matrix).elezioni-sicilia-pp-cli regionali listino [--anno 2022]— Candidates on the regional list for each list (list leader = President).elezioni-sicilia-pp-cli regionali candidati --provincia CT [--anno 2022]— ARS preference votes in a province.
Hand-written commands
elezioni-sicilia-pp-cli affluenza— Shows election turnout for all Sicilian municipalities with comparison to the previous elections.elezioni-sicilia-pp-cli comuni [--provincia AG]— Lists the municipalities in the elections with code, province and name.elezioni-sicilia-pp-cli candidati <comune> [--provincia AG] [--anno 2026]— Shows the votes for mayoral candidate in a municipality.elezioni-sicilia-pp-cli liste <comune> [--provincia AG] [--anno 2026]— Shows the votes for electoral list in a municipality.elezioni-sicilia-pp-cli risultati <comune> [--provincia AG] [--anno 2026]— Shows the final election result in a municipality (requires vote counting to be complete).elezioni-sicilia-pp-cli seggi <comune> [--provincia AG] [--anno 2026]— Shows the distribution of council seats in a municipality.elezioni-sicilia-pp-cli stato <comune> [--provincia AG] [--anno 2026]— Checks the vote counting status: in progress, partial (N/M polling stations), or complete.elezioni-sicilia-pp-cli regionali presidente [--anno 2022]— Votes for the Regional President candidates (ARS), with regional list and linked provincial lists. Years: 2017, 2022.elezioni-sicilia-pp-cli regionali affluenza [--anno 2022]— Regional turnout by province with 3 hourly readings and comparison with the previous election.elezioni-sicilia-pp-cli regionali seggi [--anno 2022]— ARS seat allocation by list (province × list matrix).elezioni-sicilia-pp-cli regionali listino [--anno 2022]— Candidates on the regional list.elezioni-sicilia-pp-cli regionali candidati --provincia <XX> [--anno 2022]— Preference votes for ARS candidates in a province.
Finding the right command
When you know what you want to do but not which command does it, ask the CLI directly:
elezioni-sicilia-pp-cli which "<capability in your own words>"
which resolves a natural-language capability query to the best matching command from this CLI's curated feature index. Exit code 0 means at least one match; exit code 2 means no confident match — fall back to --help or use a narrower query.
Recipes
Turnout in JSON
elezioni-sicilia-pp-cli affluenza --json
All hourly readings for each municipality in machine-readable format
Votes by list in Palermo
elezioni-sicilia-pp-cli liste Palermo --anno 2025 --json
Votes for each electoral list in the specified year
Regional summary
elezioni-sicilia-pp-cli riepilogo --json --select province.affluenza
Aggregated snapshot for all provinces
Historical trend
elezioni-sicilia-pp-cli storico Messina --json
Time series of the vote from 2009 to 2026
Regional — President with linked lists
elezioni-sicilia-pp-cli regionali presidente --anno 2022 --json
For each Presidential candidate: votes, %, regional list, and all connected provincial lists (votes, %, seats).
Regional — ARS preference votes in a province
elezioni-sicilia-pp-cli regionali candidati --provincia CT --anno 2022 --json
ARS candidates grouped by provincial list, with preference votes for each.
Auth Setup
No authentication required.
Run elezioni-sicilia-pp-cli doctor to verify setup.
Agent Mode
Add --agent to any command. Expands to: --json --compact --no-input --no-color --yes.
-
Pipeable — JSON on stdout, errors on stderr
-
Filterable —
--selectkeeps a subset of fields. Dotted paths descend into nested structures; arrays traverse element-wise. Critical for keeping context small on verbose APIs:elezioni-sicilia-pp-cli candidati Agrigento --provincia AG --agent --select data.candidati -
Previewable —
--dry-runshows the request without sending -
Offline-friendly — sync/search commands can use the local SQLite store when available
-
Non-interactive — never prompts, every input is a flag
-
Read-only — do not use this CLI for create, update, delete, publish, comment, upvote, invite, order, send, or other mutating requests
Response envelope
Commands that read from the local store or the API wrap output in a provenance envelope:
{
"meta": {"source": "live" | "local", "synced_at": "...", "reason": "..."},
"results": <data>
}
Parse .results for data and .meta.source to know whether it's live or local. A human-readable N results (live) summary is printed to stderr only when stdout is a terminal AND no machine-format flag (--json, --csv, --compact, --quiet, --plain, --select) is set — piped/agent consumers and explicit-format runs get pure JSON on stdout.
Agent Feedback
When you (or the agent) notice something off about this CLI, record it:
elezioni-sicilia-pp-cli feedback "the --since flag is inclusive but docs say exclusive"
elezioni-sicilia-pp-cli feedback --stdin < notes.txt
elezioni-sicilia-pp-cli feedback list --json --limit 10
Entries are stored locally at ~/.elezioni-sicilia-pp-cli/feedback.jsonl. They are never POSTed unless ELEZIONI_SICILIA_FEEDBACK_ENDPOINT is set AND either --send is passed or ELEZIONI_SICILIA_FEEDBACK_AUTO_SEND=true. Default behavior is local-only.
Write what surprised you, not a bug report. Short, specific, one line: that is the part that compounds.
Output Delivery
Every command accepts --deliver <sink>. The output goes to the named sink in addition to (or instead of) stdout, so agents can route command results without hand-piping. Three sinks are supported:
| Sink | Effect |
|---|---|
stdout |
Default; write to stdout only |
file:<path> |
Atomically write output to <path> (tmp + rename) |
webhook:<url> |
POST the output body to the URL (application/json or application/x-ndjson when --compact) |
Unknown schemes are refused with a structured error naming the supported set. Webhook failures return non-zero and log the URL + HTTP status on stderr.
Named Profiles
A profile is a saved set of flag values, reused across invocations. Use it when a scheduled agent calls the same command every run with the same configuration - HeyGen's "Beacon" pattern.
elezioni-sicilia-pp-cli profile save briefing --json
elezioni-sicilia-pp-cli --profile briefing candidati Agrigento --provincia AG
elezioni-sicilia-pp-cli profile list --json
elezioni-sicilia-pp-cli profile show briefing
elezioni-sicilia-pp-cli profile delete briefing --yes
Explicit flags always win over profile values; profile values win over defaults. agent-context lists all available profiles under available_profiles so introspecting agents discover them at runtime.
Exit Codes
| Code | Meaning |
|---|---|
| 0 | Success |
| 2 | Usage error (wrong arguments) |
| 3 | Resource not found |
| 5 | API error (upstream issue) |
| 7 | Rate limited (wait and retry) |
| 10 | Config error |
Argument Parsing
Parse $ARGUMENTS:
- Empty,
help, or--help→ showelezioni-sicilia-pp-cli --helpoutput - Starts with
install→ ends withmcp→ MCP installation; otherwise → see Prerequisites above - Anything else → Direct Use (execute as CLI command with
--agent)
MCP Server Installation
- Install the MCP server:
go install github.com/mvanhorn/printing-press-library/library/other/elezioni-sicilia/cmd/elezioni-sicilia-pp-mcp@latest - Register with Claude Code:
claude mcp add elezioni-sicilia-pp-mcp -- elezioni-sicilia-pp-mcp - Verify:
claude mcp list
Direct Use
- Check if installed:
which elezioni-sicilia-pp-cliIf not found, offer to install (see Prerequisites at the top of this skill). - Match the user query to the best command from the Unique Capabilities and Command Reference above.
- Execute with the
--agentflag:elezioni-sicilia-pp-cli <command> [subcommand] [args] --agent - If ambiguous, drill into subcommand help:
elezioni-sicilia-pp-cli <command> --help.