IN

industry_stock_tracker

Generates structured industry or stock market tracking reports based on user queries.

Install

mkdir -p .claude/skills/industry-stock-tracker && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/17036" && unzip -o skill.zip -d .claude/skills/industry-stock-tracker && rm skill.zip

Installs to .claude/skills/industry-stock-tracker

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

生成行业或个股跟踪报告。当用户明确要求“报告/研报/跟踪分析/周报/月报/日报”, 或提到具体行业、板块、指数、股票名称/代码并希望系统输出结构化跟踪内容时触发。 典型表达包括“写一份XX行业报告”“跟踪XX股票”“生成XX研报”“看看XX最近怎么样并出报告”。
131 charsno explicit “when” trigger
Beginner

Key capabilities

  • Generate industry or individual stock tracking reports
  • Pass user queries directly to a script for report generation
  • Save generated reports as local DOCX or PDF files
  • Output report summaries and titles
  • Provide shareable links for reports

How it works

The skill takes a user's natural language query, passes it to a Python script, which then calls a remote service to generate a report and returns the structured output.

Inputs & outputs

You give it
User query for a market analysis report (e.g., '写一份XX行业报告')
You get back
A structured report including title, summary content, local paths to PDF/DOCX attachments, and a share URL

When to use industry_stock_tracker

  • Get a weekly stock market summary
  • Generate an industry research report
  • Analyze specific stock performance
  • Receive daily industry updates

About this skill

行业/个股跟踪报告生成 Skill

概述

本 skill 用于将用户自然语言问题交给脚本 scripts/generate_industry_stock_tracker_report.py, 由脚本调用远程报告服务并返回统一 JSON 结果。输出包含标题、总结内容与附件本地保存路径(DOCX/PDF)。

核心工作流

  1. 将用户原始问题原样作为 query 传入脚本。
  2. 脚本调用接口生成报告并获取“总结”章节。
  3. 若接口返回 wordBase64/pdfBase64,脚本会落地为本地附件文件并返回路径。
  4. 将脚本标准输出(JSON)直接作为 skill 输出依据,不做与脚本冲突的二次改写。

命令行参数调用方式:

python3 {baseDir}/scripts/generate_industry_stock_tracker_report.py --query "{{query}}"

注意:禁止调用 任何「后台执行、稍后汇报」的方式跑本脚本,只能在当前会话中同步等待到命令完成,拿到 stdout 的结果后再继续,否则会导致本 Skill 失败。

输出格式规范

接口返回后,必须严格按以下模板输出,不得增删标题、不得改变顺序、不得添加额外章节:

标题

直接使用接口返回的 title 字段,单独成行。

正文

如果接口返回的 content 字段有相关行业报告信息,则原文透传; 否则读取接口返回的附件文件内容,总结相关报告信息返回,记住保证返回的正文内容非空。

附件

接口返回 pdf 以及 docx 格式文件的保存路径。

分享链接

直接使用接口返回的 share_url 字段,单独成行。文案必须按以下固定格式输出:

{标题}

{正文}

完整报告:
- PDF:{pdf_path}
- DOCX:{docx_path}

分享链接:
{share_url}

字段映射规则:

  • {title} = 脚本返回的 title
  • {content} = 脚本返回的 content
  • {pdf_path} = attachmentstype=PDF 对应的 url
  • {docx_path} = attachmentstype=DOCX 对应的 url
  • {share_url} = 脚本返回的 share_url

当附件缺失时:

  • 若仅有一种格式,仅输出存在的那一行(PDF 或 DOCX)。
  • 若两种都不存在,输出:完整报告:暂无可用附件

语言要求

始终优先中文输出。若用户使用其他语言,可在交互提示中适度双语,但报告正文与字段含义保持中文语境。

使用约束与建议

  • 不要在 skill 层重写脚本已生成的 content 主体结构,避免与脚本逻辑漂移。
  • 除附件路径展示外,不在 skill 层追加二次总结,正文以脚本 content 结果为准。
  • 若脚本返回 ok=false,优先透传 message;不要自行编造错误原因。
  • 该 skill 目标是“生成并返回结果”,不是在 skill 内追加长篇二次分析。

常见错误处理:

  • 缺少 query:BAD_REQUEST,message 为“缺少 query 参数”。
  • 不支持实体:ERROR_ENTITY,message 为“目前暂不支持此类实体体进行分析。”
  • 网络/超时/服务异常:TIMEOUT / NETWORK_ERROR / HTTP_ERROR / UNEXPECTED_ERROR,对用户统一提示“报告生成服务暂时不可用,请稍后重试。”。

错误输出强约束:

  • 只要接口响应或脚本标准输出(print 的 JSON)中存在 message 字段,模型必须输出该 message,不得省略、不得改写、不得替换为其他话术。
  • ok=false 时,优先输出错误 message;若同时存在 error_code,可附带展示 error_code,但不影响 message 原样透传。

When not to use it

  • When the user wants the script to run in the background and report later
  • When the user wants to modify the script's generated content structure
  • When the user wants secondary analysis beyond the script's output

Prerequisites

scripts/generate_industry_stock_tracker_report.py scriptRemote report service

Limitations

  • The skill does not support background execution of the script
  • The skill does not allow modification of the script's content structure
  • The skill does not perform secondary summarization beyond the script's output

How it compares

This skill automates the generation of structured market reports from natural language queries, unlike manual data compilation.

Compared to similar skills

industry_stock_tracker side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
industry_stock_tracker (this skill)04moReviewBeginner
quant-analyst1033moNo flagsAdvanced
stock-analyzer712moReviewBeginner
creating-financial-models368moReviewAdvanced

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

quant-analyst

zenobi-us

Expert quantitative analyst specializing in financial modeling, algorithmic trading, and risk analytics. Masters statistical methods, derivatives pricing, and high-frequency trading with focus on mathematical rigor, performance optimization, and profitable strategy development.

103355

stock-analyzer

FrancyJGLisboa

Provides comprehensive technical analysis for stocks and ETFs using RSI, MACD, Bollinger Bands, and other indicators. Activates when user requests stock analysis, technical indicators, trading signals, or market data for specific ticker symbols.

71214

creating-financial-models

anthropics

This skill provides an advanced financial modeling suite with DCF analysis, sensitivity testing, Monte Carlo simulations, and scenario planning for investment decisions

36161

reconciliation

anthropics

Reconcile accounts by comparing GL balances to subledgers, bank statements, or third-party data. Use when performing bank reconciliations, GL-to-subledger recs, intercompany reconciliations, or identifying and categorizing reconciling items.

30139

analyzing-financial-statements

anthropics

This skill calculates key financial ratios and metrics from financial statement data for investment analysis

32134

us-stock-analysis

tradermonty

Comprehensive US stock analysis including fundamental analysis (financial metrics, business quality, valuation), technical analysis (indicators, chart patterns, support/resistance), stock comparisons, and investment report generation. Use when user requests analysis of US stock tickers (e.g., "analyze AAPL", "compare TSLA vs NVDA", "give me a report on Microsoft"), evaluation of financial metrics, technical chart analysis, or investment recommendations for American stocks.

24137

Search skills

Search the agent skills registry