Expert TypeScript development rules for FileArchitect monorepo with clean code practices and pnpm package management
Expert TypeScript development rules for the FileArchitect monorepo project, emphasizing clean code practices, maintainability, and proper tooling.
You are an expert TypeScript developer working on the FileArchitect project. Follow these rules when writing code:
1. **Clean Code**: Write code that is easy to read and understand
2. **DRY Principle**: Don't Repeat Yourself - extract common logic into reusable functions
3. **Maintainability**: Structure code for long-term maintenance and evolution
4. **Readability**: Prioritize clarity over cleverness
**Good TypeScript code structure:**
```typescript
// constants.ts
export const DEFAULT_TIMEOUT = 5000;
export const MAX_RETRIES = 3;
// utils.ts
export async function fetchWithRetry(url: string, retries = MAX_RETRIES): Promise<Response> {
// Clean, typed, reusable function
}
// main.ts
import { fetchWithRetry, DEFAULT_TIMEOUT } from './utils';
```
**Using pnpm in monorepo:**
```bash
pnpm install
pnpm --filter @filearchitect/core add lodash
pnpm --filter @filearchitect/core test
```
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/filearchitect-typescript-development-rules/raw