risk-scoring

risk-scoring is a skill for Claude Code, Codex from microsoft/agent-framework. It costs 47 tokens per session (226 once invoked), scanned A, original, MIT.

A method for scoring how concentrated an investment portfolio is on a scale from 0 to 100 using the values or weights of its holdings.

In plain words
What is it for?
Calculate position values, determine the concentration band and largest holding weight, and make a general diversification check.
Why use it?
It provides a simple way to spot when too much of a portfolio depends on one position or a small group of positions, though it is not a complete risk model.

Skill for Claude CodeCodex ✓ vendor

Written for no agent in particular: nothing here depends on one.

Good fit Calculate position values, determine the concentration band and largest holding weight, and make a general diversification check.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/microsoft/agent-framework/risk-scoring
About the project

Microsoft Agent Framework is a multi-language framework for building, coordinating, and running AI agents and workflows in Python and .NET. Teams use it for agent systems that need orchestration, collaboration, durability, observability, governance, or human involvement beyond a single prompt or chat loop. Catalogue add-ons provide skills and instructions for working with the framework.

microsoft/agent-framework · 14,171 stars · on GitHub · aka.ms

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 microsoft/agent-framework --skill risk-scoring
Clone the repo
git clone --depth 1 https://github.com/microsoft/agent-framework

Made for: Claude Code, Codex.

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 risk-scoring

README.md
[![agentmods](https://agentmods.dev/badge/skills/microsoft/agent-framework/risk-scoring/github.svg)](https://agentmods.dev/skills/microsoft/agent-framework/risk-scoring)
Your own site
<a href="https://agentmods.dev/skills/microsoft/agent-framework/risk-scoring"><img src="https://agentmods.dev/badge/skills/microsoft/agent-framework/risk-scoring/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 risk-scoring

Your own site · 80×15
<a href="https://agentmods.dev/skills/microsoft/agent-framework/risk-scoring"><img src="https://agentmods.dev/badge/skills/microsoft/agent-framework/risk-scoring.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 47 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 226 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 pass 7 Sept 2026
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.00047 $0.00226
Opus 5.5 $0.00019 $0.00090
Sonnet 5.5 $0.00009 $0.00045
Haiku 4.5 $0.00005 $0.00023

Measured 1mo ago against content hash 95adb629d7f9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

risk-scoring 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 1mo ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/risk_score.py), 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.

dotnet/samples/02-agents/Harness/BuildYourOwnClaw/Claw_Step03_ScalingCapabilities/skills/risk-scoring/SKILL.md · 19 lines

What it actually says

Usage

When the user asks about portfolio risk or concentration:

  1. Read references/risk-bands.md to understand the score bands and what drives them.
  2. Compute each holding's market value (shares × price) — use the get_stock_price tool for current prices if you do not already have them.
  3. Run scripts/risk_score.py with one --position VALUE argument per holding, e.g. --position 18518 --position 17201 --position 16177.
  4. Report the 0-100 score, the band it falls in, and the largest single-position weight, then suggest (in general terms) whether the portfolio looks well diversified or concentrated.

Remind the user this is a crude concentration measure, not a complete risk model, and not advice.

Files

What ships with it

2 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. 1mo ago First seen · 19 lines · 47 tokens per session scan A 95adb629d7f9

Subscribe to this mod's changes

risk-scoring is a skill published in the GitHub repository microsoft/agent-framework (14,171 stars, last pushed today), licensed MIT. It adds 47 tokens to every session and 226 once invoked, about $0.0002 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

comparable-company-analysis

A workflow for comparing a publicly listed company with similar listed companies. It examines their businesses, financial results, competitors, and recent developments.

wanxingai/LightAgent · 46 tokens

财经分析工具包

A set of finance analysis tools for stocks, markets, portfolios, and financial news. It includes data retrieval, technical indicators such as moving averages and RSI, trend analysis, risk assessment, and allocation suggestions.

wanxingai/LightAgent · 35 tokens

travel-expense-audit

A travel-expense review workflow that checks reimbursement claims against policy handbooks and rate tables. It covers items such as hotel, transport, and daily meal allowances.

vixues/LeAgent · 51 tokens

swarmclaw

AI agent runtime and multi-agent orchestration platform. Teaches agents how to use SwarmClaw's 6 primitive tools, persistent memory, dreaming, delegation, connectors, credentials, and the skill system. Use when an agent is running on SwarmClaw and needs to understand the platform's capabilities.

swarmclawai/swarmclaw · 67 tokens

expense

Read a receipt or invoice — pasted text, or a photo/scan — and turn it into one clean, structured expense record: merchant, date, currency, total, tax id, and itemised amounts, with those amounts checked to actually sum to the stated total. OCR text is dirty (O↔0, l↔1, misplaced decimals); this skill calibrates that…

Caprista/KarvyLoop · 0 tokens

sparc-methodology

SPARC (Specification, Pseudocode, Architecture, Refinement, Completion) comprehensive development methodology with multi-agent orchestration.

shyftlabs/continuum · 29 tokens