project-setup
Project Setup
Core Principles
- Strong Typing: Strict mode enabled; types catch bugs at compile time
- Strong Linting: Strict rules by default; easier to disable than add later
- Auto Formatting: Automated and consistent; no manual formatting
- Checks at Every Stage: Pre-commit hooks + CI; catch issues early
- Co-located Tests:
foo.ts→foo.test.ts; obvious what's tested - Behavior-Focused: Test what code does, not how; mock only external boundaries
Workflow
- Check
reference/for language guide (Python, TypeScript) - If no guide: WebSearch "[language] project setup best practices"
- Follow setup: typing → linting → formatting → testing → pre-commit → CI
- For existing projects: migrate incrementally in same order
Reference Files
reference/python.md- uv, ruff, basedpyright, pytestreference/typescript.md- pnpm, ESLint, Prettier, Vitestreference/common-patterns.md- Testing philosophy, CI patterns, security
Tool Selection
Prefer tools that are: ecosystem standard, actively maintained, strict by default, fast, well-integrated (editor + CI + pre-commit).
Quality Checklist
- Typing: Strictest mode, no
anywithout justification - Linting: Strict rules, warnings as errors
- Formatting: Auto-format on save + pre-commit
- Testing: Co-located tests, coverage >80%
- Pre-commit: Format, lint, type-check
- CI: Same checks + coverage reporting
- README: Setup instructions
- All checks pass on initial commit
More from dhruvbaldawa/ccconfigs
claude-md-authoring
Creates and reviews CLAUDE.md configuration files for Claude Code. Applies HumanLayer guidelines including instruction budgets (~50 user-level, ~100 project-level), WHAT/WHY/HOW framework, and progressive disclosure. Identifies anti-patterns like using Claude as a linter for style rules.
10writing-documentation
Produces concise, clear documentation by applying Elements of Style principles. Use when writing or improving any technical documentation (READMEs, guides, API docs, architecture docs). Not for code comments.
6testing
Validates test coverage and quality by checking behavior focus, identifying gaps, and ensuring >80% statement coverage. Use when task file is in testing/ directory and requires test validation before marking complete. Adds minimal tests for genuinely missing edge cases.
2writing-like-me
Write content in Dhruv Baldawa's authentic voice and style. Use when creating blog posts, LinkedIn posts, emails, documentation, technical writing, opinion pieces, or any written content that should sound like Dhruv. Triggers on requests like "write this as me", "draft in my voice", "write a blog post", "create a LinkedIn post", "help me write", or any content creation where the user wants their personal voice applied.
2blog-writing
Write blog posts in Dhruv Baldawa's distinctive voice - conversational yet analytical, grounded in personal experience, with clear structure and practical insights optimized for Substack. Use when writing or revising draft.md, translating ideas from braindump into polished prose.
2reviewing-code
Reviews implemented code for security, quality, performance, and test coverage using specialized review agents with clear accountability. Use when task file is in review/ directory. Launches Security Gatekeeper, Quality Guardian, and Test Auditor in parallel.
2