financial-metrics-analysis — Claude Code skill: YoY revenue
This skill pulls year-over-year growth for income statement lines through Octagon MCP and returns it as a table. Useful when you need to compare revenue, COGS and net income across fiscal periods.
npx skills add OctagonAI/skills --skill financial-metrics-analysis -a claude-codeWhat financial-metrics-analysis does
The skill sits on top of the Octagon MCP server. You give it a ticker, a record count and a period type (fiscal year or quarterly), and the agent calls the octagon-agent tool with a plain-language prompt. The result is a table of YoY percentages across five lines: Revenue Growth, Cost of Revenue Growth, Gross Profit Growth, Operating Income Growth and Net Income Growth. Data comes from octagon-companies-agent and octagon-financials-agent.
Octagon MCP has to be configured in your agent first. Without it the skill has nowhere to send the query and the call fails. Setup steps live in references/mcp-setup.md inside the skill.
There is guidance on reading the numbers: revenue versus net income divergence, operating leverage signals, margin compression. If Cost of Revenue outgrows Revenue, margins are shrinking, and that is worth checking against the cost side. A flip from negative to positive growth often marks a turnaround.
What it helps with
- compare revenue and net income growth over five years
- spot cost of revenue rising faster than revenue
- catch a swing from declining to growing profit
- read operating leverage from the gap between operating income and revenue
- build a YoY growth table for several tickers
Example prompts for the agent
- Retrieve year-over-year growth in key income-statement items for AAPL, limited to 5 records and filtered by period FY
- Show quarterly revenue and net income growth for TSLA, limited to 8 records
- Compare operating income and revenue growth for MSFT, limited to 10 records, period FY
How to install financial-metrics-analysis
1Skills CLI (Vercel)
npx skills add OctagonAI/skills --skill financial-metrics-analysis -a claude-code2Manually: put the files in place
~/.claude/skills/financial-metrics-analysis/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/financial-metrics-analysis/
1Skills CLI (Vercel)
npx skills add OctagonAI/skills --skill financial-metrics-analysis -a codex2Manually: put the files in place
.agents/skills/financial-metrics-analysis/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add OctagonAI/skills --skill financial-metrics-analysis -a cursor2Manually: put the files in place
.cursor/skills/financial-metrics-analysis/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install OctagonAI/skills financial-metrics-analysis2Manually: put the files in place
.github/skills/financial-metrics-analysis/SKILL.md1Skills CLI (Vercel)
npx skills add OctagonAI/skills --skill financial-metrics-analysis -a gemini-cli2Platform CLI
gemini skills install https://github.com/OctagonAI/skills --path skills/financial-metrics-analysisManually: put the files in place
.devin/skills/financial-metrics-analysis/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add OctagonAI/skills --skill financial-metrics-analysis -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about financial-metrics-analysis
How do I install financial-metrics-analysis in Claude?
Run npx skills add OctagonAI/skills --skill financial-metrics-analysis -a claude-code. The skill lands at ~/.claude/skills/financial-metrics-analysis/SKILL.md.
What does financial-metrics-analysis do?
It retrieves YoY growth for revenue, cost of revenue, gross profit, operating income and net income of a public company via Octagon MCP, and returns the figures as a table.
What do I need before using it?
A configured Octagon MCP server in your agent. The setup steps are in references/mcp-setup.md.
Source text
SKILL.md · MIT
---
name: financial-metrics-analysis
description: Analyze year-over-year growth in income statement items and financial metrics using Octagon MCP. Use when retrieving YoY Revenue Growth, Cost of Revenue Growth, Gross Profit Growth, Operating Income Growth, Net Income Growth, or comparing financial performance across fiscal periods for any public company.
---
# Financial Metrics Analysis
Retrieve and analyze year-over-year growth in key income statement items for public companies 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](references/mcp-setup.md) for installation instructions.
## Workflow
### 1. Identify Analysis Parameters
Determine the following before querying:
- **Ticker**: Stock symbol (e.g., AAPL, MSFT, GOOGL)
- **Records**: Number of periods to retrieve (e.g., 5 years)
- **Period**: FY (fiscal year) or Q (quarterly)
### 2. Execute Query via Octagon MCP
Use the `octagon-agent` tool with a natural language prompt:
```
Retrieve year-over-year growth in key income-statement items for <TICKER>, limited to <N> records and filtered by period <FY|Q>.
```
**MCP Call Format:**
```json
{
"server": "octagon-mcp",
"toolName": "octagon-agent",
"arguments": {
"prompt": "Retrieve year-over-year growth in key income-statement items for AAPL, limited to 5 records and filtered by period FY"
}
}
```
### 3. Expected Output
The agent returns a tabular response with YoY growth percentages:
| Year | Revenue Growth | Cost of Revenue Growth | Gross Profit Growth | Operating Income Growth | Net Income Growth |
|------|----------------|------------------------|---------------------|-------------------------|-------------------|
| 2024 | 2.0% | 1.5% | 3.1% | 5.2% | 4.8% |
| 2023 | -2.8% | -1.2% | -4.5% | -8.1% | -10.2% |
| ... | ... | ... | ... | ... | ... |
**Data Sources**: octagon-companies-agent, octagon-financials-agent
### 4. Interpret Results
See [references/interpreting-results.md](references/interpreting-results.md) for guidance on:
- Reading growth percentages
- Identifying trends and inflection points
- Spotting operating leverage signals
- Comparing to industry benchmarks
## Example Queries
**Basic YoY Analysis:**
```
Retrieve year-over-year growth in key income-statement items for AAPL, limited to 5 records and filtered by period FY.
```
**Quarterly Analysis:**
```
Retrieve year-over-year growth in key income-statement items for TSLA, limited to 8 records and filtered by period Q.
```
**Extended Historical View:**
```
Retrieve year-over-year growth in key income-statement items for MSFT, limited to 10 records and filtered by period FY.
```
## Key Metrics Explained
| Metric | Definition |
|--------|------------|
| Revenue Growth | YoY change in total revenue/sales |
| Cost of Revenue Growth | YoY change in direct costs (COGS) |
| Gross Profit Growth | YoY change in Revenue minus COGS |
| Operating Income Growth | YoY change in income from operations |
| Net Income Growth | YoY change in bottom-line profit |
## Analysis Tips
1. **Revenue vs Net Income divergence**: If Net Income grows faster than Revenue, the company is improving margins or reducing costs.
2. **Operating leverage**: When Operating Income grows faster than Revenue, fixed costs are being spread over more sales.
3. **Margin compression**: If Cost of Revenue grows faster than Revenue, margins are declining.
4. **Consistency**: Look for companies with consistent positive growth across all metrics.
5. **Trend reversals**: A switch from negative to positive growth often signals a turnaround.
© OctagonAI · MIT · OctagonAI/skills