Skip to content

Comprehensive development workflow system: project management, tooling generation, and multi-repo coordination

License

supernalintelligence/supernal-coding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Supernal Coding (sc) - Development Workflow CLI

Stars NPM Tests License Documentation Compatibility PRs Welcome

Comprehensive development workflow system with kanban task management, requirements validation, git safety hooks, intelligent priority management, and live interactive documentation.

πŸ“– Complete Documentation β€’ πŸš€ Quick Start Guide β€’ πŸ’» CLI Reference

πŸ”— Quick Links

Resource Description Link
πŸ“– Documentation Complete interactive documentation code.supernal.ai
πŸš€ Getting Started Installation and setup guide Quick Start
πŸ’» CLI Commands Complete command reference CLI Reference
πŸ“¦ NPM Package Install via npm supernal-code
πŸ™ GitHub Source code and issues Repository
🀝 Contributing Contribution guidelines Contributing Guide

πŸš€ Quick Start

πŸ“– View Documentation (Recommended First Step)

🌐 Visit code.supernal.ai for the complete interactive documentation with:

  • πŸ“‹ Live CLI Command Reference - All commands with examples
  • πŸ“Š Real-time Project Metrics - Requirements status and progress
  • 🎯 Getting Started Guide - Step-by-step setup instructions
  • πŸ’‘ Usage Examples - Real-world workflow demonstrations

For Local Documentation:

# Start the local documentation server
cd documentation && npm start
open http://localhost:3000

Installation Methods

1. Local Development (Recommended for Contributors)

# Clone and set up for local development
git clone <repository-url>
cd supernal-coding

# Install dependencies
npm install

# Link for global-like access during development
npm link

# Now 'sc' command is available globally
sc --version
sc --help

2. Global NPM Install (For End Users)

# Install globally from npm
npm install -g supernal-code

# Verify installation
sc --version
sc --help

# Get started with your first project
sc init

πŸ“– Detailed installation guide available on our documentation site.

3. Local Project Usage (Without Global Install)

# Use via npm scripts
npm run sc -- --help
npm run sc -- priority show
npm run sc -- validate --all

# Or direct node execution
sc --help
sc priority show

πŸ“‹ Available Commands

Core Commands

# Initialize in any repository
sc init [directory]

# Validate installation and configuration
sc validate-installation --all

# Agent workflow management
sc agent <action> [options]

# Priority management
sc priority [action] [options]

# Git workflow utilities
sc git-smart <action> [options]
sc git-assess [options]

# Kanban task management
sc kanban [action] [options]

# Documentation management
sc docs <action> [options]

# Development tools
sc dev <action> [options]

# Testing
sc test [options] [type] [target]

πŸ“– See code.supernal.ai/docs/cli-commands for the complete interactive command reference with examples.

πŸ“š Documentation

🌐 Online Documentation (Recommended)

πŸ“– Local Documentation Files

πŸ§ͺ Using Tests as Documentation

Our test suite serves as comprehensive, executable documentation:

# Run tests to see examples in action
npm test -- tests/requirements/req-003/multi-repo-init.test.js

# View configuration examples
npm test -- tests/requirements/req-011/req-011.unit.test.js

# See git workflow examples
npm test -- tests/requirements/req-011/req-011.e2e.test.js

πŸ“– See docs/TESTS_AS_DOCUMENTATION.md for how to use tests as documentation.

πŸ”§ Configuration

The system uses supernal-code.config.toml for all settings:

[project]
name = "your-project"
type = "standard"

[paths]
requirements = "supernal-coding/requirements"
kanban = "supernal-coding/kanban"

[compatibility]
multi_repo_support = true
dynamic_path_resolution = true

πŸ“– See docs/CONFIGURATION_SYSTEM_GUIDE.md for complete configuration guide. sc git-smart status sc git-smart branch-cleanup sc git-smart commit-assist


### **Project Setup**
```bash
# Initialize supernal-coding in new project
sc init [directory]

# Install system in target repository  
sc install <path>

Agent Workflow

# Agent coordination
sc agent handoff
sc agent status
sc agent assign <task>

Documentation

# Documentation management
sc docs generate
sc docs validate
sc docs serve

πŸ“š Interactive Documentation (New!)

# Start the live documentation server
cd documentation && npm start

# Or using the CLI command (future)
sc docs serve

🌐 View Documentation: Open http://localhost:3000 in your browser

✨ Features:

  • Live CLI Command Reference: All 17+ commands auto-documented from command-mapping.json
  • Real-time Project Metrics: Current requirements status (31 tracked)
  • Interactive Examples: Live usage examples for each command
  • Dashboard Integration: Connected to existing dashboard infrastructure
  • Programmatic Generation: Always up-to-date with actual CLI implementation

πŸ› οΈ Development Workflow

For Package Contributors:

  1. Set up local development:
git clone <repository-url>
cd supernal-coding
npm install
npm link  # Makes 'sc' available globally
  1. Test your changes:
sc --version          # Test global command
npm run sc -- --help  # Test via npm script
npm test              # Run test suite
  1. Priority system testing:
# Test the intelligent priority system
sc priority update    # Recalculate all priorities
sc priority show      # View distribution

For End Users:

  1. Install the package:
npm install -g supernal-coding
  1. Initialize in your project:
cd your-project
sc init
  1. Use the workflow:
sc validate --all           # Validate project
sc priority show            # Check priorities
sc kanban list              # View tasks

🎯 Priority Management System

The intelligent priority system automatically calculates requirement priorities based on:

  • πŸ—οΈ Foundational Systems: Auto-promote to Critical
  • 🚧 Blocking Dependencies: Higher priority if blocking other tasks
  • πŸ₯ Medical Compliance: Special handling for regulatory requirements
  • System Architecture: Prioritize system-level requirements

Current Distribution:

  • 17 Critical requirements (foundational systems)
  • 11 High priority requirements
  • 1 Medium priority requirement

πŸ“¦ Package Structure

supernal-coding/
β”œβ”€β”€ cli/                    # CLI entry point and commands
β”‚   β”œβ”€β”€ index.js           # Main CLI script (#!/usr/bin/env node)
β”‚   └── commands/          # Command modules
β”œβ”€β”€ documentation/          # πŸ†• Interactive documentation system (Docusaurus)
β”‚   β”œβ”€β”€ docs/              # Generated CLI documentation
β”‚   β”œβ”€β”€ plugins/           # Custom CLI docs generator plugin
β”‚   └── src/               # Documentation components
β”œβ”€β”€ scripts/               # Core functionality scripts
β”œβ”€β”€ templates/             # Project templates
β”œβ”€β”€ package.json           # NPM configuration with 'bin' setup
└── README.md             # This file

πŸ”§ Troubleshooting

πŸ“– For comprehensive troubleshooting guides, visit code.supernal.ai/docs/troubleshooting

Command Not Found: 'sc'

# Check if npm link worked
which sc

# If not found, try:
npm unlink supernal-coding
npm link

# Or use npm scripts instead:
npm run sc -- --help

Permission Issues

# For global install permission issues:
npm config set prefix ~/.npm-global
export PATH=~/.npm-global/bin:$PATH

# Or use npm link for development
npm link

Priority System Issues

# If priorities seem outdated:
sc priority update          # Recalculate all priorities
sc priority validate        # Check for issues

# Debug with direct script:
sc priority update

Documentation Server Issues

# Start the documentation server:
cd documentation && npm start

# If port 3000 is busy:
cd documentation && npm start -- --port 3001

# Check if server is running:
lsof -i :3000

# Rebuild documentation:
cd documentation && npm run build

Documentation Features:

  • Auto-generated CLI docs from cli/command-mapping.json
  • Live project metrics (currently 31 requirements tracked)
  • Real-time updates as CLI commands change
  • Dashboard integration with existing infrastructure

πŸ“š Additional Resources

  • Configuration: Edit supernal-code.config.toml for project settings
  • Requirements: Located in supernal-coding/requirements/
  • Kanban: Task files in supernal-coding/kanban/
  • Templates: Project templates in templates/

🚨 Development Notes

  • CLI Entry Point: supernal-code-package/lib/cli/index.js (packaged CLI) and cli/index.js (development wrapper)
  • Package Bin: Configured in package.json for both sc and supernal-coding commands
  • Local Testing: Use npm link for development, npm run sc for testing
  • Global Distribution: Ready for npm publish when needed

πŸ“„ License

This project uses a Dual License system - see the LICENSE file for details.

🏒 Supernal Intelligence (Commercial Rights)

  • βœ… Unlimited commercial use in products and services
  • βœ… Proprietary modifications and derivatives
  • βœ… Revenue generation and customer licensing
  • βœ… Private use without disclosure requirements

🌍 Everyone Else (CC BY-NC-SA 4.0)

  • βœ… Academic research and education
  • βœ… Personal learning and development
  • βœ… Open source projects and contributions
  • βœ… Non-profit organizational use
  • ❌ Commercial use requires separate license

πŸ“§ Commercial Licensing for Third Parties

Organizations wishing to use this software commercially must obtain a commercial license.

Contact: licensing@supernal.ai

🎯 Why Dual License?

  • Protects intellectual property while enabling open source community
  • Allows company commercial use of their own code
  • Prevents unauthorized commercial exploitation by others
  • Encourages academic and open source contributions

Full License: LICENSE


🀝 Contributing

  1. Fork the project
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Development Standards

  • Follow existing code style and patterns
  • Add appropriate comments and documentation
  • Test your changes thoroughly
  • Update README.md if needed
  • Ensure all contributions comply with CC BY-NC-SA 4.0 license

🌐 Supernal.ai Integration Plan

Production Deployment: code.supernal.ai

This project is designed for deployment to code.supernal.ai as part of the Supernal Intelligence ecosystem. Here's the integration strategy:

Architecture Overview

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                 code.supernal.ai                        β”‚
β”‚              (GitHub Pages - Static)                   β”‚
β”‚  β€’ Documentation (Docusaurus)  β€’ Blog Posts            β”‚
β”‚  β€’ CLI Reference               β€’ Static Assets         β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                      β”‚
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚              api.code.supernal.ai                       β”‚
β”‚               (Vercel - APIs)                           β”‚
β”‚  β€’ Dashboard API (Serverless)  β€’ Requirements API      β”‚
β”‚  β€’ Premium Features            β€’ Analytics & Insights  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                      β”‚
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚          Local Development (All Users)                 β”‚
β”‚  β€’ CLI Tools               β€’ Local Dashboard           β”‚
β”‚  β€’ Requirements Tracking   β€’ Kanban Management         β”‚
β”‚  β€’ Git Integration         β€’ Basic Export              β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Key Integration Files

  • supernal-ai-integration.config.js - Complete integration configuration
  • docs/SUPERNAL_AI_DEPLOYMENT_GUIDE.md - Step-by-step deployment guide
  • dashboard/src/services/supernal-integration.js - Premium feature service
  • dashboard/routes/premium-api.js - Premium API endpoints

Revenue Strategy

  • Open Source Core: Full local functionality to demonstrate value
  • Premium Features: Advanced analytics, team collaboration, AI insights
  • Freemium Model: Gradual upgrade prompts at natural conversion points
  • Enterprise: Custom integrations, SLA support, unlimited projects

πŸ” Authentication Flow

The system uses centralized authentication to serve multiple Supernal products:

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ 1. User visits code.supernal.ai                    β”‚
β”‚    β†’ Logs in via auth.supernal.ai                  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                      β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ 2. auth.supernal.ai returns JWT bearer token       β”‚
β”‚    β†’ Token contains user profile + subscription    β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                      β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ 3. Frontend sends requests to api.code.supernal.ai β”‚
β”‚    β†’ Header: "Authorization: Bearer <token>"       β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                      β–Ό
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ 4. api.code.supernal.ai validates token           β”‚
β”‚    β†’ Calls auth.supernal.ai/validate               β”‚
β”‚    β†’ Returns user features based on subscription   β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

Benefits:

  • Single sign-on across all Supernal products
  • auth.supernal.ai serves multiple domains (main site, code tools, other products)
  • api.code.supernal.ai is specific to this project's needs
  • Clean separation of concerns

Deployment Checklist

  • DNS Configuration:
    • code.supernal.ai β†’ supernalintelligence.github.io (CNAME)
    • api.code.supernal.ai β†’ Vercel deployment (CNAME)
    • auth.supernal.ai β†’ Centralized auth service (managed separately)
  • GitHub Pages Setup: Enable Pages in repository settings (βœ… Ready)
  • GitHub Actions: Deploy workflow configured (βœ… Done)
  • Vercel API Setup: Deploy dashboard APIs to Vercel (βœ… Ready)
  • Documentation Build: Fixed component imports and build process (βœ… Done)
  • Premium Integration: Configured supernal.ai authentication flow (βœ… Done)
  • SSL Certificates: Automatic with GitHub Pages and Vercel
  • Analytics & Conversion Tracking: Configure in production

For detailed deployment instructions, see docs/SUPERNAL_AI_DEPLOYMENT_GUIDE.md.


Next Steps:

  1. Test local installation: npm link && sc --version
  2. Validate functionality: sc priority show
  3. Initialize in project: sc init
  4. Run priority update: sc priority update # Test pre-push hook

Test metadata loop fix

About

Comprehensive development workflow system: project management, tooling generation, and multi-repo coordination

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published