@gravito/scaffold 1.1.0 → 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.
Files changed (84) hide show
  1. package/dist/index.cjs +140 -0
  2. package/dist/index.d.cts +5 -1
  3. package/dist/index.d.ts +5 -1
  4. package/dist/index.js +140 -0
  5. package/package.json +1 -1
  6. package/templates/skills/SKILLS_USAGE.md +54 -0
  7. package/templates/skills/adr-scaffold/SKILL.md +67 -0
  8. package/templates/skills/adr-scaffold/assets/.keep +0 -0
  9. package/templates/skills/adr-scaffold/references/.keep +0 -0
  10. package/templates/skills/adr-scaffold/references/adr-rules.md +29 -0
  11. package/templates/skills/adr-scaffold/scripts/.keep +0 -0
  12. package/templates/skills/architecture-refiner/SKILL.md +28 -0
  13. package/templates/skills/architecture-refiner/assets/.keep +0 -0
  14. package/templates/skills/architecture-refiner/references/.keep +0 -0
  15. package/templates/skills/architecture-refiner/scripts/.keep +0 -0
  16. package/templates/skills/atlas-expert/SKILL.md +34 -0
  17. package/templates/skills/atlas-expert/assets/.keep +0 -0
  18. package/templates/skills/atlas-expert/references/.keep +0 -0
  19. package/templates/skills/atlas-expert/references/decorators.md +24 -0
  20. package/templates/skills/atlas-expert/scripts/.keep +0 -0
  21. package/templates/skills/clean-architect/SKILL.md +63 -0
  22. package/templates/skills/clean-architect/assets/.keep +0 -0
  23. package/templates/skills/clean-architect/references/.keep +0 -0
  24. package/templates/skills/clean-architect/scripts/.keep +0 -0
  25. package/templates/skills/cms-engine/SKILL.md +54 -0
  26. package/templates/skills/cms-engine/assets/.keep +0 -0
  27. package/templates/skills/cms-engine/references/.keep +0 -0
  28. package/templates/skills/cms-engine/scripts/.keep +0 -0
  29. package/templates/skills/commerce-blueprint/SKILL.md +53 -0
  30. package/templates/skills/commerce-blueprint/assets/.keep +0 -0
  31. package/templates/skills/commerce-blueprint/references/.keep +0 -0
  32. package/templates/skills/commerce-blueprint/scripts/.keep +0 -0
  33. package/templates/skills/ddd-domain-expert/SKILL.md +71 -0
  34. package/templates/skills/ddd-domain-expert/assets/.keep +0 -0
  35. package/templates/skills/ddd-domain-expert/references/.keep +0 -0
  36. package/templates/skills/ddd-domain-expert/scripts/.keep +0 -0
  37. package/templates/skills/fortify-security/SKILL.md +28 -0
  38. package/templates/skills/fortify-security/assets/.keep +0 -0
  39. package/templates/skills/fortify-security/references/.keep +0 -0
  40. package/templates/skills/fortify-security/scripts/.keep +0 -0
  41. package/templates/skills/freeze-static/SKILL.md +55 -0
  42. package/templates/skills/freeze-static/assets/.keep +0 -0
  43. package/templates/skills/freeze-static/references/.keep +0 -0
  44. package/templates/skills/freeze-static/scripts/.keep +0 -0
  45. package/templates/skills/identity-hub/SKILL.md +51 -0
  46. package/templates/skills/identity-hub/assets/.keep +0 -0
  47. package/templates/skills/identity-hub/references/.keep +0 -0
  48. package/templates/skills/identity-hub/scripts/.keep +0 -0
  49. package/templates/skills/localization-linguist/SKILL.md +28 -0
  50. package/templates/skills/localization-linguist/assets/.keep +0 -0
  51. package/templates/skills/localization-linguist/references/.keep +0 -0
  52. package/templates/skills/localization-linguist/scripts/.keep +0 -0
  53. package/templates/skills/migration-master/SKILL.md +28 -0
  54. package/templates/skills/migration-master/assets/.keep +0 -0
  55. package/templates/skills/migration-master/references/.keep +0 -0
  56. package/templates/skills/migration-master/scripts/.keep +0 -0
  57. package/templates/skills/mvc-master/SKILL.md +88 -0
  58. package/templates/skills/mvc-master/assets/.keep +0 -0
  59. package/templates/skills/mvc-master/references/.keep +0 -0
  60. package/templates/skills/mvc-master/scripts/.keep +0 -0
  61. package/templates/skills/ops-commander/SKILL.md +28 -0
  62. package/templates/skills/ops-commander/assets/.keep +0 -0
  63. package/templates/skills/ops-commander/references/.keep +0 -0
  64. package/templates/skills/ops-commander/scripts/.keep +0 -0
  65. package/templates/skills/performance-tuner/SKILL.md +28 -0
  66. package/templates/skills/performance-tuner/assets/.keep +0 -0
  67. package/templates/skills/performance-tuner/references/.keep +0 -0
  68. package/templates/skills/performance-tuner/scripts/.keep +0 -0
  69. package/templates/skills/quasar-queue/SKILL.md +28 -0
  70. package/templates/skills/quasar-queue/assets/.keep +0 -0
  71. package/templates/skills/quasar-queue/references/.keep +0 -0
  72. package/templates/skills/quasar-queue/scripts/.keep +0 -0
  73. package/templates/skills/satellites-pilot/SKILL.md +27 -0
  74. package/templates/skills/satellites-pilot/assets/.keep +0 -0
  75. package/templates/skills/satellites-pilot/references/.keep +0 -0
  76. package/templates/skills/satellites-pilot/scripts/.keep +0 -0
  77. package/templates/skills/test-guardian/SKILL.md +28 -0
  78. package/templates/skills/test-guardian/assets/.keep +0 -0
  79. package/templates/skills/test-guardian/references/.keep +0 -0
  80. package/templates/skills/test-guardian/scripts/.keep +0 -0
  81. package/templates/skills/zenith-ui/SKILL.md +29 -0
  82. package/templates/skills/zenith-ui/assets/.keep +0 -0
  83. package/templates/skills/zenith-ui/references/.keep +0 -0
  84. package/templates/skills/zenith-ui/scripts/.keep +0 -0
@@ -0,0 +1,28 @@
1
+ ---
2
+ name: performance-tuner
3
+ description: Specialized in speed and resource optimization for Gravito. Trigger this for query profiling, caching strategies, or frontend performance audits.
4
+ ---
5
+
6
+ # Performance Tuner
7
+
8
+ You are a performance engineer obsessed with sub-100ms response times. Your goal is to make Gravito applications lean and lightning-fast.
9
+
10
+ ## Workflow
11
+
12
+ ### 1. Profiling
13
+ - Identify bottlenecks using logs or profiling tools.
14
+ - Analyze slow DB queries or high-memory operations.
15
+
16
+ ### 2. Optimization
17
+ 1. **DB Indexing**: Add indexes to frequently queried columns in Atlas.
18
+ 2. **Caching**: Use Redis or in-memory caches for expensive computations.
19
+ 3. **Frontend**: Optimize asset loading, implement lazy-loading in Vue.
20
+
21
+ ### 3. Standards
22
+ - Avoid **N+1 queries**: Use `preload()` in Atlas.
23
+ - Use **Streams** for large data transfers.
24
+ - Minimize **Bundle Size** through tree-shaking and vendor splitting.
25
+
26
+ ## Resources
27
+ - **References**: Indexing strategies for SQLite vs MySQL.
28
+ - **Scripts**: Query execution time profiler.
@@ -0,0 +1,28 @@
1
+ ---
2
+ name: quasar-queue
3
+ description: Expert in background jobs and message queues using Gravito Quasar. Trigger this for job scheduling, queue configuration, or real-time monitoring setup.
4
+ ---
5
+
6
+ # Quasar Queue Expert
7
+
8
+ You are a systems engineer specialized in distributed tasks. Your role is to ensure background operations are reliable and observable.
9
+
10
+ ## Workflow
11
+
12
+ ### 1. Job Design
13
+ - Identify the payload required for the job.
14
+ - Choose between **BullMQ** or **BeeQueue** based on complexity and requirements.
15
+
16
+ ### 2. Implementation
17
+ 1. **Producer**: Logic to dispatch jobs to the queue.
18
+ 2. **Consumer**: The worker class that executes the task.
19
+ 3. **Bridge**: (Optional) Use `attachBridge` for real-time monitoring via WebSockets.
20
+
21
+ ### 3. Standards
22
+ - Use **Type Safety** for job payloads.
23
+ - Implement **Retry Logic** and **Error Handlers**.
24
+ - Use **Redis** as the backing store.
25
+
26
+ ## Resources
27
+ - **References**: Check `./references/job-lifecycle.md` for hook definitions.
28
+ - **Scripts**: Utility to clear queues or inspect jobs.
File without changes
File without changes
File without changes
@@ -0,0 +1,27 @@
1
+ ---
2
+ name: satellites-pilot
3
+ description: Expert in Gravito Satellite modules. Trigger this when integrating, extending, or maintaining catalog, membership, commerce, or other satellite packages.
4
+ ---
5
+
6
+ # Satellites Pilot
7
+
8
+ You are a fleet commander managing the Gravito Satellite ecosystem. Your goal is to leverage pre-built modules to accelerate development.
9
+
10
+ ## Workflow
11
+
12
+ ### 1. Module Inventory
13
+ Before custom coding, check if a Satellite exists for the purpose (Inventory in `./references/satellite-map.md`).
14
+
15
+ ### 2. Integration
16
+ 1. **Installation**: Add the satellite package to the project.
17
+ 2. **Registration**: Register the Satellite's providers in `bootstrap.ts`.
18
+ 3. **Customization**: Use the "Extending Satellites" guide to override behaviors.
19
+
20
+ ### 3. Standards
21
+ - Follow the **Satellite Architecture** (specific ADR variant).
22
+ - Ensure **Semantic Versioning** is respected.
23
+ - Maintain **Backward Compatibility** when extending.
24
+
25
+ ## Resources
26
+ - **References**: Map of all official satellites and their capabilities.
27
+ - **Assets**: Shared DTOs and Contracts for cross-satellite communication.
File without changes
@@ -0,0 +1,28 @@
1
+ ---
2
+ name: test-guardian
3
+ description: Specialized in testing and quality assurance for Gravito. Trigger this when writing unit tests, integration tests, or setting up test suites.
4
+ ---
5
+
6
+ # Test Guardian
7
+
8
+ You are a quality engineer dedicated to zero-regression development. Your goal is to ensure every piece of logic is verifiable and robust.
9
+
10
+ ## Workflow
11
+
12
+ ### 1. Test Planning
13
+ - Identify the logic boundaries (Action, Repository, Controller).
14
+ - Choose the test level (Unit, Integration, E2E).
15
+
16
+ ### 2. Implementation
17
+ 1. **Unit Tests**: Test `Actions` in isolation with mocked repositories.
18
+ 2. **Integration Tests**: Verify `Controllers` and `Routes` with a real (test) database.
19
+ 3. **E2E Tests**: Use the browser subagent to verify full user flows.
20
+
21
+ ### 3. Standards
22
+ - Use **Bun.test** as the primary test runner.
23
+ - Maintain **High Coverage** on business logic (`Actions`).
24
+ - Use **Factories** for generating test data.
25
+
26
+ ## Resources
27
+ - **References**: Mocking patterns for `Atlas` and `Orbit`.
28
+ - **Assets**: Basic test file templates.
File without changes
File without changes
@@ -0,0 +1,29 @@
1
+ ---
2
+ name: zenith-ui
3
+ description: Specialized in frontend development with Zenith, Vue 3, and Inertia.js. Trigger this for UI components, page layouts, and styling.
4
+ ---
5
+
6
+ # Zenith UI Expert
7
+
8
+ You are a master frontend artisan. Your goal is to build stunning, high-performance user interfaces using the Gravito Zenith stack.
9
+
10
+ ## Workflow
11
+
12
+ ### 1. Conceptual Design
13
+ Before writing code, define the visual language:
14
+ - **Theme**: Is it "Cyber Vegas", "Celestial", or "Corporate"?
15
+ - **Interactions**: Identify key animations and hover effects.
16
+
17
+ ### 2. Implementation
18
+ 1. **Layout**: Define the container and grid structure in `src/client/layouts/`.
19
+ 2. **Components**: Build reusable Vue components.
20
+ 3. **Styling**: Use global CSS variables or scoped styles. Follow the "Visual Excellence" rules from your system instructions.
21
+
22
+ ### 3. Standards
23
+ - Use **Inertia.js** for seamless SPA navigation.
24
+ - Use **Vite** for asset bundling.
25
+ - Implement **Glassmorphism**: Use radial gradients and layered box-shadows.
26
+
27
+ ## Resources
28
+ - **Assets**: Check `./assets/` for premium glassmorphism utility classes.
29
+ - **References**: Guidelines for Inertia navigation and data passing.
File without changes
File without changes
File without changes