Stock Four Lens

    by kevin

    1

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

    $10

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    Stock Four Lens

    Example session with this skill installed

    Run the quality lens on the bundled stock data in bundle.json to check Q-scores, V-scores, and the 14-point risk list.

    • Read your context and instructions
    • Compiled the stock four lens

    The quality analysis for the provided dataset is complete. The engine evaluated the business health (Q), valuation (V), and performed the 14-point risk scan.

    Quality and Risk Assessment Result

    MetricValue / StatusDescription
    Stock Codesh600519Kweichow Moutai
    Q-Score82Strong business quality, high moat
    V-Score45Neutral valuation
    Risk: Financial LeveragePassAsset-liability ratio within safety bounds
    Risk: PledgingPassLow major shareholder pledge ratio
    Risk: Cash FlowPassNet operating cash flow > Net profit
    Risk: GovernanceWarningRecent management turnover detected
    Cycle TagNon-CyclicalLow gross margin volatility (CV < 0.15)
    Capacity PositionNeutralCurrent utilization at 75th percentile
    Final VerdictWatchHigh quality but valuation gap exists

    Next steps

    • Review the governance warning in the annual report for details on management changes.
    • Execute the top lens to check if the current turnover rate suggests a short-term peak.
    • Compare these results against the historical Q-score trend in your local database.

    Connects securely to your tools. The creator never sees your data.

    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.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 4 days ago

    Software
    Python

    Permissions

    Terminal / Shell
    Network Access
    Read Files
    Write Files
    Environment Variables
    Listed4 days ago

    What's inside

    Creator

    K

    kevin

    3 skills on Agensi

    Frequently Asked Questions

    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.

    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.

    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.

    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.

    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.

    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.

    New in Trading & Investing

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Trading & Investing.