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.
npx skills add wentorai/research-plugins --skill portfolio-optimization-guidegit clone --depth 1 https://github.com/wentorai/research-pluginsWrote 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.
[](https://agentmods.dev/skills/wentorai/research-plugins/portfolio-optimization-guide)<a href="https://agentmods.dev/skills/wentorai/research-plugins/portfolio-optimization-guide"><img src="https://agentmods.dev/badge/skills/wentorai/research-plugins/portfolio-optimization-guide/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.
<a href="https://agentmods.dev/skills/wentorai/research-plugins/portfolio-optimization-guide"><img src="https://agentmods.dev/badge/skills/wentorai/research-plugins/portfolio-optimization-guide.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00015 | $0.02328 |
| Opus 5.5 | $0.00006 | $0.00931 |
| Sonnet 5.5 | $0.00003 | $0.00466 |
| Haiku 4.5 | $0.00002 | $0.00233 |
Grade A, and why
portfolio-optimization-guide 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 2mo 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.
How it starts
The opening of the file, as written. The whole thing — 280 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Portfolio Optimization Guide
A skill for implementing and researching portfolio optimization methods, from classical mean-variance optimization to modern robust and factor-based approaches. Covers Markowitz theory, Black-Litterman, risk parity, and machine learning-enhanced portfolio construction.
Mean-Variance Optimization
Classical Markowitz Portfolio
import numpy as np
from scipy.optimize import minimize
def mean_variance_optimize(expected_returns: np.ndarray,
cov_matrix: np.ndarray,
target_return: float = None,
risk_free_rate: float = 0.02) -> dict:
"""
Markowitz mean-variance optimization.
expected_returns: array of expected returns for each asset
cov_matrix: covariance matrix of asset returns
target_return: target portfolio return (None for max Sharpe)
"""
n_assets = len(expected_returns)
def portfolio_volatility(weights):
return np.sqrt(weights @ cov_matrix @ weights)
def neg_sharpe(weights):
ret = weights @ expected_returns
vol = portfolio_volatility(weights)
return -(ret - risk_free_rate) / vol
# Constraints
constraints = [
{"type": "eq", "fun": lambda w: np.sum(w) - 1}, # weights sum to 1
]
if target_return is not None:
constraints.append(
{"type": "eq", "fun": lambda w: w @ expected_returns - target_return}
)
# Bounds: no short selling (0 to 1 per asset)
bounds = [(0, 1) for _ in range(n_assets)]
# Initial guess: equal weight
w0 = np.ones(n_assets) / n_assets
if target_return is not None:
# Minimize volatility for given return
result = minimize(portfolio_volatility, w0,
bounds=bounds, constraints=constraints)
else:
# Maximize Sharpe ratio
result = minimize(neg_sharpe, w0,
bounds=bounds, constraints=constraints)
weights = result.x
ret = weights @ expected_returns
vol = portfolio_volatility(weights)
return {
"weights": {f"asset_{i}": round(w, 4) for i, w in enumerate(weights)},
"expected_return": round(ret, 4),
"volatility": round(vol, 4),
"sharpe_ratio": round((ret - risk_free_rate) / vol, 4),
}
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.
- 2mo ago First seen · 280 lines · 15 tokens per session scan A b0d2854b5c86
portfolio-optimization-guide is a skill published in the GitHub repository wentorai/research-plugins (323 stars, last pushed 5mo ago), licensed MIT. It adds 15 tokens to every session and 2,328 once invoked, about $0.0001 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-09-03.
portfolio-optimization-guide compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| portfolio-optimization-guidewentorai/research-plugins | Skill | 323 | 5mo ago | MIT | A | 15 | Claude Code, Codex |
| sector-rotationHKUDS/Vibe-Trading | Skill | 39k | yesterday | MIT | A | 39 | Claude Code, Codex |
| strategy-pivot-designertradermonty/claude-trading-skills | Skill | 9.1k | yesterday | MIT | A | 28 | Claude Code, Codex |
| twitter-readerhimself65/finance-skills | Skill | 3.6k | 26d ago | MIT | A | 110 | Claude Code |
| energy-procurementhashgraph-online/awesome-codex-plugins | Skill | 1.6k | 2d ago | Apache-2.0 | A | 93 | Claude Code, Codex |
| airdrop-hunting-guidenirholas/three.ws | Skill | 287 | yesterday | Apache-2.0 | A | 54 | Claude Code, Codex |
| multi-expert-analyzerdigoal/blog | Skill | 8.6k | yesterday | GPL-2.0 | A | 292 | Codex |