charts-3d

charts-3d is a skill for Claude Code from rshankras/claude-code-apple-skills. It costs 61 tokens per session (5,367 once invoked), scanned A, original, MIT.

A guide to making two-dimensional and three-dimensional charts in SwiftUI with Swift Charts. It covers plotted data, surfaces, axes, selection, styling, and interactive camera movement for 3D views.

In plain words
What is it for?
Use it to build 2D charts, pie or donut charts, scrollable charts, data-driven 3D surfaces, mathematical surface plots, and drag-to-rotate chart views.
Why use it?
It provides concrete patterns for turning data or mathematical functions into charts without having to work out the chart structure from scratch. It also addresses interaction and presentation choices for 3D visualizations.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: positional $N argument.

Part of the apple-skills plugin — 182 skills shipped together , and of apple-skills

Good fit Use it to build 2D charts, pie or donut charts, scrollable charts, data-driven 3D surfaces, mathematical surface plots, and drag-to-rotate chart views.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rshankras/claude-code-apple-skills/charts-3d
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add rshankras/claude-code-apple-skills --skill charts-3d
Clone the repo
git clone --depth 1 https://github.com/rshankras/claude-code-apple-skills

Made for: Claude Code.

Or install apple-skills, the plugin that ships this one along with the rest of its 182 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for charts-3d

README.md
[![agentmods](https://agentmods.dev/badge/skills/rshankras/claude-code-apple-skills/charts-3d/github.svg)](https://agentmods.dev/skills/rshankras/claude-code-apple-skills/charts-3d)
Your own site
<a href="https://agentmods.dev/skills/rshankras/claude-code-apple-skills/charts-3d"><img src="https://agentmods.dev/badge/skills/rshankras/claude-code-apple-skills/charts-3d/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for charts-3d

Your own site · 80×15
<a href="https://agentmods.dev/skills/rshankras/claude-code-apple-skills/charts-3d"><img src="https://agentmods.dev/badge/skills/rshankras/claude-code-apple-skills/charts-3d.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 61 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,367 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00061 $0.05367
Opus 5.5 $0.00024 $0.02147
Sonnet 5.5 $0.00012 $0.01073
Haiku 4.5 $0.00006 $0.00537

Measured 2d ago against content hash 0a37282e5c24, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

charts-3d scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/swiftui/charts-3d/SKILL.md · 623 lines

How it starts

The opening of the file, as written. The whole thing — 623 lines — stays where its author put it; the contents beside it link to each section on GitHub.

3D Charts with Swift Charts

Create 3D data visualizations using Chart3D and SurfacePlot. Covers math-driven surfaces, data-driven surfaces, interactive camera pose control, surface styling, and camera projection modes.

When This Skill Activates

Use this skill when the user:

  • Wants to create a 3D chart or 3D data visualization
  • Asks about Chart3D, SurfacePlot, or 3D surface plots
  • Needs to visualize a mathematical function as a 3D surface
  • Wants interactive drag-to-rotate on a 3D chart
  • Asks about 3D chart camera angles, pose, or projection
  • Needs to style 3D surfaces with gradients or height-based coloring
  • Wants to render multiple surfaces in a single 3D chart
  • Asks about data-driven 3D plots from an array of points
  • Needs the 2D Swift Charts API layer: marks, axes, series styling, selection, SectorMark pies/donuts, or scrollable charts

Decision Tree

What 3D chart feature do you need?
|
+-- Visualize a math function f(x, y) -> z
|   +-- Use SurfacePlot(x:y:z:function:)
|
+-- Visualize data points as a surface
|   +-- Use Chart3D(data) { point in SurfacePlot(...) }
|
+-- Interactive drag-to-rotate
|   +-- Bind pose: .chart3DPose($pose) with @State var pose: Chart3DPose
|
+-- Fixed viewing angle (no interaction)
|   +-- Read-only pose: .chart3DPose(Chart3DPose.front) or custom
|
+-- Style the surface color
|   +-- Solid color -> .foregroundStyle(Color.blue)
|   +-- Gradient -> .foregroundStyle(LinearGradient(...))
|   +-- Height-based -> .foregroundStyle(.heightBased(gradient, yRange:))
|   +-- Normal-based -> .foregroundStyle(.normalBased)
|
+-- Camera projection
|   +-- Perspective (depth) -> .chart3DCameraProjection(.perspective)
|   +-- Orthographic (flat) -> .chart3DCameraProjection(.orthographic)
|   +-- System default -> .chart3DCameraProjection(.automatic)
|
+-- Multiple surfaces in one chart
    +-- Place multiple SurfacePlot calls inside a single Chart3D { }

API Availability

API Minimum Version Import Notes
Chart3D iOS 26 / macOS 26 Charts Main 3D chart container
SurfacePlot iOS 26 / macOS 26 Charts 3D surface mark
Chart3DPose iOS 26 / macOS 26 Charts Viewing angle control
Chart3DCameraProjection iOS 26 / macOS 26 Charts .automatic, .perspective, .orthographic
Chart3DSurfaceStyle iOS 26 / macOS 26 Charts .heightBased, .normalBased

Read the full file on GitHub · 623 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 623 lines · 61 tokens per session scan A 0a37282e5c24

Subscribe to this mod's changes

charts-3d is a skill published in the GitHub repository rshankras/claude-code-apple-skills (864 stars, last pushed 2d ago), licensed MIT. It adds 61 tokens to every session and 5,367 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-05.

Related

charts-3d compared with skills from other repositories

charts-3d next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
charts-3drshankras/claude-code-apple-skillsSkill8642d agoMITA61Claude Code
flame-harness-admobtjdrhs90/flutter-flame-harnessSkill6110d agoMITA41Claude Code
flame-harness-submittjdrhs90/flutter-flame-harnessSkill6110d agoMITA38Claude Code
flame-harness-screenshottjdrhs90/flutter-flame-harnessSkill6110d agoMITA37Claude Code
gingiris-aso-growthGingiris-1031/gingiris-skillsSkill892d agoMITA320Claude Code
swift-expertpersonamanagmentlayer/pclSkill4411d agoApache-2.0A76Claude Code
ios-expertpersonamanagmentlayer/pclSkill4411d agoApache-2.0A64Claude Code