Skip to content
Back to skills

Ts Project Initialize

ASecurity

TypeScript project initialization best practices

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 2, 2026
ai-agentstypescriptapifrontendbackendci/cddocumentation

Works with

  • api

Security analysis

A100/100

Pro scans all 10 files and shows the line behind each finding

Scanned September 2, 2026

npx -y skills add shengdabai/Tony-Claude-Code-Skills --skill ts-project-initialize --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ts Project Initialize?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ts Project Initialize
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/shengdabai-ts-project-initialize/badge)](https://www.skillsdirectory.com/skills/shengdabai-ts-project-initialize)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ts-project-initialize
description: 'TypeScript project initialization best practices'
---

<scope>

Initialize TypeScript projects with proper tooling, type checking, and framework setup.

Reference documentation: `package.md`, `workspace.md`, `typescript.md`, `oxc.md`, `hono.md`, `tanstack-spa.md`, `shadcn-ui.md`, `dev-tools.md`, `ci.md`
</scope>

<configuration_decisions>

## Key Configuration Decisions

**Project visibility**:

- Public → Include LICENSE file
- Private → Omit license

**Package structure**:

- Single package → Root-level configuration
- Workspace (monorepo) → Root shared config + per-package configs

**Application type**:

- Frontend only → TanStack Router + shadcn/ui
- Backend only → Hono
- Full-stack → Hono + TanStack Router + shadcn/ui
- npm library → No framework, focus on build/publish config
</configuration_decisions>

<setup_principles>

## Setup Dependencies and Order

**Required setup sequence** (due to configuration dependencies):

1. **Base package** (`package.md`): Foundation for all subsequent configs
2. **Workspace structure** (`workspace.md`): Only if monorepo - must precede package setup
3. **Linting/formatting** (`oxc.md`): Requires package structure to be established
4. **Application setup**: Location depends on package structure
   - Single package: Root directory
   - Workspace: Separate `packages/*/` directories
   - TypeScript (`typescript.md`): Required for all projects
   - Backend: `hono.md`
   - Frontend SPA: `tanstack-spa.md`
   - UI components: `shadcn-ui.md`
5. **Development tools** (`dev-tools.md`): Requires application structure
6. **CI/CD** (`ci.md`): Final step after all configs established

**Location constraints**:

- Single package: All configs at root
- Workspace: Shared configs at root, app-specific in `packages/*/`
</setup_principles>

<reference_index>

## Setup Reference Documents

**Core setup** (all projects):

- `package.md`: Package configuration (package.json, pnpm)
- `typescript.md`: TypeScript strict configuration
- `oxc.md`: Linting and formatting with oxc
- `dev-tools.md`: Development utilities
- `ci.md`: CI/CD pipelines

**Structure-specific**:

- `workspace.md`: Monorepo/pnpm workspace setup

**Framework-specific**:

- `hono.md`: Backend API with Hono
- `tanstack-spa.md`: Frontend SPA with TanStack Router
- `shadcn-ui.md`: UI component library setup

</reference_index>

<best_practices>

## Configuration Best Practices

**TypeScript**:

- Always use strict type checking
- Configure path aliases for clean imports

**Package management**:

- Use pnpm for all TypeScript projects
- Configure workspace protocol for monorepo dependencies

**Tooling consistency**:

- oxc for linting and formatting (faster than ESLint/Prettier)
- Consistent script names across workspace packages

</best_practices>

Files in this skill

  • SKILL.md2.8 KB
  • ci.md1.3 KB
  • dev-tools.md164 B
  • hono.md5.4 KB
  • oxc.md18.7 KB
  • package.md2.3 KB
  • shadcn-ui.md875 B
  • tanstack-spa.md3.2 KB
  • typescript.md1.8 KB
  • workspace.md574 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.