rootspec
v4.4.1
Published
Hierarchical Specification Framework - Philosophy guides implementation
Maintainers
Readme
rootspec
Hierarchical Specification Framework CLI - Philosophy guides implementation
RootSpec is a five-level specification framework that helps teams build software with clear alignment from philosophy to implementation. The CLI automates framework setup, prompt generation, and project configuration.
Installation
# Install globally
npm install -g rootspec
# Or use directly with npx (no installation)
npx rootspec initQuick Start
# Initialize RootSpec in your project
rootspec init
# Generate AI-assisted prompts with auto-detected project context
rootspec prompts init # For new projects
rootspec prompts adopt # For existing projects
# Add Cypress testing templates
rootspec cypress
# List all available prompts
rootspec promptsCommands
rootspec init [options]
Initialize the RootSpec framework in your project.
Options:
--path <dir>- Installation directory (default:./spec)--full- Include Cypress templates--yes- Skip prompts, use defaults
Example:
rootspec init --path ./docs --fullrootspec prompts [name] [options]
List or view AI workflow prompts with auto-detected project context.
Available prompts:
init- Create new specificationadopt- Adopt framework for existing projectvalidate- Validate specification complianceadd-feature- Add feature to specreview- Review implementation vs. specgenerate-docs- Generate PRDs, TDDsmigrate- Migrate to newer versioncypress-merge- Merge Cypress templates
Options:
-o, --open- Open prompt in browser
Example:
rootspec prompts adopt # Prints to stdout
rootspec prompts adopt -o # Opens in browserrootspec cypress
Add Cypress testing templates for YAML user story testing.
Copies:
cypress.config.tswith RootSpec taskscypress/support files and test generatorstemplates/USER_STORIES/examples
rootspec validate
Validate your specification for compliance with the framework.
Features
- Auto-detection: Scans your project for framework (Next.js, React, Vue, etc.), source directories, and config files
- Template engine: Fills AI prompts with your actual project context
- Interactive mode: User-friendly prompts for all options
- Non-interactive mode:
--yesflag for CI/CD and scripting - Cypress integration: Automated E2E testing from YAML user stories
What is RootSpec?
RootSpec is a five-level hierarchical specification system:
- Level 1: Foundational Philosophy - WHY & WHAT EXPERIENCE (mission, design pillars)
- Level 2: Stable Truths - WHAT strategies and approaches
- Level 3: Interaction Architecture - HOW users interact (behavioral patterns)
- Level 4: Systems - HOW to implement (architecture)
- Level 5: Implementation - HOW MUCH (validation with tests & parameters)
Each level references only higher levels, creating a dependency-free hierarchy where changes flow downward naturally.
Documentation
Complete guides and framework reference:
- Main Repository - Full documentation
- Framework Reference - Complete specification
- Quick Start Guide - Fast-track setup
- Cypress Setup - Testing integration
- Changelog - Version history
Requirements
- Node.js: >= 18.0.0
- npm: >= 9.0.0
License
MIT © Corky Brown
Contributing
Contributions are welcome! See the contributing guide for details.
Support
- GitHub Issues - Bug reports and feature requests
- GitHub Discussions - Questions and community
Built with TypeScript | Powered by Claude Code
