typescript-import-style

typescript-import-style is a skill for Claude Code from jpoutrin/product-forge. It costs 41 tokens per session (975 once invoked), scanned A, original, MIT.

A set of rules for formatting TypeScript and JavaScript imports. It keeps imports on separate lines, grouped, and alphabetised.

In plain words
What is it for?
Use it whenever you add or reorganise imports in TypeScript or JavaScript code.
Why use it?
Consistent imports make files easier to scan and reduce merge conflicts when several developers or coding agents edit the same file.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import { BaseService } from '../BaseService';.

Part of the typescript-experts plugin — 6 skills, 1 agent shipped together

Good fit Use it whenever you add or reorganise imports in TypeScript or JavaScript code.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/jpoutrin/product-forge
agentmods
npx agentmods add skills/jpoutrin/product-forge/typescript-import-style

Made for: Claude Code.

Or install typescript-experts, the plugin that ships this one along with the rest of its 6 skills, 1 agent.

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 typescript-import-style

README.md
[![agentmods](https://agentmods.dev/badge/skills/jpoutrin/product-forge/typescript-import-style/github.svg)](https://agentmods.dev/skills/jpoutrin/product-forge/typescript-import-style)
Your own site
<a href="https://agentmods.dev/skills/jpoutrin/product-forge/typescript-import-style"><img src="https://agentmods.dev/badge/skills/jpoutrin/product-forge/typescript-import-style/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 typescript-import-style

Your own site · 80×15
<a href="https://agentmods.dev/skills/jpoutrin/product-forge/typescript-import-style"><img src="https://agentmods.dev/badge/skills/jpoutrin/product-forge/typescript-import-style.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 975 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.00041 $0.00975
Opus 5.5 $0.00016 $0.00390
Sonnet 5.5 $0.00008 $0.00195
Haiku 4.5 $0.00004 $0.00097

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

Security

Grade A, and why

typescript-import-style 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 1mo 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.

plugins/typescript-experts/skills/typescript-import-style/SKILL.md · 172 lines

How it starts

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

TypeScript Import Style Guidelines (Merge Conflict Reduction)

Import formatting and ordering rules to minimize merge conflicts when multiple developers or parallel agents modify the same file.

CRITICAL: One Import Per Line

When importing multiple items from a module, put EACH import on its own line:

// CORRECT - merge-friendly (each on separate line)
import {
  alpha,
  beta,
  gamma,
} from 'some-module';

// WRONG - causes merge conflicts
import { alpha, beta, gamma } from 'some-module';

This is enforced by Prettier with printWidth: 80. With one-per-line, Git can merge imports from parallel changes without conflicts.

Import Order (Top to Bottom)

  1. Node.js built-ins (e.g., import fs from 'fs', import path from 'path')
  2. External packages (e.g., import React from 'react', import express from 'express')
  3. Internal aliases (e.g., import { util } from '@/utils')
  4. Parent directory imports (e.g., import { Parent } from '../Parent')
  5. Sibling imports (e.g., import { Sibling } from './Sibling')
  6. Index imports (e.g., import { thing } from './index')
  7. Type-only imports (e.g., import type { MyType } from './types')

Within Each Group

  • Sort imports alphabetically by module path (case-insensitive)
  • Sort named imports alphabetically within braces
  • Sort export statements alphabetically

Spacing

  • Add one blank line between import groups
  • No blank lines within a group

Complete Example

// Node.js built-ins
import fs from 'fs';
import path from 'path';

// External packages
import express from 'express';
import React from 'react';

// Internal aliases
import { config } from '@/config';
import { logger } from '@/utils';

// Parent imports
import { BaseService } from '../BaseService';

// Sibling imports (one per line when multiple)
import {
  helperA,
  helperB,
  helperC,
} from './helpers';
import { utils } from './utils';

// Type imports (one per line when multiple)
import type { Config } from '@/types';
import type {
  Request,
  Response,
} from 'express';

Read the full file on GitHub · 172 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. 1mo ago First seen · 172 lines · 41 tokens per session scan A 23d2622ec01f

Subscribe to this mod's changes

typescript-import-style is a skill published in the GitHub repository jpoutrin/product-forge (16 stars, last pushed 7mo ago), licensed MIT. It adds 41 tokens to every session and 975 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-09-03.

Related

Other skills, from other repositories

release-process

Pre-release validation, npm publish procedures, and post-publish verification.

github/gh-aw · 16 tokens

Apply repeatable JavaScript and TypeScript codemods across large codebases with jscodeshift

Use jscodeshift when an agent needs AST-based JavaScript or TypeScript codemods for bulk migrations, API rewrites, and large refactors with reviewable diffs.

agentskillexchange/skills · 58 tokens

package-release-engineering

Use when preparing, validating, or documenting the release workflow for a TypeScript library published to npm, including semver, changelog, tagging, and publish safety.

sampleXbro/agentsmesh · 38 tokens

publish-release

Guidelines for building, packaging, and publishing projects. Use when modifying publishConfig, resolvePluginService, package.json main/types/exports for publishable libraries, checking dist folder generation, or debugging package resolution for released artifacts.

JimmyPaolini/codebase · 48 tokens

upgrade-packages-js

Safely upgrade JavaScript packages with breaking change detection, migration guidance, and automated code migrations (npm/pnpm/yarn). Cross-platform with git safety branch enforcement.

georgekhananaev/claude-skills-vault · 38 tokens

react-architect

React 19 standards — TypeScript strict, feature-based components, hooks-first composition, TanStack Query for server state, zustand for cross-tree client state, Suspense + ErrorBoundary at every async boundary, Radix for a11y. Use when writing or reviewing React components, hooks, or client-side state.

ralvarezdev/ralvaskills · 68 tokens