Pp pokeapi

From mvanhorn/printing-press-library · View interactive version

Pp pokeapi is an AI agent skill from the GitHub repository mvanhorn/printing-press-library. PokéAPI as a fully offline Pokédex with SQL, full-text search, type math, and a damage calculator no other Pokémon tool ships as a CLI. Trigger phrases: `look up a pokemon`, `what beats charizard`, `build a pokemon team`, `type matchup`, `evolution chain`, `use pokeapi`, `run pokeapi-pp-cli`.

How to use this skill

Skill file

<!-- GENERATED FILE — DO NOT EDIT.

This file is a verbatim mirror of library/media-and-entertainment/pokeapi/SKILL.md,

regenerated post-merge by tools/generate-skills/. Hand-edits here are

silently overwritten on the next regen. Edit the library/ source instead.

See the repository agent guide, section "Generated artifacts: registry.json, cli-skills/". -->

PokéAPI — Printing Press CLI

Prerequisites: Install the CLI

This skill drives the pokeapi-pp-cli binary. You must verify the CLI is installed before invoking any command from this skill. If it is missing, install it first:

  1. Install via the Printing Press installer. It defaults binaries to $HOME/.local/bin on macOS/Linux and %LOCALAPPDATA%\Programs\PrintingPress\bin on Windows:

```bash

npx -y @mvanhorn/printing-press-library install pokeapi --cli-only

```

  1. Verify: pokeapi-pp-cli --version
  2. Ensure the reported install directory is on $PATH for 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/media-and-entertainment/pokeapi/cmd/pokeapi-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

Reach for this CLI when you want a fully-local, fully-queryable Pokédex. It is ideal for agents answering Pokémon questions without spending live API calls, for battle-planning workflows that combine type math and learnset filtering, and for any reverse-search question (find the move, the ability, the form, the requirement) that the live REST surface doesn't natively answer. Skip it for purely image-driven workflows where another tool already handles sprite rendering.

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.

Local store that compounds

_Reach for this when an agent needs to enumerate Pokémon by trait without making thousands of API calls._

```bash

pokeapi-pp-cli pokemon by-ability levitate --json --select name,types

```

_Use this for battle planning questions framed by effect rather than by move name._

```bash

pokeapi-pp-cli move find --effect paralyze --type-target steel --json

```

_Best for team-building agents that need objective gap-coverage scoring rather than vibes-based recommendations._

```bash

pokeapi-pp-cli team suggest pikachu,charizard --slots 6 --json --select name,types,score

```

_Useful when an agent needs to argue 'why pick form X over form Y' with concrete move evidence._

```bash

pokeapi-pp-cli pokemon diff-learnset charizard charizard-mega-x --json

```

_Reach for this when answering historical Pokémon questions ('was Clefairy always a Fairy type?')._

```bash

pokeapi-pp-cli pokemon history clefairy --json

```

_Use when an agent needs a species-wide answer rather than a single-form payload._

```bash

pokeapi-pp-cli pokemon forms vulpix --json

```

_Pick this when the user knows the Pokémon they want and needs the path to it, not the inverse._

```bash

pokeapi-pp-cli evolve into umbreon --json

```

_Use when answering 'what would a hostile team most likely exploit on this lineup?'_

```bash

pokeapi-pp-cli team gaps pikachu,charizard,blastoise --json

```

_When the question is regional ('what catches in Kanto?') rather than per-Pokémon._

```bash

pokeapi-pp-cli encounters by-region kanto --version red --json

```

Agent-native plumbing

_Agent fallback when names are partial or fuzzy; replaces multiple list calls + grep._

```bash

pokeapi-pp-cli search "flame" --type move --limit 10 --json

```

_Reach for this when a one-off question doesn't have a dedicated subcommand._

```bash

pokeapi-pp-cli sql "SELECT id FROM resources WHERE resource_type='pokemon' ORDER BY id LIMIT 10" --json

```

Battle math

_Reach for this on every battle-planning question framed as 'will it KO?' or 'how hard does X hit Y?'_

```bash

pokeapi-pp-cli damage charizard blastoise hydro-pump --level1 50 --level2 50 --json

```

_Use when learning the meta or filling a role on a team where the question is 'who's the best X-type at Y?'_

```bash

pokeapi-pp-cli pokemon top --by special-attack --type ghost --limit 10 --json

```

Command Reference

ability — Manage ability

berry — Manage berry

berry-firmness — Manage berry firmness

berry-flavor — Manage berry flavor

characteristic — Manage characteristic

contest-effect — Manage contest effect

contest-type — Manage contest type

egg-group — Manage egg group

encounter-condition — Manage encounter condition

encounter-condition-value — Manage encounter condition value

encounter-method — Manage encounter method

evolution-chain — Manage evolution chain

evolution-trigger — Manage evolution trigger

gender — Manage gender

generation — Manage generation

growth-rate — Manage growth rate

item — An item is an object in the games which the player can pick up, keep in their bag, and use in some manner. They have various uses, including healing, powering up, helping catch Pokémon, or to access a new area.

