Agent skill

Sector Pe Ratios

by OctagonAI in OctagonAI/skills

Retrieve sector P/E ratios using Octagon MCP. An agent skill from OctagonAI/skills.

MITAuto-check passedBusiness, Finance & HR

Install Sector Pe Ratios

skills CLI
$ npx skills add OctagonAI/skills --skill sector-pe-ratios -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install OctagonAI/skills sector-pe-ratios --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/OctagonAI/skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/sector-pe-ratios .claude/skills/sector-pe-ratios && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
sector-pe-ratios
GitHub stars
127
Token cost
~1.7k tokens
SKILL.md length
538 words
Files
5 (incl. references)
Skills in repo
53
Repo updated
First seen
Licence
MIT

At a glance

Retrieve sector P/E ratios using Octagon MCP. An agent skill from OctagonAI/skills.

  • Works in 4 steps: Identify Parameters → Execute Query via Octagon MCP → Expected Output → …
  • Comparing company valuations to sector benchmarks
  • SKILL.md covers Prerequisites, Workflow, Example Queries and Understanding P/E Ratios, plus 6 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Sector Pe Ratios is an agent skill from OctagonAI/skills. Retrieve sector P/E ratios using Octagon MCP. Use when comparing company valuations to sector benchmarks, analyzing sector valuations across exchanges, and understanding market-wide valuation trends.

Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including reference files (for example `README.md`, `marketplace.json` and `references/interpreting-results.md`).

It sits in Business, Finance & HR, covering MCP servers. It works with Model Context Protocol. The repository describes itself as: A collection of Claude skills for agentic financial research by Octagon. The licence is MIT.

When your agent uses it

  • Comparing company valuations to sector benchmarks
  • Analyzing sector valuations across exchanges
  • Understanding market-wide valuation trends

Example prompts

  • “/sector-pe-ratios”

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Identify Parameters
  2. Execute Query via Octagon MCP
  3. Expected Output
  4. Interpret Results

What it can do on your machine

Read from SKILL.md and the folder at commit 51e938c. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are json).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Sector Pe Ratios loads about 1.7k tokens when it runs, and up to ~4.1k if it reads all its reference files. Until then it costs about 54 tokens; SKILL.md has 538 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~54
When it runs · the whole SKILL.md, loaded when a task matches
~1.7k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~4.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from OctagonAI/skills at commit 51e938c, republished under its MIT licence (© OctagonAI). 538 words, ~1,684 tokens.

Download SKILL.mdSave it as .claude/skills/sector-pe-ratios/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
sector-pe-ratios
description
Retrieve sector P/E ratios using Octagon MCP. Use when comparing company valuations to sector benchmarks, analyzing sector valuations across exchanges, and understanding market-wide valuation trends.

Sector P/E Ratios

Retrieve price-to-earnings ratios by sector and exchange using the Octagon MCP server.

Prerequisites

Ensure Octagon MCP is configured in your AI agent (Cursor, Claude Desktop, Windsurf, etc.). See references/mcp-setup.md for installation instructions.

Workflow

1. Identify Parameters

Determine your query parameters:

  • Date: Specific date for the data
  • Exchange: NYSE, NASDAQ, etc.
  • Sector: Technology, Healthcare, Financials, etc.
2. Execute Query via Octagon MCP

Use the octagon-agent tool with a natural language prompt:

Retrieve the latest sector P/E ratios for <DATE>, filtered by exchange <EXCHANGE> and sector <SECTOR>.

MCP Call Format:

json
{
  "server": "octagon-mcp",
  "toolName": "octagon-agent",
  "arguments": {
    "prompt": "Retrieve the latest sector P/E ratios for 2025-02-03, filtered by exchange NASDAQ and sector Technology."
  }
}
3. Expected Output

The agent returns sector P/E data:

MetricValue
SectorTechnology
ExchangeNASDAQ
P/E Ratio58.77
Date2025-02-03

Data Sources: octagon-stock-data-agent

4. Interpret Results

See references/interpreting-results.md for guidance on:

  • Comparing company P/E to sector P/E
  • Historical sector valuation context
  • Cross-sector comparisons
  • Exchange-specific analysis

Example Queries

Specific Sector and Exchange:

Retrieve the latest sector P/E ratios for 2025-02-03, filtered by exchange NASDAQ and sector Technology.

All Sectors on Exchange:

Get P/E ratios for all sectors on the NYSE.

Sector Comparison:

Compare P/E ratios for Technology, Healthcare, and Financials sectors.

Historical Trend:

What is the historical P/E trend for the Technology sector on NASDAQ?

Cross-Exchange:

Compare Technology sector P/E ratios on NYSE vs. NASDAQ.

Understanding P/E Ratios

Definition
P/E Ratio = Stock Price / Earnings Per Share

For sectors:

Sector P/E = Weighted Average P/E of all stocks in the sector
Types of P/E
TypeDescription
Trailing P/EBased on past 12 months earnings
Forward P/EBased on estimated future earnings
GAAP P/EUsing GAAP earnings
Non-GAAP P/EUsing adjusted earnings

Sector Categories

Major Sectors
SectorTypical P/E Range
Technology25-60
Healthcare18-35
Financials10-18
Consumer Discretionary15-30
Consumer Staples18-25
Industrials15-25
Energy8-20
Utilities15-22
Real Estate30-50
Materials12-20
Communications15-25
P/E Characteristics by Sector
SectorP/E TendencyReason
TechnologyHigherGrowth expectations
FinancialsLowerMature, regulated
UtilitiesModerateStable, dividend-focused
HealthcareVariableMix of growth/value

Major Exchanges

Exchange Characteristics
ExchangeFocus
NYSELarge-cap, established
NASDAQTech-heavy, growth
AMEXSmaller companies, ETFs
Exchange P/E Differences
FactorNYSENASDAQ
Tech WeightLowerHigher
Average P/EGenerally lowerGenerally higher
Growth vs. ValueMore balancedGrowth-tilted

Using Sector P/E for Analysis

Company Valuation Context
ComparisonInterpretation
Company P/E < Sector P/EPotentially undervalued or issues
Company P/E = Sector P/EFairly valued relative to sector
Company P/E > Sector P/EPremium valuation or overvalued
Premium/Discount Calculation
Premium/Discount = (Company P/E - Sector P/E) / Sector P/E × 100%
Example
  • Company P/E: 45
  • Sector P/E: 58.77
  • Discount: (45 - 58.77) / 58.77 = -23.4% (trading at discount)

Historical Context

Show full SKILL.md (216 more words)Show less
Valuation Levels
Sector P/E vs. HistoryInterpretation
Above 10-year averagePotentially elevated
At 10-year averageNormal valuation
Below 10-year averagePotentially attractive
Cycle Considerations
PhaseTypical Sector P/E Behavior
Early RecoveryRising from lows
Mid-CycleModerate, stable
Late CycleOften elevated
RecessionCompressed or distorted

Cross-Sector Analysis

Relative Value
ComparisonUse
Tech vs. FinancialsGrowth vs. value
Cyclical vs. DefensiveRisk appetite
High vs. Low P/EMarket expectations
Rotation Signals
SignalMeaning
Tech P/E rising fasterGrowth favored
Value sectors risingRisk-off rotation
ConvergenceNormalization
DivergenceTheme-driven market

Data Considerations

Timing
FactorConsideration
Earnings seasonP/E updates with new earnings
Price movementsDaily fluctuation
Index rebalancingComposition changes
Calculation Differences
SourceMay Differ On
WeightingMarket-cap vs. equal
EarningsTrailing vs. forward
ConstituentsIndex composition

Common Use Cases

Stock Valuation
Is AAPL's P/E reasonable compared to the Technology sector?
Sector Selection
Which sectors have the lowest P/E ratios currently?
Market Timing
Are Technology sector valuations elevated compared to history?
Portfolio Analysis
How do my holdings' P/E ratios compare to their sectors?

Analysis Tips

  1. Compare apples to apples: Same sector, similar companies.

  2. Consider growth: High P/E may be justified by high growth.

  3. Check historical range: Current vs. typical levels.

  4. Look at earnings quality: P/E only as good as earnings.

  5. Cross-reference exchanges: Same sector, different exchanges.

  6. Watch for outliers: Negative earnings distort averages.

Integration with Other Skills

SkillCombined Use
financial-metrics-analysisCompany P/E vs. sector
income-statementEarnings driving P/E
stock-quoteCurrent price context
analyst-estimatesForward P/E calculation

© OctagonAI, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 4 other files (references) in skills/sector-pe-ratios of OctagonAI/skills.

  • SKILL.md
  • README.md
  • marketplace.json
  • references/interpreting-results.md
  • references/mcp-setup.md

Open the folder on GitHubat commit 51e938c

Compare with similar skills

Sector Pe Ratios next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Sector Pe Ratios compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Sector Pe Ratios this skillOctagonAI/skills127—~1.7kAutomated safety check: PassMIT
Tradingview MCPatilaahmettaner/tradingview-mcp5k—~1.3kAutomated safety check: PassMIT
Okx Cex Marketdex-original/okx-agent-trade-kit1101 repos~2.7kAutomated safety check: PassMIT
Polymarket Tennislivetennisapi/livetennisapi-mcp152—~3kAutomated safety check: PassMIT
Okx Sentiment Trackerdex-original/okx-agent-trade-kit1101 repos~3.8kAutomated safety check: PassMIT
Odoo Agency Fleet Reviewerpipe-org/mcp-odoo421—~699Automated safety check: PassMIT

