comps

comps is a command for coding agents from wbh604/UZI-Skill. It costs 29 tokens per session (312 once invoked), scanned A, original, MIT.

A stock comparison tool that values a company against similar companies using measures such as price-to-earnings, price-to-book and enterprise-value-to-EBITDA ratios. These ratios compare a company’s market value with its earnings, assets or operating profit.

In plain words
What is it for?
Use it to build a peer group, rank a target company by valuation percentile and estimate prices from median peer ratios.
Why use it?
It shows whether a stock is valued higher or lower than its peers and converts peer valuation levels into implied prices.

Command

Part of the UZI-Skill plugin — 5 skills, 20 commands, 1 agent, 1 hook shipped together

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.

agentmods
npx agentmods add commands/wbh604/uzi-skill/comps
Clone the repo
git clone --depth 1 https://github.com/wbh604/UZI-Skill

Or install UZI-Skill, the plugin that ships this one along with the rest of its 5 skills, 20 commands, 1 agent, 1 hook.

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 comps

README.md
[![agentmods](https://agentmods.dev/badge/commands/wbh604/uzi-skill/comps.svg)](https://agentmods.dev/commands/wbh604/uzi-skill/comps)
Your own site
<a href="https://agentmods.dev/commands/wbh604/uzi-skill/comps"><img src="https://agentmods.dev/badge/commands/wbh604/uzi-skill/comps.svg" alt="Measured on agentmods" height="20"></a>
Per session 29 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 312 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00029 $0.00312
Opus 5 $0.00015 $0.00156
Sonnet 5 $0.00006 $0.00062
Haiku 4.5 $0.00003 $0.00031

Measured 4d ago against content hash 0917b84fb738, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

comps 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 4d 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

  • comps — 100% identical, 0 lines differ
commands/comps.md · 31 lines

What it actually says

/comps <股票代码>

对目标股票做机构级 Comparable Company Analysis,识别相对同行的估值位置。

工作流

  1. 拉取目标股票基础数据 + 同行列表 (fetch_similar_stocks.py)
  2. 调用:
    from lib.fin_models import build_comps_table
    comps = build_comps_table(target, peers)
    
  3. 输出:
    • 同行池(默认 4-10 家)
    • 关键倍数统计:min / p25 / median / p75 / max / mean
    • 目标公司在每个倍数上的百分位排名
    • 中位 PE × EPS → 隐含每股价
    • 中位 PB × BVPS → 隐含每股价
    • 估值结论(便宜 / 合理偏低 / 合理偏高 / 昂贵)

展示规范

  • 峰值排序:PE / EV-EBITDA / P/S 三栏为主
  • 颜色:低于 p25 标绿,高于 p75 标红
  • 百分位:0-25 便宜 / 25-50 合理偏低 / 50-75 合理偏高 / 75-100 昂贵
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. 4d ago First seen · 31 lines · 29 tokens per session scan A 0917b84fb738

Subscribe to this mod's changes

comps is a command published in the GitHub repository wbh604/UZI-Skill (6,737 stars, last pushed 7d ago), licensed MIT. It adds 29 tokens to every session and 312 once invoked, about $0.0001 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-30.