Preface¶
When developing scripts or Q&A systems related to A-shares, a common approach is to install AkShare in your project, consult documentation, write data retrieval logic, and then paste the results into the conversation. However, there are many data interfaces, fields are not unified, and occasional network failures require manual implementation of retry logic. If you want an Agent to directly query individual stocks, view market trends, or handle simple financial and stock screening Q&A within a conversation, you need a pre-encapsulated data fetching path rather than writing code from scratch every time.
The following is an introduction to the community Skill “A-Share Quantitative Data Analysis” on SkillHub: It encapsulates executable CLI tools based on AkShare and includes built-in retries and error handling, allowing Agents to call it after installation in environments like Cursor, Claude Code, and Codex.
What is this¶
“A-Share Quantitative Data Analysis” is a community skill located at the SkillHub coordinate @user_9e3b7930/akshare-stock-cn. The current version is 1.1.0, categorized under data-analysis, and published by user_9e3b7930. The tags indicate requires_api_key=false, meaning no separate API Key configuration is needed for installation and use.
The official description positions it as: A tool based on AkShare to fetch A-share market quotes, financial data, and sector information; it provides executable CLI scripts with built-in retry mechanisms and error handling; used to answer questions regarding A-share stock queries, market data, financial analysis, and stock selection.
SkillHub Page: https://www.skillhub.cn/skills/user_9e3b7930/akshare-stock-cn
Skill API Endpoint: https://api.skillhub.cn/user_9e3b7930/akshare-stock-cn
Core Functions¶
The following capabilities are derived from the official page and scraped data; interfaces or data types not specifically listed are not covered in this article.
- Market & Sectors: Fetches A-share market quotes and sector-related information via AkShare for querying and comparison.
- Financial Data: Supports the acquisition of financial data to serve financial analysis queries.
- CLI Encapsulation: The skill package provides executable CLI scripts that Agents can call according to SKILL conventions, rather than piecing together unverified code in the conversation.
- Stability: Built-in retries and error handling mitigate the impact of occasional failures from public data sources on single queries.
- Conversational Scenarios: Designed for natural language tasks such as “checking a specific stock,” “viewing market trends,” “financial indicators,” and “stock screening ideas,” where the Agent selects appropriate scripts and parameters.
Installation & Activation¶
Before installation, ensure SkillHub CLI is available on your local machine. If not installed, check the version or run the installation script according to the official installation documentation (full installation or CLI-only, depending on the documentation):
command -v skillhub && skillhub --version
# Full installation (CLI + Default Skills, recommended)
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash
# Install CLI only
curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only
The installation prompt provided on the SkillHub page is: Ask the AI to install this skill based on the installation documentation, using the following coordinates.
Please install `@user_9e3b7930/akshare-stock-cn` based on https://skillhub.cn/install/skillhub.md.
When using the CLI, you must use --dir to point to the current Agent’s skills directory; otherwise, it may default to ./skills/ and not be recognized. Common paths are as follows (subject to SkillHub installation documentation):
| Environment | Skills Directory |
|---|---|
| Cursor | ~/.cursor/skills/ |
| Claude Code | ~/.claude/skills/ |
| Codex | ~/.codex/skills/ or .agents/skills/ under the project |
Example installation command (replace <skills directory> with the corresponding path from the table above):
skillhub install @user_9e3b7930/akshare-stock-cn --dir <skills directory>
After installation, restart or refresh the Agent according to your client’s requirements to load the skill. This skill requires no API Key configuration.
Typical Usage¶
The official instructions emphasize tasks “used to answer” questions. The typical method is to ask questions directly in a conversation where the Skill is enabled, and the Agent will fetch data using the built-in CLI and AkShare. The following are question directions consistent with the official description; specific script names and parameters should refer to SKILL.md within the installation package.
- Stock Query: For example, asking about the basic information and code correspondence of a specific A-share stock.
- Market Data: For example, viewing market summaries for individual stocks or related sectors (subject to currently available AkShare interfaces).
- Financial Analysis: For example, requesting major financial indicators or report-related data for comparison and interpretation.
- Stock Selection: For example, filtering or listing candidate targets based on conditions, and then explaining them combined with market and financial results.
To confirm if the installation was successful, you can execute skillhub related commands in the terminal to search or view the list of installed skills (see Section 3 of https://skillhub.cn/install/skillhub.md).
Applicable Scenarios & Notes¶
Target Audience
- Developers or analysts already using environments that support Skills (like Cursor, Claude Code, Codex) who wish to query A-share data in conversations and reduce repetitive data-fetching code.
- Teams willing to accept AkShare as the data source and maintain encapsulation logic via a community Skill.
Usage Notes
- Data scope and fields are subject to AkShare and data source availability on the day; the community Skill does not guarantee coverage of capabilities not explicitly stated in the official introduction.
- Data fetching relies on the network; the retry mechanism can alleviate occasional failures but cannot replace your own judgment regarding data timeliness and compliant usage.
- SkillHub scraped data shows: Rating 100000, Downloads 2684 (statistics may change with SkillHub updates); the source is community, so please refer to the version notes on the SkillHub coordinate page for upgrades and feedback.
- Investment and trading decisions should be based on independently verified data. This article only introduces the skill’s capabilities and does not constitute investment advice.
Conclusion¶
“A-Share Quantitative Data Analysis” consolidates common AkShare market, financial, and sector queries into an Agent Skill with CLI and retries. It requires no API Key and is suitable for A-share Q&A and lightweight analysis within the Skill ecosystem. For installation or version checks, please refer to the official SkillHub page:
https://www.skillhub.cn/skills/user_9e3b7930/akshare-stock-cn