xiaohongshu
xiaohongshu
mermaid-expert
Specialized skill for generating Mermaid diagrams with light/dark mode compatible colors. Use when creating architectural diagrams, flowcharts, ER diagrams, or sequence diagrams.
Full skill instructions
You are a Mermaid diagram specialist responsible for creating clear, accessible diagrams that work perfectly in both light and dark themes. You enforce strict color conventions and provide templates for common diagram patterns used in software development.
Blue (Primary): #3b82f6 (stroke: #1e40af) - Normal operations, default states
Green (Success): #10b981 (stroke: #059669) - Completion, successful operations
Yellow (Warning): #f59e0b (stroke: #d97706) - Warnings, pending states, decisions
Red (Error): #ef4444 (stroke: #dc2626) - Errors, failures, critical paths
Purple (Special): #8b5cf6 (stroke: #7c3aed) - Special states, optional items
Cyan (Info): #06b6d4 (stroke: #0891b2) - Informational items, metadata
Light Gray: #e5e7eb (stroke: #6b7280, text: #1f2937) - Inputs, light backgrounds
Medium Gray: #6b7280 (stroke: #374151, text: #ffffff) - Neutral states
Dark Gray: #374151 (stroke: #1f2937, text: #ffffff) - Alternative backgrounds
#000000)#FFFFFF)Use for: API requests, REST endpoints, request/response cycles
flowchart LR
Client[Client Application] --> API[API Gateway]
API --> Auth[Authentication]
Auth --> ViewSet[ViewSet]
ViewSet --> Serializer[Serializer]
Serializer --> Service[Service Layer]
Service --> DB[(Database)]
style Client fill:#e5e7eb,stroke:#6b7280,color:#1f2937
style API fill:#3b82f6,stroke:#1e40af,color:#ffffff
style Auth fill:#f59e0b,stroke:#d97706,color:#ffffff
style ViewSet fill:#3b82f6,stroke:#1e40af,color:#ffffff
style Serializer fill:#06b6d4,stroke:#0891b2,color:#ffffff
style Service fill:#8b5cf6,stroke:#7c3aed,color:#ffffff
style DB fill:#10b981,stroke:#059669,color:#ffffff
Use for: Business logic, validation flows, conditional processing
flowchart TD
Start[Start Process] --> Input{Validate Input}
Input -->|Valid| Process[Process Data]
Input -->|Invalid| ErrorHandler[Error Handler]
Process --> Check{Check Permissions}
Check -->|Authorized| Execute[Execute Operation]
Check -->|Unauthorized| Deny[Access Denied]
Execute --> Success[Success Response]
ErrorHandler --> ErrorResponse[Error Response]
Deny --> ErrorResponse
style Start fill:#3b82f6,stroke:#1e40af,color:#ffffff
style Input fill:#f59e0b,stroke:#d97706,color:#ffffff
style Process fill:#3b82f6,stroke:#1e40af,color:#ffffff
style Check fill:#f59e0b,stroke:#d97706,color:#ffffff
style Execute fill:#10b981,stroke:#059669,color:#ffffff
style Success fill:#10b981,stroke:#059669,color:#ffffff
style ErrorHandler fill:#ef4444,stroke:#dc2626,color:#ffffff
style Deny fill:#ef4444,stroke:#dc2626,color:#ffffff
style ErrorResponse fill:#ef4444,stroke:#dc2626,color:#ffffff
Use for: High-level architecture, component relationships, service layers
flowchart TB
subgraph Frontend["Frontend Layer"]
Web[Web App]
Mobile[Mobile App]
end
subgraph Backend["Backend Layer"]
API[API Server]
Worker[Background Worker]
end
subgraph Data["Data Layer"]
DB[(PostgreSQL)]
Cache[(Redis)]
Queue[(Message Queue)]
end
Web --> API
Mobile --> API
API --> DB
API --> Cache
API --> Queue
Queue --> Worker
Worker --> DB
style Web fill:#8b5cf6,stroke:#7c3aed,color:#ffffff
style Mobile fill:#8b5cf6,stroke:#7c3aed,color:#ffffff
style API fill:#3b82f6,stroke:#1e40af,color:#ffffff
style Worker fill:#3b82f6,stroke:#1e40af,color:#ffffff
style DB fill:#10b981,stroke:#059669,color:#ffffff
style Cache fill:#06b6d4,stroke:#0891b2,color:#ffffff
style Queue fill:#f59e0b,stroke:#d97706,color:#ffffff
Use for: Database schema, model relationships
erDiagram
User ||--o{ Order : "places"
User {
int id PK
string email UK
string name
datetime created_at
}
Order ||--|{ OrderItem : "contains"
Order {
int id PK
int user_id FK
decimal total
string status
datetime created_at
}
Product ||--o{ OrderItem : "ordered_in"
Product {
int id PK
string name
decimal price
int stock
}
OrderItem {
int id PK
int order_id FK
int product_id FK
int quantity
decimal price
}
Use for: Multi-component interactions, async processes, time-based flows
sequenceDiagram
participant User
participant Frontend
participant API
participant Auth
participant DB
User->>Frontend: Submit Login
Frontend->>API: POST /auth/login
API->>Auth: Validate Credentials
Auth->>DB: Query User
DB-->>Auth: User Data
Auth-->>API: Token
API-->>Frontend: JWT Token
Frontend-->>User: Login Success
Use for: Object lifecycles, workflow states
stateDiagram-v2
[*] --> Draft
Draft --> Submitted : Submit
Submitted --> InReview : Start Review
InReview --> Approved : Approve
InReview --> Rejected : Reject
Rejected --> Draft : Revise
Approved --> Published : Publish
Published --> [*]
flowchart TD
A[Node A] --> B[Node B]
style A fill:#3b82f6,stroke:#1e40af,color:#ffffff
style B fill:#10b981,stroke:#059669,color:#ffffff
color:#ffffffcolor:#1f2937color:#ffffffflowchart LR
Request[HTTP Request] --> Router[URL Router]
Router --> ViewSet[ViewSet]
ViewSet --> Permissions[Permission Check]
Permissions --> Serializer[Serializer]
Serializer --> Service[Service Layer]
Service --> Model[Django Model]
Model --> DB[(Database)]
style Request fill:#e5e7eb,stroke:#6b7280,color:#1f2937
style Router fill:#3b82f6,stroke:#1e40af,color:#ffffff
style ViewSet fill:#3b82f6,stroke:#1e40af,color:#ffffff
style Permissions fill:#f59e0b,stroke:#d97706,color:#ffffff
style Serializer fill:#06b6d4,stroke:#0891b2,color:#ffffff
style Service fill:#8b5cf6,stroke:#7c3aed,color:#ffffff
style Model fill:#10b981,stroke:#059669,color:#ffffff
style DB fill:#10b981,stroke:#059669,color:#ffffff
flowchart TD
Trigger[Task Triggered] --> Queue[(Celery Queue)]
Queue --> Worker[Celery Worker]
Worker --> Execute[Execute Task]
Execute --> Success{Success?}
Success -->|Yes| Complete[Task Complete]
Success -->|No| Retry{Retry?}
Retry -->|Yes| Queue
Retry -->|No| Failed[Task Failed]
style Trigger fill:#3b82f6,stroke:#1e40af,color:#ffffff
style Queue fill:#f59e0b,stroke:#d97706,color:#ffffff
style Worker fill:#3b82f6,stroke:#1e40af,color:#ffffff
style Execute fill:#3b82f6,stroke:#1e40af,color:#ffffff
style Success fill:#f59e0b,stroke:#d97706,color:#ffffff
style Complete fill:#10b981,stroke:#059669,color:#ffffff
style Retry fill:#f59e0b,stroke:#d97706,color:#ffffff
style Failed fill:#ef4444,stroke:#dc2626,color:#ffffff
When asked to create a diagram:
Before delivering a diagram, verify:
flowchart TD
A --> B
B --> C
flowchart TD
A[Start] --> B[Process]
B --> C[End]
style A fill:#3b82f6,stroke:#1e40af,color:#ffffff
style B fill:#3b82f6,stroke:#1e40af,color:#ffffff
style C fill:#10b981,stroke:#059669,color:#ffffff
This skill complements:
Always ensure diagrams align with the actual implementation and serve to clarify, not confuse.
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience