Tools Directory

This directory contains development utilities for the Varlyn D&D site.

Available Tools

Core Analysis Tools

Validation & Testing

Class Recommendation System

Content Management

Supporting Files

Usage

All tools are callable from the Makefile:

# Validation & Testing
make lint-md                # Run markdown linter
make test-structure          # Run structure validation
make validate-profiles       # Validate class profile schemas
make validate-questions      # Validate question bank structure
make test                   # Run all validation tools
make test-verbose           # Run validation with detailed output

# Analysis & Scoring
make analyze-question-traits # Analyze question trait relationships
make test-class-scoring     # Test class scoring algorithm
make test-ranking-system    # Test recommendation ranking

# Content Management
make extract               # Extract searchable content

Direct Tool Usage

# Core Analysis (Ruby)
ruby tools/analyze_class_bias.rb                    # Analyze class bias across questionnaire
ruby tools/analyze_archetype_bias.rb                # Analyze archetype-level bias
ruby tools/trait-analysis.rb                        # Generate comprehensive trait analysis report

# Validation (Node.js)
node tools/validate-class-profiles.js               # Validate class profile schemas
node tools/validate-question-bank.js                # Validate question bank structure
node tools/lint-markdown.js                         # Lint markdown files
node tools/test-structure.js                        # Test Varlyn structure patterns

# Testing & Analysis (Node.js)
node tools/test-class-scoring.js                    # Test scoring algorithm
node tools/test-ranking-system.js                   # Test ranking system
node tools/analyze-question-traits.js               # Analyze question-trait relationships

# Content Management (Ruby)
ruby tools/extract-searchable.rb                    # Extract searchable content for site search

Development

Tools are written in Node.js and Ruby and should follow these conventions:

Tool Categories

All tools are designed to work within the Docker-based development environment defined in the Makefile.