Thank you for your interest in contributing!
# Clone the repository
git clone https://github.com/wonjangcloud9/claude-tree.git
cd claude-tree
# Install dependencies
pnpm install
# Build all packages
pnpm build
# Run tests
pnpm test
# Link CLI globally for development
cd packages/cli && pnpm link --globalpackages/
├── cli/ # CLI tool (@claudetree/cli) - 33+ commands
├── core/ # Domain + Infrastructure (@claudetree/core)
├── shared/ # Shared types (@claudetree/shared)
├── mcp/ # MCP Server (@claudetree/mcp) - 14 tools
└── web/ # Next.js 16 dashboard (@claudetree/web) - i18n (en/ko/ja/zh)
main ← stable releases (triggers npm publish)
↑
develop ← integration branch (PRs target here)
↑
feature/* ← your work
# Start from develop
git checkout develop
git pull origin develop
# Create your branch
git checkout -b feature/my-feature
# or: fix/bug-name, docs/update, refactor/cleanupWe follow Test-Driven Development:
- Write a failing test
- Implement minimal code to pass
- Refactor while keeping tests green
# Run all tests
pnpm test
# Run tests in watch mode
pnpm test -- --watch
# Run specific package tests
pnpm --filter @claudetree/core test:run
pnpm --filter @claudetree/cli test
pnpm --filter @claudetree/mcp test:run# Build all packages
pnpm build
# Build specific package
pnpm --filter @claudetree/cli buildWe use Changesets for versioning.
After completing your work:
pnpm changeset- Select packages that changed
- Choose bump type:
patch: Bug fixes (0.0.X)minor: New features (0.X.0)major: Breaking changes (X.0.0)
- Write a summary of changes
This creates a file in .changeset/ that will be used to generate CHANGELOG.
- TypeScript strict mode
- Functions under 30 lines
- Clear, descriptive naming
- Early returns preferred
Format: <type>(<scope>): <description>
Types:
feat: New featurefix: Bug fixdocs: Documentationrefactor: Code refactoringtest: Adding testschore: Maintenance
Examples:
feat(cli): add GitHub issue integration
fix(core): handle empty worktree list
docs: update README with new commands
- Fork the repository
- Create a feature branch from
develop - Make your changes with tests
- Run
pnpm changesetto record changes - Ensure all tests pass:
pnpm test:run - Submit PR to
developbranch - After review, maintainers merge to develop
- Periodically, develop is merged to main for release
When develop is stable:
- Create PR from
developtomain - Merge triggers Release workflow
- GitHub Action creates "Release PR" with version bumps
- Merge Release PR to publish to npm
Open an issue or start a discussion!