superset: Command for Claude Code

.claude/commands/js-to-ts.md

js-to-ts is a command for Claude Code from apache/superset. It costs 0 tokens per session (97 once invoked), scanned A, original, Apache-2.0.

A command that helps migrate a selected JavaScript file to TypeScript in Apache Superset's frontend code.

In plain words
What is it for?
Use it with the path to a core JavaScript file under superset-frontend when planning or carrying out its migration to TypeScript.
Why use it?
It gives the coding agent a consistent starting point and points it to the full migration guide. This reduces uncertainty about which file to convert and which instructions apply.

Command for Claude Code ✓ vendor

Written for Claude Code: installed under .claude/.

This is apache/superset's own configuration. It tells Claude Code how to work on superset itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything superset configures →

About the project

Apache Superset is a web application for exploring data, querying databases, and creating charts and dashboards. Analysts, business users, administrators, and developers use it for business intelligence and data visualization. The catalogue add-ons support workflows for operating, extending, or working with Superset.

apache/superset · 75,425 stars · on GitHub · superset.apache.org

Reuse

Borrowing it

Nothing to install: this file belongs to apache/superset. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/apache/superset/master/.claude/commands/js-to-ts.md
Clone the repo
git clone --depth 1 https://github.com/apache/superset

Made for: Claude Code.

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 js-to-ts

README.md
[![agentmods](https://agentmods.dev/badge/commands/apache/superset/js-to-ts/github.svg)](https://agentmods.dev/commands/apache/superset/js-to-ts)
Your own site
<a href="https://agentmods.dev/commands/apache/superset/js-to-ts"><img src="https://agentmods.dev/badge/commands/apache/superset/js-to-ts/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 js-to-ts

Your own site · 80×15
<a href="https://agentmods.dev/commands/apache/superset/js-to-ts"><img src="https://agentmods.dev/badge/commands/apache/superset/js-to-ts.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 97 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.00000 $0.00097
Opus 5.5 $0.00000 $0.00039
Sonnet 5.5 $0.00000 $0.00019
Haiku 4.5 $0.00000 $0.00010

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

Security

Grade A, and why

js-to-ts 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 2mo 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.

.claude/commands/js-to-ts.md · 11 lines

What it actually says

JavaScript to TypeScript Migration Command

Usage

/js-to-ts <core-filename>
  • <core-filename> - Path to CORE file relative to superset-frontend/ (e.g., src/utils/common.js, src/middleware/loggerMiddleware.js)

Agent Instructions

See: ../projects/js-to-ts/AGENT.md for complete migration guide.

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. 2mo ago First seen · 11 lines · 0 tokens per session scan A 29dc0591aa69

Subscribe to this mod's changes

js-to-ts is a command published in the GitHub repository apache/superset (75,425 stars, last pushed today), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 97 tokens. 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-08-30.

Related

js-to-ts compared with commands from other repositories

js-to-ts next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
js-to-tsapache/supersetCommand75ktodayApache-2.0A0Claude Code
profilecathrynlavery/diagram-designCommand65k3d agoMITA16Claude Code
fastapimfmezger/ai_agent_dotfilesCommand73mo agoMITA84Claude Code, Gemini CLI
azure-graph-dotnet:deploy-azureTheLobbi/Claude-mCommand181mo agononeA57Claude Code
kotlin-reviewsifxprime/kodelyth-eccCommand111mo agoMITA27Claude Code
cli-enhancegeoffjay/claude-pluginsCommand81y agoMITA24Claude Code
gen-ts-api-codezhanyoulin456/seevin-claude-pluginsCommand49mo agoMITA9Claude Code