Generated banner for Market Research Reports
Generated logo for Market Research Reports

Market Research Reports

K-DenseCommunityCreated by K-Dense Inc.

  • Skill
  • Content generator
  • Science and research
  • MIT
  • Low risk
  • Has scripts

From the author

Build evidence-traceable market research reports and assumption-driven market sizing or forecast scenarios. Use for market definition, industry and customer evidence, competitive landscapes, TAM/SAM/SOM reconciliation, forecast sensitivity, and auditable report scaffolds.
— the description by K-Dense Inc.

AutoGineer summary

Written by AutoGineer from the skill’s own files, not by the author

Market Research Reports provides a rigorous, procedural framework for conducting market analysis that prioritizes provenance and auditability. It guides users through defining market boundaries, establishing a source ledger, mapping claims to evidence, and performing market sizing using both top-down and bottom-up methods. The skill emphasizes the importance of maintaining explicit assumptions, managing uncertainty, and reconciling conflicting data, ensuring that every quantitative claim or forecast is traceable to its original source.

What it does

  • Establishes a formal research contract to define scope, metrics, and objectives.
  • Creates a structured ledger to track and validate all evidence sources.
  • Maps individual claims to specific source IDs to ensure auditability.
  • Calculates market size using both top-down and bottom-up methodologies.
  • Generates scenario-based forecasts with explicit sensitivity analysis.
  • Provides templates for competitor matrices and report scaffolds.

When to use it

  • When you need to produce a market report where every claim must be verifiable.
  • When performing TAM/SAM/SOM analysis that requires rigorous reconciliation.
  • When you need to build forecast scenarios based on transparent, auditable assumptions.
  • When conducting competitive landscape analysis using public, lawful data.
  • When you need to maintain consistency across complex datasets with varying units or currencies.

Advantages

  • High degree of auditability through claim-to-source mapping.
  • Reduces bias by enforcing strict definitions and measurement guardrails.
  • Promotes transparency by explicitly documenting uncertainty and limitations.
  • Provides a deterministic approach to market sizing and forecasting.
  • Includes standardized templates and validation scripts to ensure data integrity.

Usage examples

“Help me define the market scope for a new SaaS product in the logistics sector.”
The agent will guide you through establishing a research contract, defining the buyer, user, geography, and relevant industry taxonomy to set a clear denominator for your analysis.
“How do I reconcile two different estimates for the total addressable market?”
The agent will help you compare the definitions, periods, and methodologies of both sources, calculate the gap, and document the reconciliation or range of estimates.
“Create a scaffold for a competitive landscape report.”
The agent will provide a structured Markdown workspace and guide you through populating a competitor feature matrix using validated, dated evidence.
“How can I ensure my market forecast is not just a single guess?”
The agent will assist you in building multiple scenarios (e.g., downside, base, upside) with explicit driver equations and sensitivity analysis for each.

Install

  1. Download the skill as a ZIP:

    https://autogineer.com/agent-skills/k-dense-ai/market-research-reports-lm3f/download
  2. Unzip it into the cross-client skills folder of your project:

    mkdir -p .agents/skills && unzip market-research-reports.zip -d .agents/skills

Documentation by K-Dense Inc.

Market Research Reports

Purpose

Create decision-focused market reports whose claims, calculations, assumptions, and uncertainties can be audited. Match depth and format to the question and evidence. There is no required length, chapter count, visual count, or output format.

Do not:

  • imitate or imply affiliation with a consulting, analyst, or research brand;

  • invent citations, quotes, market shares, or paid-market figures;

  • present TAM/SAM/SOM or a forecast as one certain truth;

  • treat a framework, chart, or fluent narrative as evidence;

  • provide investment, legal, antitrust, tax, accounting, or regulatory advice.

Operating principles

  1. Define before sizing. Fix product, customer, geography, channel, period, measure, unit, denominator, currency/base year, and taxonomy.

  2. Map every claim. Every factual or quantitative claim has a claim ID and exact source IDs.

  3. Separate statement types. Distinguish facts, estimates, calculations, forecasts, opinions, and recommendations.

  4. Prefer primary evidence. Use official statistics, regulator records, filed company disclosures, and transparent original studies before secondary synthesis.

  5. Preserve uncertainty. Retain source conflicts, revisions, scenario ranges, sensitivity, and limitations.

  6. Keep methods reproducible. Use local structured inputs and deterministic calculations when practical.

  7. Collect lawfully and ethically. No deception, PII disclosure, access circumvention, confidential material, or trade-secret acquisition.

Workflow

1. Establish the research contract

Clarify:

  • decision, audience, deadline, and materiality threshold;

  • formal market definition and adjacent exclusions;

  • buyer, payer, user, transaction, and value-chain level;

  • geography and treatment of imports, exports, and channels;

  • historical period, forecast period, and retrieval cutoff;

  • revenue/expenditure, gross output/value added, units, capacity, users, or another measure;

  • stock/flow, gross/net, taxes, and denominator;

  • currency, base year, and nominal/real/current/constant basis;

  • industry and product classification with version;

  • permitted data sources, primary research, confidentiality, and output format.

Ask a focused question when a missing choice would materially change the denominator or result. Otherwise state a provisional scope and proceed.

Use references/report_structure_guide.md for modular report design.

2. Build the evidence plan

Route each question to the source closest to the underlying event:

  1. primary law, regulator decision, official filing, or official statistic;

  2. original company filing or attributable first-party disclosure;

  3. transparent survey/study with inspectable methods;

  4. institutional or peer-reviewed research using identifiable primary data;

  5. industry association data with disclosed coverage;

  6. reputable secondary synthesis;

  7. lawfully accessed paid estimate with inspectable scope and method;

  8. news/commentary for leads or attributable events.

For company data, prefer the official filing system in the relevant jurisdiction. For industry, labor, prices, population, trade, and national accounts, prefer the responsible national statistical agency or central bank. For cross-country work, use harmonized World Bank, IMF, OECD, or Eurostat data only after checking definitions and original-source lineage.

Read references/official_data_sources.md before using public APIs. API rules and limits are a dated snapshot: verify current official terms before automated or high-volume retrieval. Never put an API key in a report or bundled script.

3. Create the source ledger

Assign stable IDs (S-001, S-002, ...). Record:

  • title, publisher, URL/persistent ID, source type;

  • publication date and retrieval date;

  • original producer when accessed through an aggregator;

  • geography, covered population, period, and vintage;

  • currency, base year, price basis, measure type, unit, and denominator;

  • taxonomy and version;

  • preliminary/revised/final/current status;

  • method, sample, imputation, suppression, and limitations;

  • license/terms and lawful local snapshot path.

Use assets/source_ledger_template.csv and validate it:

python3 scripts/validate_evidence_ledger.py data/source_ledger.csv

If publication date is unavailable, record not-stated; do not guess.

4. Maintain a claims ledger

Assign IDs (C-001, ...). Keep the exact claim text, statement type, source IDs, report location, as-of date, geography, currency/base, measure/unit, taxonomy, revision status, confidence, calculation ID, and assumption IDs.

Rules:

  • one end-of-paragraph citation does not support unrelated sentences;

  • split compound claims that rely on different evidence;

  • a calculation cites its inputs, not a source that never published the result;

  • an aggregator and its original source are not independent corroboration;

  • an interview theme is not population prevalence;

  • absence of public feature evidence means unknown, not no.

Audit mappings:

python3 scripts/audit_claim_citations.py \
  data/claims.csv data/source_ledger.csv

See references/evidence_model.md.

5. Size the market as scenarios
Measurement guardrails

Give every component a disjoint coverage_key and one shared denominator_id. Do not add:

  • manufacturer revenue to distributor or end-customer spend;

  • production, imports, and sales without trade/inventory reconciliation;

  • parent and subsidiary revenue;

  • bundles and their included components;

  • gross output and value added;

  • installed-base stock and annual transaction flow;

  • overlapping customer or geographic segments.

Use product classifications and supply-use logic when industry codes are too broad. Preserve an unknown/residual category instead of forcing totals.

Top-down and bottom-up

Compute independently:

TAM_top = sum(disjoint in-scope component values)

TAM_bottom =
  sum(customer_count
      * addressable_fraction
      * annual_quantity_per_customer
      * price_per_unit)

Then apply scenario-specific serviceability and capture assumptions:

SAM_s = TAM * serviceable_fraction_s
SOM_s = SAM_s * obtainable_share_s

Use at least two genuinely different scenarios; a downside/base/upside set is usually useful. State horizon, constraints, evidence, and assumptions. SOM is not a guaranteed revenue forecast.

Run the deterministic calculator:

python3 scripts/calculate_market_sizing.py \
  assets/market_sizing_scenarios_template.json

Report both methods, midpoint-relative gap, scope differences, sensitivity, and unresolved reconciliation. Do not average incompatible methods.

6. Forecast with explicit uncertainty

Separate observed, estimated, and forecast periods. Record series ID, frequency, units, seasonal adjustment, transformations, taxonomy breaks, retrieval date, and vintage/revisions.

For each scenario:

  • provide an annual rate path or driver equations;

  • state demand, price, supply, regulation, competition, capacity, and timing assumptions;

  • list evidence and assumption IDs;

  • identify conditions that invalidate the scenario.

Do not call scenario bounds confidence or prediction intervals. Do not assign probabilities without a validated probabilistic model and diagnostics.

Run:

python3 scripts/forecast_sensitivity.py \
  assets/forecast_sensitivity_template.json

Show the range by year, endpoint sensitivity, influential assumptions, and switching values. See references/data_analysis_patterns.md.

7. Analyze customers and primary research

For survey evidence, disclose sponsor, target population, frame, probability/non-probability design, recruitment, mode/language, field dates, unweighted sample, subgroup bases, weighting, response/participation, instrument wording, precision, processing, and limitations.

For interviews/focus groups, disclose recruitment, consent, role coverage, dates/mode, guide, coding, divergent evidence, privacy controls, and limits to generalization.

Never:

  • collect more personal data than necessary;

  • place direct identifiers or raw recordings in report artifacts;

  • use research as disguised selling or lead generation;

  • misrepresent identity/purpose;

  • pressure participants to reveal employer/customer secrets;

  • report qualitative mention counts as market prevalence.

Follow references/methods_and_ethics.md.

8. Analyze competitors and concentration

Define product and geographic scope from the customer perspective before selecting competitors or calculating shares. Consider non-price dimensions, channels, imports, digital/multi-sided features, innovation, and dynamic change where relevant.

Use lawful public evidence and a common product edition, geography, and as-of date. Validate a complete matrix:

python3 scripts/validate_competitor_matrix.py \
  assets/competitor_feature_matrix_template.csv \
  --source-ledger assets/source_ledger_template.csv

For shares, state revenue/units/capacity/users or other metric, denominator, period, residual share, and source coverage. HHI/CRn are descriptive screens, not legal conclusions. A TAM category is not automatically a relevant antitrust market.

9. Normalize units and definitions

Before combining values:

  • align geography, period, stock/flow, gross/net, unit, and denominator;

  • convert currencies with an identified source and rate convention;

  • align base year and nominal/real basis;

  • do not force chained-dollar additivity;

  • preserve taxonomy versions and document concordance uncertainty;

  • record every conversion as a calculation.

Check comparison groups:

python3 scripts/check_unit_consistency.py \
  assets/consistency_check_template.csv
10. Draft and review

Lead with findings and uncertainty, not frameworks. Use optional frameworks only to organize questions; do not force scores or a fixed number of factors. Keep recommendations separate from evidence and include dependencies, trade-offs, decision thresholds, and disconfirming evidence.

Visuals are optional. If used, build them from validated local data and include scope, units, source IDs, calculation ID, observed/forecast distinction, and limitations. See references/visual_generation_guide.md.

Generate a Markdown workspace:

python3 scripts/generate_report_scaffold.py \
  assets/report_manifest_template.json ./market-report-workspace

Or use the optional LaTeX assets:

  • assets/market_report_template.tex

  • assets/market_research.sty

  • assets/FORMATTING_GUIDE.md

Release gate

  • Market boundary, taxonomy, denominator, geography, and period are explicit.

  • Every factual/quantitative claim maps to exact source IDs.

  • Publication/retrieval dates, revisions, method, and limitations are recorded.

  • Currency/base year, nominal/real basis, stock/flow, and units are consistent.

  • Top-down and bottom-up methods use disjoint coverage and are reconciled.

  • TAM/SAM/SOM and forecasts are conditional scenarios with sensitivity.

  • Survey/interview evidence carries method, privacy, and inference limits.

  • Competitor evidence is lawful, dated, scoped, and uses unknown honestly.

  • Source conflicts and revisions remain visible.

  • No fabricated/unsupported paid figures, PII, trade secrets, deceptive collection, brand impersonation, or investment-advice framing appears.

Bundled resources

References
  • references/report_structure_guide.md — modular report architecture.

  • references/evidence_model.md — claim-source mapping and provenance.

  • references/data_analysis_patterns.md — sizing, forecast, consistency, survey, and concentration methods.

  • references/official_data_sources.md — current official source/API routing.

  • references/methods_and_ethics.md — survey, interview, privacy, competitor, and antitrust safeguards.

  • references/visual_generation_guide.md — optional evidence-led displays.

  • references/sources.md — dated authoritative source ledger.

Templates and CLIs

Use the templates in assets/ as synthetic schemas, not real-world evidence. All scripts in scripts/ are standard-library, bounded, local-only tools. They reject oversized or malformed input, do not follow symlink inputs, do not overwrite outputs without explicit permission, and make no network, LLM, image, dynamic-evaluation, or pickle calls.

Citing Scientific Agent Skills

This skill is part of Scientific Agent Skills by K-Dense. If it materially contributed to a manuscript, report, presentation, or code release, add the paper to the references or software section and tell the user you did so:

Kassis, T., Agarwal, V., He, Y., Patel, D., & Brueckner, A. M. (2026). Scientific Agent Skills: A Library of Procedural Knowledge for Research Agents. arXiv:2609.00065. https://doi.org/10.48550/arXiv.2609.00065

Always cite the current version. The DOI and https://arxiv.org/abs/2609.00065 resolve to the latest arXiv version, so never append a version suffix such as v1. When network access is available, fetch https://arxiv.org/abs/2609.00065 (or http://export.arxiv.org/api/query?id_list=2609.00065) before writing the reference and take the author list, year, and version from that record. If the record lists a journal reference or publisher DOI, cite the published version instead.

Files

scripts/calculate_market_sizing.py

#!/usr/bin/env python3
"""Calculate bounded TAM/SAM/SOM scenarios and reconcile two sizing methods."""

from __future__ import annotations

import argparse
from pathlib import Path
from typing import Any

from _common import (
    ValidationError,
    error_exit,
    parse_currency,
    parse_fraction,
    parse_iso_date,
    parse_number,
    parse_year,
    read_json,
    require_identifier,
    require_list,
    require_object,
    require_text,
    require_unique_identifiers,
    write_json_report,
)

MAX_COMPONENTS = 1_000
MAX_SCENARIOS = 20
MAX_VALUE = 1e18


def _identifier_array(
    value: Any, context: str, *, minimum: int = 0
) -> list[str]:
    items = require_list(value, context, minimum=minimum, maximum=100)
    parsed = [
        require_identifier(item, f"{context}[{index}]")
        for index, item in enumerate(items)
    ]
    require_unique_identifiers(parsed, context)
    return parsed


def _metadata(payload: dict[str, Any]) -> dict[str, Any]:
    raw = require_object(payload.get("metadata"), "metadata")
    required = (
        "market_id",
        "market_definition",
        "geography",
        "currency",
        "base_year",
        "price_basis",
        "unit",
        "taxonomy",
        "taxonomy_version",
        "denominator_id",
        "as_of_date",
    )
    missing = [field for field in required if field not in raw]
    if missing:
        raise ValidationError(f"metadata is missing: {', '.join(missing)}")
    price_basis = require_text(raw["price_basis"], "metadata.price_basis", maximum=20)
    if price_basis not in {"nominal", "real", "current", "constant"}:
        raise ValidationError(
            "metadata.price_basis must be nominal, real, current, or constant"
        )
    return {
        "market_id": require_identifier(raw["market_id"], "metadata.market_id"),
        "market_definition": require_text(
            raw["market_definition"], "metadata.market_definition"
        ),
        "geography": require_text(raw["geography"], "metadata.geography"),
        "currency": parse_currency(raw["currency"], "metadata.currency"),
        "base_year": parse_year(raw["base_year"], "metadata.base_year"),
        "price_basis": price_basis,
        "unit": require_text(raw["unit"], "metadata.unit", maximum=80),
        "taxonomy": require_text(raw["taxonomy"], "metadata.taxonomy"),
        "taxonomy_version": require_text(
            raw["taxonomy_version"], "metadata.taxonomy_version"
        ),
        "denominator_id": require_identifier(
            raw["denominator_id"], "metadata.denominator_id"
        ),
        "as_of_date": parse_iso_date(raw["as_of_date"], "metadata.as_of_date"),
    }


def _top_down(payload: dict[str, Any], denominator_id: str) -> tuple[float, list[str]]:
    section = require_object(payload.get("top_down"), "top_down")
    components = require_list(
        section.get("components"),
        "top_down.components",
        minimum=1,
        maximum=MAX_COMPONENTS,
    )
    component_ids: list[str] = []
    coverage_keys: list[str] = []
    total = 0.0
    for index, item in enumerate(components):
        row = require_object(item, f"top_down.components[{index}]")
        component_id = require_identifier(
            row.get("component_id"),
            f"top_down.components[{index}].component_id",
        )
        component_ids.append(component_id)
        coverage_key = require_identifier(
            row.get("coverage_key"),
            f"top_down.components[{index}].coverage_key",
        )
        coverage_keys.append(coverage_key)
        row_denominator = require_identifier(
            row.get("denominator_id"),
            f"top_down.components[{index}].denominator_id",
        )
        if row_denominator != denominator_id:
            raise ValidationError(
                f"top_down component {component_id} uses denominator "
                f"{row_denominator!r}; expected {denominator_id!r}"
            )
        value = parse_number(
            row.get("value"),
            f"top_down.components[{index}].value",
            minimum=0.0,
            maximum=MAX_VALUE,
        )
        _identifier_array(
            row.get("source_ids"),
            f"top_down.components[{index}].source_ids",
            minimum=1,
        )
        _identifier_array(
            row.get("assumption_ids", []),
            f"top_down.components[{index}].assumption_ids",
        )
        total += value
        if total > MAX_VALUE:
            raise ValidationError("top_down TAM exceeds the supported numeric bound")
    require_unique_identifiers(component_ids, "top_down component IDs")
    require_unique_identifiers(
        coverage_keys,
        "top_down coverage keys (duplicate coverage can double count the market)",
    )
    return total, coverage_keys


def _bottom_up(
    payload: dict[str, Any], denominator_id: str
) -> tuple[float, list[str]]:
    section = require_object(payload.get("bottom_up"), "bottom_up")
    components = require_list(
        section.get("components"),
        "bottom_up.components",
        minimum=1,
        maximum=MAX_COMPONENTS,
    )
    component_ids: list[str] = []
    coverage_keys: list[str] = []
    total = 0.0
    for index, item in enumerate(components):
        row = require_object(item, f"bottom_up.components[{index}]")
        component_id = require_identifier(
            row.get("component_id"),
            f"bottom_up.components[{index}].component_id",
        )
        component_ids.append(component_id)
        coverage_key = require_identifier(
            row.get("coverage_key"),
            f"bottom_up.components[{index}].coverage_key",
        )
        coverage_keys.append(coverage_key)
        row_denominator = require_identifier(
            row.get("denominator_id"),
            f"bottom_up.components[{index}].denominator_id",
        )
        if row_denominator != denominator_id:
            raise ValidationError(
                f"bottom_up component {component_id} uses denominator "
                f"{row_denominator!r}; expected {denominator_id!r}"
            )
        customers = parse_number(
            row.get("customer_count"),
            f"bottom_up.components[{index}].customer_count",
            minimum=0.0,
            maximum=1e15,
        )
        annual_quantity = parse_number(
            row.get("annual_quantity_per_customer"),
            f"bottom_up.components[{index}].annual_quantity_per_customer",
            minimum=0.0,
            maximum=1e12,
        )
        price = parse_number(
            row.get("price_per_unit"),
            f"bottom_up.components[{index}].price_per_unit",
            minimum=0.0,
            maximum=1e15,
        )
        addressable_fraction = parse_fraction(
            row.get("addressable_fraction"),
            f"bottom_up.components[{index}].addressable_fraction",
        )
        _identifier_array(
            row.get("source_ids"),
            f"bottom_up.components[{index}].source_ids",
            minimum=1,
        )
        _identifier_array(
            row.get("assumption_ids", []),
            f"bottom_up.components[{index}].assumption_ids",
        )
        component_value = customers * annual_quantity * price * addressable_fraction
        if component_value > MAX_VALUE:
            raise ValidationError(
                f"bottom_up component {component_id} exceeds the numeric bound"
            )
        total += component_value
        if total > MAX_VALUE:
            raise ValidationError("bottom_up TAM exceeds the supported numeric bound")
    require_unique_identifiers(component_ids, "bottom_up component IDs")
    require_unique_identifiers(
        coverage_keys,
        "bottom_up coverage keys (duplicate coverage can double count the market)",
    )
    return total, coverage_keys


def _scenarios(payload: dict[str, Any]) -> list[dict[str, Any]]:
    raw_scenarios = require_list(
        payload.get("scenarios"),
        "scenarios",
        minimum=2,
        maximum=MAX_SCENARIOS,
    )
    scenarios: list[dict[str, Any]] = []
    scenario_ids: list[str] = []
    parameter_pairs: list[tuple[float, float]] = []
    for index, item in enumerate(raw_scenarios):
        row = require_object(item, f"scenarios[{index}]")
        scenario_id = require_identifier(
            row.get("scenario_id"), f"scenarios[{index}].scenario_id"
        )
        scenario_ids.append(scenario_id)
        serviceable = parse_fraction(
            row.get("serviceable_fraction"),
            f"scenarios[{index}].serviceable_fraction",
        )
        obtainable = parse_fraction(
            row.get("obtainable_share"),
            f"scenarios[{index}].obtainable_share",
        )
        parameter_pairs.append((serviceable, obtainable))
        assumptions = require_list(
            row.get("assumptions"),
            f"scenarios[{index}].assumptions",
            minimum=1,
            maximum=100,
        )
        parsed_assumptions = [
            require_text(value, f"scenarios[{index}].assumptions[{position}]")
            for position, value in enumerate(assumptions)
        ]
        scenarios.append(
            {
                "scenario_id": scenario_id,
                "label": require_text(
                    row.get("label"), f"scenarios[{index}].label", maximum=120
                ),
                "serviceable_fraction": serviceable,
                "obtainable_share": obtainable,
                "source_ids": _identifier_array(
                    row.get("source_ids", []),
                    f"scenarios[{index}].source_ids",
                ),
                "assumptions": parsed_assumptions,
            }
        )
    require_unique_identifiers(scenario_ids, "scenario IDs")
    if len(set(parameter_pairs)) < 2:
        raise ValidationError(
            "at least two scenarios must use different sizing assumptions"
        )
    return scenarios


def calculate(payload: dict[str, Any]) -> dict[str, Any]:
    schema_version = require_text(
        payload.get("schema_version"), "schema_version", maximum=10
    )
    if schema_version != "1.0":
        raise ValidationError("schema_version must be '1.0'")
    metadata = _metadata(payload)
    top_down_tam, top_keys = _top_down(payload, metadata["denominator_id"])
    bottom_up_tam, bottom_keys = _bottom_up(payload, metadata["denominator_id"])
    scenarios = _scenarios(payload)
    tolerance = parse_number(
        payload.get("reconciliation_tolerance_percent", 20.0),
        "reconciliation_tolerance_percent",
        minimum=0.0,
        maximum=100.0,
    )

    midpoint = (top_down_tam + bottom_up_tam) / 2.0
    reconciliation_percent = (
        0.0
        if midpoint == 0.0
        else abs(top_down_tam - bottom_up_tam) / midpoint * 100.0
    )
    warnings: list[str] = []
    if reconciliation_percent > tolerance:
        warnings.append(
            "top-down and bottom-up TAM estimates exceed the stated "
            "reconciliation tolerance; investigate scope, denominators, and assumptions"
        )
    if set(top_keys) != set(bottom_keys):
        warnings.append(
            "the methods use different coverage-key sets; explain the scope difference "
            "before treating them as direct reconciliation estimates"
        )

    scenario_results: list[dict[str, Any]] = []
    for scenario in scenarios:
        methods: dict[str, dict[str, float]] = {}
        for method, tam in (
            ("top_down", top_down_tam),
            ("bottom_up", bottom_up_tam),
        ):
            sam = tam * scenario["serviceable_fraction"]
            som = sam * scenario["obtainable_share"]
            methods[method] = {"tam": tam, "sam": sam, "som": som}
        scenario_results.append({**scenario, "methods": methods})

    all_som = [
        result["methods"][method]["som"]
        for result in scenario_results
        for method in ("top_down", "bottom_up")
    ]
    return {
        "schema_version": "1.0",
        "metadata": metadata,
        "method_estimates": {
            "top_down_tam": top_down_tam,
            "bottom_up_tam": bottom_up_tam,
        },
        "reconciliation": {
            "absolute_difference": abs(top_down_tam - bottom_up_tam),
            "difference_percent_of_midpoint": reconciliation_percent,
            "tolerance_percent": tolerance,
            "within_tolerance": reconciliation_percent <= tolerance,
        },
        "scenario_results": scenario_results,
        "som_range_across_methods_and_scenarios": {
            "minimum": min(all_som),
            "maximum": max(all_som),
        },
        "warnings": warnings,
        "interpretation": (
            "These are conditional scenario calculations, not a single asserted "
            "market truth."
        ),
    }


def build_parser() -> argparse.ArgumentParser:
    parser = argparse.ArgumentParser(
        description=(
            "Calculate local top-down and bottom-up TAM/SAM/SOM scenarios, "
            "detect duplicate coverage keys, and report reconciliation."
        )
    )
    parser.add_argument("input", help="Local .json market-sizing input")
    parser.add_argument("--output", help="Optional local .json result")
    parser.add_argument(
        "--force", action="store_true", help="Replace an existing --output file"
    )
    return parser


def main() -> int:
    args = build_parser().parse_args()
    try:
        payload = require_object(read_json(args.input), "root")
        write_json_report(calculate(payload), args.output, force=args.force)
        return 0
    except ValidationError as exc:
        return error_exit(exc)


if __name__ == "__main__":
    raise SystemExit(main())

Requirements and compatibility

Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta

“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.

Needs: Needs network access, Needs an API key, Needs Python

The author says: Python 3.11+ standard library for optional offline CLIs. The optional LaTeX template uses XeLaTeX or LuaLaTeX. Online research requires user-approved network access and source-specific terms; bundled scripts make no network, LLM, or image calls.

Security

What our scanner noticed· Low risk

  • Scripts that your agent may run

This skill includes scripts that your agent may run. Read them before you use it.

A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.

Attribution and licence

Created by
K-Dense Inc.
Publisher
K-Dense (Community)
Source
K-Dense-AI/claude-scientific-writer · skills/market-research-reports · commit 529b9f7
Licence
MIT License (redistribution allowed)
  • LICENSE (added by AutoGineer from LICENSE)
  • ATTRIBUTION.md (written by AutoGineer)
Synced
Also distributed in
K-Dense-AI/claude-scientific-writer

AutoGineer is not affiliated with or endorsed by K-Dense Inc. or K-Dense.

Download ZIP

The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download market-research-reports.zip