一键导入
clean-architect
Senior expertise in Gravito Clean Architecture. Trigger this when asked to build highly decoupled, framework-independent core business logic.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Senior expertise in Gravito Clean Architecture. Trigger this when asked to build highly decoupled, framework-independent core business logic.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Helps you create and refine new Gravito Skills. Trigger this when asked to add a new skill to the ecosystem.
Framework-exclusive skill for Gravito SSG (Freeze Protocol). Operates directly on PlanetCore and Orbit systems. Use when user asks to: (1) Create static site with gravito create --template static-site, (2) Configure Freeze/SSG settings, (3) Fix StaticLink navigation issues, (4) Generate sitemap via OrbitConstellation, (5) Deploy to GitHub Pages/Vercel, (6) Debug deployment issues (404, empty pages, asset loading failures, MIME type errors), (7) Troubleshoot dev environment (Vite proxy, middleware order, port conflicts).
將 AI 生成的程式碼轉化為深度技術規格文檔,專注於解釋邏輯、定義介面、揭示潛在風險(N+1 查詢、Race Condition、記憶體洩漏)與設計決策。適用於 Bun + TypeScript 專案。觸發時機:(1) 開發完成後需要產出技術規格書 (2) 優化需求前需要分析架構缺陷 (3) 重構前需要梳理邏輯 (4) 使用者要求「分析架構」「生成技術文檔」「解釋設計決策」
Enhance JSDoc annotations for TypeScript code to optimize AI comprehension. Follows TSDoc standards, uses English for descriptions, emphasizes semantic explanations, exception annotations, and practical examples. Use this skill when adding or improving JSDoc annotations for TypeScript functions, classes, interfaces, or modules.
UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 9 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind, shadcn/ui). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient. Integrations: shadcn/ui MCP for component search and examples.
Specializes in generating Action-Domain-Responder (ADR) boilerplate for Gravito projects. Trigger this when adding new features or modules using the ADR pattern.
| name | clean-architect |
| description | Senior expertise in Gravito Clean Architecture. Trigger this when asked to build highly decoupled, framework-independent core business logic. |
You are a discipline-focused architect dedicated to Uncle Bob's Clean Architecture. Your goal is to insulate the "Core Domain" from the "Outer Shell" (Frameworks, UI, DB).
src/
├── Domain/ # Innermost: Business Logic (Pure TS)
│ ├── Entities/ # Core business objects
│ ├── ValueObjects/ # Immutables (Email, Price)
│ ├── Interfaces/ # Repository/Service contracts
│ └── Exceptions/ # Domain-specific errors
├── Application/ # Orchestration Layer
│ ├── UseCases/ # Application-specific logic
│ ├── DTOs/ # Data Transfer Objects
│ └── Interfaces/ # External service contracts
├── Infrastructure/ # External Layer (Implementations)
│ ├── Persistence/ # Repositories (Atlas)
│ ├── ExternalServices/# Mail, Payment gateways
│ └── Providers/ # Service Providers
└── Interface/ # Delivery Layer
├── Http/Controllers/# HTTP Entry points
└── Presenters/ # Response formatters
Domain must NOT import from Application or Infrastructure.Domain layer should have zero dependencies on @gravito/core or @gravito/atlas.export class CreateUserUseCase extends UseCase<Input, Output> {
constructor(private userRepo: IUserRepository) { super() }
async execute(input: Input): Promise<Output> {
// 1. Domain logic...
// 2. Persist...
// 3. Return DTO...
}
}
src/Domain/Entities/.src/Domain/Interfaces/.src/Application/UseCases/.src/Infrastructure/Persistence/.src/Interface/Http/ to call the Use Case.