Claude-skill-registry aurora-cli
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/aurora-cli" ~/.claude/skills/majiayu000-claude-skill-registry-aurora-cli && rm -rf "$T"
manifest:
skills/data/aurora-cli/SKILL.mdsource content
When to Use
- User asks to "regenerate", "load", or "generate" a module
- User wants to add a package (oauth, auditing, etc.)
- User needs to create a new Aurora project
- After YAML schema changes that require code regeneration
- User mentions "aurora cli" or "aurora load"
Critical Patterns
Command Structure
| Action | Command | When to Use |
|---|---|---|
| Regenerate module | | After YAML changes |
| Force regenerate | | Override hash protection |
| With tests | | Generate e2e tests |
| Add package | | Install preconfigured package |
| New project | | Create new project (rare) |
CRITICAL: Always use -ft
for schema changes
-ftWhen regenerating a module after YAML schema changes, ALWAYS use
flags. Without -ft
-ft, existing files are not overwritten and tests are not
regenerated, causing the generated code to be out of sync with the schema.
# ✅ CORRECT - Always use after schema changes aurora load back module -n=<bc>/<module> -ft # ❌ INCORRECT - Files won't be updated, tests won't regenerate aurora load back module -n=<bc>/<module>
Hash Protection System
Aurora tracks file modifications via hash. Files with custom changes are protected by default:
- Without
: Modified files are preserved-f - With
: All files are overwritten (use with caution)-f
CRITICAL: Handling .origin
files after regeneration
.originWhen Aurora detects that a file was manually modified (different hash), it creates a
.origin.ts file instead of overwriting. The CLI asks:
Do you want to manage origin files? (Y/n) — always answer Y.
After the CLI finishes, invoke the
skill to handle all
aurora-origin-merge
.origin files. That skill contains the complete merge workflow, rules by file
type, and conflict resolution.
Execution Flow
1. Identify Action
Ask the user what they want to do:
- Generate/Regenerate module - Regenerate code from existing YAML
- Add package - Install preconfigured package (auditing, oauth, etc.)
- Create project - Create new Aurora project (rare)
2. Gather Information
For Generate/Regenerate Module:
- Ask which bounded context and module to regenerate
- ONLY if you can't identify them, list available YAMLs in
using Globcliter/ - Always use
flags (force + tests) — do NOT ask, this is mandatory-ft
For Add Package:
- Run
to show available packagesaurora add back - Ask which package to install
- Ask if
is needed--force
For Create Project:
- Ask for project name
- Confirm before executing
3. Execute Command
# Regenerate module aurora load back module -n=<bounded-context>/<module> [-f] [-t] [-v] # Add package aurora add back <package> [-f] # Create project aurora new back <app-name>
4. Report Results
Command executed successfully aurora load back module -n=tesla/model -ft Regenerated Files: - src/@api/tesla/model/controllers/... - src/@app/tesla/model/domain/... Preserved Files (modified hash): - src/@app/tesla/model/application/create/create-model.command-handler.ts (These files have custom modifications and were not overwritten) Summary: - X files regenerated - Y files preserved
Commands
# Regenerate module from YAML aurora load back module -n=tesla/model # Regenerate with force + tests aurora load back module -n=tesla/model -ft # Add package aurora add back oauth # Show available packages aurora add back # Create new project aurora new back my-project
Flags
| Flag | Description |
|---|---|
| Overwrite existing files (even with modified hash) |
| Generate e2e test files |
| Show detailed CLI output |
Error Handling
| Error | Solution |
|---|---|
| CLI not found | Report that Aurora CLI is not installed |
| YAML not found | Report expected path and suggest creating it |
| Permission error | Report and suggest solutions |
| Execution error | Show complete error output |
Related Skills
This skill works with:
- aurora-project-structure: Understand project structure and locate generated files
- aurora-cqrs: Understand CQRS components that will be regenerated
- conventional-commits: Create commits after successful regeneration
Resources
- YAML Definitions:
cliter/[package]/[module].aurora.yaml - Lock Files:
cliter/[package]/[module]-lock.json - Generated Code:
andsrc/@api/src/@app/