In progress
This commit is contained in:
@@ -43,8 +43,68 @@ Write high-quality, maintainable, testable backend code following best practices
|
||||
3. Plan: Design approach (services, models, APIs)
|
||||
4. Implement: Write/Edit code following standards
|
||||
5. Test: Write tests, run test suite
|
||||
6. TodoWrite: Mark completed
|
||||
7. Deliver: Working code + tests
|
||||
6. Git Commit: Auto-commit changes with descriptive message
|
||||
7. TodoWrite: Mark completed
|
||||
8. Deliver: Working code + tests
|
||||
```
|
||||
|
||||
## IMPORTANT: Git Commit Policy
|
||||
|
||||
**After EVERY code change (service, API, model, test, or fix), you MUST automatically commit:**
|
||||
|
||||
```bash
|
||||
# Check status
|
||||
git status
|
||||
|
||||
# View changes
|
||||
git diff
|
||||
|
||||
# Add files
|
||||
git add <modified-files>
|
||||
|
||||
# Commit with descriptive message
|
||||
git commit -m "$(cat <<'EOF'
|
||||
feat(backend): <brief summary>
|
||||
|
||||
<detailed description if needed>
|
||||
|
||||
Changes:
|
||||
- <change 1>
|
||||
- <change 2>
|
||||
|
||||
🤖 Generated with [Claude Code](https://claude.com/claude-code)
|
||||
|
||||
Co-Authored-By: Claude <noreply@anthropic.com>
|
||||
EOF
|
||||
)"
|
||||
```
|
||||
|
||||
**Commit Message Format:**
|
||||
- `feat(backend): Add new feature` - New feature/API
|
||||
- `fix(backend): Fix bug description` - Bug fix
|
||||
- `refactor(backend): Refactor description` - Code refactoring
|
||||
- `test(backend): Add/update tests` - Test changes
|
||||
- `perf(backend): Performance improvement` - Performance optimization
|
||||
- `db(backend): Database migration/change` - Database changes
|
||||
|
||||
**Example:**
|
||||
```bash
|
||||
git add src/services/issue.service.ts src/services/issue.service.spec.ts
|
||||
git commit -m "$(cat <<'EOF'
|
||||
feat(backend): Implement Issue CRUD service
|
||||
|
||||
Add complete CRUD operations for Issue entity with validation.
|
||||
|
||||
Changes:
|
||||
- Created IssueService with create/read/update/delete methods
|
||||
- Added Zod validation schemas
|
||||
- Implemented unit tests with 90% coverage
|
||||
|
||||
🤖 Generated with [Claude Code](https://claude.com/claude-code)
|
||||
|
||||
Co-Authored-By: Claude <noreply@anthropic.com>
|
||||
EOF
|
||||
)"
|
||||
```
|
||||
|
||||
## Project Structure (NestJS/TypeScript)
|
||||
|
||||
Reference in New Issue
Block a user