Skip to content
Agentmart
Submit a tool

CLAUDE.md · jaredpalmer/tsdx

CLAUDE.md from jaredpalmer/tsdx: 112 lines covering Project Overview, Development Commands, Testing Notes, Architecture and more.

Template by jaredpalmer

IndexedMIT★ 11,458
Write a review

Install

Works with Claude Code. Read the repository before you give any tool access to your data.

curl -fsSL https://raw.githubusercontent.com/jaredpalmer/tsdx/master/CLAUDE.md -o CLAUDE.md

Read it and adapt it to your project before use.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

The CLAUDE.md file that jaredpalmer/tsdx (11,458 stars) keeps for coding agents. It has 112 lines in 8 sections: Project Overview; Development Commands; Testing Notes; Architecture; Adding a New Template; Documentation Website; Commit Convention; Release Process. Use it as a model for your own project's instructions.

Use cases: code-generation, testing

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

What's in it

A CLAUDE.md file: project memory Claude Code loads at the start of every session.

For
Claude Code
Length
112 lines
File
CLAUDE.md

Sections

  1. Project Overview
  2. Development Commands
  3. Testing Notes
  4. Architecture
  5. Adding a New Template
  6. Documentation Website
  7. Commit Convention
  8. Release Process

First lines (shown under the repo's MIT license)

# CLAUDE.md

This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.

## Project Overview

TSDX is a zero-config CLI for TypeScript package development. Version 2.0 is a complete rewrite using modern Rust-based tooling: bunchee (bundling), vitest (testing), oxlint (linting), and oxfmt (formatting).

## Development Commands

```bash
bun install              # Install dependencies
bun run build            # Build CLI with bunchee
bun run dev              # Watch mode (rebuilds on changes)
bun run test             # Run all tests with vitest
bun run test:watch       # Run tests in watch mode
bun run test test/cli.test.ts   # Run a specific test file
bun run lint             # Lint with oxlint
bun run typecheck        # TypeScript type checking
bun run format           # Format with oxfmt
bun run format:check     # Check formatting
```

## Testing Notes

Tests require a build first since they test the compiled CLI:
```bash
bun run build && bun run test
```

The e2e tests create projects in temp directories and have longer timeouts (60s).

## Architecture

**Single CLI Entry Point**: `src/index.ts` contains all CLI commands using Commander.js:
- `create` - scaffolds projects from templates, installs deps with bun
- `build/dev` - wraps bunchee
- `test` - wraps vitest
- `lint` - wraps oxlint
- `format` - wraps oxfmt
- `typecheck` - wraps tsc
- `init` - adds tsdx config to existing project

**Templates**: `templates/basic/` and `templates/react/` are copied directly during `create`. Template `gitignore` files are renamed to `.gitignore` post-copy. `<year>` and `<author>` placeholders in LICENSE are replaced.

## Adding a New Template

1. Create directory in `templates/`
2. Register in `src/index.ts` in the `templates` object
3. Include: package.json, tsconfig.json, vitest.config.ts, src/, test/, gitignore (not .gitignore), LICENSE with `<year>` and `<author>` placeholders

## Documentation Website

The documentation site is in `./website/` and built with:
- **Next.js 16** - React framework
- **Fumadocs** - Documentation framework (fumadocs-core, fumadocs-mdx, fumadocs-ui)
- **Tailwind CSS v4** - CSS-first configuration
- **IBM Plex Sans/Mono** - Typography via next/font/google

### Website Commands

```bash
cd website
bun install              # Install dependencies
bun run dev              # Start dev server
bun run build            # Build for production
```

### Content Structure

- `content/docs/` - MDX documentation files
- `content/docs/meta.json` - Sidebar navigation structure
- `app/` - Next.js App Router pages
- `app/layout.config.tsx` - Navigation and logo configuration

### Adding Documentation Pages

1. Create `.mdx` file in `content/docs/`
2. Add frontmatter with `title` and `description`
3. Add page to `content/docs/meta.json` in desired position
4. Use `---Section Name---` syntax in meta.json for sidebar sections

## Commit Convention

Uses Conventional Commits: `feat:`, `fix:`, `docs:`, `test:`, `refactor:`, `chore:`

## Release Process

Uses [changesets](https://github.com/changesets/changesets) for version management and npm publishing.

### Creating a Changeset

When making changes that should be released:
```bash
bun run changeset
```
Follow the prompts to select version bump type (patch/minor/major) and describe the change.

### Release Workflow

1. Create a changeset with your PR
2. Merge PR to main
3. GitHub Action creates a "Release" PR with version bumps
4. Merge the Release PR to publish to npm

### Manual Release

```bash
bun run changeset version  # Apply version bumps from changesets
bun run release            # Build and publish to npm
```

Signals

Stars
11,458
Forks
491
Open issues
4
Last commit (this folder)
Dec 29, 2025 (10 months ago)
Last release
Dec 29, 2025 (10 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from jaredpalmer

Cite this page

CLAUDE.md · jaredpalmer/tsdx. Agent Mart. https://agentmart.dev/templates/jaredpalmer-tsdx-claude-md (last updated 2026-10-24)