xiaohongshu
xiaohongshu
aurora-context-generator
Generates CONTEXT.md documentation for bounded contexts by exploring existing code and YAML definitions. Trigger: When user asks to document a bounded context, generate CONTEXT.md, or analyze a domain.
Full skill instructions
Before generating, ALWAYS explore the bounded context:
1. Find all .aurora.yaml files in cliter/{context}/
2. Read each YAML to extract modules, fields, relationships
3. Explore src/@api/{context}/ for resolvers, controllers, DTOs
4. Explore src/@apps/{context}/ for handlers, services, domain logic
5. Identify business rules from code patterns (guards, validators, handlers)
| Source | What to Extract |
|---|---|
cliter/{context}/*.aurora.yaml | Modules, fields, relationships, aggregates |
src/@api/{context}/ | API endpoints, resolvers, DTOs |
src/@apps/{context}/*/application/ | Commands, queries, handlers, use cases |
src/@apps/{context}/*/domain/ | Value objects, entities, business rules |
src/@apps/{context}/*/infrastructure/ | Repositories, external integrations |
Read .aurora.yaml files and extract:
# From the YAML, extract:
boundedContextName: business-partner-portal # Context name
moduleName: partner # Module name
moduleNames: partners # Plural
aggregateName: Partner # Aggregate
# From properties, infer:
# - Field types and relationships
# - Required fields (business rules)
# - Indexes (query patterns)
Look for patterns in code:
| Code Pattern | Business Rule Type |
|---|---|
@Guards() decorators | Access control rules |
| Validators in handlers | Data validation rules |
if/throw in domain | Domain invariants |
| Value Objects | Data constraints |
| Saga/Events | Process rules |
Receive bounded context name from user
Explore code structure:
# Find all YAML definitions
glob: cliter/{context}/*.aurora.yaml
# Find application handlers
glob: src/@apps/{context}/**/handlers/**/*.handler.ts
# Find domain entities and value objects
glob: src/@apps/{context}/**/domain/**/*.ts
Read and analyze each found file
Extract information:
Generate CONTEXT.md with discovered information
Write to cliter/{context}/CONTEXT.md
# {Bounded Context Name}
## Purpose
{Inferred from module descriptions and aggregate names}
## Modules
| Module | Responsibility |
| -------- | ------------------------------------ |
| {module} | {Inferred from aggregate and fields} |
## Key Business Rules
{Extracted from code analysis}
- Rule from guards/validators
- Rule from domain invariants
- Rule from value object constraints
## Main Flows
{Extracted from command/query handlers}
1. **{CommandName}**: {Description from handler}
2. **{QueryName}**: {Description from handler}
## Dependencies
- **Uses**: {From imports analysis}
- **Used by**: {From reverse dependency search}
## Technical Notes
- Aggregate roots identified
- Event patterns found
- Integration points discovered
For business-partner-portal:
# Step 1: Find YAMLs
glob: cliter/business-partner-portal/*.aurora.yaml
# Step 2: Read each YAML
read: cliter/business-partner-portal/partner.aurora.yaml
# Step 3: Find handlers
glob: src/@apps/business-partner-portal/**/handlers/**/*.ts
# Step 4: Find domain logic
glob: src/@apps/business-partner-portal/**/domain/**/*.ts
# Step 5: Analyze imports for dependencies
grep: "from '@api/" in src/@apps/business-partner-portal/
# Explore bounded context structure
eza -T cliter/{context}/
eza -T src/@apps/{context}/
# Find all modules
fd ".aurora.yaml" cliter/{context}/
# Find all handlers
fd "handler.ts" src/@apps/{context}/
If code exploration reveals ambiguity, ask user:
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