# Stock Four Lens

> A 股「四把尺子」——把 `stock_value_invest_tool` 里 **select / cycle / quality / top** 四个模块的 判定逻辑抽出来，剥掉取数、渲染、落库，只留**纯计算**。

Stock Four Lens is a paid AI agent skill on Agensi by kevin, in Trading & Investing. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $10 (one-time purchase)
- Creator: [kevin](https://www.agensi.io/creators/kevin-5)
- Category: [Trading & Investing](https://www.agensi.io/skills/trading-investing)
- Version: 1.0
- Last updated: 2026-12-01
- Security: scan passed (2026-12-01); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/stock-four-lens
- Tags: trading, a-share, financial-analysis, python, investment-strategy

## About this skill

Analyzing A-share stocks requires more than just glancing at a chart. This skill implements the Four Lenses framework to filter candidates, assess cyclicality, score quality, and detect market tops using strict, proven thresholds.

### What it does
- **Multi-Factor Selection**: Filters A-share candidates using MA20 crossovers, volume surges, and a seven-rule verdict system.
- **Cyclical Elasticity Assessment**: Determines if a stock is cyclical, measures its elasticity via gross margin and profit, and identifies capacity utilization levels.
- **Quality and Value Scoring**: Calculates Q-scores for business health and V-scores for valuation while scanning for 14 distinct risk factors.
- **Market Top Detection**: Evaluates momentum, turnover, performance, and price-volume factors to identify potential topping zones.
- **Strict Data Handling**: Distinguishes between zero values and missing data (NA), ensuring missing metrics never masquerade as passing grades.

### How it works
1. **Select**: Run the `select` command to generate a list of candidates meeting specific price and volume triggers.
2. **Analyze**: Pass specific stock codes from your candidate list into the `cycle` or `quality` modules for deeper fundamental vetting.
3. **Monitor**: Use the `top` command to check if current holdings are entering high-risk momentum or turnover stages.
4. **Inspect**: Query the calculation engine directly via JSON inputs to retrieve explicit tags like `strong/weak` or `low/high`.

### Frameworks & tools
The skill utilizes a Python-based calculation engine that operates on local JSON data or a `shared.db` SQLite instance. It relies on standard libraries to ensure zero external network dependencies for financial calculations.

### Why this beats prompting it yourself
Generic prompts struggle with strict threshold enforcement and often hallucinate financial verdicts. This skill uses a hardened calculation engine with hardcoded thresholds and explicit failure semantics, ensuring that "missing data" is never interpreted as "passing quality."

### Use cases
- Filter a weekly pool of A-shares based on MA20 crossovers and volume.
- Determine if a company is a cyclical play and identify its current capacity position.
- Perform a risk audit on a potential investment using the 14-point risk checklist.
- Monitor whether a surging stock is hitting momentum and turnover ceilings.

### Known limitations
Does not perform data fetching; requires local JSON or shared.db input. Calculations require raw price data (non-adjusted) to maintain threshold accuracy. Minimum data history requirements apply for quality and cycle assessments.

## Requires

- Python

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Stock Four Lens skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What specific financial analysis problems does this skill solve for A-share investors?

This skill implements the Four Lenses framework to filter A-share candidates, assess cyclicality and elasticity, score quality versus valuation, and detect market top factors using strict, proven thresholds. It solves the problem of generic AI hallucinations by using a hardened calculation engine with hardcoded thresholds instead of simple prompting.

### Do I need any external accounts or data files to use this skill?

To use this skill, you must provide local JSON data or have access to a shared.db SQLite instance containing raw stock data. The skill performs calculations but does not fetch external data itself, so you must provide the input files for it to process.

### What kind of reports or data outputs will I get back?

You receive explicit labels and scores such as Q-scores for health, V-scores for value, and specific tags like strong or weak for cyclical elasticity. The output is provided in a structured format that distinguishes between a negative result and missing data (NA), ensuring you never mistake a lack of information for a passing grade.

### How should I instruct my agent to begin the analysis?

You can ask your agent to run the select command to generate a candidate list, or pass a specific stock code to the cycle, quality, or top modules for a deep dive into its fundamentals or momentum status.

### Are there any specific data requirements or market limitations?

The skill requires raw, non-adjusted price data to maintain threshold accuracy and has minimum history requirements, such as at least 20 quarters of data for cycle assessments. It is designed specifically for the A-share market and does not include data fetching capabilities.

### Why is this more reliable than just asking a standard AI to analyze a stock?

Unlike generic prompts that might guess at financial health, this skill uses a dedicated Python calculation engine with a 14-point risk checklist and strict decision matrices. It ensures that missing metrics are never interpreted as passing quality, providing a much higher level of precision for financial vetting.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
