metacoding 1.5.1 → 2.0.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 (95) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/README.md +108 -514
  3. package/lib/cli.d.ts.map +1 -1
  4. package/lib/cli.js +18 -19
  5. package/lib/cli.js.map +1 -1
  6. package/lib/commands/init.d.ts +8 -14
  7. package/lib/commands/init.d.ts.map +1 -1
  8. package/lib/commands/init.js +105 -387
  9. package/lib/commands/init.js.map +1 -1
  10. package/lib/commands/update.d.ts +9 -9
  11. package/lib/commands/update.d.ts.map +1 -1
  12. package/lib/commands/update.js +141 -320
  13. package/lib/commands/update.js.map +1 -1
  14. package/lib/services/backup.d.ts +1 -1
  15. package/lib/services/backup.d.ts.map +1 -1
  16. package/lib/services/backup.js +10 -6
  17. package/lib/services/backup.js.map +1 -1
  18. package/lib/services/filesystem.d.ts.map +1 -1
  19. package/lib/services/filesystem.js +11 -5
  20. package/lib/services/filesystem.js.map +1 -1
  21. package/lib/services/gitignore-manager.js +5 -5
  22. package/lib/services/gitignore-manager.js.map +1 -1
  23. package/lib/services/project-detector.d.ts +9 -8
  24. package/lib/services/project-detector.d.ts.map +1 -1
  25. package/lib/services/project-detector.js +79 -197
  26. package/lib/services/project-detector.js.map +1 -1
  27. package/lib/services/skill-manager.d.ts +23 -0
  28. package/lib/services/skill-manager.d.ts.map +1 -0
  29. package/lib/services/skill-manager.js +212 -0
  30. package/lib/services/skill-manager.js.map +1 -0
  31. package/lib/types/index.d.ts +5 -15
  32. package/lib/types/index.d.ts.map +1 -1
  33. package/package.json +9 -17
  34. package/skills/metacoding-workflow/SKILL.md +52 -0
  35. package/skills/metacoding-workflow/agents/openai.yaml +4 -0
  36. package/skills/metacoding-workflow/assets/templates/changelog-entry.md +6 -0
  37. package/skills/metacoding-workflow/assets/templates/project-context.md +18 -0
  38. package/skills/metacoding-workflow/assets/templates/repeated-task-checklist.md +8 -0
  39. package/skills/metacoding-workflow/assets/templates/task-entry.md +9 -0
  40. package/skills/metacoding-workflow/assets/templates/test-plan.md +8 -0
  41. package/skills/metacoding-workflow/references/javascript.md +7 -0
  42. package/skills/metacoding-workflow/references/node.md +7 -0
  43. package/skills/metacoding-workflow/references/platform-adaptation.md +37 -0
  44. package/skills/metacoding-workflow/references/python.md +7 -0
  45. package/skills/metacoding-workflow/references/react.md +7 -0
  46. package/skills/metacoding-workflow/references/repository-organization.md +84 -0
  47. package/skills/metacoding-workflow/references/typescript.md +7 -0
  48. package/skills/metacoding-workflow/references/workflow-rules.md +54 -0
  49. package/skills/vendor-templates/claude-agent.md.template +41 -0
  50. package/lib/services/assistant-adapter.d.ts +0 -18
  51. package/lib/services/assistant-adapter.d.ts.map +0 -1
  52. package/lib/services/assistant-adapter.js +0 -246
  53. package/lib/services/assistant-adapter.js.map +0 -1
  54. package/lib/services/cursor.d.ts +0 -47
  55. package/lib/services/cursor.d.ts.map +0 -1
  56. package/lib/services/cursor.js +0 -314
  57. package/lib/services/cursor.js.map +0 -1
  58. package/lib/services/template-manager.d.ts +0 -23
  59. package/lib/services/template-manager.d.ts.map +0 -1
  60. package/lib/services/template-manager.js +0 -374
  61. package/lib/services/template-manager.js.map +0 -1
  62. package/lib/services/vscode.d.ts +0 -10
  63. package/lib/services/vscode.d.ts.map +0 -1
  64. package/lib/services/vscode.js +0 -108
  65. package/lib/services/vscode.js.map +0 -1
  66. package/templates/assistants/AGENTS.md +0 -203
  67. package/templates/assistants/CLAUDE.md +0 -156
  68. package/templates/assistants/GEMINI.md +0 -193
  69. package/templates/general/code-review.instructions.md +0 -265
  70. package/templates/general/copilot-instructions.md +0 -427
  71. package/templates/general/docs-update.instructions.md +0 -275
  72. package/templates/general/release.instructions.md +0 -242
  73. package/templates/general/template.json +0 -9
  74. package/templates/general/test-runner.instructions.md +0 -188
  75. package/templates/javascript/javascript.coding.instructions.md +0 -500
  76. package/templates/javascript/javascript.docs.instructions.md +0 -563
  77. package/templates/javascript/javascript.testing.instructions.md +0 -686
  78. package/templates/javascript/template.json +0 -36
  79. package/templates/node/nodejs.coding.instructions.md +0 -249
  80. package/templates/node/nodejs.docs.instructions.md +0 -261
  81. package/templates/node/nodejs.testing.instructions.md +0 -373
  82. package/templates/node/template.json +0 -23
  83. package/templates/python/python.coding.instructions.md +0 -338
  84. package/templates/python/python.docs.instructions.md +0 -1178
  85. package/templates/python/python.testing.instructions.md +0 -1073
  86. package/templates/python/template.json +0 -75
  87. package/templates/react/react.coding.instructions.md +0 -694
  88. package/templates/react/react.docs.instructions.md +0 -451
  89. package/templates/react/react.testing.instructions.md +0 -192
  90. package/templates/react/template.json +0 -14
  91. package/templates/react/test-runner.instructions.md +0 -135
  92. package/templates/typescript/template.json +0 -16
  93. package/templates/typescript/typescript.coding.instructions.md +0 -368
  94. package/templates/typescript/typescript.docs.instructions.md +0 -760
  95. package/templates/typescript/typescript.testing.instructions.md +0 -739
@@ -1,265 +0,0 @@
1
- ---
2
- description: 'Universal code review checklist for all project types'
3
- applyTo: '**'
4
- ---
5
-
6
- # Universal Code Review Guidelines
7
-
8
- ## Code Review Philosophy
9
-
10
- Code reviews are essential for maintaining code quality, sharing knowledge, and ensuring consistency across all project types. This document provides universal guidelines that apply to all languages and frameworks, with specific details deferred to language-specific instruction files.
11
-
12
- ## Language-Specific Review Guidelines
13
-
14
- For detailed language-specific review criteria, refer to:
15
- - **JavaScript** See `javascript.coding.instructions.md` for JavaScript-specific patterns and best practices
16
- - **TypeScript/Node.js:** See `typescript.coding.instructions.md` for TypeScript-specific patterns and best practices
17
- - **Python:** See `python.coding.instructions.md` for Python-specific patterns and conventions
18
- - **React/Frontend:** See `react.coding.instructions.md` for React-specific patterns and component design
19
-
20
- ## Functionality Assessment
21
-
22
- ### Requirements and Logic
23
-
24
- - **Requirements Compliance:** Does the code meet the specified requirements?
25
- - **Business Logic:** Is the business logic correctly implemented and testable?
26
- - **Edge Cases:** Are edge cases properly handled with appropriate error responses?
27
- - **Error Scenarios:** How does the code behave with invalid inputs and failure conditions?
28
- - **Integration Points:** Do integrations with other components work correctly?
29
-
30
- ### Input Validation and Data Handling
31
-
32
- - **Input Sanitization:** Are all inputs properly validated and sanitized?
33
- - **Data Type Safety:** Are data types appropriate and consistently used?
34
- - **Boundary Conditions:** Are boundary conditions handled correctly?
35
- - **Null/Undefined Handling:** Are null/undefined values handled appropriately?
36
-
37
- ## Code Quality and Readability
38
-
39
- ### Naming and Structure
40
-
41
- - **Naming Conventions:** Are variables, functions, and classes named clearly using language conventions?
42
- - **Code Structure:** Is the code well-organized and logically structured?
43
- - **Function Size:** Are functions focused and reasonably sized (language-specific guidelines)?
44
- - **Complexity:** Is the code unnecessarily complex or could it be simplified?
45
- - **Consistency:** Does the code follow established project patterns and conventions?
46
-
47
- ### Documentation and Comments
48
-
49
- - **Code Documentation:** Is the code self-documenting with appropriate language-specific documentation?
50
- - **Comment Quality:** Are comments helpful and explain "why" not "what"?
51
- - **API Documentation:** Are public APIs documented using language-appropriate standards?
52
- - **Complex Logic:** Is complex business logic or algorithms explained with comments?
53
-
54
- ## Performance Considerations
55
-
56
- ### Algorithm and Data Structure Efficiency
57
-
58
- - **Algorithm Choice:** Are appropriate algorithms and data structures used?
59
- - **Time Complexity:** Is the time complexity appropriate for the expected data size?
60
- - **Space Complexity:** Is memory usage efficient and appropriate?
61
- - **Resource Management:** Are resources properly acquired and released?
62
-
63
- ### Language-Specific Performance
64
-
65
- - **Memory Management:** Are there potential memory leaks or excessive memory usage?
66
- - **Async Operations:** Are async operations used appropriately for I/O-bound tasks?
67
- - **Caching Opportunities:** Are caching opportunities identified and implemented correctly?
68
- - **Database Efficiency:** Are database queries optimized and avoid N+1 problems?
69
-
70
- ## Security Review
71
-
72
- ### Input Security
73
-
74
- - **Input Validation:** Are all inputs properly validated and sanitized?
75
- - **Injection Prevention:** Are injection attacks (SQL, XSS, command injection) prevented?
76
- - **Data Sanitization:** Is user input properly escaped and sanitized?
77
-
78
- ### Authentication and Authorization
79
-
80
- - **Authentication Checks:** Are authentication checks in place where needed?
81
- - **Authorization Logic:** Are authorization checks appropriate for the functionality?
82
- - **Permission Validation:** Are user permissions properly validated before actions?
83
-
84
- ### Data Protection
85
-
86
- - **Sensitive Data:** Is sensitive data properly protected and encrypted?
87
- - **Data Exposure:** Are there any unintentional data exposure risks?
88
- - **Logging Security:** Is sensitive information excluded from logs?
89
- - **Communication Security:** Is data transmission properly secured?
90
-
91
- ## Testing and Testability
92
-
93
- ### Test Coverage and Quality
94
-
95
- - **Test Coverage:** Are there sufficient tests for the new functionality?
96
- - **Test Types:** Are appropriate test types used (unit, integration, end-to-end)?
97
- - **Test Quality:** Are tests meaningful and test the right behaviors?
98
- - **Edge Case Testing:** Do tests cover edge cases and error conditions?
99
-
100
- ### Test Structure and Maintainability
101
-
102
- - **Test Organization:** Are tests well-organized and follow project conventions?
103
- - **Test Data:** Is test data realistic and properly managed?
104
- - **Mock Strategy:** Are external dependencies properly mocked in unit tests?
105
- - **Test Documentation:** Are complex test scenarios documented?
106
-
107
- ## Error Handling and Logging
108
-
109
- ### Error Management
110
-
111
- - **Exception Handling:** Are exceptions handled appropriately using language conventions?
112
- - **Error Messages:** Are error messages helpful for debugging and user-friendly when appropriate?
113
- - **Error Propagation:** Is error propagation handled correctly through the call stack?
114
- - **Graceful Degradation:** Does the system handle failures gracefully?
115
-
116
- ### Logging and Monitoring
117
-
118
- - **Logging Strategy:** Is appropriate logging in place for debugging and monitoring?
119
- - **Log Levels:** Are appropriate log levels used (debug, info, warn, error)?
120
- - **Structured Logging:** Is logging structured and searchable?
121
- - **Performance Logging:** Are performance-critical paths properly instrumented?
122
-
123
- ## Documentation and Maintenance
124
-
125
- ### Code and API Documentation
126
-
127
- - **Self-Documenting Code:** Is the code readable and self-explanatory?
128
- - **Public API Documentation:** Are public APIs documented with language-appropriate standards?
129
- - **Complex Logic Documentation:** Are complex algorithms and business rules documented?
130
-
131
- ### Change Documentation
132
-
133
- - **Breaking Changes:** Are breaking changes clearly identified and documented?
134
- - **Migration Guides:** Are migration paths provided for breaking changes?
135
- - **Changelog Updates:** Are user-facing changes documented in changelog?
136
- - **Version Compatibility:** Is backward compatibility maintained where required?
137
-
138
- ## Standards Compliance
139
-
140
- ### Project Standards
141
-
142
- - **Coding Standards:** Does the code follow project coding standards and conventions?
143
- - **Architectural Patterns:** Are established architectural patterns followed?
144
- - **Style Guidelines:** Does the code follow language-specific style guidelines?
145
- - **Project Structure:** Are files organized according to project structure guidelines?
146
-
147
- ### Dependencies and Configuration
148
-
149
- - **Dependency Management:** Are new dependencies justified and properly managed?
150
- - **Version Constraints:** Are dependency versions appropriately constrained?
151
- - **Configuration Handling:** Are configuration changes handled appropriately?
152
- - **Environment Compatibility:** Does the code work across supported environments?
153
-
154
- ## Anti-Patterns and Code Smells
155
-
156
- ### Universal Anti-Patterns
157
-
158
- - **Deep Nesting:** Excessive conditional or exception nesting
159
- - **God Objects:** Classes or functions with too many responsibilities
160
- - **Magic Numbers/Strings:** Hardcoded values without explanation or configuration
161
- - **Copy-Paste Code:** Duplicated code that should be refactored into shared utilities
162
- - **Tight Coupling:** Components that are too dependent on each other
163
-
164
- ### Resource and State Management
165
-
166
- - **Memory Leaks:** Objects not properly cleaned up or disposed
167
- - **Resource Leaks:** File handles, connections, or other resources not properly closed
168
- - **State Mutation:** Inappropriate mutation of shared or immutable state
169
- - **Global State Abuse:** Overuse of global variables or singleton patterns
170
-
171
- ### Development Hygiene Issues
172
-
173
- - **Temporary File Pollution:** Debug files, temp outputs, or experimental code left in repository
174
- - **Console/Debug Output:** Debug statements or logging left in production code
175
- - **Commented Code:** Large blocks of commented-out code without explanation
176
- - **TODO/FIXME Accumulation:** Excessive TODO comments without associated issues
177
-
178
- ## File and Repository Hygiene
179
-
180
- ### Repository Cleanliness
181
-
182
- - **File Organization:** Are files placed in appropriate directories according to project structure?
183
- - **Temporary Files:** Are all temporary files, debug outputs, and experimental code removed?
184
- - **Resource Cleanup:** Has development session cleanup been performed before commit?
185
- - **Test Artifacts:** Are temporary test files moved to appropriate locations or removed?
186
-
187
- ### Code Organization
188
-
189
- - **Single Responsibility:** Does each file have a clear, single purpose?
190
- - **Import Organization:** Are imports/includes organized according to language conventions?
191
- - **Unused Code:** Is dead code and unused imports removed?
192
- - **File Naming:** Do file names follow project conventions?
193
-
194
- ## Review Process Guidelines
195
-
196
- ### Providing Feedback
197
-
198
- - **Constructive Approach:** Provide specific, actionable feedback
199
- - **Explanation:** Explain reasoning behind suggested changes
200
- - **Alternative Suggestions:** Offer alternative approaches when applicable
201
- - **Positive Recognition:** Acknowledge well-written code and good practices
202
- - **Focus on Code:** Keep feedback focused on code quality, not personal style
203
-
204
- ### Prioritizing Issues
205
-
206
- - **Critical Issues:** Security vulnerabilities, functional bugs, performance issues
207
- - **Quality Issues:** Code organization, readability, maintainability
208
- - **Style Issues:** Formatting, naming conventions, minor style inconsistencies
209
- - **Suggestions:** Improvements that enhance but don't fix problems
210
-
211
- ### Review Efficiency
212
-
213
- - **Scope Management:** Keep reviews focused and appropriately sized
214
- - **Context Understanding:** Understand the change context before reviewing
215
- - **Tool Usage:** Use code review tools effectively
216
- - **Time Management:** Balance thoroughness with review turnaround time
217
-
218
- ## Automated Checks Integration
219
-
220
- ### Pre-Review Automation
221
-
222
- - **Linting:** Code passes language-specific linting rules
223
- - **Formatting:** Code follows consistent formatting standards
224
- - **Type Checking:** Static type checking passes (for typed languages)
225
- - **Build Verification:** Code builds successfully
226
- - **Test Execution:** All tests pass including new and existing ones
227
-
228
- ### Security and Quality Automation
229
-
230
- - **Security Scanning:** Automated security vulnerability scans pass
231
- - **Dependency Auditing:** Dependency security audits pass
232
- - **Code Coverage:** Test coverage meets minimum thresholds
233
- - **Performance Benchmarks:** Performance regressions are identified
234
-
235
- ## Cross-Platform and Environment Considerations
236
-
237
- ### Compatibility Review
238
-
239
- - **Platform Independence:** Code works across supported platforms
240
- - **Environment Variables:** Environment-specific configuration is handled properly
241
- - **Path Handling:** File paths are handled appropriately for different OS
242
- - **Encoding Issues:** Text encoding is handled consistently
243
-
244
- ### Deployment Considerations
245
-
246
- - **Configuration Management:** Configuration changes are properly managed
247
- - **Migration Requirements:** Database or data migrations are included if needed
248
- - **Rollback Compatibility:** Changes support rollback procedures
249
- - **Production Readiness:** Code is ready for production deployment
250
-
251
- ## Knowledge Sharing and Learning
252
-
253
- ### Educational Opportunities
254
-
255
- - **Learning Moments:** Use reviews as teaching opportunities
256
- - **Best Practice Sharing:** Share knowledge about best practices and patterns
257
- - **Tool Knowledge:** Share knowledge about useful tools and techniques
258
- - **Domain Knowledge:** Share business domain knowledge when relevant
259
-
260
- ### Documentation and Process Improvement
261
-
262
- - **Pattern Documentation:** Document new patterns discovered during review
263
- - **Process Feedback:** Provide feedback on review process effectiveness
264
- - **Guideline Updates:** Suggest updates to coding guidelines based on review findings
265
- - **Tool Improvements:** Suggest improvements to review tools and automation