Set up a TypeScript `tsconfig.json` that extends one of `@jabraf/dev`'s presets (`base`, `lib`, `app`, or `node`). Load when the user asks to add TypeScript, configure `tsconfig.json`, or pick a `@jabraf/dev` TSConfig preset. Do not load for general TS questions unrelated to `@jabraf/dev`.
Ships in jabraf-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
jabraf-tsconfigWrites (or updates) tsconfig.json so it extends one of the four presets
shipped by @jabraf/dev:
| Preset | Use case |
|---|---|
@jabraf/dev/tsconfig/base | Shared base — strict, ESM, ES2023 |
@jabraf/dev/tsconfig/lib | React library (jsx: react, emits) |
@jabraf/dev/tsconfig/app | React application (jsx: preserve) |
@jabraf/dev/tsconfig/node | Node.js / bundler targets |
Canonical table lives in
packages/jabraf-dev/README.md.
Load when the user's prompt mentions any of:
tsconfig.json"@jabraf/dev tsconfig", "jabraf tsconfig"Do not load for general TypeScript questions (writing types, fixing compiler
errors) unrelated to @jabraf/dev. Do not load alongside jabraf-dev-setup —
the umbrella will invoke this one.
Brief acknowledge + preset detection. Detect the project shape and propose a preset:
next or vite in deps → appreact / react-dom in deps (no app bundler) → libbin field present, or no React/bundler signals → nodebaseOne sentence: "I detected <signal>, so I'd extend @jabraf/dev/tsconfig/<preset>. Use that, or pick a different preset (base / lib / app / node)?" [wait for user]
Detect package manager. Same logic as the other @jabraf/dev skills. Note it for step 4.
Detect existing tsconfig.json. If it exists, show its current extends and compilerOptions. Ask: "Replace extends with @jabraf/dev/tsconfig/<preset> (keeping any local compilerOptions / include / exclude overrides), or write a fresh file?" [wait for user] Never overwrite silently. If extends already points at a @jabraf/dev preset, only update if the user picked a different variant.
Install @jabraf/dev if missing. Dev dep, at latest.
Write the config. Minimum body:
{
"extends": "@jabraf/dev/tsconfig/<preset>",
}
Preserve any user-supplied compilerOptions, include, exclude, references, or files fields if updating an existing file. Common additions worth proposing (ask first):
"compilerOptions": { "noEmit": true } for typecheck-only setups"include": ["src", "*.ts", "*.mts"] when the user uses a src/ layout"references": [...] for project-references monorepos — leave untouched unless the user asksAdd a typecheck script (optional, only if absent):
{
"scripts": {
"typecheck": "tsc --noEmit",
},
}
Ask first if tsc should be wired into an existing test or build script.
Validate. Run <pm> run typecheck (or npx tsc --noEmit directly if no script). Report errors. Do not auto-fix.
Final report. Summarize: preset chosen, signals that drove the choice, install status, config written, scripts added, typecheck outcome.
tsconfig.json.compilerOptions overrides.@jabraf/dev to a specific version — install at latest.jabraf-prettier is also installed).tsconfig.*.json (e.g. tsconfig.build.json, tsconfig.eslint.json) beyond the primary tsconfig.json unless the user names them explicitly.| Situation | Action |
|---|---|
Project has no package.json | Stop. Ask the user to initialise the project first. |
Mixed signals (next AND a bin field, e.g.) | Surface both. Ask the user to pick. [wait for user] Default to whichever the user spends more time in (you can ask "Which one is the primary surface of this project?"). |
Monorepo (workspaces present) | Ask whether to apply at the root, in a specific workspace, or both. [wait for user] Repeat steps 3–7 in each location. Different workspaces may want different presets. |
User wants multiple tsconfig.*.json (e.g. tsconfig.build.json) | Offer to extend the per-file extends from @jabraf/dev/tsconfig/<preset> too. Confirm each file. |
extends is already an array (TS 5+) | Append the @jabraf/dev preset rather than replacing the array. Confirm before writing. |
Project uses swc / esbuild with no tsc step | Note that the typecheck script still has value for CI even when builds skip tsc. Don't add the script if the user declines. |
@jabraf/dev TSConfig docs: packages/jabraf-dev/README.md#tsconfig@jabraf/dev/tsconfig/{base,lib,app,node} — each maps to a JSON file under ./dist/config/typescript/ (see packages/jabraf-dev/package.json exports map)What SKILL.md sets; muted values are Claude Code's defaults
/jabraf-skills:jabraf-tsconfigfrom jabraf-skills
npx claudepluginhub jabranr/skills --plugin jabraf-skills17 skills in this plugin
/jabraf-app-config-setupSet up `@jabraf/app-config` end-to-end in a project — install the runtime dep, scaffold `config/make-config.ts`, augment the `FeatureMap`, gitignore the generated artifact, add `prebuild`/`predev` scripts, wire the bootstrap `setConfig` call, and (React apps) mount the in-app `FeatureFlagsPanel` toggle UI. Load when the user asks to add app config, set up feature flags, configure `@jabraf/app-config`, wire `jabraf-config build`, or add a feature flags toggle panel / floating button./jabraf-commitlintSet up commitlint in a project using `@jabraf/dev`'s shared base (conventional commits). Load when the user asks to add commitlint, enforce conventional commits, configure `commitlint.config.js`, or wire up `@jabraf/dev` commitlint specifically. Do not load for general commit-message-quality questions unrelated to `@jabraf/dev`./jabraf-Other plugins' skills for the same job