AI-powered coding assistants for Nu's cross-segment development workflows. This repository contains Cursor rules and commands that automate repetitive tasks, enforce best practices, and accelerate development across Core, PJ, and other data domains.
Install commands or rules to your project using the nu CLI:
# Install commands to a project
nu cross-segment-ai-tools commands install <repo>
nu cross-segment-ai-tools commands install itaipu
nu cross-segment-ai-tools commands install ~/dev/nu/my-project
# Install rules to a project
nu cross-segment-ai-tools rules install <repo>
nu cross-segment-ai-tools rules install itaipu
nu cross-segment-ai-tools rules install ~/dev/nu/my-projectKeep your tools up to date:
# Update all projects that have commands installed
nu cross-segment-ai-tools commands update
# Update a specific project
nu cross-segment-ai-tools commands update ~/dev/nu/itaipu
# Update all projects that have rules installed
nu cross-segment-ai-tools rules update
# Update a specific project
nu cross-segment-ai-tools rules update ~/dev/nu/itaipuRemove tools from a project:
# Remove commands from a project
nu cross-segment-ai-tools commands remove <repo>
nu cross-segment-ai-tools commands remove itaipu
# Remove rules from a project
nu cross-segment-ai-tools rules remove <repo>
nu cross-segment-ai-tools rules remove itaipunu cross-segment-ai-tools commands --help
nu cross-segment-ai-tools rules --help.cursor/
├── commands/ # AI commands (executable prompts)
│ ├── core/ # Core-specific commands
│ │ └── pe-de-pano-v2.md # Purple Loop campaign automation
│ ├── pj/ # PJ-specific commands
│ └── cross-segments/ # Cross-segment commands
│ └── rapidash.md # Audience Manager attribute generator
│
└── rules/ # AI rules (context & guidelines)
├── agents/ # General-purpose AI agents
│ └── Rapidash v1.1.md # Rapidash agent definition
├── pj/ # PJ-specific rules
│ └── agents/
└── core/ # Core-specific rules
└── agents/
Domain: Cross-segment (Core, PJ, High-Income)
Rapidash automates the entire process of creating audience manager attributes—from requirements gathering to production-ready code. In ~10 minutes, it can:
- ✅ Generate complete Scala attribute code
- ✅ Detect duplicates with comprehensive validation
- ✅ Suggest attribute generators for parameter variations
- ✅ Handle git workflows automatically
- ✅ Deliver a ready-to-review pull request
How to use:
- Open your Itaipu project in Cursor
- Use the command:
/rapidash - Follow the conversational prompts
Supported domains: core-brazil, high-income, pj-brazil, and more
Domain: Core (PF segment)
Pé de Pano automates three Purple Loop-related tasks:
- Campaign Updater — Add campaign vals to product config files
- Templates Updater — Insert templates into product template lists
- Ranking Strategy Updater — Include campaigns in ranking strategy lists
How to use:
- Open your Itaipu project in Cursor
- Use the command:
/pe-de-pano-v2 - Provide campaign/template data as tables
- Review dry-run plan before applying changes
Supported products: Money Boxes, Caixinha Turbo, Insurance, Lending, and 30+ more
| Feature | Commands | Rules |
|---|---|---|
| Purpose | Executable prompts for specific tasks | Context & guidelines for AI behavior |
| Usage | Invoke with /command-name |
Applied automatically or by glob pattern |
| Scope | Task-specific (e.g., create attribute) | Domain-wide (e.g., Scala best practices) |
| Output | Code, PRs, changes | AI behavior modification |
-
Create a new
.mdfile in the appropriate folder:.cursor/commands/core/— Core-specific.cursor/commands/pj/— PJ-specific.cursor/commands/cross-segments/— Cross-segment
-
Include clear step-by-step instructions for the AI
-
Test with a real project before committing
-
Create a new
.mdor.mdcfile in the appropriate folder:.cursor/rules/agents/— General-purpose.cursor/rules/pj/agents/— PJ-specific.cursor/rules/core/agents/— Core-specific
-
For
.mdcfiles, use frontmatter:
---
description: "Brief description of the agent"
globs: ["**/*.scala", "**/pj/**"]
alwaysApply: false
---
# Agent Name
Your agent rules and guidelines...- Test the rule with real projects
- Cursor IDE with AI features enabled
- Access to Nu's internal repositories
nuCLI installed
- Make your changes to commands/rules
- Install to a test project:
nu cross-segment-ai-tools commands install ~/dev/nu/test-project - Test the AI assistant behavior
- Update if needed
- Keep it focused — Each command/rule should have a clear, single purpose
- Document thoroughly — Include examples and expected behavior
- Test before submitting — Verify with real projects
- Follow conventions — Match existing naming and structure
- Itaipu Repository — Main data domains repository
- Nu CLI Documentation — CLI tooling
This project is part of Nu's internal development ecosystem.