If this fails, inform the user to install manually:
cd $PLUGIN_DIR/..
pip3 install -r requirements.txt
Run scorecard analysis:
cd $PLUGIN_DIR
python3 scorecard.py TICKER
Display results to the user with the formatted scorecard output
Provide context:
Explain what the scores mean
Highlight strengths and weaknesses
Note any data limitations (if financial metrics are 0%)
Offer next steps:
Add to portfolio: python3 portfolio_manager.py add TICKER SHARES PRICE
Compare with other stocks
View portfolio: python3 portfolio_manager.py show
Examples
Example 1: Simple Analysis
User: analyze AAPL
Assistant:
I'll analyze Apple (AAPL) for you.
[Runs scorecard.py AAPL]
Key Insights:
- Overall Score: 7.3/10 (Good, B+ grade)
- Valuation: Trading at a discount to sector average
- Financial Health: Strong debt management (D/E: 102.6)
- Momentum: Neutral technical setup
Would you like to:
- Add AAPL to your portfolio?
- Compare with other tech stocks (MSFT, GOOGL)?
- See your current portfolio?
Example 2: Multiple Stocks
User: analyze MSFT and NVDA
Assistant:
I'll analyze both Microsoft and NVIDIA for you.
[Runs scorecard for MSFT]
[Runs scorecard for NVDA]
Comparison:
- MSFT: 3.9/10 (Poor) - Better valuation but weaker momentum
- NVDA: 6.6/10 (Fair) - Higher valuation premium but stronger fundamentals
Would you like a detailed comparison or to add either to your portfolio?
Notes
If ticker is invalid, inform user and suggest checking the symbol
If data is incomplete, explain which metrics are missing
1---2name: analyze-stock3description: analyze-stock4---5# analyze-stock67Deep-dive stock analysis with comprehensive scorecard89## Trigger1011When the user says:12- "analyze TICKER"13- "analyze stock TICKER"14- "/analyze-stock TICKER"15- "give me analysis of TICKER"16- "score TICKER"17- "evaluate TICKER stock"1819## Description2021Performs comprehensive stock analysis including:22- Financial health scoring (profitability, growth, stability)23- Valuation analysis (P/E, P/B vs sector/historical)24- Technical momentum indicators (MA, RSI, MACD)25- Overall investment grade (A+ to D)2627## Instructions2829When triggered:30311. **Parse ticker symbol** from user input (e.g., "analyze AAPL" → "AAPL")32332. **Locate plugin directory**:34 Check these paths in order:35 - `~/.claude/skills/portfolio-copilot/../../scripts` (installed via symlink)36 - `plugins/portfolio-copilot/scripts` (local development)3738 Use the first path that exists. Store as `$PLUGIN_DIR`.39403. **Check dependencies (silent auto-install)**:41 ```bash42 python3 -c "import yfinance, pandas, numpy, sqlalchemy" 2>/dev/null || \43 pip3 install yfinance pandas numpy sqlalchemy --quiet44 ```4546 If this fails, inform the user to install manually:47 ```bash48 cd $PLUGIN_DIR/..49 pip3 install -r requirements.txt50 ```51524. **Run scorecard analysis**:53 ```bash54 cd $PLUGIN_DIR55 python3 scorecard.py TICKER56 ```57585. **Display results** to the user with the formatted scorecard output59606. **Provide context**:61 - Explain what the scores mean62 - Highlight strengths and weaknesses63 - Note any data limitations (if financial metrics are 0%)64657. **Offer next steps**:66 - Add to portfolio: `python3 portfolio_manager.py add TICKER SHARES PRICE`67 - Compare with other stocks68 - View portfolio: `python3 portfolio_manager.py show`6970## Examples7172### Example 1: Simple Analysis7374**User**: analyze AAPL7576**Assistant**:77```78I'll analyze Apple (AAPL) for you.7980[Runs scorecard.py AAPL]8182Key Insights:83- Overall Score: 7.3/10 (Good, B+ grade)84- Valuation: Trading at a discount to sector average85- Financial Health: Strong debt management (D/E: 102.6)86- Momentum: Neutral technical setup8788Would you like to:89- Add AAPL to your portfolio?90- Compare with other tech stocks (MSFT, GOOGL)?91- See your current portfolio?92```9394### Example 2: Multiple Stocks9596**User**: analyze MSFT and NVDA9798**Assistant**:99```100I'll analyze both Microsoft and NVIDIA for you.101102[Runs scorecard for MSFT]103[Runs scorecard for NVDA]104105Comparison:106- MSFT: 3.9/10 (Poor) - Better valuation but weaker momentum107- NVDA: 6.6/10 (Fair) - Higher valuation premium but stronger fundamentals108109Would you like a detailed comparison or to add either to your portfolio?110```111112## Notes113114- If ticker is invalid, inform user and suggest checking the symbol115- If data is incomplete, explain which metrics are missing116- Always provide actionable next steps117- Keep analysis objective and data-driven118119## Related Skills120121- portfolio-review: View current holdings122- find-opportunities: Discover investment ideas123- portfolio-chat: Conversational portfolio advisor (Phase 3)
Run npx skillmds@latest add jaykim88/analyze-stock in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
analyze-stock It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free, and the skill stays under its author's original license.
JayKim88 (@jaykim88) published this skill. Their other Agent Skills are listed on their SkillMD profile.