Sector Comparison
Prompt-first, pure-prompt skill. No script — compare the stock against the supplied peer
set and sector aggregates.
Role & objective
Rank a stock within its sector/peer group on performance, valuation and fundamentals, and judge
relative strength and over/undervaluation — returning a relative score (−1..+1), confidence, rating.
When to use
"How does GP stack up vs other banks?", "is it cheap vs the sector?", "peer ranking", "sector
rotation / relative strength". Pairs with fundamental-analysis for the absolute view.
Inputs you need
- Target
{ticker, sector, fundamentals, recent return}.
peers[] — same fields for ≥5 peers, and/or sector aggregates (sector P/E, sector return).
- Optional market return for relative strength.
Method (follow in order)
- Relative performance — stock return vs sector and market; relative strength ratio; momentum.
- Peer ranking — percentile rank within peers on each metric; overall standing.
- Valuation vs sector — P/E, P/B, P/S, EV/EBITDA, PEG relative to sector median → premium/discount.
- Fundamental ranking — ROE/ROA/ROIC, margins, growth, leverage ranks within the group.
- Sector trend — money flow, institutional positioning, regulatory backdrop.
Scoring rubric
score = clamp(0.4·valuation_discount + 0.3·fundamental_rank + 0.3·relative_strength, −1, 1)
(percentiles centred so median = 0). Rating: ≥0.5 strong_outperform · ≥0.15 outperform ·
−0.15..0.15 in_line · ≤−0.15 underperform. Confidence rises with ≥5 comparable peers and complete metrics.
Output (emit this Thinking Card)
{ "skill": "sector-comparison", "ticker": "..", "mode": "..", "as_of": "..",
"score": 0.0, "confidence": 0.0, "rating": "outperform|in_line|underperform|..",
"key_metrics": { "sector": "..", "peer_rank": "3/15", "percentile": 80,
"stock_pe": 0, "sector_pe": 0, "valuation": "undervalued|fair|overvalued",
"relative_strength": 0.0 },
"reasoning": ["..."], "flags": ["too_few_peers?", "missing_metrics?"],
"disclaimer": "Educational analysis only. Not financial advice." }
DSE pitfalls
- DSE sectors are small and concentrated — a "peer group" may be 3–4 names; flag thin comparison.
- Sector P/E can be skewed by one giant or by loss-makers — prefer medians, and note outliers.
- Relative strength is only meaningful over a consistent window — state the lookback.
Optional precision helper
No bundled script — pure-prompt skill. Use stock-screener to assemble a peer universe and
fundamental-analysis for each peer's metrics.
Worked example
GP vs 15 banks: return +12% vs sector +9% (RS 1.25), P/E 12.3 vs sector 15.7 (−21% discount),
ROE rank 2/15 → score ≈ +0.5 → outperform / undervalued, confidence ≈ 0.75.
References
See stock-screener/references/SCREENS.md for sector keys.
Output is educational analysis only, never financial advice.
1---2name: sector-comparison3description: Compares a DSE stock against its sector and peer group — relative performance, valuation (P/E, P/B, EV/EBITDA) vs sector, fundamental rankings (ROE/margins/growth), and sector money-flow/momentum — to gauge relative strength and over/undervaluation. Use when the user asks how a stock stacks up vs peers/sector, sector rotation, relative strength, "is GP cheap vs other banks", or peer ranking on the Dhaka Stock Exchange.4license: Apache-2.05---67# Sector Comparison89> **Prompt-first, pure-prompt skill.** No script — compare the stock against the supplied peer10> set and sector aggregates.1112## Role & objective13Rank a stock within its sector/peer group on performance, valuation and fundamentals, and judge14relative strength and over/undervaluation — returning a relative score (−1..+1), confidence, rating.1516## When to use17"How does GP stack up vs other banks?", "is it cheap vs the sector?", "peer ranking", "sector18rotation / relative strength". Pairs with `fundamental-analysis` for the absolute view.1920## Inputs you need21- **Target** `{ticker, sector, fundamentals, recent return}`.22- **`peers[]`** — same fields for ≥5 peers, and/or **sector aggregates** (sector P/E, sector return).23- Optional market return for relative strength.2425## Method (follow in order)261. **Relative performance** — stock return vs sector and market; relative strength ratio; momentum.272. **Peer ranking** — percentile rank within peers on each metric; overall standing.283. **Valuation vs sector** — P/E, P/B, P/S, EV/EBITDA, PEG relative to sector median → premium/discount.294. **Fundamental ranking** — ROE/ROA/ROIC, margins, growth, leverage ranks within the group.305. **Sector trend** — money flow, institutional positioning, regulatory backdrop.3132## Scoring rubric33score = clamp(0.4·valuation_discount + 0.3·fundamental_rank + 0.3·relative_strength, −1, 1)34(percentiles centred so median = 0). Rating: ≥0.5 strong_outperform · ≥0.15 outperform ·35−0.15..0.15 in_line · ≤−0.15 underperform. Confidence rises with ≥5 comparable peers and complete metrics.3637## Output (emit this Thinking Card)38```json39{ "skill": "sector-comparison", "ticker": "..", "mode": "..", "as_of": "..",40 "score": 0.0, "confidence": 0.0, "rating": "outperform|in_line|underperform|..",41 "key_metrics": { "sector": "..", "peer_rank": "3/15", "percentile": 80,42 "stock_pe": 0, "sector_pe": 0, "valuation": "undervalued|fair|overvalued",43 "relative_strength": 0.0 },44 "reasoning": ["..."], "flags": ["too_few_peers?", "missing_metrics?"],45 "disclaimer": "Educational analysis only. Not financial advice." }46```4748## DSE pitfalls49- DSE sectors are small and concentrated — a "peer group" may be 3–4 names; flag thin comparison.50- Sector P/E can be skewed by one giant or by loss-makers — prefer medians, and note outliers.51- Relative strength is only meaningful over a consistent window — state the lookback.5253## Optional precision helper54No bundled script — pure-prompt skill. Use `stock-screener` to assemble a peer universe and55`fundamental-analysis` for each peer's metrics.5657## Worked example58GP vs 15 banks: return +12% vs sector +9% (RS 1.25), P/E 12.3 vs sector 15.7 (−21% discount),59ROE rank 2/15 → score ≈ +0.5 → **outperform / undervalued**, confidence ≈ 0.75.6061## References62See `stock-screener/references/SCREENS.md` for sector keys.63Output is educational analysis only, never financial advice.