trinity-method-sdk 2.0.9 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +702 -267
- package/README.md +550 -540
- package/dist/cli/commands/deploy/agents.js +1 -1
- package/dist/cli/commands/deploy/ci-cd.d.ts +4 -3
- package/dist/cli/commands/deploy/ci-cd.js +10 -9
- package/dist/cli/commands/deploy/claude-setup.js +28 -35
- package/dist/cli/commands/deploy/configuration.js +10 -11
- package/dist/cli/commands/deploy/directories.js +13 -14
- package/dist/cli/commands/deploy/gitignore.js +3 -5
- package/dist/cli/commands/deploy/index.d.ts +1 -1
- package/dist/cli/commands/deploy/index.js +7 -3
- package/dist/cli/commands/deploy/knowledge-base.js +3 -3
- package/dist/cli/commands/deploy/pre-flight.js +1 -1
- package/dist/cli/commands/deploy/root-files.js +3 -18
- package/dist/cli/commands/deploy/sdk-install.js +1 -1
- package/dist/cli/commands/deploy/summary.js +3 -3
- package/dist/cli/commands/deploy/templates.js +33 -20
- package/dist/cli/commands/update/agents.js +1 -1
- package/dist/cli/commands/update/backup.js +6 -12
- package/dist/cli/commands/update/commands.d.ts +1 -0
- package/dist/cli/commands/update/commands.js +18 -45
- package/dist/cli/commands/update/knowledge-base.js +2 -2
- package/dist/cli/commands/update/pre-flight.js +11 -11
- package/dist/cli/commands/update/summary.js +5 -5
- package/dist/cli/commands/update/templates.js +35 -13
- package/dist/cli/commands/update/verification.js +5 -5
- package/dist/cli/commands/update/version.js +1 -1
- package/dist/cli/utils/deploy-ci.d.ts +3 -2
- package/dist/cli/utils/deploy-ci.js +24 -24
- package/dist/cli/utils/deploy-linting.js +101 -6
- package/dist/cli/utils/error-classes.d.ts +2 -2
- package/dist/cli/utils/linting-tools.js +14 -6
- package/dist/cli/utils/template-processor.js +2 -4
- package/dist/templates/{claude → .claude}/EMPLOYEE-DIRECTORY.md.template +16 -22
- package/dist/templates/{agents → .claude/agents}/aj-team/apo-documentation-specialist.md.template +10 -10
- package/dist/templates/{agents → .claude/agents}/aj-team/bas-quality-gate.md.template +13 -15
- package/dist/templates/{agents → .claude/agents}/aj-team/bon-dependency-manager.md.template +4 -4
- package/dist/templates/{agents → .claude/agents}/aj-team/cap-configuration-specialist.md.template +3 -3
- package/dist/templates/{agents → .claude/agents}/aj-team/dra-code-reviewer.md.template +8 -10
- package/dist/templates/{agents → .claude/agents}/aj-team/kil-task-executor.md.template +11 -13
- package/dist/templates/{agents → .claude/agents}/aj-team/uro-refactoring-specialist.md.template +3 -3
- package/dist/templates/{agents → .claude/agents}/audit/juno-auditor.md.template +46 -42
- package/dist/templates/{agents → .claude/agents}/deployment/ein-cicd.md.template +59 -164
- package/dist/templates/{agents → .claude/agents}/deployment/ino-context.md.template +25 -22
- package/dist/templates/{agents → .claude/agents}/deployment/tan-structure.md.template +32 -30
- package/dist/templates/{agents → .claude/agents}/deployment/zen-knowledge.md.template +28 -23
- package/dist/templates/{agents → .claude/agents}/leadership/aj-maestro.md.template +10 -6
- package/dist/templates/{agents → .claude/agents}/leadership/aly-cto.md.template +22 -19
- package/dist/templates/{agents → .claude/agents}/planning/eus-decomposer.md.template +8 -4
- package/dist/templates/{agents → .claude/agents}/planning/mon-requirements.md.template +8 -4
- package/dist/templates/{agents → .claude/agents}/planning/ror-design.md.template +8 -4
- package/dist/templates/{agents → .claude/agents}/planning/tra-planner.md.template +10 -4
- package/dist/templates/{shared/claude-commands → .claude/commands/execution}/trinity-audit.md.template +15 -15
- package/dist/templates/.claude/commands/execution/trinity-breakdown.md.template +535 -0
- package/dist/templates/{shared/claude-commands → .claude/commands/execution}/trinity-orchestrate.md.template +48 -48
- package/dist/templates/{shared/claude-commands → .claude/commands/infrastructure}/trinity-init.md.template +32 -54
- package/dist/templates/{shared/claude-commands → .claude/commands/investigation}/trinity-create-investigation.md.template +13 -7
- package/dist/templates/{shared/claude-commands → .claude/commands/investigation}/trinity-investigate-templates.md.template +19 -15
- package/dist/templates/{shared/claude-commands → .claude/commands/investigation}/trinity-plan-investigation.md.template +12 -6
- package/dist/templates/{shared/claude-commands → .claude/commands/maintenance}/trinity-changelog.md.template +9 -8
- package/dist/templates/.claude/commands/maintenance/trinity-docs-update.md.template +279 -0
- package/dist/templates/.claude/commands/maintenance/trinity-docs.md.template +2828 -0
- package/dist/templates/{shared/claude-commands → .claude/commands/maintenance}/trinity-readme.md.template +21 -20
- package/dist/templates/{shared/claude-commands → .claude/commands/planning}/trinity-decompose.md.template +6 -4
- package/dist/templates/{shared/claude-commands → .claude/commands/planning}/trinity-design.md.template +6 -4
- package/dist/templates/{shared/claude-commands → .claude/commands/planning}/trinity-plan.md.template +7 -5
- package/dist/templates/{shared/claude-commands → .claude/commands/planning}/trinity-requirements.md.template +6 -4
- package/dist/templates/{shared/claude-commands → .claude/commands/session}/trinity-continue.md.template +30 -24
- package/dist/templates/{shared/claude-commands → .claude/commands/session}/trinity-end.md.template +403 -397
- package/dist/templates/{shared/claude-commands → .claude/commands/session}/trinity-start.md.template +9 -4
- package/dist/templates/{shared/claude-commands → .claude/commands/utility}/trinity-agents.md.template +11 -8
- package/dist/templates/{shared/claude-commands → .claude/commands/utility}/trinity-verify.md.template +56 -57
- package/dist/templates/{shared/claude-commands → .claude/commands/utility}/trinity-workorder.md.template +13 -9
- package/dist/templates/ci/ci.yml.template +2 -2
- package/dist/templates/root/CLAUDE.md.template +9 -9
- package/dist/templates/root/linting/nodejs/.husky-pre-commit.template +5 -0
- package/dist/templates/source/base-CLAUDE.md.template +310 -310
- package/dist/templates/source/flutter-CLAUDE.md.template +593 -593
- package/dist/templates/source/nodejs-CLAUDE.md.template +531 -531
- package/dist/templates/source/python-CLAUDE.md.template +510 -510
- package/dist/templates/source/react-CLAUDE.md.template +513 -513
- package/dist/templates/source/rust-CLAUDE.md.template +653 -653
- package/dist/templates/trinity/CLAUDE.md.template +14 -14
- package/dist/templates/{knowledge-base → trinity/knowledge-base}/AI-DEVELOPMENT-GUIDE.md.template +1 -1
- package/dist/templates/{knowledge-base → trinity/knowledge-base}/ARCHITECTURE.md.template +5 -5
- package/dist/templates/{knowledge-base → trinity/knowledge-base}/CODING-PRINCIPLES.md.template +1 -1
- package/dist/templates/{knowledge-base → trinity/knowledge-base}/DOCUMENTATION-CRITERIA.md.template +1 -1
- package/dist/templates/{knowledge-base → trinity/knowledge-base}/ISSUES.md.template +9 -9
- package/dist/templates/{knowledge-base → trinity/knowledge-base}/TESTING-PRINCIPLES.md.template +1 -1
- package/dist/templates/{knowledge-base → trinity/knowledge-base}/Technical-Debt.md.template +2 -4
- package/dist/templates/{knowledge-base → trinity/knowledge-base}/To-do.md.template +2 -2
- package/dist/templates/{knowledge-base → trinity/knowledge-base}/Trinity.md.template +6 -6
- package/dist/templates/trinity/templates/documentation/api-docs/README.md.template +218 -0
- package/dist/templates/trinity/templates/documentation/configuration/documentation-structure.md.template +71 -0
- package/dist/templates/trinity/templates/documentation/configuration/env-example-generator.md.template +387 -0
- package/dist/templates/trinity/templates/documentation/discovery/api-endpoint-scanner.md.template +343 -0
- package/dist/templates/trinity/templates/documentation/discovery/component-discovery.md.template +254 -0
- package/dist/templates/trinity/templates/documentation/discovery/env-variable-extraction.md.template +316 -0
- package/dist/templates/trinity/templates/documentation/discovery/framework-detection.md.template +205 -0
- package/dist/templates/trinity/templates/documentation/guides/api-development.md.template +375 -0
- package/dist/templates/trinity/templates/documentation/guides/contributing.md.template +488 -0
- package/dist/templates/trinity/templates/documentation/guides/deployment.md.template +565 -0
- package/dist/templates/trinity/templates/documentation/guides/getting-started.md.template +118 -0
- package/dist/templates/trinity/templates/documentation/mermaid-diagrams/api-endpoint-map.md.template +56 -0
- package/dist/templates/trinity/templates/documentation/mermaid-diagrams/component-hierarchy.md.template +60 -0
- package/dist/templates/trinity/templates/documentation/mermaid-diagrams/database-er.md.template +49 -0
- package/dist/templates/trinity/templates/documentation/mermaid-diagrams/mvc-flow.md.template +41 -0
- package/dist/templates/trinity/templates/documentation/processes/error-handling-protocol.md.template +166 -0
- package/dist/templates/trinity/templates/documentation/processes/fallback-mechanism.md.template +88 -0
- package/dist/templates/trinity/templates/documentation/reports/apo-docs-update-checklist.md.template +343 -0
- package/dist/templates/trinity/templates/documentation/reports/juno-docs-update-checklist.md.template +1337 -0
- package/dist/templates/trinity/templates/documentation/reports/juno-final-report.md.template +237 -0
- package/dist/templates/trinity/templates/documentation/reports/juno-internal-report.md.template +461 -0
- package/dist/templates/trinity/templates/documentation/validation/documentation-verification-rules.md.template +379 -0
- package/dist/templates/trinity/templates/documentation/validation/juno-quality-gates.md.template +282 -0
- package/dist/templates/{investigations → trinity/templates/investigations}/bug.md.template +14 -14
- package/dist/templates/{investigations → trinity/templates/investigations}/feature.md.template +14 -14
- package/dist/templates/{investigations → trinity/templates/investigations}/performance.md.template +14 -14
- package/dist/templates/{investigations → trinity/templates/investigations}/security.md.template +14 -14
- package/dist/templates/{investigations → trinity/templates/investigations}/technical.md.template +14 -14
- package/dist/templates/{work-orders → trinity/templates/work-orders}/ANALYSIS-TEMPLATE.md.template +10 -13
- package/dist/templates/{work-orders → trinity/templates/work-orders}/AUDIT-TEMPLATE.md.template +10 -26
- package/dist/templates/{work-orders → trinity/templates/work-orders}/IMPLEMENTATION-TEMPLATE.md.template +10 -26
- package/dist/templates/{work-orders → trinity/templates/work-orders}/INVESTIGATION-TEMPLATE.md.template +10 -25
- package/dist/templates/{work-orders → trinity/templates/work-orders}/PATTERN-TEMPLATE.md.template +10 -26
- package/dist/templates/{work-orders → trinity/templates/work-orders}/VERIFICATION-TEMPLATE.md.template +10 -26
- package/package.json +99 -94
- package/dist/templates/agents/leadership/aj-cc.md.template +0 -462
- package/dist/templates/ci/cd.yml.template +0 -175
- package/dist/templates/ci/github-actions.yml +0 -86
- package/dist/templates/root/TRINITY.md.template +0 -52
- package/dist/templates/shared/claude-commands/trinity-docs.md.template +0 -2577
- /package/dist/templates/{linting → root/linting}/flutter/.pre-commit-config.yaml.template +0 -0
- /package/dist/templates/{linting → root/linting}/flutter/analysis_options.yaml.template +0 -0
- /package/dist/templates/{linting → root/linting}/nodejs/.eslintrc-commonjs.json.template +0 -0
- /package/dist/templates/{linting → root/linting}/nodejs/.eslintrc-esm.json.template +0 -0
- /package/dist/templates/{linting → root/linting}/nodejs/.eslintrc-typescript.json.template +0 -0
- /package/dist/templates/{linting → root/linting}/nodejs/.pre-commit-config.yaml.template +0 -0
- /package/dist/templates/{linting → root/linting}/nodejs/.prettierrc.json.template +0 -0
- /package/dist/templates/{linting → root/linting}/python/.flake8.template +0 -0
- /package/dist/templates/{linting → root/linting}/python/.pre-commit-config.yaml.template +0 -0
- /package/dist/templates/{linting → root/linting}/python/pyproject.toml.template +0 -0
- /package/dist/templates/{linting → root/linting}/rust/.pre-commit-config.yaml.template +0 -0
- /package/dist/templates/{linting → root/linting}/rust/clippy.toml.template +0 -0
- /package/dist/templates/{linting → root/linting}/rust/rustfmt.toml.template +0 -0
- /package/dist/templates/{documentation → trinity/templates/documentation}/ROOT-README.md.template +0 -0
- /package/dist/templates/{documentation → trinity/templates/documentation}/SUBDIRECTORY-README.md.template +0 -0
|
@@ -0,0 +1,488 @@
|
|
|
1
|
+
# Contributing to {{PROJECT_NAME}}
|
|
2
|
+
|
|
3
|
+
Thank you for your interest in contributing to {{PROJECT_NAME}}! This guide will help you get started.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Table of Contents
|
|
8
|
+
|
|
9
|
+
- [Code of Conduct](#code-of-conduct)
|
|
10
|
+
- [Getting Started](#getting-started)
|
|
11
|
+
- [Development Workflow](#development-workflow)
|
|
12
|
+
- [Code Standards](#code-standards)
|
|
13
|
+
- [Pull Request Process](#pull-request-process)
|
|
14
|
+
- [Testing Requirements](#testing-requirements)
|
|
15
|
+
- [Documentation](#documentation)
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## Code of Conduct
|
|
20
|
+
|
|
21
|
+
We are committed to providing a welcoming and inclusive environment. Please:
|
|
22
|
+
|
|
23
|
+
- Be respectful and considerate
|
|
24
|
+
- Welcome newcomers and help them get started
|
|
25
|
+
- Focus on constructive feedback
|
|
26
|
+
- Report unacceptable behavior to the maintainers
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## Getting Started
|
|
31
|
+
|
|
32
|
+
### 1. Fork the Repository
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
# Fork on GitHub, then clone your fork
|
|
36
|
+
git clone https://github.com/<your-username>/{{PROJECT_NAME}}.git
|
|
37
|
+
cd {{PROJECT_NAME}}
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### 2. Set Up Development Environment
|
|
41
|
+
|
|
42
|
+
Follow the [Getting Started Guide](./getting-started.md) to set up your local development environment.
|
|
43
|
+
|
|
44
|
+
### 3. Create a Branch
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
# Create a feature branch
|
|
48
|
+
git checkout -b feature/your-feature-name
|
|
49
|
+
|
|
50
|
+
# Or a bugfix branch
|
|
51
|
+
git checkout -b fix/bug-description
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
**Branch Naming Convention:**
|
|
55
|
+
- `feature/` - New features
|
|
56
|
+
- `fix/` - Bug fixes
|
|
57
|
+
- `docs/` - Documentation updates
|
|
58
|
+
- `refactor/` - Code refactoring
|
|
59
|
+
- `test/` - Test additions or updates
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
## Development Workflow
|
|
64
|
+
|
|
65
|
+
### Git Workflow
|
|
66
|
+
|
|
67
|
+
{{GIT_WORKFLOW}}
|
|
68
|
+
|
|
69
|
+
### Making Changes
|
|
70
|
+
|
|
71
|
+
1. **Write Code** following our [Code Standards](#code-standards)
|
|
72
|
+
2. **Write Tests** for new functionality
|
|
73
|
+
3. **Run Tests** to ensure nothing breaks
|
|
74
|
+
4. **Update Documentation** if needed
|
|
75
|
+
5. **Commit Changes** with clear messages
|
|
76
|
+
|
|
77
|
+
---
|
|
78
|
+
|
|
79
|
+
## Code Standards
|
|
80
|
+
|
|
81
|
+
### General Guidelines
|
|
82
|
+
|
|
83
|
+
- Write clear, self-documenting code
|
|
84
|
+
- Follow existing code patterns
|
|
85
|
+
- Keep functions small and focused
|
|
86
|
+
- Use meaningful variable names
|
|
87
|
+
- Comment complex logic
|
|
88
|
+
|
|
89
|
+
### Code Style
|
|
90
|
+
|
|
91
|
+
{{CODE_STYLE}}
|
|
92
|
+
|
|
93
|
+
### Linting
|
|
94
|
+
|
|
95
|
+
Run the linter before committing:
|
|
96
|
+
|
|
97
|
+
```bash
|
|
98
|
+
{{LINT_COMMAND}}
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
Fix auto-fixable issues:
|
|
102
|
+
|
|
103
|
+
```bash
|
|
104
|
+
{{LINT_FIX_COMMAND}}
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
### Formatting
|
|
108
|
+
|
|
109
|
+
Code formatting is enforced using {{FORMATTER}}:
|
|
110
|
+
|
|
111
|
+
```bash
|
|
112
|
+
{{FORMAT_COMMAND}}
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
**Editor Integration:**
|
|
116
|
+
- Install {{FORMATTER}} extension for your editor
|
|
117
|
+
- Enable format-on-save
|
|
118
|
+
|
|
119
|
+
---
|
|
120
|
+
|
|
121
|
+
## Commit Guidelines
|
|
122
|
+
|
|
123
|
+
### Commit Message Format
|
|
124
|
+
|
|
125
|
+
```
|
|
126
|
+
<type>(<scope>): <subject>
|
|
127
|
+
|
|
128
|
+
<body>
|
|
129
|
+
|
|
130
|
+
<footer>
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
**Types:**
|
|
134
|
+
- `feat`: New feature
|
|
135
|
+
- `fix`: Bug fix
|
|
136
|
+
- `docs`: Documentation changes
|
|
137
|
+
- `style`: Code style changes (formatting, semicolons, etc.)
|
|
138
|
+
- `refactor`: Code refactoring
|
|
139
|
+
- `test`: Adding or updating tests
|
|
140
|
+
- `chore`: Maintenance tasks
|
|
141
|
+
|
|
142
|
+
**Example:**
|
|
143
|
+
```
|
|
144
|
+
feat(api): add user profile endpoint
|
|
145
|
+
|
|
146
|
+
Implement GET /api/users/:id/profile endpoint to retrieve
|
|
147
|
+
user profile information including bio and avatar.
|
|
148
|
+
|
|
149
|
+
Closes #123
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
### Commit Best Practices
|
|
153
|
+
|
|
154
|
+
- Keep commits atomic (one logical change per commit)
|
|
155
|
+
- Write clear, descriptive commit messages
|
|
156
|
+
- Reference issues in commit messages (e.g., "Fixes #123")
|
|
157
|
+
- Don't commit unrelated changes together
|
|
158
|
+
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
## Testing Requirements
|
|
162
|
+
|
|
163
|
+
{{TEST_REQUIREMENTS}}
|
|
164
|
+
|
|
165
|
+
### Running Tests
|
|
166
|
+
|
|
167
|
+
```bash
|
|
168
|
+
# Run all tests
|
|
169
|
+
{{TEST_COMMAND}}
|
|
170
|
+
|
|
171
|
+
# Run specific test file
|
|
172
|
+
{{TEST_FILE_COMMAND}}
|
|
173
|
+
|
|
174
|
+
# Run tests in watch mode
|
|
175
|
+
{{TEST_WATCH_COMMAND}}
|
|
176
|
+
|
|
177
|
+
# Generate coverage report
|
|
178
|
+
{{TEST_COVERAGE_COMMAND}}
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
### Writing Tests
|
|
182
|
+
|
|
183
|
+
**Unit Tests:**
|
|
184
|
+
```typescript
|
|
185
|
+
describe('{{EXAMPLE_FUNCTION}}', () => {
|
|
186
|
+
it('should {{EXPECTED_BEHAVIOR}}', () => {
|
|
187
|
+
const result = {{EXAMPLE_FUNCTION}}(input);
|
|
188
|
+
expect(result).toBe(expectedOutput);
|
|
189
|
+
});
|
|
190
|
+
|
|
191
|
+
it('should handle edge case', () => {
|
|
192
|
+
expect(() => {{EXAMPLE_FUNCTION}}(null)).toThrow();
|
|
193
|
+
});
|
|
194
|
+
});
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
**Integration Tests:**
|
|
198
|
+
```typescript
|
|
199
|
+
describe('{{EXAMPLE_API_ENDPOINT}}', () => {
|
|
200
|
+
it('should return {{EXPECTED_RESPONSE}}', async () => {
|
|
201
|
+
const response = await request(app).get('/api/{{ENDPOINT}}');
|
|
202
|
+
expect(response.status).toBe(200);
|
|
203
|
+
expect(response.body).toMatchObject({{EXPECTED_SHAPE}});
|
|
204
|
+
});
|
|
205
|
+
});
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
---
|
|
209
|
+
|
|
210
|
+
## Pull Request Process
|
|
211
|
+
|
|
212
|
+
### Before Submitting
|
|
213
|
+
|
|
214
|
+
- [ ] All tests pass locally
|
|
215
|
+
- [ ] Code follows project standards
|
|
216
|
+
- [ ] Linter passes with no errors
|
|
217
|
+
- [ ] Documentation updated (if needed)
|
|
218
|
+
- [ ] Commit messages follow guidelines
|
|
219
|
+
- [ ] Branch is up-to-date with main
|
|
220
|
+
|
|
221
|
+
### Creating a Pull Request
|
|
222
|
+
|
|
223
|
+
1. **Push your branch:**
|
|
224
|
+
```bash
|
|
225
|
+
git push origin feature/your-feature-name
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
2. **Create PR on GitHub:**
|
|
229
|
+
- Go to the repository on GitHub
|
|
230
|
+
- Click "New Pull Request"
|
|
231
|
+
- Select your branch
|
|
232
|
+
- Fill out the PR template
|
|
233
|
+
|
|
234
|
+
### PR Title Format
|
|
235
|
+
|
|
236
|
+
```
|
|
237
|
+
<type>: <description>
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
**Example:** `feat: add user authentication system`
|
|
241
|
+
|
|
242
|
+
### PR Description Template
|
|
243
|
+
|
|
244
|
+
```markdown
|
|
245
|
+
## Description
|
|
246
|
+
Brief description of changes
|
|
247
|
+
|
|
248
|
+
## Type of Change
|
|
249
|
+
- [ ] Bug fix
|
|
250
|
+
- [ ] New feature
|
|
251
|
+
- [ ] Breaking change
|
|
252
|
+
- [ ] Documentation update
|
|
253
|
+
|
|
254
|
+
## Testing
|
|
255
|
+
How has this been tested?
|
|
256
|
+
|
|
257
|
+
## Checklist
|
|
258
|
+
- [ ] Tests added/updated
|
|
259
|
+
- [ ] Documentation updated
|
|
260
|
+
- [ ] Linter passes
|
|
261
|
+
- [ ] All tests pass
|
|
262
|
+
|
|
263
|
+
## Related Issues
|
|
264
|
+
Closes #123
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
### Review Process
|
|
268
|
+
|
|
269
|
+
1. Maintainers will review your PR
|
|
270
|
+
2. Address any requested changes
|
|
271
|
+
3. Once approved, your PR will be merged
|
|
272
|
+
4. Your contribution will be included in the next release
|
|
273
|
+
|
|
274
|
+
### After Merge
|
|
275
|
+
|
|
276
|
+
```bash
|
|
277
|
+
# Switch back to main branch
|
|
278
|
+
git checkout main
|
|
279
|
+
|
|
280
|
+
# Pull latest changes
|
|
281
|
+
git pull origin main
|
|
282
|
+
|
|
283
|
+
# Delete feature branch
|
|
284
|
+
git branch -d feature/your-feature-name
|
|
285
|
+
```
|
|
286
|
+
|
|
287
|
+
---
|
|
288
|
+
|
|
289
|
+
## Code Review Guidelines
|
|
290
|
+
|
|
291
|
+
### For Reviewers
|
|
292
|
+
|
|
293
|
+
- Be respectful and constructive
|
|
294
|
+
- Explain the "why" behind suggestions
|
|
295
|
+
- Approve PRs that improve the codebase
|
|
296
|
+
- Request changes for issues that must be fixed
|
|
297
|
+
|
|
298
|
+
### For Contributors
|
|
299
|
+
|
|
300
|
+
- Respond to feedback promptly
|
|
301
|
+
- Ask questions if feedback is unclear
|
|
302
|
+
- Don't take criticism personally
|
|
303
|
+
- Update PR based on feedback
|
|
304
|
+
|
|
305
|
+
---
|
|
306
|
+
|
|
307
|
+
## Documentation
|
|
308
|
+
|
|
309
|
+
### When to Update Documentation
|
|
310
|
+
|
|
311
|
+
Update documentation when:
|
|
312
|
+
- Adding new features
|
|
313
|
+
- Changing API endpoints
|
|
314
|
+
- Modifying configuration
|
|
315
|
+
- Fixing bugs that affect usage
|
|
316
|
+
|
|
317
|
+
### Documentation Locations
|
|
318
|
+
|
|
319
|
+
- **README.md** - Project overview
|
|
320
|
+
- **docs/guides/** - User guides
|
|
321
|
+
- **docs/api/** - API reference
|
|
322
|
+
- **Code comments** - Complex logic explanation
|
|
323
|
+
|
|
324
|
+
### Documentation Standards
|
|
325
|
+
|
|
326
|
+
- Write in clear, simple language
|
|
327
|
+
- Include code examples
|
|
328
|
+
- Keep documentation up-to-date
|
|
329
|
+
- Use proper markdown formatting
|
|
330
|
+
|
|
331
|
+
---
|
|
332
|
+
|
|
333
|
+
## Issue Reporting
|
|
334
|
+
|
|
335
|
+
### Bug Reports
|
|
336
|
+
|
|
337
|
+
**Include:**
|
|
338
|
+
- Clear description of the issue
|
|
339
|
+
- Steps to reproduce
|
|
340
|
+
- Expected behavior
|
|
341
|
+
- Actual behavior
|
|
342
|
+
- Environment details (OS, Node version, etc.)
|
|
343
|
+
- Error messages and stack traces
|
|
344
|
+
|
|
345
|
+
**Template:**
|
|
346
|
+
```markdown
|
|
347
|
+
## Bug Description
|
|
348
|
+
[Clear description]
|
|
349
|
+
|
|
350
|
+
## Steps to Reproduce
|
|
351
|
+
1. Step one
|
|
352
|
+
2. Step two
|
|
353
|
+
3. Step three
|
|
354
|
+
|
|
355
|
+
## Expected Behavior
|
|
356
|
+
[What should happen]
|
|
357
|
+
|
|
358
|
+
## Actual Behavior
|
|
359
|
+
[What actually happens]
|
|
360
|
+
|
|
361
|
+
## Environment
|
|
362
|
+
- OS: [e.g., macOS 12.0]
|
|
363
|
+
- Node: [e.g., 16.14.0]
|
|
364
|
+
- {{PROJECT_NAME}} Version: [e.g., 1.2.3]
|
|
365
|
+
|
|
366
|
+
## Additional Context
|
|
367
|
+
[Screenshots, logs, etc.]
|
|
368
|
+
```
|
|
369
|
+
|
|
370
|
+
### Feature Requests
|
|
371
|
+
|
|
372
|
+
**Include:**
|
|
373
|
+
- Clear description of the feature
|
|
374
|
+
- Use case and motivation
|
|
375
|
+
- Proposed implementation (optional)
|
|
376
|
+
- Alternatives considered
|
|
377
|
+
|
|
378
|
+
---
|
|
379
|
+
|
|
380
|
+
## Development Tips
|
|
381
|
+
|
|
382
|
+
### Useful Commands
|
|
383
|
+
|
|
384
|
+
```bash
|
|
385
|
+
# Start development server
|
|
386
|
+
{{DEV_COMMAND}}
|
|
387
|
+
|
|
388
|
+
# Run tests
|
|
389
|
+
{{TEST_COMMAND}}
|
|
390
|
+
|
|
391
|
+
# Check linting
|
|
392
|
+
{{LINT_COMMAND}}
|
|
393
|
+
|
|
394
|
+
# Format code
|
|
395
|
+
{{FORMAT_COMMAND}}
|
|
396
|
+
|
|
397
|
+
# Build project
|
|
398
|
+
{{BUILD_COMMAND}}
|
|
399
|
+
|
|
400
|
+
# View logs
|
|
401
|
+
{{LOG_COMMAND}}
|
|
402
|
+
```
|
|
403
|
+
|
|
404
|
+
### Debugging
|
|
405
|
+
|
|
406
|
+
{{DEBUG_INSTRUCTIONS}}
|
|
407
|
+
|
|
408
|
+
### Common Issues
|
|
409
|
+
|
|
410
|
+
**Issue:** Tests fail locally but pass in CI
|
|
411
|
+
- **Solution:** Ensure your environment matches CI (Node version, dependencies)
|
|
412
|
+
|
|
413
|
+
**Issue:** Linter fails with "unknown rule"
|
|
414
|
+
- **Solution:** Run `{{PACKAGE_MANAGER}} install` to update ESLint plugins
|
|
415
|
+
|
|
416
|
+
**Issue:** Build fails with type errors
|
|
417
|
+
- **Solution:** Run `{{PACKAGE_MANAGER}} install` and restart TypeScript server
|
|
418
|
+
|
|
419
|
+
---
|
|
420
|
+
|
|
421
|
+
## Project Structure
|
|
422
|
+
|
|
423
|
+
Understanding the project structure helps you navigate the codebase:
|
|
424
|
+
|
|
425
|
+
```
|
|
426
|
+
{{PROJECT_NAME}}/
|
|
427
|
+
├── {{SOURCE_DIRECTORY}}/
|
|
428
|
+
│ ├── api/ # API routes and controllers
|
|
429
|
+
│ ├── models/ # Data models
|
|
430
|
+
│ ├── services/ # Business logic
|
|
431
|
+
│ ├── middleware/ # Custom middleware
|
|
432
|
+
│ └── utils/ # Utility functions
|
|
433
|
+
├── {{TEST_DIRECTORY}}/
|
|
434
|
+
│ ├── unit/ # Unit tests
|
|
435
|
+
│ └── integration/ # Integration tests
|
|
436
|
+
├── docs/ # Documentation
|
|
437
|
+
└── scripts/ # Build and utility scripts
|
|
438
|
+
```
|
|
439
|
+
|
|
440
|
+
---
|
|
441
|
+
|
|
442
|
+
## Communication
|
|
443
|
+
|
|
444
|
+
### Where to Ask Questions
|
|
445
|
+
|
|
446
|
+
- **GitHub Discussions** - General questions and discussions
|
|
447
|
+
- **GitHub Issues** - Bug reports and feature requests
|
|
448
|
+
- **Pull Requests** - Code review and implementation discussions
|
|
449
|
+
|
|
450
|
+
### Response Time
|
|
451
|
+
|
|
452
|
+
- We aim to respond to issues within 48 hours
|
|
453
|
+
- Pull requests are typically reviewed within 1 week
|
|
454
|
+
- Complex PRs may take longer to review
|
|
455
|
+
|
|
456
|
+
---
|
|
457
|
+
|
|
458
|
+
## Recognition
|
|
459
|
+
|
|
460
|
+
Contributors are recognized in:
|
|
461
|
+
- **CONTRIBUTORS.md** - List of all contributors
|
|
462
|
+
- **Release Notes** - Credit for contributions in each release
|
|
463
|
+
- **GitHub Contributors** - Automatic GitHub recognition
|
|
464
|
+
|
|
465
|
+
---
|
|
466
|
+
|
|
467
|
+
## Additional Resources
|
|
468
|
+
|
|
469
|
+
- [Getting Started Guide](./getting-started.md)
|
|
470
|
+
- [API Development Guide](./api-development.md)
|
|
471
|
+
- [API Documentation](../api/README.md)
|
|
472
|
+
- [Deployment Guide](./deployment.md)
|
|
473
|
+
|
|
474
|
+
---
|
|
475
|
+
|
|
476
|
+
## Questions?
|
|
477
|
+
|
|
478
|
+
If you have questions about contributing, please:
|
|
479
|
+
1. Check existing issues and discussions
|
|
480
|
+
2. Review this contributing guide
|
|
481
|
+
3. Ask in GitHub Discussions
|
|
482
|
+
4. Contact the maintainers
|
|
483
|
+
|
|
484
|
+
---
|
|
485
|
+
|
|
486
|
+
Thank you for contributing to {{PROJECT_NAME}}! 🎉
|
|
487
|
+
|
|
488
|
+
*Last updated: {{GENERATION_DATE}}*
|