@mytechtoday/augment-extensions 1.2.2 → 1.3.1

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.
Files changed (87) hide show
  1. package/LICENSE +22 -22
  2. package/augment-extensions/domain-rules/software-architecture/README.md +143 -143
  3. package/augment-extensions/domain-rules/software-architecture/examples/banking-layered.md +961 -961
  4. package/augment-extensions/domain-rules/software-architecture/examples/ecommerce-microservices.md +990 -990
  5. package/augment-extensions/domain-rules/software-architecture/examples/iot-eventdriven.md +882 -882
  6. package/augment-extensions/domain-rules/software-architecture/examples/monolith-to-microservices-migration.md +703 -703
  7. package/augment-extensions/domain-rules/software-architecture/examples/serverless-imageprocessing.md +957 -957
  8. package/augment-extensions/domain-rules/software-architecture/examples/trading-eventdriven.md +747 -747
  9. package/augment-extensions/domain-rules/software-architecture/module.json +119 -119
  10. package/augment-extensions/domain-rules/software-architecture/rules/challenges-solutions.md +763 -763
  11. package/augment-extensions/domain-rules/software-architecture/rules/definitions-terminology.md +409 -409
  12. package/augment-extensions/domain-rules/software-architecture/rules/design-principles.md +684 -684
  13. package/augment-extensions/domain-rules/software-architecture/rules/evaluation-testing.md +1381 -1381
  14. package/augment-extensions/domain-rules/software-architecture/rules/event-driven-architecture.md +616 -616
  15. package/augment-extensions/domain-rules/software-architecture/rules/fundamentals.md +306 -306
  16. package/augment-extensions/domain-rules/software-architecture/rules/industry-architectures.md +554 -554
  17. package/augment-extensions/domain-rules/software-architecture/rules/layered-architecture.md +776 -776
  18. package/augment-extensions/domain-rules/software-architecture/rules/microservices-architecture.md +503 -503
  19. package/augment-extensions/domain-rules/software-architecture/rules/modeling-documentation.md +1199 -1199
  20. package/augment-extensions/domain-rules/software-architecture/rules/monolithic-architecture.md +351 -351
  21. package/augment-extensions/domain-rules/software-architecture/rules/principles.md +556 -556
  22. package/augment-extensions/domain-rules/software-architecture/rules/quality-attributes.md +797 -797
  23. package/augment-extensions/domain-rules/software-architecture/rules/scalability-performance.md +1345 -1345
  24. package/augment-extensions/domain-rules/software-architecture/rules/security-architecture.md +1039 -1039
  25. package/augment-extensions/domain-rules/software-architecture/rules/serverless-architecture.md +711 -711
  26. package/augment-extensions/domain-rules/software-architecture/rules/skills-development.md +568 -568
  27. package/augment-extensions/domain-rules/software-architecture/rules/tools-methodologies.md +961 -961
  28. package/augment-extensions/visual-design/CHANGELOG.md +132 -0
  29. package/augment-extensions/visual-design/README.md +255 -0
  30. package/augment-extensions/visual-design/__tests__/README.md +119 -0
  31. package/augment-extensions/visual-design/__tests__/style-selector.test.ts +172 -0
  32. package/augment-extensions/visual-design/__tests__/vendor-styles.test.ts +214 -0
  33. package/augment-extensions/visual-design/domains/other/ai-prompt-helper.ts +157 -0
  34. package/augment-extensions/visual-design/domains/other/dotnet-application.ts +156 -0
  35. package/augment-extensions/visual-design/domains/other/linux-platform.ts +156 -0
  36. package/augment-extensions/visual-design/domains/other/mobile-application.ts +157 -0
  37. package/augment-extensions/visual-design/domains/other/motion-picture.ts +156 -0
  38. package/augment-extensions/visual-design/domains/other/os-application.ts +156 -0
  39. package/augment-extensions/visual-design/domains/other/print-campaigns.ts +158 -0
  40. package/augment-extensions/visual-design/domains/other/web-app.ts +157 -0
  41. package/augment-extensions/visual-design/domains/other/website.ts +161 -0
  42. package/augment-extensions/visual-design/domains/other/windows-platform.ts +156 -0
  43. package/augment-extensions/visual-design/domains/web-page-styles/amazon-cloudscape.ts +506 -0
  44. package/augment-extensions/visual-design/domains/web-page-styles/google-modern.ts +615 -0
  45. package/augment-extensions/visual-design/domains/web-page-styles/microsoft-fluent.ts +531 -0
  46. package/augment-extensions/visual-design/examples/README.md +97 -0
  47. package/augment-extensions/visual-design/examples/ai-prompt-generation.md +233 -0
  48. package/augment-extensions/visual-design/examples/basic-usage.md +216 -0
  49. package/augment-extensions/visual-design/examples/domain-workflows.md +257 -0
  50. package/augment-extensions/visual-design/examples/vendor-comparison.md +247 -0
  51. package/augment-extensions/visual-design/module.json +78 -0
  52. package/augment-extensions/visual-design/style-selector.ts +177 -0
  53. package/augment-extensions/visual-design/types.ts +302 -0
  54. package/augment-extensions/visual-design/visual-design-core.ts +469 -0
  55. package/augment-extensions/workflows/adr-support/README.md +227 -0
  56. package/augment-extensions/workflows/adr-support/__tests__/adr-validator.test.ts +203 -0
  57. package/augment-extensions/workflows/adr-support/adr-validator.ts +162 -0
  58. package/augment-extensions/workflows/adr-support/examples/complete-lifecycle-example.md +449 -0
  59. package/augment-extensions/workflows/adr-support/examples/integration-example.md +580 -0
  60. package/augment-extensions/workflows/adr-support/examples/superseding-example.md +436 -0
  61. package/augment-extensions/workflows/adr-support/module.json +112 -0
  62. package/augment-extensions/workflows/adr-support/rules/adr-creation.md +372 -0
  63. package/augment-extensions/workflows/adr-support/rules/beads-integration.md +443 -0
  64. package/augment-extensions/workflows/adr-support/rules/conflict-detection.md +486 -0
  65. package/augment-extensions/workflows/adr-support/rules/decision-detection.md +362 -0
  66. package/augment-extensions/workflows/adr-support/rules/lifecycle-management.md +427 -0
  67. package/augment-extensions/workflows/adr-support/rules/openspec-integration.md +465 -0
  68. package/augment-extensions/workflows/adr-support/rules/template-selection.md +405 -0
  69. package/augment-extensions/workflows/adr-support/rules/validation-rules.md +543 -0
  70. package/augment-extensions/workflows/adr-support/schemas/adr-config.json +191 -0
  71. package/augment-extensions/workflows/adr-support/schemas/adr-metadata.json +172 -0
  72. package/augment-extensions/workflows/adr-support/templates/business-case.md +235 -0
  73. package/augment-extensions/workflows/adr-support/templates/madr-elaborate.md +197 -0
  74. package/augment-extensions/workflows/adr-support/templates/madr-simple.md +68 -0
  75. package/augment-extensions/workflows/adr-support/templates/nygard.md +84 -0
  76. package/augment-extensions/writing-standards/screenplay/rules/file-organization.md +213 -213
  77. package/augment-extensions/writing-standards/screenplay/utils/__tests__/file-organization.test.ts +169 -169
  78. package/augment-extensions/writing-standards/screenplay/utils/file-organization.ts +165 -165
  79. package/cli/dist/utils/auto-sync.js +19 -19
  80. package/package.json +5 -3
  81. package/augment-extensions/workflows/openspec/README.md +0 -96
  82. package/augment-extensions/workflows/openspec/examples/complete-change-example.md +0 -244
  83. package/augment-extensions/workflows/openspec/module.json +0 -54
  84. package/augment-extensions/workflows/openspec/rules/best-practices.md +0 -272
  85. package/augment-extensions/workflows/openspec/rules/manual-setup.md +0 -231
  86. package/augment-extensions/workflows/openspec/rules/spec-format.md +0 -236
  87. package/augment-extensions/workflows/openspec/rules/workflow.md +0 -214
@@ -1,272 +0,0 @@
1
- # OpenSpec Best Practices
2
-
3
- ## Change Management
4
-
5
- ### Keep Changes Atomic
6
-
7
- ✅ **Good**: One focused change per folder
8
- ```
9
- openspec/changes/add-2fa/
10
- openspec/changes/add-profile-search/
11
- ```
12
-
13
- ❌ **Bad**: Multiple unrelated changes in one folder
14
- ```
15
- openspec/changes/misc-improvements/ # Too vague
16
- ```
17
-
18
- ### Use Descriptive Names
19
-
20
- ✅ **Good**: Clear, specific names
21
- - `add-2fa`
22
- - `fix-login-timeout`
23
- - `refactor-auth-flow`
24
-
25
- ❌ **Bad**: Generic or cryptic names
26
- - `feature-123`
27
- - `updates`
28
- - `fix`
29
-
30
- ### Review Before Implementation
31
-
32
- Always review and iterate on specs before coding:
33
-
34
- 1. Create proposal and specs
35
- 2. Review with stakeholders
36
- 3. Refine until agreement
37
- 4. Then implement
38
-
39
- **Why**: Catching issues in specs is 10x cheaper than in code.
40
-
41
- ## Specification Writing
42
-
43
- ### Be Specific
44
-
45
- ✅ **Good**: Concrete, testable requirements
46
- ```markdown
47
- ### Requirement: Session Timeout
48
- The system SHALL terminate sessions after 30 minutes of inactivity.
49
-
50
- #### Scenario: Inactive session
51
- - GIVEN a user is logged in
52
- - WHEN 30 minutes pass with no activity
53
- - THEN the session is terminated
54
- - AND the user is redirected to login
55
- ```
56
-
57
- ❌ **Bad**: Vague requirements
58
- ```markdown
59
- ### Requirement: Security
60
- The system should be secure.
61
- ```
62
-
63
- ### Include Edge Cases
64
-
65
- ✅ **Good**: Cover error scenarios
66
- ```markdown
67
- #### Scenario: Invalid OTP
68
- - WHEN a user submits an invalid OTP
69
- - THEN an error message is displayed
70
- - AND the user can retry up to 3 times
71
- - AND after 3 failures, the account is locked
72
-
73
- #### Scenario: Expired OTP
74
- - WHEN a user submits an expired OTP (>5 minutes old)
75
- - THEN an error message is displayed
76
- - AND a new OTP can be requested
77
- ```
78
-
79
- ### Use Consistent Language
80
-
81
- - **SHALL** - Mandatory requirement
82
- - **MUST** - Mandatory requirement (stronger emphasis)
83
- - **SHOULD** - Recommended but not mandatory
84
- - **MAY** - Optional feature
85
-
86
- ## Task Management
87
-
88
- ### Break Down Large Tasks
89
-
90
- ✅ **Good**: Granular, actionable tasks
91
- ```markdown
92
- ## 2. Backend Implementation
93
- - [ ] 2.1 Create OTP model with secret and expiry fields
94
- - [ ] 2.2 Add OTP generation function using TOTP algorithm
95
- - [ ] 2.3 Add OTP verification function with rate limiting
96
- - [ ] 2.4 Update login endpoint to require OTP
97
- - [ ] 2.5 Add OTP enrollment endpoint
98
- ```
99
-
100
- ❌ **Bad**: Vague, large tasks
101
- ```markdown
102
- ## 2. Backend
103
- - [ ] 2.1 Implement 2FA
104
- ```
105
-
106
- ### Group Related Tasks
107
-
108
- Organize tasks by phase or component:
109
-
110
- ```markdown
111
- ## 1. Database Setup
112
- - [ ] 1.1 Add OTP secret column
113
- - [ ] 1.2 Add OTP logs table
114
- - [ ] 1.3 Create migration
115
-
116
- ## 2. Backend API
117
- - [ ] 2.1 OTP generation endpoint
118
- - [ ] 2.2 OTP verification endpoint
119
-
120
- ## 3. Frontend UI
121
- - [ ] 3.1 OTP input component
122
- - [ ] 3.2 Update login flow
123
- ```
124
-
125
- ### Update Tasks During Implementation
126
-
127
- If scope changes during implementation, update tasks.md:
128
-
129
- ```markdown
130
- ## 2. Backend Implementation
131
- - [x] 2.1 Create OTP model
132
- - [x] 2.2 Add OTP generation
133
- - [ ] 2.3 Add OTP verification
134
- - [ ] 2.4 Add rate limiting (ADDED during implementation)
135
- ```
136
-
137
- ## Multi-Spec Changes
138
-
139
- ### When Changes Affect Multiple Components
140
-
141
- Create deltas for each affected spec:
142
-
143
- ```
144
- openspec/changes/add-user-roles/
145
- ├── proposal.md
146
- ├── tasks.md
147
- └── specs/
148
- ├── auth/
149
- │ └── spec.md # Auth changes
150
- ├── users/
151
- │ └── spec.md # User model changes
152
- └── permissions/
153
- └── spec.md # Permission system changes
154
- ```
155
-
156
- ### Reference Dependencies
157
-
158
- In proposal.md, note cross-component dependencies:
159
-
160
- ```markdown
161
- ## Dependencies
162
- - Auth spec changes depend on User model changes
163
- - Permission checks require Auth changes to be complete
164
- ```
165
-
166
- ## Archiving
167
-
168
- ### Archive Promptly
169
-
170
- Don't let completed changes accumulate in `openspec/changes/`:
171
-
172
- ```bash
173
- # With CLI
174
- openspec archive add-2fa --yes
175
-
176
- # Without CLI - move to archive
177
- mv openspec/changes/add-2fa openspec/archive/
178
- ```
179
-
180
- ### Keep Archive Organized
181
-
182
- Archive folder structure:
183
-
184
- ```
185
- openspec/archive/
186
- ├── 2024-01-add-2fa/
187
- ├── 2024-01-profile-search/
188
- └── 2024-02-role-permissions/
189
- ```
190
-
191
- Consider adding date prefixes for chronological ordering.
192
-
193
- ## Project Context
194
-
195
- ### Keep project.md Updated
196
-
197
- Update `openspec/project.md` when:
198
- - Tech stack changes
199
- - New conventions are adopted
200
- - Architecture evolves
201
- - New guidelines are established
202
-
203
- ### Include Examples
204
-
205
- Add examples to project.md:
206
-
207
- ```markdown
208
- ## Naming Conventions
209
-
210
- ### API Endpoints
211
- - Use kebab-case: `/api/user-profiles`
212
- - Use plural nouns: `/api/users` not `/api/user`
213
- - Version with prefix: `/api/v1/users`
214
-
215
- ### Database Tables
216
- - Use snake_case: `user_profiles`
217
- - Use plural nouns: `users` not `user`
218
- ```
219
-
220
- ## AI Agent Collaboration
221
-
222
- ### Provide Context
223
-
224
- When asking AI to create changes:
225
-
226
- ```
227
- Create an OpenSpec change for adding role-based permissions.
228
- Context: We have 3 roles (admin, editor, viewer) and need to restrict
229
- access to certain API endpoints based on role.
230
- ```
231
-
232
- ### Iterate on Specs
233
-
234
- Don't accept first draft:
235
-
236
- ```
237
- The spec looks good, but can you add scenarios for:
238
- 1. What happens when a user has multiple roles?
239
- 2. How do we handle role changes for active sessions?
240
- ```
241
-
242
- ### Reference Existing Specs
243
-
244
- When implementing:
245
-
246
- ```
247
- Please implement the tasks in openspec/changes/add-roles/tasks.md
248
- Make sure to follow the patterns established in openspec/specs/auth/spec.md
249
- ```
250
-
251
- ## Common Pitfalls
252
-
253
- ### ❌ Skipping Spec Review
254
-
255
- Don't jump straight to implementation. Review specs first.
256
-
257
- ### ❌ Vague Requirements
258
-
259
- Avoid "should work well" or "be fast". Be specific with numbers and behaviors.
260
-
261
- ### ❌ Missing Scenarios
262
-
263
- Every requirement needs at least one scenario showing how it works.
264
-
265
- ### ❌ Forgetting to Archive
266
-
267
- Clean up completed changes to keep the workspace organized.
268
-
269
- ### ❌ Mixing Concerns
270
-
271
- Keep each change focused on one feature or fix.
272
-
@@ -1,231 +0,0 @@
1
- # OpenSpec Manual Setup (Without CLI)
2
-
3
- ## Overview
4
-
5
- You can use the OpenSpec workflow without installing the CLI. This guide shows how to set up and use OpenSpec manually.
6
-
7
- ## Initial Setup
8
-
9
- ### 1. Create Directory Structure
10
-
11
- ```bash
12
- mkdir -p openspec/specs
13
- mkdir -p openspec/changes
14
- mkdir -p openspec/archive
15
- ```
16
-
17
- ### 2. Create Project Context File
18
-
19
- Create `openspec/project.md`:
20
-
21
- ```markdown
22
- # Project Context
23
-
24
- ## Overview
25
- [Brief description of your project]
26
-
27
- ## Tech Stack
28
- - Language: [e.g., TypeScript, Python]
29
- - Framework: [e.g., React, Django]
30
- - Database: [e.g., PostgreSQL, MongoDB]
31
-
32
- ## Conventions
33
- - Code style: [e.g., ESLint, Black]
34
- - Testing: [e.g., Jest, pytest]
35
- - Naming: [e.g., camelCase for variables]
36
-
37
- ## Architecture
38
- [High-level architecture notes]
39
-
40
- ## Guidelines
41
- [Project-specific rules and patterns]
42
- ```
43
-
44
- ### 3. Create AGENTS.md Integration
45
-
46
- Add to your project's `AGENTS.md` (or create it):
47
-
48
- ```markdown
49
- # OpenSpec Workflow
50
-
51
- This project uses OpenSpec for spec-driven development.
52
-
53
- ## Directory Structure
54
-
55
- - `openspec/specs/` - Current specifications (source of truth)
56
- - `openspec/changes/` - Proposed changes (work in progress)
57
- - `openspec/archive/` - Completed changes
58
- - `openspec/project.md` - Project context and conventions
59
-
60
- ## Workflow
61
-
62
- ### Creating a Change
63
-
64
- 1. Create a new folder: `openspec/changes/<change-name>/`
65
- 2. Add `proposal.md` - Why and what
66
- 3. Add `tasks.md` - Implementation checklist
67
- 4. Add `specs/<component>/spec.md` - Spec deltas
68
-
69
- ### Implementing a Change
70
-
71
- 1. Read the spec deltas in `openspec/changes/<change-name>/specs/`
72
- 2. Work through `tasks.md` sequentially
73
- 3. Mark tasks complete: `- [x]` as you finish
74
- 4. Reference specs when making implementation decisions
75
-
76
- ### Archiving a Change
77
-
78
- 1. Copy spec deltas to `openspec/specs/`
79
- 2. Apply ADDED/MODIFIED/REMOVED sections
80
- 3. Move change folder to `openspec/archive/<change-name>/`
81
-
82
- ## Spec Format
83
-
84
- See the spec format guide for details on writing specifications.
85
-
86
- ### Delta Sections
87
-
88
- - `## ADDED Requirements` - New capabilities
89
- - `## MODIFIED Requirements` - Changed behavior
90
- - `## REMOVED Requirements` - Deprecated features
91
-
92
- ### Requirement Format
93
-
94
- ```markdown
95
- ### Requirement: <Name>
96
- The system SHALL <requirement>.
97
-
98
- #### Scenario: <Name>
99
- - WHEN <condition>
100
- - THEN <result>
101
- ```
102
- ```
103
-
104
- ### 4. Add to .gitignore (Optional)
105
-
106
- If you want to keep changes private:
107
-
108
- ```bash
109
- echo "openspec/changes/" >> .gitignore
110
- ```
111
-
112
- ## Creating Your First Change
113
-
114
- ### 1. Create Change Folder
115
-
116
- ```bash
117
- mkdir -p openspec/changes/add-feature-x
118
- ```
119
-
120
- ### 2. Create Proposal
121
-
122
- Create `openspec/changes/add-feature-x/proposal.md`:
123
-
124
- ```markdown
125
- # Add Feature X
126
-
127
- ## Motivation
128
- [Why this change is needed]
129
-
130
- ## Changes
131
- - [What will change]
132
- - [What components are affected]
133
-
134
- ## Impact
135
- - [Breaking changes]
136
- - [Migration requirements]
137
- - [Dependencies]
138
- ```
139
-
140
- ### 3. Create Tasks
141
-
142
- Create `openspec/changes/add-feature-x/tasks.md`:
143
-
144
- ```markdown
145
- ## 1. [Phase Name]
146
- - [ ] 1.1 [Task description]
147
- - [ ] 1.2 [Task description]
148
-
149
- ## 2. [Phase Name]
150
- - [ ] 2.1 [Task description]
151
- - [ ] 2.2 [Task description]
152
- ```
153
-
154
- ### 4. Create Spec Deltas
155
-
156
- Create `openspec/changes/add-feature-x/specs/<component>/spec.md`:
157
-
158
- ```markdown
159
- # Delta for <Component>
160
-
161
- ## ADDED Requirements
162
-
163
- ### Requirement: <Name>
164
- The system SHALL <requirement>.
165
-
166
- #### Scenario: <Name>
167
- - WHEN <condition>
168
- - THEN <result>
169
- ```
170
-
171
- ## Working with AI Agents
172
-
173
- ### Creating a Change
174
-
175
- Ask your AI:
176
-
177
- ```
178
- Create a new OpenSpec change in openspec/changes/add-search-filters/ with:
179
- 1. proposal.md explaining why we need search filters
180
- 2. tasks.md with implementation steps
181
- 3. specs/search/spec.md with the new requirements
182
- ```
183
-
184
- ### Implementing
185
-
186
- Ask your AI:
187
-
188
- ```
189
- Please implement the tasks in openspec/changes/add-search-filters/tasks.md
190
- Reference the specs in openspec/changes/add-search-filters/specs/ for requirements
191
- Mark each task complete as you finish
192
- ```
193
-
194
- ### Archiving
195
-
196
- Ask your AI:
197
-
198
- ```
199
- Please archive the add-search-filters change:
200
- 1. Copy spec deltas from openspec/changes/add-search-filters/specs/ to openspec/specs/
201
- 2. Apply the ADDED/MODIFIED/REMOVED sections to the source specs
202
- 3. Move openspec/changes/add-search-filters/ to openspec/archive/
203
- ```
204
-
205
- ## Limitations Without CLI
206
-
207
- - ❌ No automatic validation
208
- - ❌ No slash commands (unless manually configured)
209
- - ❌ Manual archiving process
210
- - ❌ No auto-generated AGENTS.md updates
211
-
212
- ## Benefits Without CLI
213
-
214
- - ✅ No installation required
215
- - ✅ Works immediately
216
- - ✅ Full control over file structure
217
- - ✅ Compatible with all AI agents
218
- - ✅ Simple git workflow
219
-
220
- ## Upgrading to CLI Later
221
-
222
- If you decide to install the CLI later:
223
-
224
- ```bash
225
- npm install -g @fission-ai/openspec@latest
226
- cd your-project
227
- openspec init
228
- ```
229
-
230
- The CLI will detect your existing structure and integrate with it.
231
-