invest-setup

invest-setup is a skill for Claude Code from longsizhuo/openInvest. It costs 105 tokens per session (2,814 once invoked), scanned A, original, MIT.

A first-time setup workflow for openInvest, a system for tracking investments and running portfolio analysis.

In plain words
What is it for?
Use it to initialize openInvest, perform its setup migration, or reconfigure an existing installation when explicitly requested.
Why use it?
It turns an empty installation into a configured one and handles the initial setup or an explicitly requested reset.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: names the AskUserQuestion tool; mentions Claude Code; mentions Codex.

Part of the invest plugin — 4 skills shipped together

Good fit Use it to initialize openInvest, perform its setup migration, or reconfigure an existing installation when explicitly requested.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/longsizhuo/openinvest/invest-setup
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add longsizhuo/openInvest --skill invest-setup
Clone the repo
git clone --depth 1 https://github.com/longsizhuo/openInvest

Made for: Claude Code.

Or install invest, the plugin that ships this one along with the rest of its 4 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for invest-setup

README.md
[![agentmods](https://agentmods.dev/badge/skills/longsizhuo/openinvest/invest-setup/github.svg)](https://agentmods.dev/skills/longsizhuo/openinvest/invest-setup)
Your own site
<a href="https://agentmods.dev/skills/longsizhuo/openinvest/invest-setup"><img src="https://agentmods.dev/badge/skills/longsizhuo/openinvest/invest-setup/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for invest-setup

Your own site · 80×15
<a href="https://agentmods.dev/skills/longsizhuo/openinvest/invest-setup"><img src="https://agentmods.dev/badge/skills/longsizhuo/openinvest/invest-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 105 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,814 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Rogue Agent · line 51
    Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.
    Fix: Remove any persistence mechanisms (cron jobs, startup scripts, state files). Skills should not maintain state across sessions without explicit user consent.
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00105 $0.02814
Opus 5.5 $0.00042 $0.01126
Sonnet 5.5 $0.00021 $0.00563
Haiku 4.5 $0.00011 $0.00281

Measured 13d ago against content hash a97b281ded12, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

invest-setup scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 13d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/run.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugin/skills/invest-setup/SKILL.md · 201 lines

How it starts

The opening of the file, as written. The whole thing — 201 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Invest Setup Skill

<skill-dir> is this skill's own directory — the folder that holds this SKILL.md (Claude Code shows it as the skill's base directory; Hermes / Codex / OpenClaw install it inside the plugin). run.sh below always means <skill-dir>/scripts/run.sh.

Single responsibility: turn an empty openInvest deployment into a working one. Triggers only on the user's first-time setup — run once, then step aside (the invest skill takes over all day-to-day interaction).

When to Use

  • User explicitly says "set up invest" / "initialize invest" / "帮我初始化 invest"
  • The invest skill's doctor returns status: "needs_setup" (memory / user_profile missing)
  • User wants to reconfigure (explicitly says "reset" / "重新配置"; requires --force): on an existing install --force only updates name and risk tolerance in user.md — holdings, tracking, strategy and history stay as they are; change allocations with set_allocations, caps and tracking with track_asset / untrack_asset
  • v1 → v2 schema migration: doctor's portfolio_schema check says needs_migration (an install made by an older version; status shows cash 0). Run the exact command in that check's hint — it backs up portfolio.md and converts it. Do not rerun init for this

When NOT to Use

  • User is already onboarded (doctor returns status: "ready") → switch to the invest skill
  • User wants to view holdings / P&L / run the committee → use the invest skill
  • User wants to track a new asset but is already onboarded → the invest skill's POST /api/holdings endpoint
  • User wants to commit / push code → that's a git operation, unrelated to setup

If you (the agent) entered this skill by mistake, exit immediately and tell the user to use the invest skill instead.

Two onboarding paths

Path Scenario Flow
A. Fresh deployment (default) User's first time with openInvest; data lives on this machine "Flow (4 steps)" below
B. Connect to an existing hub User already runs openInvest on another machine (a server) and wants this machine to share the same data (multi-device) "Path B" below, 2 minutes

Read the full file on GitHub · 201 lines

Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 13d ago Changed · -19 lines a97b281ded12
  2. 16d ago Changed ce7ad7e16d5c
  3. 17d ago Changed · +22 lines 53b76fed09a2
  4. 1mo ago First seen · 198 lines · 105 tokens per session scan A e61616f64dbc

Subscribe to this mod's changes

invest-setup is a skill published in the GitHub repository longsizhuo/openInvest (133 stars, last pushed today), licensed MIT. It adds 105 tokens to every session and 2,814 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

yield-xyz-agentkit-builder

Build applications that integrate with the Yield.xyz APIs — staking, lending, vaults, and RWA across 80+ networks. Generates code covering REST API integration, transaction signing, wallet connection, and fee monetization. Use when user wants to build an app, integrate yield, generate code, or set up a project using…

stakekit/agentkit · 75 tokens

yield-xyz-agentkit-privy

The Privy connector for the Yield.xyz AgentKit — signs and broadcasts via Privy agentic wallets. Extends the yield-xyz-agentkit skill — that skill discovers yields and builds the unsigned transactions; this one adds Privy wallet creation, policy enforcement, signing, and broadcasting, in autonomous and semi-autonomous…

stakekit/agentkit · 124 tokens

yield-xyz-agentkit-moonpay

The MoonPay connector for the Yield.xyz AgentKit — signs and broadcasts via MoonPay. Extends the yield-xyz-agentkit skill — that skill discovers yields and builds the unsigned transactions; this one adds MoonPay wallet auth, signing, and broadcasting. Use when the user wants to enter, exit, or manage yield positions…

stakekit/agentkit · 101 tokens

yield-xyz-agentkit

Discover and act on 2,900+ DeFi yield opportunities via Yield.xyz AgentKit Skills, find yields, check APY enter/exit positions, and manage rewards across 80+ networks.

stakekit/agentkit · 46 tokens

chief-financial-officer

Owns the financial position: planning, budgeting, forecasting, unit economics, cash, and the numbers the business is run and reported on. Use this to build or challenge a budget, model a decision's financial consequence, assess unit economics or runway, evaluate an investment or spend request, set financial controls…

cbrock84/headcount · 0 tokens

financial-modeling

Builds and stress-tests financial models for forecasting, scenario planning, and decision support — revenue build, cost structure, driver logic, and the sensitivities that show where a plan breaks. Use this to model a decision's financial consequence, build a forecast or long-range plan, evaluate an investment or…

cbrock84/headcount · 76 tokens