PRAW (Warp spelled backwards) is a repository containing comprehensive Warp AI agent rules for the HAX ecosystem. These rules codify years of development experience, best practices, and conventions to help Warp users work more effectively with HAX projects.
This repository contains:
RULES.md
- Centralized registry of all HAX ecosystem rules with unique IDs and categorizationKNOWLEDGE.md
- Log of emergent knowledge, decisions, and conventions that inform rule developmentWARP.md
files - Detailed context-specific rules for different project types- Rule Management System - Scripts and tools for adding, searching, and managing rules
- Cross-references - Connections between rules and related documentation
These rules ensure consistency, quality, and proper integration across all HAX projects and web components.
π For complete newcomers, we've created an automated onboarding script that sets up your entire HAX development environment with Warp optimization:
# Run the onboarding script from anywhere
curl -fsSL https://raw.githubusercontent.com/haxtheweb/praw/main/hax-onboarding.sh | bash
# Or if you've already cloned this repo:
cd ~/Documents/git/haxtheweb/praw
./hax-onboarding.sh
This script will:
- β Clone all necessary HAX ecosystem repositories
- β Install and configure the HAX CLI (@haxtheweb/create)
- β Set up Warp with HAX-specific rules and optimizations
- β Create helpful development aliases and shortcuts
- β Generate curated Warp agent prompts for HAX development
- β Configure your development environment following HAX best practices
Recommended for: First-time contributors, developers new to HAX, or anyone wanting a fresh, optimized setup.
If you already have a HAX development environment and just want to add these rules:
-
Copy the main WARP.md to your HAX project root:
cp WARP.md /path/to/your/hax-project/
-
Use specialized rules by copying relevant subdirectory WARP.md files:
cp webcomponents/WARP.md /path/to/your/project/elements/ cp haxcms/WARP.md /path/to/your/haxcms-site/
If you're working across multiple HAX repositories, you can:
-
Clone this repo to your local HAX development area:
cd ~/Documents/git/haxtheweb/ git clone https://github.com/haxtheweb/praw.git
-
Symlink the main WARP.md to your primary working directories:
ln -s ~/Documents/git/haxtheweb/praw/WARP.md ~/Documents/git/haxtheweb/webcomponents/
-
Let Warp automatically detect the rules when working in HAX directories
For non-technical faculty: Create course resource repositories that AI agents use for grounded content generation.
# Set up a course resource folder
faculty-setup "Your Course Name"
# Add web resources
add-url-resource "Course Name" "https://example.com" "Description"
# Find course materials
find-course "Course Name"
- Setup: Run one command to create course folder
- Add materials: Drag-and-drop PDFs, docs, images
- Request content: "Create a HAX site for [Course Name]"
- AI generates: Grounded content using YOUR materials
Benefits: Zero technical knowledge required, natural language interface, authoritative content
π See complete faculty guide β
- HAXcms site organization (
docs/
,files/
,pages/
) - Web component registry system
- Reserved routing patterns
- DDD (primary design system) usage guidelines
- SimpleColors (legacy) integration
- Consistent styling approaches
- HAX capability implementation
- Accessibility audit procedures
- JavaScript coding standards
- Educational content creation
- Command usage patterns
- Version control integration
- Testing philosophy
- Tool configuration
- HAX site content authoring
- Documentation standards
- Quality assurance procedures
-
Install the management system:
cd ~/Documents/git/haxtheweb/praw ./scripts/setup.sh
-
Restart your terminal or source your shell config:
source ~/.zshrc # or ~/.bashrc
# Add a new rule interactively
praw-add
# Add a rule via command line
praw-add webcomponent "New Component Rule" "Always include proper documentation"
# List all rules
praw-list
# List rules in a specific category
praw-list design-system
# Search for rules containing specific terms
praw-search "DDD"
# Show details for a specific rule ID
praw-show rHQ7lLRZmZlnFveLrWslUN
# Show rule statistics
praw-stats
# Validate RULES.md structure
praw-validate
# Export rules to different formats
praw-export json
praw-export csv
# Get help
praw-help
- ποΈ Architecture (
architecture
) - Site structure, routing, file organization - π¨ Design System (
design-system
) - DDD, SimpleColors, theming guidelines - π§© Web Components (
webcomponent
) - HAX capability, accessibility, JavaScript standards - βοΈ Build & Workflow (
build-workflow
) - CLI usage, build commands, version control - π Documentation (
documentation
) - Content creation, documentation structure - ποΈ Project-Specific (
project-specific
) - Rules for specific projects or directories
This repository evolves with the HAX ecosystem. To contribute:
- Use the management system:
praw-add
for interactive rule creation - Follow the categorization system - choose appropriate category and provide context
- Test new rules in your local development environment
- Validate structure:
praw-validate
before committing - Document knowledge: Log decisions and rationale in
KNOWLEDGE.md
- Locate the rule using
praw-search
orpraw-list
- Edit RULES.md directly or use the management system
- Maintain rule precedence - ensure changes align with precedence hierarchy
- Update related WARP.md files if necessary
- Record context: Add insights about the change to
KNOWLEDGE.md
When using these rules, Warp follows this precedence order:
- Subdirectory WARP.md (most specific)
- Root project WARP.md
- Global Warp rules (least specific)
This ensures project-specific needs take priority while maintaining ecosystem consistency.
praw/
βββ RULES.md # Central registry of all rules
βββ KNOWLEDGE.md # Log of emergent knowledge and decisions
βββ WARP.md # Master HAX ecosystem rules
βββ README.md # This file
βββ FACULTY_RESOURCES.md # Faculty resource management guide
βββ scripts/ # Management scripts
β βββ setup.sh # Setup the rule management system
β βββ add-rule.sh # Add new rules
β βββ manage-rules.sh # Search, list, and manage rules
β βββ faculty-setup.sh # Create course resource folders
β βββ find-course-resources.sh # Locate course materials
β βββ add-url-resource.sh # Add web resources to courses
βββ webcomponents/WARP.md # Web component specific rules
βββ haxcms/WARP.md # HAXcms specific rules
βββ design-system/WARP.md # Design system specific rules
βββ exports/ # Rule exports (JSON, CSV, etc.)
βββ backups/ # Automatic backups
Using these rules provides:
- β Consistency across HAX projects
- π Faster development with established patterns
- π‘οΈ Quality assurance through automated validation
- π― Focused AI assistance tailored to HAX conventions
- π Knowledge sharing across the HAX community
- π Searchable rules with unique IDs and categorization
- π Rule analytics and usage tracking
These rules are actively maintained by the HAX core team and community contributors. They reflect current best practices and are updated as the ecosystem evolves.
Made with β€οΈ by the HAX Community
PRAW ensures that every Warp user working with HAX gets the benefit of collective ecosystem knowledge and established best practices.