risk-scoring
Score how concentrated and risky a portfolio is on a 0-100 scale from its position weights. Use when the user asks how risky their portfolio is, whether it is too concentrated, or for a diversification check.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 1.5w
- Forks
- 2.6k
01 前言 Front Matter
- name
- risk-scoring
- description
- Score how concentrated and risky a portfolio is on a 0-100 scale from its position weights. Use when the user asks how risky their portfolio is, whether it is too concentrated, or for a diversification check.
02 资源文件 10
- 参考文档references/configuration.md4.3 KB
- 参考文档references/risk-bands.md1.3 KB
- 参考文档references/usage-patterns.md6.9 KB
- 脚本scripts/.coverage52.0 KB
- 脚本scripts/README.md3.7 KB
- 脚本scripts/repomix_batch.py13.0 KB
- 脚本scripts/repos.example.json252 B
- 脚本scripts/requirements.txt356 B
- 脚本scripts/risk_score.py1.6 KB
- 脚本scripts/tests/test_repomix_batch.py18.5 KB
03 SKILL.md 正文
Usage
When the user asks about portfolio risk or concentration:
- Read
references/risk-bands.mdto understand the score bands and what drives them. - Compute each holding's market value (shares × price) — use the
get_stock_pricetool for current prices if you do not already have them. - Run
scripts/risk_score.pywith one--position VALUEargument per holding, e.g.--position 18518 --position 17201 --position 16177. - 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.
04 同仓库更多 Skills
draft-release-notes
Create or rewrite Agent Framework release notes from a generated GitHub release log. Use when preparing Python or .NET release notes, filtering mixed-language changelogs, deduplicating changes, preserving inline contributor credits, or documenting breaking-change migrations from pull requests. Requires the user to provide the generated GitHub log, language, and release version before work begins.
agent-framework-builder-python
Use this skill when building, modifying, reviewing, evaluating, integrating, or hosting Python applications with Microsoft Agent Framework. Use it for Agent Framework agents, harness agents, workflows, orchestrations, declarative definitions, tools, sessions, middleware, evaluation, observability, integrations, or hosting, even when the user has not yet chosen the correct framework pattern.
agent-framework-builder-dotnet
Use this skill when building, modifying, reviewing, evaluating, integrating, or hosting .NET (C#) applications with Microsoft Agent Framework. Use it for Agent Framework agents, harness agents, workflows, orchestrations, declarative definitions, tools, sessions, middleware, evaluation, observability, integrations, or hosting, even when the user has not yet chosen the correct framework pattern.
foundry-hosted-agent-validation
Step-by-step process for validating a Python Foundry hosted agent sample (under python/samples/04-hosting/foundry-hosted-agents/) end to end — running it locally (native runtime and `azd ai agent run`) and after deploying it to an Azure AI Foundry project with `azd`. Use this when asked to validate a hosted agent sample.
foundry-config-setup
Resolve missing setup caused by a hardcoded Foundry project endpoint or model in a sample. Use when a sample fails because it uses a placeholder/hardcoded project_endpoint (for example "https://your-project.services.ai.azure.com") or a hardcoded model instead of reading them from the environment.
support-style
Contoso Outdoors customer-support tone and formatting guidelines.