Similar skills

  • Tradingview MCP

    atilaahmettaner/tradingview-mcp

    AI Trading Intelligence — live prices, 30+ technical indicators, backtesting (6 strategies), walk-forward overfitting detection, trade logs, equity curves, licensed news sentiment (Marketaux), and…

    5k GitHub stars~1.3k tokensUpdated yesterday
    Business, Finance & HRAuto-check passed
  • Okx Cex Market

    dex-original/okx-agent-trade-kit

    A skill your agent uses when the user asks for: price of any asset, ticker, order book, candles, OHLCV, funding rate, open interest, OI change scanner, market screener (top movers, high-volume…

    110 GitHub starsUsed in 1 repo~2.7k tokens
    Business, Finance & HRAuto-check passed
  • Polymarket Tennis

    livetennisapi/livetennisapi-mcp

    Build observe-only Polymarket and Kalshi tennis market tooling on the polymarket-tennis Python package (MIT) plus the Live Tennis API free tier.

    152 GitHub stars~3k tokensUpdated 4 days ago
    Business, Finance & HRAuto-check passed
  • Okx Sentiment Tracker

    dex-original/okx-agent-trade-kit

    A skill your agent uses when the user asks about: 'any crypto news', 'latest news', 'market update', 'daily briefing', 'BTC news', 'ETH news', 'news on SOL', 'search SEC ETF', 'regulation news'…

    110 GitHub starsUsed in 1 repo~3.8k tokens
    Business, Finance & HRAuto-check passed
  • Odoo Agency Fleet Review

    erpipe-org/mcp-odoo

    Review many client Odoo databases at once through odoo-mcp's cross-instance tools — fleet-wide accounting health, per-client aging, partial-failure triage — for agencies and partners managing 5–50…

    421 GitHub stars~699 tokensUpdated 1 mo ago
    Business, Finance & HRAuto-check passed
  • Sops Secrets

    VeriTeknik/pluggedin-app

    A skill your agent uses when adding, changing, reading or rotating a secret in infra/sops/secrets.env.sops, adding an age recipient, or when sops reports "Error unmarshalling input json", "Config…

    103 GitHub stars~1.4k tokensUpdated 4 days ago
    Business, Finance & HRAuto-check passed

More from OctagonAI/skills

All 53 skills in this repo
  • Analyst Estimates

    OctagonAI/skills

    Retrieve analyst financial estimates including Revenue and EPS projections with low/high ranges and analyst coverage.

    127 GitHub stars~1.1k tokensUpdated 4 mo ago
    Auto-check passed
  • Balance Sheet

    OctagonAI/skills

    Retrieve detailed balance sheet statement data including Total Assets, Current Assets, Non-Current Assets, Liabilities, Equity, and Net Debt for public companies.

    127 GitHub stars~1k tokensUpdated 4 mo ago
    Auto-check passed
  • Balance Sheet Growth

    OctagonAI/skills

    Retrieve year-over-year growth in balance sheet items including Total Assets, Total Liabilities, Shareholders Equity, Cash, and Inventories.

    127 GitHub stars~940 tokensUpdated 4 mo ago
    Auto-check passed
  • Batch Market Cap

    OctagonAI/skills

    Retrieve market capitalization data for multiple companies at once using Octagon MCP.

    127 GitHub stars~1.6k tokensUpdated 4 mo ago
    Auto-check passed
  • Cash Flow Growth

    OctagonAI/skills

    Retrieve year-over-year growth in cash flow metrics including Operating Cash Flow, Free Cash Flow, and Net Cash Flow.

    127 GitHub stars~862 tokensUpdated 4 mo ago
    Auto-check passed
  • Cash Flow Statement

    OctagonAI/skills

    Retrieve real-time or historical cash flow statement data including Net Income, Operating Cash Flow, Investing Cash Flow, Financing Cash Flow, Free Cash Flow, and Cash Position for public companies.

    127 GitHub stars~1k tokensUpdated 4 mo ago
    Auto-check passed

Questions about Sector Pe Ratios

What does Sector Pe Ratios do?

Retrieve sector P/E ratios using Octagon MCP. An agent skill from OctagonAI/skills. Sector Pe Ratios is an agent skill from OctagonAI/skills. Retrieve sector P/E ratios using Octagon MCP.

When should I use Sector Pe Ratios?

Sector Pe Ratios fits situations like: comparing company valuations to sector benchmarks; analyzing sector valuations across exchanges; understanding market-wide valuation trends.

How do I install Sector Pe Ratios in Claude Code?

Run `npx skills add OctagonAI/skills --skill sector-pe-ratios -a claude-code`. Or copy the skill folder (skills/sector-pe-ratios in OctagonAI/skills) into .claude/skills/sector-pe-ratios in your project. Claude Code loads it when a task matches its description.

How do I install Sector Pe Ratios in Codex?

Run `npx skills add OctagonAI/skills --skill sector-pe-ratios -a codex`. Or copy the skill folder (skills/sector-pe-ratios in OctagonAI/skills) into .agents/skills/sector-pe-ratios in your project. Codex loads it when a task matches its description.

Can I use Sector Pe Ratios in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add OctagonAI/skills --skill sector-pe-ratios -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/sector-pe-ratios, .gemini/skills/sector-pe-ratios, .github/skills/sector-pe-ratios and .opencode/skills/sector-pe-ratios in your project.

What does Sector Pe Ratios need to run?

SKILL.md names no scripts, command-line tools or credentials: Sector Pe Ratios is instructions for the agent only.

Does Sector Pe Ratios access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Sector Pe Ratios safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Sector Pe Ratios use?

Sector Pe Ratios is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Sector Pe Ratios use?

About 1.7k tokens (SKILL.md is roughly 6.7k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 2.4k tokens, read only when the agent opens those files.

What are the alternatives to Sector Pe Ratios?

Skills that share tags, products or a category with Sector Pe Ratios: Tradingview MCP (atilaahmettaner/tradingview-mcp, 5k stars), Okx Cex Market (dex-original/okx-agent-trade-kit, 110 stars), Polymarket Tennis (livetennisapi/livetennisapi-mcp, 152 stars) and Okx Sentiment Tracker (dex-original/okx-agent-trade-kit, 110 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Sector Pe Ratios?

OctagonAI (a GitHub organization) maintains it in OctagonAI/skills, which has 127 GitHub stars. The repository holds 53 skills in this directory. The repository was last updated on June 5, 2026.

Source: OctagonAI/skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.