look-02-cost-structure

Compute four annual expense ratios and YoY changes from consolidated reports.

2|1|Updated Apr 17, 2026
One-click install
npx skills add https://github.com/shadowinlife/nano_quant_skills --skill look-02-cost-structure
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: look-02-cost-structure
Source: https://github.com/shadowinlife/nano_quant_skills/tree/main/2min-company-analysis/look-02-cost-structure
Command: npx skills add https://github.com/shadowinlife/nano_quant_skills --skill look-02-cost-structure

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires duckdb, and includes scripts (resource) components.

What problem does it solve?

This skill automates the calculation and verification of a company's cost structure by deriving four key expense ratios (sales, admin, financial, and R&D) and their year-over-year changes, then assesses their alignment with revenue growth over a defined lookback period.

Core Features & Use Cases

  • Expense ratio computation: derives saleexp_to_gr, adminexp_of_gr, finaexp_of_gr, and rdexp_to_gr from consolidated annual reports (end_date = 12/31) and visible data as of a given date.
  • Growth-mismatch detection: flags years where expense growth exceeds or misaligns with revenue growth, enabling targeted audits.
  • Flexible lookback & outputs: supports a configurable number of past years and returns both markdown and JSON payloads for downstream automation.

Quick Start

Run the look-02 Cost Structure analysis for a target stock and date to obtain the yearly expense ratios and growth-mismatch evidences.

Frequently Asked Questions about look-02-cost-structure

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I calculate expense ratios and detect cost-structure mismatches with revenue growth?

To calculate expense ratios and detect cost-structure mismatches, derive four key expense ratios (sales, admin, financial, R&D) from consolidated annual reports and flag years where expense growth misaligns with revenue growth.

What financial data do I need to compute annual cost-structure indicators for a stock?

You need consolidated annual financial reports filtered by an end_date of Dec 31, visible as of your target date, to compute annual cost-structure indicators and derive the four expense ratios with their year-over-year changes.

Can I use DuckDB to backtest cost-structure rules across multiple years?

Yes, you can use DuckDB to backtest cost-structure rules across multiple years by querying consolidated annual reports, calculating expense ratios, and validating revenue-expense alignment over your configured lookback period.

Does the cost-structure analysis output support JSON formats for downstream automation?

Yes, the cost-structure analysis output supports JSON formats for downstream automation, returning both markdown and JSON payloads containing yearly expense ratios and growth-mismatch evidences for your target stock.

Why should I filter annual reports to end_date Dec 31 for expense ratio computation?

Filtering annual reports to an end_date of Dec 31 ensures accurate expense ratio computation by standardizing annual aggregation, preventing mixed periods from skewing the year-over-year changes and cost-structure mismatch alerts.