init-typescript-project

init-typescript-project is a skill for Claude Code from tk0miya/skills. It costs 21 tokens per session (4,965 once invoked), scanned A, original, Apache-2.0.

A setup guide for starting a TypeScript project in the current directory. TypeScript is JavaScript with optional type checking; the guide checks existing project files before adding setup.

In plain words
What is it for?
Checking Node.js and GitHub CLI access, creating or preserving package and Biome configuration, and preparing the repository.
Why use it?
It avoids replacing existing configuration and identifies which parts of the project setup are already complete.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: reads .claude/ paths; mentions Claude Code.

Good fit Checking Node.js and GitHub CLI access, creating or preserving package and Biome configuration, and preparing the repository.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/tk0miya/skills/init-typescript-project
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 tk0miya/skills --skill init-typescript-project
Clone the repo
git clone --depth 1 https://github.com/tk0miya/skills

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 init-typescript-project

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/tk0miya/skills/init-typescript-project"><img src="https://agentmods.dev/badge/skills/tk0miya/skills/init-typescript-project.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,965 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.00021 $0.04965
Opus 5.5 $0.00008 $0.01986
Sonnet 5.5 $0.00004 $0.00993
Haiku 4.5 $0.00002 $0.00496

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

Security

Grade A, and why

init-typescript-project 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 5d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (add-required-checks.sh, hooks/pre-commit-check.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/init-typescript-project/SKILL.md · 342 lines

How it starts

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

init-typescript-project

TypeScript プロジェクトの初期セットアップを自動化するスキルです。

事前チェック(自動実行)

実行環境

以下を実行し、gh が認証済みか、gh actions-lock 拡張があるか、node が利用可能かをチェックする。

gh auth status
gh actions-lock --version
node --version

gh actions-lock は Phase 3 のコミット前に actions.lock を生成するのに使う。 無ければ gh extension install github/gh-actions-lock を案内して中断する(Phase 1・2 でファイルを 生成し終えてから止まらないよう、ここで確かめる)。

カレントディレクトリの状況

このスキルはカレントディレクトリをプロジェクトディレクトリとして扱う。ディレクトリの作成も npm init による雛形生成も行わない(新規プロジェクトなら、先にユーザーが空のディレクトリを作ってそこでこの スキルを呼ぶ)。初期セットアップの一部が済んでいることがあるので、カレントディレクトリを調べてどこまで 済んでいるかを判定する。

ls -1d .git package.json biome.json biome.jsonc 2>/dev/null
[[ -e .git ]] && git remote get-url origin 2>/dev/null
[[ -e .git ]] && git rev-parse --verify -q HEAD && git status --porcelain
判定 条件 影響
package.json 作成済み package.json がある Phase 1 の npm init -y をスキップし、既存の内容は上書きしない
Biome 設定作成済み biome.json か biome.jsonc がある Phase 2 の npx biome init --jsonc をスキップ(biome.json なら biome.jsonc にリネーム)
リポジトリ作成済み カレントディレクトリに .git があり、origin がある Phase 3 の gh repo create をスキップする

origin を見る前にカレントディレクトリの .git を確認するのは、別のリポジトリの配下に作った ディレクトリで実行したときに、親リポジトリの origin を拾って「作成済み」と誤判定しないため (worktree や submodule では .git がファイルなので、ディレクトリかどうかでは判定しない)。

コミットが 1 つ以上あるリポジトリで git status --porcelain に未コミットの変更があれば、Phase 3 の コミットにユーザーの作業を巻き込むことになるので、この時点でユーザーに伝えて、先に片付けるか承知の うえで進めるかを確認する。履歴がまだ無い場合(手動で npm init を実行した直後など)は、雛形が まるごと未コミットなのが当たり前なので確認しない。

想定している典型シナリオは次の 4 つ。

  • 作ったばかりの空のディレクトリでこのスキルを実行する(package.json なし・履歴なし・ リポジトリ未作成)
  • GitHub で作ったリポジトリを clone したディレクトリでこのスキルを実行する(履歴あり・ リポジトリ作成済み)
  • 手動で npm init を実行し、そのディレクトリでこのスキルを実行する(package.json あり・ 履歴なし・リポジトリ未作成)
  • ドキュメントだけ、あるいは他言語で書かれた既存プロジェクトに TypeScript を足す(履歴あり・ リポジトリ作成済み。TypeScript 以外のファイルが既にある)

プロジェクト名は package.json の name → origin のリポジトリ名 → カレントディレクトリ名の順で 決める。判定はディレクトリの中身から決まるもので、名前もカレントディレクトリがプロジェクト ディレクトリである以上そこから決まるので、確認は求めない。判定結果と決定したプロジェクト名は Phase 0 の質問と一緒に伝える(何をスキップして何の名前で進むかが分かるように)。

Read the full file on GitHub · 342 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. 5d ago Changed · +15 lines 80ebbdff5b10
  2. 2mo ago Changed · +4 lines ecddb24f20a9
  3. 2mo ago First seen · 323 lines · 21 tokens per session scan A 2c49cf285109

Subscribe to this mod's changes

init-typescript-project is a skill published in the GitHub repository tk0miya/skills (2 stars, last pushed 4d ago), licensed Apache-2.0. It adds 21 tokens to every session and 4,965 once invoked, about $0.0001 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-08-31.

Related

Other skills, from other repositories

no-bare-casts

Writing as in TypeScript or TSX production code, modifying a file that contains a bare as cast, silencing a type error with a cast, encountering as unknown as, or reviewing a cast site.

prisma/orm · 52 tokens

aws-sst-development

SST v4 (Ion) expert for managing AWS resources as code with the Pulumi-backed framework.

sickn33/agentic-awesome-skills · 26 tokens

league-akari-shard-development

Use when creating, extending, refactoring, splitting, or reviewing League Akari main or renderer shards, including shard file organization, controller/loader/executor/handler boundaries, naming conventions, renderer TSX usage, platform guards, and public contract compatibility.

LeagueAkari/LeagueAkari · 58 tokens

dd-code-generation

Use pup CLI for immediate Datadog operations or generate code for integration into applications.

DataDog/pup · 16 tokens

fast-typescript-check

Keep www-sacred's TypeScript fast to type-check and fast to run. Use when touching the ASCII/canvas animation components (the only real per-frame code here), tightening type-check wall-clock, or auditing a change for runtime or compiler regressions. Scoped to this repo — a React 19 / Next.js 16 component library plus…

internet-development/www-sacred · 84 tokens

typescript-magician

Designs complex generic types, refactors any types to strict alternatives, creates type guards and utility types, and resolves TypeScript compiler errors. Use when the user asks about TypeScript (TS) types, generics, type inference, type guards, removing any types, strict typing, type errors, infer, extends…

mcollina/skills · 108 tokens