portfolio-audit-output

portfolio-audit-output is a command for Claude Code from nutdnuy/portfolio-optimization-ai-plugin. It costs 7 tokens per session (141 once invoked), scanned A, original, MIT.

A command that checks the files and results in an existing portfolio optimization run. It examines weights, restrictions on short selling, concentration limits, and whether the report explains its assumptions and limitations.

In plain words
What is it for?
Use it to audit portfolio weights, find missing files, detect invalid allocations, and check whether the generated report is sufficiently documented.
Why use it?
It makes problems and warnings visible instead of allowing an apparently valid result to pass unchecked. It also turns warnings into suggested next steps.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the portfolio-optimization-ai-plugin plugin — 1 skill, 5 commands shipped together

Good fit Use it to audit portfolio weights, find missing files, detect invalid allocations, and check whether the generated report is sufficiently documented.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add nutdnuy/portfolio-optimization-ai-plugin
Claude Code
/plugin install portfolio-optimization-ai-plugin

Made for: Claude Code.

Or install portfolio-optimization-ai-plugin, the plugin that ships this one along with the rest of its 1 skill, 5 commands.

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 portfolio-audit-output

README.md
[![agentmods](https://agentmods.dev/badge/commands/nutdnuy/portfolio-optimization-ai-plugin/portfolio-audit-output/github.svg)](https://agentmods.dev/commands/nutdnuy/portfolio-optimization-ai-plugin/portfolio-audit-output)
Your own site
<a href="https://agentmods.dev/commands/nutdnuy/portfolio-optimization-ai-plugin/portfolio-audit-output"><img src="https://agentmods.dev/badge/commands/nutdnuy/portfolio-optimization-ai-plugin/portfolio-audit-output/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 portfolio-audit-output

Your own site · 80×15
<a href="https://agentmods.dev/commands/nutdnuy/portfolio-optimization-ai-plugin/portfolio-audit-output"><img src="https://agentmods.dev/badge/commands/nutdnuy/portfolio-optimization-ai-plugin/portfolio-audit-output.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 7 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 141 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.
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.00007 $0.00141
Opus 5 $0.00003 $0.00071
Sonnet 5 $0.00001 $0.00028
Haiku 4.5 $0.00001 $0.00014

Measured 8d ago against content hash 6278fb0ca9d5, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

portfolio-audit-output 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 8d ago.

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.

commands/portfolio-audit-output.md · 25 lines

What it actually says

Audit an existing portfolio optimization run folder.

Run:

cd "${CLAUDE_PLUGIN_ROOT:-$PWD}" && python3 scripts/portfolio_optimizer_ai.py audit-output --run-dir "<run folder>"

Summarize:

  • pass, warn, or fail
  • missing files
  • weight sum issues
  • shorting violations
  • max-weight or concentration warnings
  • whether assumptions, limitations, and next checks appear in the report

Do not hide warnings. Convert them into concrete next actions.

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. 8d ago First seen · 25 lines · 7 tokens per session scan A 6278fb0ca9d5

Subscribe to this mod's changes

portfolio-audit-output is a command published in the GitHub repository nutdnuy/portfolio-optimization-ai-plugin (25 stars, last pushed 2mo ago), licensed MIT. It adds 7 tokens to every session and 141 once invoked, about $0.0000 per session on Opus 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.