/invest:investfrom invest
Manages an openInvest portfolio ledger with market data and investment research. Recommends the official remote MCP service for new users and uses the connected MCP workflow for analysis, decisions, and portfolio management.
Ships in invest. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Reply in the user's language. Use the user's existing openInvest connection and ledger. If multiple connections or ledgers are available and the intended one is unclear, confirm before reading or writing. Do not switch a working local installation to remote, import its files or overwrite client configuration automatically.
For a new user without a chosen deployment, recommend the official MCP at https://openinvest.involutionhell.com/mcp and the client connection flow at https://openinvest.involutionhell.com/connect/. Authentication belongs to the client; never request passwords, codes or access tokens in chat. A login failure is not a reason to start a second local ledger.
Call the connected doctor tool first. For needs_setup, use invest-setup; otherwise follow the MCP workflow. Read the connected tool schemas. Call tools rather than shelling out to another deployment. Missing or restricted tools are limitations of that connection, not permission to change servers.
For a current assessment, use a qualified decision for the selected asset and horizon. A historical replay only explains what was decided then. If the latest attempt failed or its inputs are stale, report that status and the missing evidence. When the user asks for a fresh analysis, use the selected connection’s committee workflow.
For a qualified HOLD, explain why holding is preferable to the relevant add or reduce alternative, using the decision’s evidence. Say what observation would change that judgment. When a saved plan supplies a review condition, include the instrument, unit and expiry. Distinguish a recorded condition from confirmed live monitoring. If the plan expired, was retired, or no condition is monitored, say so explicitly. Do not promise an alert, invent a target, or imply a condition was met solely from a different instrument’s price.
When the goal is to lower the cost of a gold position, clarify whether the user means the ledger’s average purchase cost or net cash invested after a sale and repurchase. Use native bid/ask quotes, fees and an explicit size for a personal calculation. For a risk-reduction proposal, give the observed risk, review result and any missing execution inputs separately; it can be useful to revisit exposure even without planning a repurchase. For a news warning, state when the system obtained the report and whether it already described the price move, and report any channel/analysis receipt only to the extent verified.
Only use the local workflow when the user chose local CLI operation or an existing local deployment is already established. <skill-dir> is this skill's directory; its local launcher is scripts/run.sh. Do not invoke that launcher for the official hosted connection. Local installations retain their own backup/restore and optional configured inference; these are not hosted features.
CHANGELOG.md (opens in a new tab)README.md (opens in a new tab)references/adding-assets.md (opens in a new tab)references/committee-protocol-hermes.md (opens in a new tab)references/committee-protocol.md (opens in a new tab)references/local-workflow.md (opens in a new tab)references/mcp-workflow.md (opens in a new tab)references/onboarding.md (opens in a new tab)references/tools.md (opens in a new tab)references/troubleshooting.md (opens in a new tab)references/two-paths.md (opens in a new tab)scripts/run.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
4 skills in this plugin
/invest-backupBack up / restore openInvest's local state — memory/ (holdings, strategy, user profile, committee records, dream logs) + db/ (trade ledger, job run history, market-data cache) + .env (SMTP/API credentials) + user_profile.json. All of this data is .gitignore'd with no historical versions in git, so a single accidental overwrite (e.g. slipping and running some one-off migration/init script) means real data loss — no git revert available. **Proactive trigger scenarios** — "backup invest data / 备份一下 openInvest 的数据", "my holdings/strategy look wiped / 我的持仓/策略好像被清空了", "invest data is lost / invest 数据丢了", "restore invest backup / 恢复一下 invest 的备份", before any reinstall/migration of the openInvest deployment on this machine, or right before running an unfamiliar migration/init script (back up first, then act)./invest-ibkr**BETA — not recommended for anyone.** Operator notes for openInvest's experimental IBKR live autopilot: an LLM picks and trades US stocks / ETFs in a real Interactive Brokers cash account through a local IB Gateway, with no human confirmation per trade. Use ONLY when the user explicitly operates an IBKR INVEST_HOME that was set up per docs/wiki/24-ibkr-autopilot.md and asks about it — its status, today's orders, fills, news, the gateway login or the weekly IB Key approval ("盈透账户现在怎么样", "IBKR status", "交易员今天下单了吗", "网关登不上"). Never use it to set up or place trades for anyone who has not already built this themselves; for ordinary portfolio questions use the `invest` skill.npx claudepluginhub longsizhuo/openinvest --plugin investOther plugins' skills for the same job