CANSLIM S&P 500 Analyzer
Analyze the top 100 S&P 500 stocks by market capitalization using the local analyzer.py script, then summarize the strongest candidates for the user.
When to use
Use this skill when the user asks to:
- - Run a CANSLIM analysis on large-cap U.S. stocks.
- Screen S&P 500 leaders by growth, momentum, and institutional-quality signals.
- Generate a ranked shortlist of CANSLIM-style candidates.
Inputs
Expected local files:
- - INLINECODE1
- INLINECODE2 (if dependencies are not already installed)
Expected script output:
- -
canslim_results.json (in root directory) - Optional: INLINECODE4
Execution rules
Follow this checklist exactly:
- 1. Confirm that
Scripts/analyzer.py exists. - If dependencies are missing, install them from
Scripts/requirements.txt. - Change to the Scripts directory or run
python Scripts/analyzer.py from root. - Wait for the script to finish successfully.
- Read
canslim_results.json. - Rank stocks by CANSLIM score from highest to lowest.
- Present the best candidates in a Markdown table.
- Explain which CANSLIM letters each top stock passed or failed.
- If no stock is a strong match, show the top 3 closest candidates instead.
Analysis guidance
Interpret the script output using these principles:
- -
C: strong recent quarterly earnings growth. - INLINECODE10 : strong annual growth trend.
- INLINECODE11 : price near new highs or supported by a fresh catalyst.
- INLINECODE12 : favorable supply-demand signal such as strong volume.
- INLINECODE13 : market leadership versus weaker peers.
- INLINECODE14 : meaningful institutional sponsorship.
- INLINECODE15 : favorable trend or market direction signal.
Do not invent missing metrics. If any field is unavailable, say that the data is unavailable and continue with the remaining signals.
Output format
Return:
- - A 1-2 sentence overall assessment.
- A Markdown table with the top candidates.
- A short bullet list explaining why the top names ranked highly.
- A note listing any missing data, weak signals, or caveats.
Use this table format:
| Rank | Ticker | Company | Score | Passed | Failed | Notes |
|---|---|---|---:|---|---|---|
Constraints
- - Use only the files generated by this skill run.
- Do not claim the results are investment advice.
- Do not fabricate company names, prices, or scores.
- If the script fails, clearly report the failure and suggest checking dependencies or network access for market data.
Failure handling
If execution fails:
- - State which step failed.
- Include the error message if available.
- Recommend the smallest next action, such as installing dependencies or rerunning the script.
技能名称:CANSLIM-Top100-US
详细描述:
CANSLIM 标普500分析器
使用本地 analyzer.py 脚本分析市值排名前100的标普500股票,然后为用户总结最具潜力的候选股。
使用时机
当用户要求以下内容时使用此技能:
- - 对美国大盘股进行CANSLIM分析。
- 通过增长、动能和机构质量信号筛选标普500龙头股。
- 生成按CANSLIM风格排名的候选股短名单。
输入
预期的本地文件:
- - Scripts/analyzer.py
- Scripts/requirements.txt(如果依赖项尚未安装)
预期的脚本输出:
- - canslimresults.json(在根目录中)
- 可选:canslimresults.csv
执行规则
严格按照以下清单操作:
- 1. 确认 Scripts/analyzer.py 存在。
- 如果缺少依赖项,从 Scripts/requirements.txt 安装它们。
- 切换到Scripts目录,或从根目录运行 python Scripts/analyzer.py。
- 等待脚本成功完成。
- 读取 canslim_results.json。
- 按CANSLIM得分从高到低对股票进行排名。
- 以Markdown表格形式呈现最佳候选股。
- 解释每只顶级股票通过了或未通过哪些CANSLIM字母指标。
- 如果没有股票是强匹配,则展示最接近的前3只候选股。
分析指导
使用以下原则解释脚本输出:
- - C:近期季度盈利增长强劲。
- A:年度增长趋势强劲。
- N:股价接近新高或受新催化剂支撑。
- S:供需信号有利,例如成交量强劲。
- L:相对于较弱同行的市场领导地位。
- I:有意义的机构持仓支持。
- M:有利的市场趋势或方向信号。
不要编造缺失的指标。如果任何字段不可用,说明数据不可用,并继续使用剩余信号。
输出格式
返回:
- - 1-2句总体评估。
- 一个包含顶级候选股的Markdown表格。
- 一个简短的项目符号列表,解释顶级股票排名靠前的原因。
- 一个注释,列出任何缺失数据、弱信号或注意事项。
使用以下表格格式:
| 排名 | 股票代码 | 公司名称 | 得分 | 通过项 | 未通过项 | 备注 |
|---|---|---|---:|---|---|---|
约束条件
- - 仅使用此技能运行生成的文件。
- 不得声称结果是投资建议。
- 不得编造公司名称、价格或得分。
- 如果脚本失败,清晰报告失败原因,并建议检查依赖项或市场数据的网络访问。
失败处理
如果执行失败:
- - 说明失败发生在哪一步。
- 如果可用,包含错误信息。
- 建议最小的下一步操作,例如安装依赖项或重新运行脚本。