awslabs/agentcore-samples/portfolio-risk

Claude Code and agent skill by awslabs/agentcore-samples

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Assess the risk profile of a set of stocks or a sector allocation, scoring concentration risk, volatility exposure, and overall risk tier

Install

npx vskill@latest install awslabs/agentcore-samples/portfolio-risk

SKILL.md

The same SKILL.md was published earlier as awslabs/agentcore-samples/portfolio-risk.

Portfolio Risk Assessment Skill

Use this skill when a user asks about portfolio risk, how risky a set of holdings is, concentration risk, diversification, or whether a portfolio is suitable for a given risk tolerance.

Required workflow

  1. For each stock in the portfolio, retrieve data using get_stock_data.
  2. Retrieve sector data for each unique sector represented using get_sector_data.
  3. Compute concentration risk:
  • If any single sector > 50% of holdings → High Concentration Risk
  • If any single sector 30–50% → Moderate Concentration Risk
  • Otherwise → Diversified
  1. Assess volatility exposure:
  • High-beta sectors (Technology, Consumer Discretionary): count them
  • If > 50% of holdings in high-beta sectors → High Volatility Exposure
  • If 25–50% → Moderate; < 25% → Low
  1. Identify the single largest risk factor from sector risk lists.
  2. Score overall risk tier: Conservative, Moderate, Aggressive:
  • Conservative: Low volatility + Diversified
  • Aggressive: High volatility OR High Concentration
  • Moderate: all other combinations
  1. Suggest one defensive addition (from Consumer Staples or Healthcare sectors) if risk is Aggressive.

Output Format

Portfolio Risk Assessment
Holdings analyzed : {symbols list}
Sector breakdown : {sector: count breakdown}
Concentration : {High | Moderate | Diversified}
Volatility exposure: {High | Moderate | Low}
Top risk factor : {single biggest risk from sector data}
Overall risk tier : {Conservative | Moderate | Aggressive}
Recommendation : {1-2 sentences on risk mitigation or confirmation}

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
3,421
Repository forks
1,341
7-day trend score
41

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/awslabs/agentcore-samples/portfolio-risk/badge)](https://verified-skill.com/skills/awslabs/agentcore-samples/portfolio-risk)

Something wrong with this skill or its page? Tell us.