Skills that let an AI agent drive the Portfolio Performance desktop app through its local REST API — read instruments (with their custom attributes) and accounts, edit securities and their attributes, and compute holdings, performance and matched trades.
They follow the open Agent Skills format (a SKILL.md with name/description frontmatter), so any agent that supports skills can use them, including Claude Code, Codex, Cursor and GitHub Copilot. The agent picks a skill on its own when the task matches that skill's description.
| Skill | Use it to |
|---|---|
pp-connect |
Pair with the app and hold a bearer token — start here. Carries the shared reference.md: mental model, vocabulary, error table, conventions. |
pp-inspect |
Read files, instruments (securities) with their custom attributes, cash accounts, investment accounts. |
pp-edit |
Rename / update / clear an instrument's fields and custom attributes, or delete one (JSON Merge Patch). |
pp-analyze |
Statement of assets (holdings valued at a date), performance (TTWROR, IRR, signed value-change breakdown), and matched trades (profit and loss, holding period, IRR; open or closed). |
pp-connect is the hub; the other three link back to it for setup and shared knowledge.
Raw curl over loopback, using a small convention:
PP_PORT(default5712) andPP_TOKEN, base URLhttp://127.0.0.1:$PP_PORT.- Token resolved env-first, dotfile-fallback (
~/.config/portfolio-performance/rest-token, mode 600).
The API is loopback-only, off by default, and serves only files the user has opened and enabled in Preferences → MCP Server & REST API. The running server describes itself at GET /v1/openapi.yaml (unauthenticated), so the skills point agents at that live spec for the exact, drift-free contract — the prose here is orientation, the served spec is the truth.
The quickest way is the skills CLI. It detects which agents you have installed and puts the skills in the right place for each one:
npx skills@latest add portfolio-performance/skillsTo install by hand, copy or symlink skills/pp-* into your agent's skills directory (for example ~/.claude/skills/ for Claude Code). Install all four together: the other skills link to pp-connect for setup and shared reference material.
- Portfolio Performance running, with the REST API enabled and at least one file enabled.
curl;jqis nice-to-have for the worked examples but not required.
MIT — see LICENSE.