valuation-calculator

valuation-calculator is a skill for Claude Code, Codex from Haochenhust/ch-skills. It costs 92 tokens per session (895 once invoked), scanned A, original, MIT.

A stock valuation workflow that compares a company's PE, PB and PS measures with their past levels and with similar companies, then calculates price targets using PE or PB methods.

In plain words
What is it for?
Use it during stock analysis, when setting a trade target price, or when comparing companies in the same industry.
Why use it?
It gives a structured way to judge whether a stock looks expensive or cheap instead of relying only on its current price.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: reads .claude/ paths.

Good fit Use it during stock analysis, when setting a trade target price, or when comparing companies in the same industry.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/haochenhust/ch-skills/valuation-calculator
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Haochenhust/ch-skills --skill valuation-calculator
Clone the repo
git clone --depth 1 https://github.com/Haochenhust/ch-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for valuation-calculator

README.md
[![agentmods](https://agentmods.dev/badge/skills/haochenhust/ch-skills/valuation-calculator/github.svg)](https://agentmods.dev/skills/haochenhust/ch-skills/valuation-calculator)
Your own site
<a href="https://agentmods.dev/skills/haochenhust/ch-skills/valuation-calculator"><img src="https://agentmods.dev/badge/skills/haochenhust/ch-skills/valuation-calculator/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for valuation-calculator

Your own site · 80×15
<a href="https://agentmods.dev/skills/haochenhust/ch-skills/valuation-calculator"><img src="https://agentmods.dev/badge/skills/haochenhust/ch-skills/valuation-calculator.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 92 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 895 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00092 $0.00895
Opus 5 $0.00046 $0.00447
Sonnet 5 $0.00018 $0.00179
Haiku 4.5 $0.00009 $0.00089

Measured 12d ago against content hash c4394bcaf6aa, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

valuation-calculator scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/valuation-calculator/SKILL.md · 100 lines

How it starts

The opening of the file, as written. The whole thing — 100 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Valuation Calculator

Quantitative, relative valuation for investment decisions (PE/PB percentiles + peer comparison + target price). For absolute DCF-style intrinsic value, use the intrinsic-value-analysis skill instead.

When to Use

  • During stock analysis (the valuation step)
  • When deciding a target price for a trade
  • When comparing multiple candidates in the same sector

Prerequisites

Uses the sibling tushare-data / stock-market-data skills. Set once per shell:

export TUSHARE_TOKEN=<your Tushare Pro token>    # never hard-code; see the tushare-data skill
PY=python3                                       # a python3 with tushare/pandas/akshare (e.g. stock-market-data/.venv/bin/python3)
SKILLS=~/.claude/skills                          # where you installed these skills
TS=$SKILLS/tushare-data/scripts/fetch_tushare.py
AK=$SKILLS/stock-market-data/scripts

Methods

1. Historical Percentile

Use Tushare daily_basic for direct PE/PB/PS time series (no manual calculation needed):

# Get 3-year PE/PB/PS history for percentile calculation
$PY $TS --mode daily_basic --symbols {CODE}.SZ --start 20230101

From the returned data:

  • Calculate PE_TTM percentile over available history
  • Calculate PB percentile over available history
  • Identify current position in historical range

2. Peer Comparison

# Tushare: valuation + financial ratios for each peer
$PY $TS --mode daily_basic --symbols {code1}.SZ --start 20260301
$PY $TS --mode fina_indicator --symbols {code1}.SZ
# Repeat for each peer...

# Fallback: AKShare (batch)
$PY $AK/fetch_financial_data.py --mode stock --symbols {code1},{code2},{code3}

Compare: PE, PB, ROE, revenue growth, net margin across peers. Identify: who is cheapest relative to growth? (PEG ratio)

Supplement with WebSearch for analyst consensus (券商一致预期), forecasts, and cross-sector peer comparison data:

WebSearch: "{stock name} 一致预期 估值 目标价"

3. Target Price Derivation

Methods available:

  • PE-based: Target PE × Expected EPS = Target Price
  • PB-based: Target PB × Book Value = Target Price
  • DCF-simplified: skip here; use the intrinsic-value-analysis skill for a proper DCF-style approach

Read the full file on GitHub · 100 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 100 lines · 92 tokens per session scan A c4394bcaf6aa

Subscribe to this mod's changes

valuation-calculator is a skill published in the GitHub repository Haochenhust/ch-skills (9 stars, last pushed 2mo ago), licensed MIT. It adds 92 tokens to every session and 895 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

rugpull-detector

Analysiert Kryptowährungen auf Rugpull-Risiken und Betrugszeichen. Verwende diesen Skill IMMER wenn: - Ein Nutzer fragt ob ein Coin/Token sicher ist, einen Rugpull-Score will, oder einen Coin analysieren möchte - Jemand einen Coin-Namen + Social Media Erwähnung nennt (z.B. "FOFAR wird von timclassified beworben") …

DjordjeMojsilovic/Djordjes-Claude-Setup · 205 tokens

prompt-master

Generates optimized prompts for AI tools. Activates only when the user explicitly asks to write, fix, improve, or adapt a prompt for a specific AI tool (LLM, Cursor, Midjourney, image AI, video AI, coding agents, etc.). Does not activate for general conversation, coding tasks, document writing, or other…

nidhinjs/prompt-master · 78 tokens

comptable

Comptabilité, fiscalité et facturation pour entreprises françaises. Gère écritures PCG, déclarations TVA, IS/IR, clôture annuelle, liasse fiscale (2033/2065), FEC, états financiers, et chaîne facturation (mentions obligatoires, numérotation, Factur-X/UBL/CII, plateformes agréées PDP/PA, e-reporting, réforme 2026…

romainsimon/paperasse · 143 tokens

fiscaliste

Fiscaliste IA pour la fiscalité personnelle des particuliers français : optimisation et déclaration de l'impôt sur le revenu, IFI, revenus du capital, revenus fonciers, equity salarial, crypto-actifs et PER. Couvre le calcul de l'IR (barème, quotient familial, décote, PAS, CEHR, revenus exceptionnels), la déclaration…

romainsimon/paperasse · 302 tokens

skill-curator

A Chinese-language evaluator for deciding whether developer tools and agent resources are suitable for a curated collection. It checks real repositories, installation paths, activity, duplicates, and security boundaries using evidence.

laolaoshiren/claude-code-skills-zh · 75 tokens

syndic

Gère un parc de copropriétés en France avec vue portfolio consolidée. Couvre administration, comptabilité (décret 2005, plan comptable copro, 5 annexes), assemblées générales (convocation, PV, notification), appels de fonds, travaux, fournisseurs, recouvrement d'impayés et transition de syndic. Maîtrise les majorités…

romainsimon/paperasse · 194 tokens