Skip to content

haxtheweb/praw

Repository files navigation

PRAW - HAX Ecosystem Warp Rules

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.

What is this?

This repository contains:

  • RULES.md - Centralized registry of all HAX ecosystem rules with unique IDs and categorization
  • KNOWLEDGE.md - Log of emergent knowledge, decisions, and conventions that inform rule development
  • WARP.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.

Quick Start - New to HAX?

πŸš€ 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.


Manual Setup - Existing HAX Developers

If you already have a HAX development environment and just want to add these rules:

For Individual Projects

  1. Copy the main WARP.md to your HAX project root:

    cp WARP.md /path/to/your/hax-project/
  2. 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/

For the Entire HAX Ecosystem

If you're working across multiple HAX repositories, you can:

  1. Clone this repo to your local HAX development area:

    cd ~/Documents/git/haxtheweb/
    git clone https://github.com/haxtheweb/praw.git
  2. Symlink the main WARP.md to your primary working directories:

    ln -s ~/Documents/git/haxtheweb/praw/WARP.md ~/Documents/git/haxtheweb/webcomponents/
  3. Let Warp automatically detect the rules when working in HAX directories

πŸŽ“ Faculty Resource Management NEW!

For non-technical faculty: Create course resource repositories that AI agents use for grounded content generation.

Quick Faculty Setup

# 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"

Faculty Workflow

  1. Setup: Run one command to create course folder
  2. Add materials: Drag-and-drop PDFs, docs, images
  3. Request content: "Create a HAX site for [Course Name]"
  4. AI generates: Grounded content using YOUR materials

Benefits: Zero technical knowledge required, natural language interface, authoritative content

πŸ“– See complete faculty guide β†’


Rule Categories

πŸ—οΈ Architecture & File Structure

  • HAXcms site organization (docs/, files/, pages/)
  • Web component registry system
  • Reserved routing patterns

🎨 Design System Standards

  • DDD (primary design system) usage guidelines
  • SimpleColors (legacy) integration
  • Consistent styling approaches

🧩 Web Component Development

  • HAX capability implementation
  • Accessibility audit procedures
  • JavaScript coding standards
  • Educational content creation

βš™οΈ Build & Development Workflow

  • Command usage patterns
  • Version control integration
  • Testing philosophy
  • Tool configuration

πŸ“ Content Creation Guidelines

  • HAX site content authoring
  • Documentation standards
  • Quality assurance procedures

Rule Management System

Quick Setup

  1. Install the management system:

    cd ~/Documents/git/haxtheweb/praw
    ./scripts/setup.sh
  2. Restart your terminal or source your shell config:

    source ~/.zshrc  # or ~/.bashrc

Usage Commands

# 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

Rule Categories

  • πŸ—οΈ 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

Contributing

This repository evolves with the HAX ecosystem. To contribute:

Adding New Rules

  1. Use the management system: praw-add for interactive rule creation
  2. Follow the categorization system - choose appropriate category and provide context
  3. Test new rules in your local development environment
  4. Validate structure: praw-validate before committing
  5. Document knowledge: Log decisions and rationale in KNOWLEDGE.md

Updating Existing Rules

  1. Locate the rule using praw-search or praw-list
  2. Edit RULES.md directly or use the management system
  3. Maintain rule precedence - ensure changes align with precedence hierarchy
  4. Update related WARP.md files if necessary
  5. Record context: Add insights about the change to KNOWLEDGE.md

Rule Precedence

When using these rules, Warp follows this precedence order:

  1. Subdirectory WARP.md (most specific)
  2. Root project WARP.md
  3. Global Warp rules (least specific)

This ensures project-specific needs take priority while maintaining ecosystem consistency.

Repository Structure

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

Benefits

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

Maintenance

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.

About

AI based configuration management for working with HAX ecosystem most effectively

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages