chart-data-extractor
$
npx mdskill add mohitagw15856/pm-claude-skills/chart-data-extractorExtracts data from images of charts and graphs — bar charts, line charts, pie charts, scatter plots, and tables in images — producing a structured data table that can be used in spreadsheets or rebuilt in any charting tool. Built to leverage Opus 4.7 pixel-level image analysis capabilities.
SKILL.md
.github/skills/chart-data-extractorView on GitHub ↗
--- name: chart-data-extractor description: "Extract pixel-level data from an image of a chart or graph and produce a structured data table. Use when asked to extract data from a chart image, transcribe numbers from a graph, digitise a chart, or turn a screenshot of data into a table. Produces a structured table with extracted values, confidence levels, and a reconstructed chart source. Best used with Claude Opus 4.7 or newer for reliable chart data extraction." --- # Chart Data Extractor Skill Extracts data from images of charts and graphs — bar charts, line charts, pie charts, scatter plots, and tables in images — producing a structured data table that can be used in spreadsheets or rebuilt in any charting tool. Built to leverage Opus 4.7 pixel-level image analysis capabilities. ## Required Inputs Ask the user for these if not provided: - **The chart image** (upload a screenshot or image file) - **Chart type** (if ambiguous — bar / line / pie / scatter / other) - **What matters most** (approximate trends / precise values / specific data points / categorisation) - **Known axis values** (optional — if the user knows the max/min values to anchor the extraction) ## Output Structure ### 1. Chart Identification | Attribute | Value | |---|---| | Chart type | [Bar / Line / Pie / Scatter / Area / Other] | | Chart title (if visible) | [Title text] | | X-axis label | [Label + unit] | | Y-axis label | [Label + unit] | | Number of series | N | | Legend categories | [List] | | Data period (if time-based) | [Start — End] | ### 2. Extracted Data Table | [X axis] | [Series 1] | [Series 2] | ... | |---|---|---|---| | [Value] | [Value] | [Value] | | ### 3. Confidence Levels For each data point or series, flag confidence: - **High confidence:** data points where the value is clearly readable against gridlines or labels - **Medium confidence:** data points where the value is interpolated between gridlines - **Low confidence:** data points where the value is ambiguous or overlaps with other elements Low-confidence points should be explicitly listed — not silently included in the main table. ### 4. Notable Observations Observations that the data itself reveals: - Peak value: [Value, when, in which series] - Lowest value: [Value, when, in which series] - Largest delta between series: [Details] - Any anomalies or outliers visible in the chart ### 5. Reconstructed Source CSV format for direct use: ```csv [x_axis],[series_1],[series_2] [value],[value],[value] ``` ### 6. Assumptions and Caveats - Grid resolution: [How precisely values could be read — e.g. "Y-axis has major gridlines every 10 units, minor every 2"] - Interpolation used: [Any values that required estimating between gridlines] - Unclear data: [Anything in the chart that could not be read reliably] - Axis scale: [Linear/logarithmic/etc — note if not obvious] ### 7. Follow-up Options Ask the user which of these they want: - Rebuild the chart in a specified format (Excel formula, Python matplotlib, D3, etc.) - Produce a narrative description of what the chart shows - Compare this data against another chart or source - Flag potentially misleading visual choices in the original (truncated axes, misleading scales, etc.) ## Quality Checks - [ ] Every extracted number specifies which series it belongs to - [ ] Confidence levels are explicit for ambiguous points - [ ] Low-confidence values are flagged separately, not silently included - [ ] Assumptions about axis scale and interpolation are stated - [ ] CSV output is clean and directly usable ## Example Trigger Phrases - "Extract the data from this chart" - "Transcribe the numbers in this graph" - "Turn this chart image into a spreadsheet" - "Digitise this chart so I can rebuild it" - "What are the exact values in this bar chart?" ## Why This Works Better on Opus 4.7 Earlier models struggled with pixel-level data transcription from charts, often hallucinating values or misreading gridline positions. Opus 4.7 uses a higher image resolution (2576px vs 1568px) with coordinates mapping 1:1 to pixels, making chart data extraction reliable for practical use.
More from mohitagw15856/pm-claude-skills
- 360-feedback-templateDesign a 360-degree feedback survey or write a structured 360 feedback report. Use when asked to build a 360 feedback process, write 360 feedback for a colleague, design a feedback survey, or produce a feedback report. Produces either a complete survey instrument with rating scales and open-ended questions, or a structured narrative feedback report with themes, strengths, and development areas.
- ab-test-plannerDesign statistically rigorous A/B tests for product features, UI changes, onboarding flows, and pricing experiments. Use when asked to set up an experiment, design an A/B test, calculate sample size, or interpret test results. Produces a complete test plan with hypothesis, variant definitions, sample size, duration estimate, guardrail metrics, and a results interpretation guide.
- accessibility-auditGenerate a WCAG 2.2 accessibility audit checklist and remediation suggestions for any UI or design. Use when asked to audit for accessibility, check WCAG compliance, review a design for a11y issues, or create an accessibility remediation plan. Produces a prioritised checklist with pass/fail assessments and specific fixes.
- account-planBuild a structured account plan for any key customer or target account. Use when asked to create an account plan, key account strategy, strategic account review, or territory plan. Produces a complete account plan with relationship map, growth opportunities, risks, and 90-day action plan.
- aeo-optimizerOptimize an article for Answer Engine Optimization (AEO) — restructuring content so AI engines like ChatGPT, Perplexity, and Claude can extract, quote, and cite it. Rewrites headings as questions, drops 50-80 word answer capsules, audits paragraph length, and flags trust signals. Use when asked to AEO-optimize, make content AI-readable, improve AI citation chances, or adapt an article for answer engines.
- ai-ethics-reviewConduct an ethical review of an AI or ML feature, model, or product. Use when asked to run an AI ethics review, assess AI risks, audit a model for bias, or produce an AI impact assessment. Produces a structured ethics review covering fairness, transparency, privacy, safety, accountability, and societal impact with prioritised mitigations.
- ai-product-canvasStructure AI and ML product decisions with the rigour of any product decision. Use when building AI-powered features, evaluating LLM integrations, designing AI products, or assessing AI readiness. Produces a complete AI product canvas covering problem definition, model approach, data requirements, evaluation framework, UX design, responsible AI checklist, and launch monitoring plan.
- ambiguity-resolverStructure vague opportunities and unclear briefs into actionable one-page problem statements. Use when asked to clarify a vague brief, frame an undefined problem, make sense of an unclear opportunity, or when the user says 'we need to figure out what to do about X' or 'I've been asked to look into Y'. Produces a structured problem brief with reframed questions, scoped boundaries, and a minimum viable research plan.
- api-docs-writerWrite clear, developer-facing API documentation. Use when asked to document an API endpoint, write API reference docs, create a developer guide, or turn a raw spec/Postman collection into documentation. Produces endpoint documentation with descriptions, parameters, request/response examples, and error codes.
- api-versioning-strategyWrite an API versioning strategy document for a service or API platform. Use when asked to define versioning policy, plan API deprecation, classify breaking changes, or document version lifecycle. Produces a complete versioning strategy with breaking-change classification table, deprecation timeline, migration guide template, and client communication template.