trinity-method-sdk 2.0.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 +116 -0
- package/LICENSE +21 -0
- package/README.md +555 -0
- package/dist/cli/commands/deploy/agents.d.ts +14 -0
- package/dist/cli/commands/deploy/agents.js +59 -0
- package/dist/cli/commands/deploy/ci-cd.d.ts +13 -0
- package/dist/cli/commands/deploy/ci-cd.js +50 -0
- package/dist/cli/commands/deploy/claude-setup.d.ts +17 -0
- package/dist/cli/commands/deploy/claude-setup.js +91 -0
- package/dist/cli/commands/deploy/configuration.d.ts +13 -0
- package/dist/cli/commands/deploy/configuration.js +215 -0
- package/dist/cli/commands/deploy/directories.d.ts +12 -0
- package/dist/cli/commands/deploy/directories.js +38 -0
- package/dist/cli/commands/deploy/gitignore.d.ts +12 -0
- package/dist/cli/commands/deploy/gitignore.js +53 -0
- package/dist/cli/commands/deploy/index.d.ts +38 -0
- package/dist/cli/commands/deploy/index.js +156 -0
- package/dist/cli/commands/deploy/knowledge-base.d.ts +16 -0
- package/dist/cli/commands/deploy/knowledge-base.js +75 -0
- package/dist/cli/commands/deploy/linting.d.ts +18 -0
- package/dist/cli/commands/deploy/linting.js +51 -0
- package/dist/cli/commands/deploy/metrics.d.ts +13 -0
- package/dist/cli/commands/deploy/metrics.js +34 -0
- package/dist/cli/commands/deploy/pre-flight.d.ts +13 -0
- package/dist/cli/commands/deploy/pre-flight.js +29 -0
- package/dist/cli/commands/deploy/root-files.d.ts +16 -0
- package/dist/cli/commands/deploy/root-files.js +178 -0
- package/dist/cli/commands/deploy/sdk-install.d.ts +12 -0
- package/dist/cli/commands/deploy/sdk-install.js +57 -0
- package/dist/cli/commands/deploy/summary.d.ts +14 -0
- package/dist/cli/commands/deploy/summary.js +130 -0
- package/dist/cli/commands/deploy/templates.d.ts +14 -0
- package/dist/cli/commands/deploy/templates.js +84 -0
- package/dist/cli/commands/deploy/types.d.ts +39 -0
- package/dist/cli/commands/deploy/types.js +5 -0
- package/dist/cli/commands/update/agents.d.ts +14 -0
- package/dist/cli/commands/update/agents.js +31 -0
- package/dist/cli/commands/update/backup.d.ts +31 -0
- package/dist/cli/commands/update/backup.js +97 -0
- package/dist/cli/commands/update/commands.d.ts +14 -0
- package/dist/cli/commands/update/commands.js +75 -0
- package/dist/cli/commands/update/index.d.ts +15 -0
- package/dist/cli/commands/update/index.js +118 -0
- package/dist/cli/commands/update/knowledge-base.d.ts +14 -0
- package/dist/cli/commands/update/knowledge-base.js +38 -0
- package/dist/cli/commands/update/pre-flight.d.ts +13 -0
- package/dist/cli/commands/update/pre-flight.js +37 -0
- package/dist/cli/commands/update/summary.d.ts +20 -0
- package/dist/cli/commands/update/summary.js +47 -0
- package/dist/cli/commands/update/templates.d.ts +14 -0
- package/dist/cli/commands/update/templates.js +25 -0
- package/dist/cli/commands/update/types.d.ts +13 -0
- package/dist/cli/commands/update/types.js +7 -0
- package/dist/cli/commands/update/utils.d.ts +11 -0
- package/dist/cli/commands/update/utils.js +19 -0
- package/dist/cli/commands/update/verification.d.ts +20 -0
- package/dist/cli/commands/update/verification.js +54 -0
- package/dist/cli/commands/update/version.d.ts +18 -0
- package/dist/cli/commands/update/version.js +36 -0
- package/dist/cli/commands/update.d.ts +7 -0
- package/dist/cli/commands/update.js +7 -0
- package/dist/cli/index.d.ts +3 -0
- package/dist/cli/index.js +36 -0
- package/dist/cli/types.d.ts +77 -0
- package/dist/cli/types.js +5 -0
- package/dist/cli/utils/deploy-ci.d.ts +22 -0
- package/dist/cli/utils/deploy-ci.js +138 -0
- package/dist/cli/utils/deploy-linting.d.ts +3 -0
- package/dist/cli/utils/deploy-linting.js +136 -0
- package/dist/cli/utils/detect-stack.d.ts +3 -0
- package/dist/cli/utils/detect-stack.js +270 -0
- package/dist/cli/utils/error-classes.d.ts +63 -0
- package/dist/cli/utils/error-classes.js +84 -0
- package/dist/cli/utils/error-handler.d.ts +59 -0
- package/dist/cli/utils/error-handler.js +127 -0
- package/dist/cli/utils/errors.d.ts +52 -0
- package/dist/cli/utils/errors.js +102 -0
- package/dist/cli/utils/get-sdk-path.d.ts +18 -0
- package/dist/cli/utils/get-sdk-path.js +31 -0
- package/dist/cli/utils/inject-dependencies.d.ts +2 -0
- package/dist/cli/utils/inject-dependencies.js +55 -0
- package/dist/cli/utils/linting-tools.d.ts +8 -0
- package/dist/cli/utils/linting-tools.js +206 -0
- package/dist/cli/utils/metrics/code-quality.d.ts +32 -0
- package/dist/cli/utils/metrics/code-quality.js +122 -0
- package/dist/cli/utils/metrics/dependency-parser.d.ts +21 -0
- package/dist/cli/utils/metrics/dependency-parser.js +153 -0
- package/dist/cli/utils/metrics/file-complexity.d.ts +26 -0
- package/dist/cli/utils/metrics/file-complexity.js +77 -0
- package/dist/cli/utils/metrics/framework-detector.d.ts +17 -0
- package/dist/cli/utils/metrics/framework-detector.js +120 -0
- package/dist/cli/utils/metrics/git-metrics.d.ts +30 -0
- package/dist/cli/utils/metrics/git-metrics.js +83 -0
- package/dist/cli/utils/metrics/index.d.ts +28 -0
- package/dist/cli/utils/metrics/index.js +100 -0
- package/dist/cli/utils/template-processor.d.ts +10 -0
- package/dist/cli/utils/template-processor.js +188 -0
- package/dist/cli/utils/validate-path.d.ts +80 -0
- package/dist/cli/utils/validate-path.js +180 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +8 -0
- package/dist/templates/agents/aj-team/apo-documentation-specialist.md.template +572 -0
- package/dist/templates/agents/aj-team/bas-quality-gate.md.template +906 -0
- package/dist/templates/agents/aj-team/bon-dependency-manager.md.template +636 -0
- package/dist/templates/agents/aj-team/cap-configuration-specialist.md.template +670 -0
- package/dist/templates/agents/aj-team/dra-code-reviewer.md.template +768 -0
- package/dist/templates/agents/aj-team/kil-task-executor.md.template +764 -0
- package/dist/templates/agents/aj-team/uro-refactoring-specialist.md.template +759 -0
- package/dist/templates/agents/audit/juno-auditor.md.template +447 -0
- package/dist/templates/agents/deployment/ein-cicd.md.template +694 -0
- package/dist/templates/agents/deployment/ino-context.md.template +733 -0
- package/dist/templates/agents/deployment/tan-structure.md.template +661 -0
- package/dist/templates/agents/deployment/zen-knowledge.md.template +451 -0
- package/dist/templates/agents/leadership/aj-cc.md.template +462 -0
- package/dist/templates/agents/leadership/aj-maestro.md.template +943 -0
- package/dist/templates/agents/leadership/aly-cto.md.template +407 -0
- package/dist/templates/agents/planning/eus-decomposer.md.template +496 -0
- package/dist/templates/agents/planning/mon-requirements.md.template +323 -0
- package/dist/templates/agents/planning/ror-design.md.template +465 -0
- package/dist/templates/agents/planning/tra-planner.md.template +432 -0
- package/dist/templates/ci/cd.yml.template +175 -0
- package/dist/templates/ci/ci.yml.template +196 -0
- package/dist/templates/ci/generic-ci.yml +115 -0
- package/dist/templates/ci/github-actions.yml +86 -0
- package/dist/templates/ci/gitlab-ci.yml +103 -0
- package/dist/templates/claude/EMPLOYEE-DIRECTORY.md.template +545 -0
- package/dist/templates/documentation/ROOT-README.md.template +307 -0
- package/dist/templates/documentation/SUBDIRECTORY-README.md.template +261 -0
- package/dist/templates/investigations/bug.md.template +484 -0
- package/dist/templates/investigations/feature.md.template +564 -0
- package/dist/templates/investigations/performance.md.template +625 -0
- package/dist/templates/investigations/security.md.template +714 -0
- package/dist/templates/investigations/technical.md.template +433 -0
- package/dist/templates/knowledge-base/AI-DEVELOPMENT-GUIDE.md.template +957 -0
- package/dist/templates/knowledge-base/ARCHITECTURE.md.template +452 -0
- package/dist/templates/knowledge-base/CODING-PRINCIPLES.md.template +750 -0
- package/dist/templates/knowledge-base/DOCUMENTATION-CRITERIA.md.template +1118 -0
- package/dist/templates/knowledge-base/ISSUES.md.template +539 -0
- package/dist/templates/knowledge-base/TESTING-PRINCIPLES.md.template +894 -0
- package/dist/templates/knowledge-base/Technical-Debt.md.template +640 -0
- package/dist/templates/knowledge-base/To-do.md.template +407 -0
- package/dist/templates/knowledge-base/Trinity.md.template +464 -0
- package/dist/templates/linting/flutter/.pre-commit-config.yaml.template +27 -0
- package/dist/templates/linting/flutter/analysis_options.yaml.template +26 -0
- package/dist/templates/linting/nodejs/.eslintrc-commonjs.json.template +19 -0
- package/dist/templates/linting/nodejs/.eslintrc-esm.json.template +19 -0
- package/dist/templates/linting/nodejs/.eslintrc-typescript.json.template +22 -0
- package/dist/templates/linting/nodejs/.pre-commit-config.yaml.template +51 -0
- package/dist/templates/linting/nodejs/.prettierrc.json.template +10 -0
- package/dist/templates/linting/python/.flake8.template +16 -0
- package/dist/templates/linting/python/.pre-commit-config.yaml.template +30 -0
- package/dist/templates/linting/python/pyproject.toml.template +38 -0
- package/dist/templates/linting/rust/.pre-commit-config.yaml.template +28 -0
- package/dist/templates/linting/rust/clippy.toml.template +14 -0
- package/dist/templates/linting/rust/rustfmt.toml.template +12 -0
- package/dist/templates/root/CLAUDE.md.template +65 -0
- package/dist/templates/root/TRINITY.md.template +52 -0
- package/dist/templates/shared/claude-commands/trinity-agents.md.template +168 -0
- package/dist/templates/shared/claude-commands/trinity-audit.md.template +646 -0
- package/dist/templates/shared/claude-commands/trinity-changelog.md.template +624 -0
- package/dist/templates/shared/claude-commands/trinity-continue.md.template +549 -0
- package/dist/templates/shared/claude-commands/trinity-create-investigation.md.template +232 -0
- package/dist/templates/shared/claude-commands/trinity-decompose.md.template +181 -0
- package/dist/templates/shared/claude-commands/trinity-design.md.template +347 -0
- package/dist/templates/shared/claude-commands/trinity-docs.md.template +2093 -0
- package/dist/templates/shared/claude-commands/trinity-end.md.template +397 -0
- package/dist/templates/shared/claude-commands/trinity-init.md.template +606 -0
- package/dist/templates/shared/claude-commands/trinity-investigate-templates.md.template +725 -0
- package/dist/templates/shared/claude-commands/trinity-orchestrate.md.template +1061 -0
- package/dist/templates/shared/claude-commands/trinity-plan-investigation.md.template +135 -0
- package/dist/templates/shared/claude-commands/trinity-plan.md.template +201 -0
- package/dist/templates/shared/claude-commands/trinity-readme.md.template +1971 -0
- package/dist/templates/shared/claude-commands/trinity-requirements.md.template +148 -0
- package/dist/templates/shared/claude-commands/trinity-start.md.template +268 -0
- package/dist/templates/shared/claude-commands/trinity-verify.md.template +453 -0
- package/dist/templates/shared/claude-commands/trinity-workorder.md.template +249 -0
- package/dist/templates/source/base-CLAUDE.md.template +310 -0
- package/dist/templates/source/flutter-CLAUDE.md.template +593 -0
- package/dist/templates/source/nodejs-CLAUDE.md.template +531 -0
- package/dist/templates/source/python-CLAUDE.md.template +510 -0
- package/dist/templates/source/react-CLAUDE.md.template +513 -0
- package/dist/templates/source/rust-CLAUDE.md.template +653 -0
- package/dist/templates/source/tests-CLAUDE.md.template +432 -0
- package/dist/templates/trinity/CLAUDE.md.template +372 -0
- package/dist/templates/work-orders/ANALYSIS-TEMPLATE.md.template +276 -0
- package/dist/templates/work-orders/AUDIT-TEMPLATE.md.template +262 -0
- package/dist/templates/work-orders/IMPLEMENTATION-TEMPLATE.md.template +260 -0
- package/dist/templates/work-orders/INVESTIGATION-TEMPLATE.md.template +206 -0
- package/dist/templates/work-orders/PATTERN-TEMPLATE.md.template +320 -0
- package/dist/templates/work-orders/VERIFICATION-TEMPLATE.md.template +273 -0
- package/package.json +94 -0
|
@@ -0,0 +1,307 @@
|
|
|
1
|
+
# {{PROJECT_NAME}}
|
|
2
|
+
|
|
3
|
+
[APO: Write a 1-2 sentence description of what this project does and why it exists]
|
|
4
|
+
|
|
5
|
+
[APO: Add appropriate badges based on project type. Examples:
|
|
6
|
+
- npm projects: npm version, build status, coverage, license
|
|
7
|
+
- Python projects: PyPI version, build status, coverage, license
|
|
8
|
+
- Rust projects: crates.io version, build status, docs.rs
|
|
9
|
+
- Mobile apps: version, platform support, license
|
|
10
|
+
- Libraries: version, downloads, license
|
|
11
|
+
Remove this instruction block and add actual badges below]
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## Features
|
|
16
|
+
|
|
17
|
+
[APO: List 4-8 key features discovered from codebase audit. Use emoji icons for visual appeal.
|
|
18
|
+
Format: - 🚀 **Feature Name** - Brief description
|
|
19
|
+
Remove this instruction and replace with actual features]
|
|
20
|
+
|
|
21
|
+
- **Feature 1** - Description
|
|
22
|
+
- **Feature 2** - Description
|
|
23
|
+
- **Feature 3** - Description
|
|
24
|
+
- **Feature 4** - Description
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## Installation
|
|
29
|
+
|
|
30
|
+
[APO: Provide installation instructions appropriate for the project type.
|
|
31
|
+
- npm/Node.js: npm install, yarn add
|
|
32
|
+
- Python: pip install, poetry add
|
|
33
|
+
- Rust: cargo add
|
|
34
|
+
- Go: go get
|
|
35
|
+
- Mobile: App store links, build from source
|
|
36
|
+
- Desktop apps: Download links, package managers
|
|
37
|
+
Remove this instruction and add actual installation steps below]
|
|
38
|
+
|
|
39
|
+
### Prerequisites
|
|
40
|
+
|
|
41
|
+
[APO: List required tools, versions, and dependencies based on project analysis]
|
|
42
|
+
|
|
43
|
+
- Prerequisite 1
|
|
44
|
+
- Prerequisite 2
|
|
45
|
+
|
|
46
|
+
### Install
|
|
47
|
+
|
|
48
|
+
[APO: Provide the primary installation method for this project type]
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
# Installation command here
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### Install from Source
|
|
55
|
+
|
|
56
|
+
[APO: Provide build-from-source instructions]
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
git clone [repository-url]
|
|
60
|
+
cd [project-directory]
|
|
61
|
+
# Build commands
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
## Quick Start
|
|
67
|
+
|
|
68
|
+
[APO: Provide a minimal example showing how to use the project.
|
|
69
|
+
Base this on:
|
|
70
|
+
1. Entry points found in codebase
|
|
71
|
+
2. Common patterns in existing code
|
|
72
|
+
3. Documentation strings in source files
|
|
73
|
+
4. Test files showing usage
|
|
74
|
+
Remove this instruction and add actual quick start below]
|
|
75
|
+
|
|
76
|
+
### Basic Usage
|
|
77
|
+
|
|
78
|
+
```[LANGUAGE]
|
|
79
|
+
// [APO: Replace with actual minimal working example]
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
### Advanced Example
|
|
83
|
+
|
|
84
|
+
[APO: If applicable, show a more complex usage example]
|
|
85
|
+
|
|
86
|
+
```[LANGUAGE]
|
|
87
|
+
// [APO: Replace with actual advanced example or remove this section]
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
---
|
|
91
|
+
|
|
92
|
+
## Usage
|
|
93
|
+
|
|
94
|
+
[APO: Document common use cases found in the codebase or examples directory.
|
|
95
|
+
Include code examples for each use case.
|
|
96
|
+
Remove this instruction and add actual usage documentation below]
|
|
97
|
+
|
|
98
|
+
### Use Case 1: [Description]
|
|
99
|
+
|
|
100
|
+
```[LANGUAGE]
|
|
101
|
+
// Example code
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
### Use Case 2: [Description]
|
|
105
|
+
|
|
106
|
+
```[LANGUAGE]
|
|
107
|
+
// Example code
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
---
|
|
111
|
+
|
|
112
|
+
## Configuration
|
|
113
|
+
|
|
114
|
+
[APO: Document configuration options based on:
|
|
115
|
+
1. Config files found (config.json, .env, etc.)
|
|
116
|
+
2. Command-line arguments
|
|
117
|
+
3. Environment variables
|
|
118
|
+
4. Constructor/initialization options in code
|
|
119
|
+
Remove this instruction and add actual configuration documentation below]
|
|
120
|
+
|
|
121
|
+
### Configuration Options
|
|
122
|
+
|
|
123
|
+
[APO: If using a table format is appropriate:]
|
|
124
|
+
|
|
125
|
+
| Option | Type | Default | Description |
|
|
126
|
+
|--------|------|---------|-------------|
|
|
127
|
+
| option1 | type | default | description |
|
|
128
|
+
|
|
129
|
+
[APO: If using environment variables:]
|
|
130
|
+
|
|
131
|
+
### Environment Variables
|
|
132
|
+
|
|
133
|
+
```bash
|
|
134
|
+
VARIABLE_NAME=value # Description
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
[APO: If using configuration files:]
|
|
138
|
+
|
|
139
|
+
### Configuration File
|
|
140
|
+
|
|
141
|
+
**config.[ext]**
|
|
142
|
+
```[format]
|
|
143
|
+
{
|
|
144
|
+
"option": "value"
|
|
145
|
+
}
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
---
|
|
149
|
+
|
|
150
|
+
## API Reference
|
|
151
|
+
|
|
152
|
+
[APO: Provide API documentation based on project type:
|
|
153
|
+
- Libraries: Public classes, functions, methods
|
|
154
|
+
- REST APIs: Endpoints, request/response formats
|
|
155
|
+
- CLI tools: Commands, flags, arguments
|
|
156
|
+
- Remove this instruction and add actual API documentation below
|
|
157
|
+
- Link to full API docs if they exist separately]
|
|
158
|
+
|
|
159
|
+
[APO: For libraries, document main exports]
|
|
160
|
+
[APO: For APIs, document endpoints]
|
|
161
|
+
[APO: For CLI tools, document commands]
|
|
162
|
+
|
|
163
|
+
---
|
|
164
|
+
|
|
165
|
+
## Documentation
|
|
166
|
+
|
|
167
|
+
[APO: Link to additional documentation found in docs/ directory.
|
|
168
|
+
If docs/ doesn't exist but should, note it as a TODO.
|
|
169
|
+
Remove this instruction and add actual documentation links below]
|
|
170
|
+
|
|
171
|
+
For complete documentation, see:
|
|
172
|
+
|
|
173
|
+
- [Getting Started Guide](docs/guides/getting-started.md)
|
|
174
|
+
- [Configuration Guide](docs/guides/configuration.md)
|
|
175
|
+
- [API Reference](docs/api/README.md)
|
|
176
|
+
- [Troubleshooting](docs/guides/troubleshooting.md)
|
|
177
|
+
|
|
178
|
+
---
|
|
179
|
+
|
|
180
|
+
## Examples
|
|
181
|
+
|
|
182
|
+
[APO: If an examples/ directory exists, reference it.
|
|
183
|
+
If example files exist, list them.
|
|
184
|
+
Otherwise, remove this section.
|
|
185
|
+
Remove this instruction and add actual examples section or remove entirely]
|
|
186
|
+
|
|
187
|
+
Check out the [examples/](examples/) directory for more usage examples:
|
|
188
|
+
|
|
189
|
+
- [Example 1](examples/example1) - Description
|
|
190
|
+
- [Example 2](examples/example2) - Description
|
|
191
|
+
|
|
192
|
+
---
|
|
193
|
+
|
|
194
|
+
## Development
|
|
195
|
+
|
|
196
|
+
[APO: Provide development setup instructions based on:
|
|
197
|
+
1. package.json scripts (Node.js)
|
|
198
|
+
2. Makefile targets
|
|
199
|
+
3. Build system files (CMakeLists.txt, Cargo.toml, etc.)
|
|
200
|
+
4. Contributing guidelines
|
|
201
|
+
Remove this instruction and add actual development instructions below]
|
|
202
|
+
|
|
203
|
+
### Setup Development Environment
|
|
204
|
+
|
|
205
|
+
```bash
|
|
206
|
+
# Clone and setup instructions
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
### Running Tests
|
|
210
|
+
|
|
211
|
+
```bash
|
|
212
|
+
# Test commands found in project
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
### Project Structure
|
|
216
|
+
|
|
217
|
+
[APO: Optionally include directory structure if helpful]
|
|
218
|
+
|
|
219
|
+
```
|
|
220
|
+
project/
|
|
221
|
+
├── src/ # Description
|
|
222
|
+
├── tests/ # Description
|
|
223
|
+
└── docs/ # Description
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
---
|
|
227
|
+
|
|
228
|
+
## Contributing
|
|
229
|
+
|
|
230
|
+
[APO: If CONTRIBUTING.md exists, link to it.
|
|
231
|
+
Otherwise, provide basic contribution guidelines.
|
|
232
|
+
Remove this instruction and update below]
|
|
233
|
+
|
|
234
|
+
Contributions are welcome! Please read our [Contributing Guidelines](CONTRIBUTING.md) before submitting a pull request.
|
|
235
|
+
|
|
236
|
+
[APO: If CONTRIBUTING.md doesn't exist, provide basic guidelines:]
|
|
237
|
+
1. Fork the repository
|
|
238
|
+
2. Create your feature branch
|
|
239
|
+
3. Commit your changes
|
|
240
|
+
4. Push to the branch
|
|
241
|
+
5. Open a Pull Request
|
|
242
|
+
|
|
243
|
+
---
|
|
244
|
+
|
|
245
|
+
## Changelog
|
|
246
|
+
|
|
247
|
+
[APO: If CHANGELOG.md or docs/CHANGELOG.md exists, link to it.
|
|
248
|
+
Otherwise, note where version history can be found.
|
|
249
|
+
Remove this instruction and update below]
|
|
250
|
+
|
|
251
|
+
See [CHANGELOG.md](docs/CHANGELOG.md) for a list of changes in each version.
|
|
252
|
+
|
|
253
|
+
---
|
|
254
|
+
|
|
255
|
+
## Support
|
|
256
|
+
|
|
257
|
+
[APO: Provide support resources found or commonly used.
|
|
258
|
+
Remove this instruction and add actual support information below]
|
|
259
|
+
|
|
260
|
+
- 📖 [Documentation](docs/)
|
|
261
|
+
- 💬 [Discussions](https://github.com/{{GITHUB_USER}}/{{PROJECT_VAR_NAME}}/discussions)
|
|
262
|
+
- 🐛 [Issue Tracker](https://github.com/{{GITHUB_USER}}/{{PROJECT_VAR_NAME}}/issues)
|
|
263
|
+
|
|
264
|
+
---
|
|
265
|
+
|
|
266
|
+
## License
|
|
267
|
+
|
|
268
|
+
[APO: Read LICENSE file and insert license type and copyright.
|
|
269
|
+
Common formats: MIT, Apache-2.0, GPL-3.0, BSD-3-Clause
|
|
270
|
+
Remove this instruction and add actual license information below]
|
|
271
|
+
|
|
272
|
+
This project is licensed under the [LICENSE_TYPE] License - see the [LICENSE](LICENSE) file for details.
|
|
273
|
+
|
|
274
|
+
---
|
|
275
|
+
|
|
276
|
+
## Acknowledgments
|
|
277
|
+
|
|
278
|
+
[APO: This section is optional. Include if:
|
|
279
|
+
1. README mentions contributors
|
|
280
|
+
2. Significant third-party dependencies
|
|
281
|
+
3. Inspiration from other projects
|
|
282
|
+
Otherwise, remove this entire section including the instruction]
|
|
283
|
+
|
|
284
|
+
- Contributor/Library 1
|
|
285
|
+
- Contributor/Library 2
|
|
286
|
+
|
|
287
|
+
---
|
|
288
|
+
|
|
289
|
+
[APO: INSTRUCTIONS FOR COMPLETING THIS TEMPLATE:
|
|
290
|
+
|
|
291
|
+
1. Read the LICENSE file to determine license type
|
|
292
|
+
2. Analyze package.json, Cargo.toml, setup.py, go.mod, etc. to determine project type
|
|
293
|
+
3. Scan source code for entry points and main exports
|
|
294
|
+
4. Check for existing documentation in docs/, README sections, or code comments
|
|
295
|
+
5. Identify configuration mechanisms (env vars, config files, CLI flags)
|
|
296
|
+
6. Find examples in examples/, tests/, or inline documentation
|
|
297
|
+
7. Replace all [APO: ...] instructions with actual content
|
|
298
|
+
8. Remove all instruction blocks (like this one)
|
|
299
|
+
9. Remove sections that don't apply to this project type
|
|
300
|
+
10. Ensure all code examples use the correct language
|
|
301
|
+
11. Verify all links point to existing files
|
|
302
|
+
12. Add badges appropriate for the project type and hosting platform
|
|
303
|
+
|
|
304
|
+
After completing:
|
|
305
|
+
- Document what you filled in vs. what was placeholder
|
|
306
|
+
- Note in the documentation audit report which sections need user review
|
|
307
|
+
- Flag any sections where information was insufficient]
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
# {{DIRECTORY_NAME}}
|
|
2
|
+
|
|
3
|
+
[APO: Write a brief description of this directory's purpose and what it contains.
|
|
4
|
+
Remove this instruction and replace with actual description]
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## Purpose
|
|
9
|
+
|
|
10
|
+
[APO: Explain why this directory exists and what role it plays in the project architecture.
|
|
11
|
+
Remove this instruction and replace with actual purpose]
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## Contents
|
|
16
|
+
|
|
17
|
+
[APO: List files and subdirectories found in this directory.
|
|
18
|
+
Group by type if helpful (e.g., components, utilities, tests).
|
|
19
|
+
Remove this instruction and add actual contents below]
|
|
20
|
+
|
|
21
|
+
### Files
|
|
22
|
+
|
|
23
|
+
[APO: List main files with brief descriptions]
|
|
24
|
+
|
|
25
|
+
- `file1.[ext]` - Description
|
|
26
|
+
- `file2.[ext]` - Description
|
|
27
|
+
- `file3.[ext]` - Description
|
|
28
|
+
|
|
29
|
+
### Subdirectories
|
|
30
|
+
|
|
31
|
+
[APO: If subdirectories exist, list them with descriptions]
|
|
32
|
+
|
|
33
|
+
- `subdirectory1/` - Description
|
|
34
|
+
- `subdirectory2/` - Description
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## Key Files
|
|
39
|
+
|
|
40
|
+
[APO: Document the most important files in this directory.
|
|
41
|
+
Include what they export, their purpose, and usage examples.
|
|
42
|
+
Remove this instruction and add actual key files documentation below]
|
|
43
|
+
|
|
44
|
+
### `important-file.[ext]`
|
|
45
|
+
|
|
46
|
+
**Purpose:** [APO: What this file does]
|
|
47
|
+
|
|
48
|
+
**Exports:** [APO: List main exports, classes, functions]
|
|
49
|
+
- `exportedFunction1()` - Description
|
|
50
|
+
- `exportedClass` - Description
|
|
51
|
+
|
|
52
|
+
**Usage:**
|
|
53
|
+
```[LANGUAGE]
|
|
54
|
+
// [APO: Provide actual usage example based on code analysis]
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
### `another-file.[ext]`
|
|
60
|
+
|
|
61
|
+
**Purpose:** [APO: What this file does]
|
|
62
|
+
|
|
63
|
+
**Exports:** [APO: List main exports]
|
|
64
|
+
- `mainFunction()` - Description
|
|
65
|
+
|
|
66
|
+
**Usage:**
|
|
67
|
+
```[LANGUAGE]
|
|
68
|
+
// [APO: Provide actual usage example]
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
## Usage
|
|
74
|
+
|
|
75
|
+
[APO: Provide examples of how to use code from this directory.
|
|
76
|
+
Base this on:
|
|
77
|
+
1. Import/require statements found in other files
|
|
78
|
+
2. Test files showing usage
|
|
79
|
+
3. Examples directory
|
|
80
|
+
Remove this instruction and add actual usage below]
|
|
81
|
+
|
|
82
|
+
### Basic Usage
|
|
83
|
+
|
|
84
|
+
```[LANGUAGE]
|
|
85
|
+
// [APO: Replace with actual import/usage example]
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
### Advanced Usage
|
|
89
|
+
|
|
90
|
+
```[LANGUAGE]
|
|
91
|
+
// [APO: Replace with actual advanced example or remove if not applicable]
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
---
|
|
95
|
+
|
|
96
|
+
## Directory Structure
|
|
97
|
+
|
|
98
|
+
[APO: Optionally provide a tree view of this directory's structure if it's complex.
|
|
99
|
+
Remove this section if directory is simple.
|
|
100
|
+
Remove this instruction and add actual structure or remove section]
|
|
101
|
+
|
|
102
|
+
```
|
|
103
|
+
{{DIRECTORY_NAME}}/
|
|
104
|
+
├── file1.[ext] # Description
|
|
105
|
+
├── file2.[ext] # Description
|
|
106
|
+
├── subdirectory1/ # Description
|
|
107
|
+
│ ├── sub-file1.[ext]
|
|
108
|
+
│ └── sub-file2.[ext]
|
|
109
|
+
└── subdirectory2/ # Description
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
---
|
|
113
|
+
|
|
114
|
+
## Key Concepts
|
|
115
|
+
|
|
116
|
+
[APO: If this directory implements important patterns or concepts, document them.
|
|
117
|
+
Otherwise, remove this entire section.
|
|
118
|
+
Remove this instruction and add concepts or remove section]
|
|
119
|
+
|
|
120
|
+
### Concept 1
|
|
121
|
+
|
|
122
|
+
[APO: Explanation of important concept]
|
|
123
|
+
|
|
124
|
+
**Example:**
|
|
125
|
+
```[LANGUAGE]
|
|
126
|
+
// Example demonstrating concept
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
---
|
|
130
|
+
|
|
131
|
+
## Dependencies
|
|
132
|
+
|
|
133
|
+
[APO: Document dependencies of code in this directory.
|
|
134
|
+
Remove this instruction and add actual dependencies below]
|
|
135
|
+
|
|
136
|
+
### Internal Dependencies
|
|
137
|
+
|
|
138
|
+
This directory depends on:
|
|
139
|
+
- `../other-directory/` - Why this dependency exists
|
|
140
|
+
- `../another-directory/` - Why this dependency exists
|
|
141
|
+
|
|
142
|
+
### External Dependencies
|
|
143
|
+
|
|
144
|
+
[APO: If this directory uses specific external packages, list them]
|
|
145
|
+
|
|
146
|
+
This directory uses:
|
|
147
|
+
- `external-package` - Why this package is used
|
|
148
|
+
- `another-package` - Why this package is used
|
|
149
|
+
|
|
150
|
+
---
|
|
151
|
+
|
|
152
|
+
## Testing
|
|
153
|
+
|
|
154
|
+
[APO: Provide information about tests for this directory.
|
|
155
|
+
Remove this instruction and add actual testing information below]
|
|
156
|
+
|
|
157
|
+
Tests for this directory are located in:
|
|
158
|
+
- `tests/{{DIRECTORY_NAME}}/` - Unit tests
|
|
159
|
+
- `tests/integration/{{DIRECTORY_NAME}}/` - Integration tests
|
|
160
|
+
|
|
161
|
+
**Run tests:**
|
|
162
|
+
```bash
|
|
163
|
+
# [APO: Provide actual test command based on project]
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
---
|
|
167
|
+
|
|
168
|
+
## Common Patterns
|
|
169
|
+
|
|
170
|
+
[APO: Document common usage patterns found in this directory.
|
|
171
|
+
Remove this section if not applicable.
|
|
172
|
+
Remove this instruction and add patterns or remove section]
|
|
173
|
+
|
|
174
|
+
### Pattern 1: [Pattern Name]
|
|
175
|
+
|
|
176
|
+
**When to use:** [APO: Description of when this pattern is appropriate]
|
|
177
|
+
|
|
178
|
+
**Example:**
|
|
179
|
+
```[LANGUAGE]
|
|
180
|
+
// [APO: Example of pattern]
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
---
|
|
184
|
+
|
|
185
|
+
## Related Documentation
|
|
186
|
+
|
|
187
|
+
[APO: Link to related documentation.
|
|
188
|
+
Verify links exist before including.
|
|
189
|
+
Remove this instruction and add actual links below]
|
|
190
|
+
|
|
191
|
+
- [Main Documentation](../../docs/README.md)
|
|
192
|
+
- [API Reference](../../docs/api/{{DIRECTORY_NAME}}.md)
|
|
193
|
+
- [Architecture Guide](../../docs/architecture/README.md)
|
|
194
|
+
- [Parent Directory](../README.md)
|
|
195
|
+
|
|
196
|
+
---
|
|
197
|
+
|
|
198
|
+
## Notes
|
|
199
|
+
|
|
200
|
+
[APO: Include important considerations, gotchas, or best practices.
|
|
201
|
+
Remove this instruction and add actual notes below]
|
|
202
|
+
|
|
203
|
+
### Important Considerations
|
|
204
|
+
|
|
205
|
+
- Note 1: [APO: Important consideration about this directory]
|
|
206
|
+
- Note 2: [APO: Another important consideration]
|
|
207
|
+
|
|
208
|
+
### Best Practices
|
|
209
|
+
|
|
210
|
+
[APO: If there are established patterns for working with this code]
|
|
211
|
+
|
|
212
|
+
- Practice 1
|
|
213
|
+
- Practice 2
|
|
214
|
+
|
|
215
|
+
### Future Improvements
|
|
216
|
+
|
|
217
|
+
[APO: If TODO comments or issues reference this directory]
|
|
218
|
+
|
|
219
|
+
- [ ] Planned improvement 1
|
|
220
|
+
- [ ] Planned improvement 2
|
|
221
|
+
|
|
222
|
+
---
|
|
223
|
+
|
|
224
|
+
## Contributing
|
|
225
|
+
|
|
226
|
+
[APO: Provide directory-specific contribution guidelines if needed.
|
|
227
|
+
Otherwise, just reference main contributing guide.
|
|
228
|
+
Remove this instruction and update below]
|
|
229
|
+
|
|
230
|
+
When contributing to this directory:
|
|
231
|
+
|
|
232
|
+
1. Follow the established patterns and conventions
|
|
233
|
+
2. Add tests for new functionality
|
|
234
|
+
3. Update this README if adding new files or concepts
|
|
235
|
+
4. Ensure all tests pass before submitting PR
|
|
236
|
+
|
|
237
|
+
See [Contributing Guidelines](../../CONTRIBUTING.md) for more details.
|
|
238
|
+
|
|
239
|
+
---
|
|
240
|
+
|
|
241
|
+
**Last Updated:** {{CURRENT_DATE}}
|
|
242
|
+
|
|
243
|
+
---
|
|
244
|
+
|
|
245
|
+
[APO: INSTRUCTIONS FOR COMPLETING THIS TEMPLATE:
|
|
246
|
+
|
|
247
|
+
1. Scan this directory and all subdirectories for files
|
|
248
|
+
2. Identify the most important files (entry points, main exports)
|
|
249
|
+
3. Analyze import/export statements to understand dependencies
|
|
250
|
+
4. Check for corresponding test files
|
|
251
|
+
5. Look for patterns or common usages in code
|
|
252
|
+
6. Replace all [APO: ...] instructions with actual content
|
|
253
|
+
7. Remove all instruction blocks (like this one)
|
|
254
|
+
8. Remove sections that don't apply (e.g., if no tests, remove testing section)
|
|
255
|
+
9. Ensure code examples use the correct language syntax
|
|
256
|
+
10. Verify all file paths and links are correct
|
|
257
|
+
11. Update {{DIRECTORY_NAME}} and {{CURRENT_DATE}} placeholders
|
|
258
|
+
|
|
259
|
+
After completing:
|
|
260
|
+
- Note in documentation audit report which sections needed inference vs. found in code
|
|
261
|
+
- Flag any sections where user review would be helpful]
|