Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (aidd) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
AIDD with SudoLang.ai
The standard library for AI Driven Development.
A public collection of reusable metaprograms, agent scripts, and prompt modules.
SudoLang is a pseudocode language for prompting large language models with clear structure, strong typing, and explicit control flow.
๐ Quick Start with AIDD CLI
Install SudoLang syntax highlighting: Visit the SudoLang Github Repository and install syntax highlighting for your editor.
Clone the AI system:
# Recommended: Creates ai/ folder + .cursor symlink for automatic integration npx aidd --cursor my-project # Alternative: Just the ai/ folder (manual integration required) npx aidd my-project
Explore the structure:
cd my-project ls ai/ # See available components cat ai/rules/please.mdc # Read the main orchestrator
Start using AI workflows:
- Reference
ai/rules/in AI prompts for better context - Use
ai/commands/as workflow templates - Customize rules for your specific project needs
- Reference
This gives you immediate access to:
- ๐ค Agent orchestration rules (
ai/rules/) - โ๏ธ AI workflow commands (
ai/commands/) - ๐ Development best practices (JavaScript, TDD, UI/UX)
- ๐ฏ Product management tools (user stories, journey mapping)
Why SudoLang?
For most simple prompts, natural language is better. Use it. But if you need the AI to follow a program, obey constraints, keep track of complex state, or implement complex algorithms, SudoLang can be extremely useful.
- Because of the natural language emphasis, SudoLang is easier to learn than programming languages like JavaScript or Python.
- Pseudocode can improve reasoning performance vs natural language prompts, and create shorthands for many prompting styles, such as chain-of-thought reasoning, decision trees, etc.
- SudoLang is a declarative, constraint-based, interface-oriented programming language, which makes it one of the most expressive and compact programming languages in the world. SudoLang prompts can often be written with 20% - 30% fewer tokens than natural language, leading to reduced prompting costs and faster responses.
- Structured pseudocode provides scope blocks, indentation, and visual encapsulation which makes it easier to navigate and maintain complex prompts than natural language.
- Structured templates and queries using predefined types and interfaces can reduce the probability of malformed responses and dramatically reduce the number of tokens required to interact with the language model, particularly when requesting data in yaml or csv formats.
Please read the SudoLang documentation for more information about the language.
What's Included
Modules include:
- ๐ง Metaprograms for LLMs (programs that build programs)
- ๐งญ Product discovery and story mapping
- ๐ค Agent behaviors and workflows
- ๐งช Test generators
- ๐ ๏ธ Development process automation scripts
Coming soon:
- ๐จ UI sketch prompts
- ๐ Documentation generators
- ๐ API design
๐ System Requirements
- Node.js: 16.0.0+ (requires ESM support)
- Environment: Unix/Linux shell (bash, zsh) or Windows with WSL
- Editors: Works with any editor; optimized for Cursor
๐ ๏ธ AIDD CLI Reference
The AI Driven Development (AIDD) CLI tool clones the complete AI agent orchestration system to any directory.
Installation & Usage
# Recommended: Use npx (no installation required)
npx aidd [target-directory] [options]
# Alternative: Global installation
npm install -g aidd
aidd [target-directory] [options]Command Options
| Option | Description |
|---|---|
target-directory |
Directory to create ai/ folder in (defaults to current) |
-f, --force |
Overwrite existing ai/ folder |
-d, --dry-run |
Show what would be copied without copying |
-v, --verbose |
Provide detailed output |
-c, --cursor |
Create .cursor symlink for Cursor editor integration |
-h, --help |
Display help information |
--version |
Show version number |
Examples
# Basic usage
npx aidd # Current directory
npx aidd my-project # Specific directory
# Preview and force options
npx aidd --dry-run # See what would be copied
npx aidd --force --verbose # Overwrite with details
# Cursor editor integration
npx aidd --cursor # Create .cursor symlink
npx aidd my-project --cursor --verbose
# Multiple projects
npx aidd frontend-app
npx aidd backend-api๐ AI System Structure
After running the CLI, you'll have a complete ai/ folder:
your-project/
โโโ ai/
โ โโโ commands/ # Workflow commands
โ โ โโโ help.md # List available commands
โ โ โโโ plan.md # Project planning
โ โ โโโ review.md # Code reviews
โ โ โโโ task.md # Task management
โ โ โโโ ...
โ โโโ rules/ # Agent orchestration rules
โ โ โโโ agent-orchestrator.mdc
โ โ โโโ javascript/ # JS/TS best practices
โ โ โโโ frameworks/ # Redux, TDD patterns
โ โ โโโ productmanager.mdc
โ โ โโโ tdd.mdc
โ โ โโโ ui.mdc
โ โ โโโ ...
โ โโโ ...
โโโ your-code/Key Components
- Agent Orchestrator (
ai/rules/agent-orchestrator.mdc) - Coordinates multiple AI agents - Development Rules (
ai/rules/javascript/,ai/rules/tdd.mdc) - Best practices and patterns - Workflow Commands (
ai/commands/) - Structured AI interaction templates - Product Management (
ai/rules/productmanager.mdc) - User stories and journey mapping - UI/UX Guidelines (
ai/rules/ui.mdc) - Design and user experience standards
๐ฏ AI Integration
This system is designed to work with AI coding assistants:
- Cursor - AI-first code editor
- GitHub Copilot - AI pair programmer
- ChatGPT - General AI assistance
- Claude - Advanced reasoning and code review
The rules provide context and structure for more effective AI interactions.
๐ฏ Cursor Editor Integration
The AIDD CLI can automatically set up the AI agent system for Cursor editor users.
Automatic Setup (Recommended)
# Creates both ai/ folder AND .cursor symlink
npx aidd --cursor
# This creates:
# ai/ <- The complete AI system
# .cursor -> ai <- Symlink for Cursor integrationWhen to Use --cursor
- โ
New projects: No existing
.cursorconfiguration - โ Cursor editor users: Want automatic agent orchestration
- โ Quick setup: Want everything working immediately
When NOT to Use --cursor
- โ Existing
.cursorfolder: You already have Cursor rules - โ Custom setup: You want to manually integrate with existing rules
- โ Non-Cursor editors: Using VS Code, Vim, etc.
Manual Integration
If you already have a .cursor folder, manually integrate our system:
# 1. Clone without symlink
npx aidd my-project
# 2. Manually reference our rules in your existing .cursor rules
# Add to your .cursor/rules.md:
# @import ../ai/rules/javascript/javascript.mdc
# @import ../ai/rules/tdd.mdc
# @import ../ai/rules/productmanager.mdcTroubleshooting
# If .cursor already exists, use --force
npx aidd --cursor --force
# Preview what --cursor will do
npx aidd --cursor --dry-run --verbose๐ License
MIT ยฉ ParallelDrive
๐ค Contributing
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Start building with AI orchestration today:
npx aidd --cursor