@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.
- package/dist/index.cjs +140 -0
- package/dist/index.d.cts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +140 -0
- package/package.json +1 -1
- package/templates/skills/SKILLS_USAGE.md +54 -0
- package/templates/skills/adr-scaffold/SKILL.md +67 -0
- package/templates/skills/adr-scaffold/assets/.keep +0 -0
- package/templates/skills/adr-scaffold/references/.keep +0 -0
- package/templates/skills/adr-scaffold/references/adr-rules.md +29 -0
- package/templates/skills/adr-scaffold/scripts/.keep +0 -0
- package/templates/skills/architecture-refiner/SKILL.md +28 -0
- package/templates/skills/architecture-refiner/assets/.keep +0 -0
- package/templates/skills/architecture-refiner/references/.keep +0 -0
- package/templates/skills/architecture-refiner/scripts/.keep +0 -0
- package/templates/skills/atlas-expert/SKILL.md +34 -0
- package/templates/skills/atlas-expert/assets/.keep +0 -0
- package/templates/skills/atlas-expert/references/.keep +0 -0
- package/templates/skills/atlas-expert/references/decorators.md +24 -0
- package/templates/skills/atlas-expert/scripts/.keep +0 -0
- package/templates/skills/clean-architect/SKILL.md +63 -0
- package/templates/skills/clean-architect/assets/.keep +0 -0
- package/templates/skills/clean-architect/references/.keep +0 -0
- package/templates/skills/clean-architect/scripts/.keep +0 -0
- package/templates/skills/cms-engine/SKILL.md +54 -0
- package/templates/skills/cms-engine/assets/.keep +0 -0
- package/templates/skills/cms-engine/references/.keep +0 -0
- package/templates/skills/cms-engine/scripts/.keep +0 -0
- package/templates/skills/commerce-blueprint/SKILL.md +53 -0
- package/templates/skills/commerce-blueprint/assets/.keep +0 -0
- package/templates/skills/commerce-blueprint/references/.keep +0 -0
- package/templates/skills/commerce-blueprint/scripts/.keep +0 -0
- package/templates/skills/ddd-domain-expert/SKILL.md +71 -0
- package/templates/skills/ddd-domain-expert/assets/.keep +0 -0
- package/templates/skills/ddd-domain-expert/references/.keep +0 -0
- package/templates/skills/ddd-domain-expert/scripts/.keep +0 -0
- package/templates/skills/fortify-security/SKILL.md +28 -0
- package/templates/skills/fortify-security/assets/.keep +0 -0
- package/templates/skills/fortify-security/references/.keep +0 -0
- package/templates/skills/fortify-security/scripts/.keep +0 -0
- package/templates/skills/freeze-static/SKILL.md +55 -0
- package/templates/skills/freeze-static/assets/.keep +0 -0
- package/templates/skills/freeze-static/references/.keep +0 -0
- package/templates/skills/freeze-static/scripts/.keep +0 -0
- package/templates/skills/identity-hub/SKILL.md +51 -0
- package/templates/skills/identity-hub/assets/.keep +0 -0
- package/templates/skills/identity-hub/references/.keep +0 -0
- package/templates/skills/identity-hub/scripts/.keep +0 -0
- package/templates/skills/localization-linguist/SKILL.md +28 -0
- package/templates/skills/localization-linguist/assets/.keep +0 -0
- package/templates/skills/localization-linguist/references/.keep +0 -0
- package/templates/skills/localization-linguist/scripts/.keep +0 -0
- package/templates/skills/migration-master/SKILL.md +28 -0
- package/templates/skills/migration-master/assets/.keep +0 -0
- package/templates/skills/migration-master/references/.keep +0 -0
- package/templates/skills/migration-master/scripts/.keep +0 -0
- package/templates/skills/mvc-master/SKILL.md +88 -0
- package/templates/skills/mvc-master/assets/.keep +0 -0
- package/templates/skills/mvc-master/references/.keep +0 -0
- package/templates/skills/mvc-master/scripts/.keep +0 -0
- package/templates/skills/ops-commander/SKILL.md +28 -0
- package/templates/skills/ops-commander/assets/.keep +0 -0
- package/templates/skills/ops-commander/references/.keep +0 -0
- package/templates/skills/ops-commander/scripts/.keep +0 -0
- package/templates/skills/performance-tuner/SKILL.md +28 -0
- package/templates/skills/performance-tuner/assets/.keep +0 -0
- package/templates/skills/performance-tuner/references/.keep +0 -0
- package/templates/skills/performance-tuner/scripts/.keep +0 -0
- package/templates/skills/quasar-queue/SKILL.md +28 -0
- package/templates/skills/quasar-queue/assets/.keep +0 -0
- package/templates/skills/quasar-queue/references/.keep +0 -0
- package/templates/skills/quasar-queue/scripts/.keep +0 -0
- package/templates/skills/satellites-pilot/SKILL.md +27 -0
- package/templates/skills/satellites-pilot/assets/.keep +0 -0
- package/templates/skills/satellites-pilot/references/.keep +0 -0
- package/templates/skills/satellites-pilot/scripts/.keep +0 -0
- package/templates/skills/test-guardian/SKILL.md +28 -0
- package/templates/skills/test-guardian/assets/.keep +0 -0
- package/templates/skills/test-guardian/references/.keep +0 -0
- package/templates/skills/test-guardian/scripts/.keep +0 -0
- package/templates/skills/zenith-ui/SKILL.md +29 -0
- package/templates/skills/zenith-ui/assets/.keep +0 -0
- package/templates/skills/zenith-ui/references/.keep +0 -0
- 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.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -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
|
|
File without changes
|
|
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
|
|
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
|