item-attribute — Manage item attribute

item-category — Manage item category

item-fling-effect — Manage item fling effect

item-pocket — Manage item pocket

language — Manage language

location — Locations that can be visited within the games. Locations make up sizable portions of regions, like cities or routes.

location-area — Manage location area

machine — Machines are the representation of items that teach moves to Pokémon. They vary from version to version, so it is not certain that one specific TM or HM corresponds to a single Machine.

meta — Manage meta

move — Moves are the skills of Pokémon in battle. In battle, a Pokémon uses one move each turn. Some moves (including those learned by Hidden Machine) can be used outside of battle as well, usually for the purpose of removing obstacles or exploring new areas.

move-ailment — Manage move ailment

move-battle-style — Manage move battle style

move-category — Manage move category

move-damage-class — Manage move damage class

move-learn-method — Manage move learn method

move-target — Manage move target

nature — Manage nature

pal-park-area — Manage pal park area

pokeathlon-stat — Manage pokeathlon stat

pokedex — Manage pokedex

pokemon — Pokémon are the creatures that inhabit the world of the Pokémon games. They can be caught using Pokéballs and trained by battling with other Pokémon. Each Pokémon belongs to a specific species but may take on a variant which makes it differ from other Pokémon of the same species, such as base stats, available abilities and typings. See Bulbapedia) for greater detail.

pokemon-color — Manage pokemon color

pokemon-form — Manage pokemon form

pokemon-habitat — Manage pokemon habitat

pokemon-shape — Manage pokemon shape

pokemon-species — Manage pokemon species

region — Manage region

stat — Manage stat

super-contest-effect — Manage super contest effect

type — Manage type

version — Manage version

version-group — Manage version group

Finding the right command

When you know what you want to do but not which command does it, ask the CLI directly:

pokeapi-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

What does my team leave exposed?

pokeapi-pp-cli team gaps pikachu,charizard,blastoise --json

Returns every type your team has neither resistance nor super-effective answer for. One local join.

Reverse-search by effect

pokeapi-pp-cli move find --effect paralyze --type-target steel --json --select name,type,power,accuracy

Find paralyzing moves that hit Steel — using --select to keep the response narrow for agent context.

Trim a profile to just what an agent needs

pokeapi-pp-cli pokemon profile pikachu --json --select name,types,stats.hp,stats.attack,abilities

Use --select with dotted paths to pluck only high-gravity fields out of a deeply nested response — keeps the agent's context light.

Compare two regional forms

pokeapi-pp-cli pokemon diff-learnset vulpix vulpix-alola --json

Side-by-side learnset diff between Vulpix and Alolan Vulpix. One local query instead of two full API fetches.

Custom join via SQL

pokeapi-pp-cli sql "SELECT id FROM resources WHERE resource_type='pokemon-species' ORDER BY id LIMIT 10" --json

Drop down to raw SQL when there's no first-class command — read-only, direct local-store access.

Auth Setup

No authentication required.

Run pokeapi-pp-cli doctor to verify setup.

Agent Mode

Add --agent to any command. Expands to: --json --compact --no-input --no-color --yes.

```bash

pokeapi-pp-cli ability list --agent --select id,name,status

```

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 — piped/agent consumers get pure JSON on stdout.

Agent Feedback

When you (or the agent) notice something off about this CLI, record it:

pokeapi-pp-cli feedback "the --since flag is inclusive but docs say exclusive"
pokeapi-pp-cli feedback --stdin < notes.txt
pokeapi-pp-cli feedback list --json --limit 10

Entries are stored locally at ~/.pokeapi-pp-cli/feedback.jsonl. They are never POSTed unless POKEAPI_FEEDBACK_ENDPOINT is set AND either --send is passed or POKEAPI_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.

pokeapi-pp-cli profile save briefing --json
pokeapi-pp-cli --profile briefing ability list
pokeapi-pp-cli profile list --json
pokeapi-pp-cli profile show briefing
pokeapi-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:

  1. Empty, help, or --help → show pokeapi-pp-cli --help output
  2. Starts with install → ends with mcp → MCP installation; otherwise → see Prerequisites above
  3. Anything else → Direct Use (execute as CLI command with --agent)

MCP Server Installation

  1. Install the MCP server:

```bash

go install github.com/mvanhorn/printing-press-library/library/media-and-entertainment/pokeapi/cmd/pokeapi-pp-mcp@latest

```

  1. Register with Claude Code:

```bash

claude mcp add pokeapi-pp-mcp -- pokeapi-pp-mcp

```

  1. Verify: claude mcp list

Direct Use

  1. Check if installed: which pokeapi-pp-cli

If not found, offer to install (see Prerequisites at the top of this skill).

  1. Match the user query to the best command from the Unique Capabilities and Command Reference above.
  2. Execute with the --agent flag:

```bash

pokeapi-pp-cli <command> [subcommand] [args] --agent

```

  1. If ambiguous, drill into subcommand help: pokeapi-pp-cli <command> --help.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.