JSPM

  • Created
  • Published
  • Downloads 51
  • Score
    100M100P100Q103847F
  • License MIT

SCE (Scene Capability Engine) - A CLI tool and npm package for spec-driven development with AI coding assistants.

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (scene-capability-engine) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    SCE - Scene Capability Engine

    npm version License: MIT

    âš ī¸ Important Clarification: scene-capability-engine (sce) is an npm package and CLI tool for spec-driven development.
    Primary command is sce. Compatibility aliases are preserved for migration.

    SCE (Scene Capability Engine) is an ontology-aware scene orchestration engine for AI agents across plan, generate, patch, verify, and release workflows.

    🚀 NEW: Autonomous Control - Let AI independently manage entire development workflows from requirements to delivery.

    English | įŽ€äŊ“中文


    What is sce?

    SCE (Scene Capability Engine) is an ontology-aware scene orchestration engine for AI-assisted development. It organizes project information into structured "Specs" (Requirements → Design → Tasks) and routes execution through plan → generate → patch → verify → release workflows.

    Think of sce as a librarian for your AI assistant - it organizes and presents project context so your AI tool knows exactly what you're building, why, and how.

    How it Works

    graph LR
        A[You create Specs] --> B[sce organizes context]
        B --> C[AI tool reads context]
        C --> D[AI generates better code]
    1. You create Specs - Write requirements, design, and tasks in structured markdown files
    2. sce organizes context - Exports formatted context optimized for AI tools
    3. AI tool reads context - Your AI assistant understands your project structure
    4. AI generates better code - Code that matches your design and requirements

    What sce is NOT

    • ❌ Not a code generator - sce doesn't write code; your AI tool does
    • ❌ Not an IDE - sce works alongside your existing development tools
    • ❌ Not AI-specific - Works with Claude, Cursor, Windsurf, Copilot, and any AI tool
    • ❌ Not a replacement for documentation - It's a structured way to organize project context

    Who Should Use sce?

    • ✅ Developers using AI coding assistants (Claude, Cursor, Copilot, etc.)
    • ✅ Teams wanting structured project documentation
    • ✅ Anyone building features that need clear requirements and design
    • ✅ Projects that benefit from spec-driven development

    Why sce Wins in AI Delivery

    Advantage sce Capability Practical Impact
    Structure-first execution Requirements → Design → Tasks + gate checks Lower rework and fewer requirement drifts
    Autonomous close-loop delivery One-command close loop (auto close-loop) No step-by-step confirmation waits
    Multi-agent scale-out DAG orchestration (orchestrate run/status/stop) Parallel delivery without manual terminal juggling
    Auto portfolio decomposition Master/Sub spec split + dependency wiring Complex goals become executable parallel plans automatically
    Program self-healing closure auto close-loop-program auto recovery + learned remediation memory Failed/partial runs continue autonomously until bounded convergence
    Queue-driven autonomous runtime auto close-loop-controller persistent queue drain Program-scale backlogs continue without manual re-triggering
    Autonomous convergence governance Program gate (min-success-rate + max-risk-level) + audit JSON output Program completion is policy-verified and traceable
    Measurable outcomes KPI automation (value metrics snapshot/baseline/trend) Delivery quality can be tracked week-over-week
    Tool-agnostic adoption Works across Claude/Cursor/Windsurf/Copilot No lock-in to a single AI IDE
    Built-in governance Docs governance, lock management, audit, env/workspace controls Team collaboration stays auditable and stable

    90-Second Value Proof

    # 1) Adopt sce in current repo
    sce adopt
    
    # 2) Open primary scene session
    sce studio plan --scene scene.demo --from-chat session-demo --goal "demo workflow bootstrap" --json
    
    # 3) Generate Spec workflow draft
    sce spec bootstrap --name 01-00-demo-feature --scene scene.demo --non-interactive
    
    # 4) Generate KPI input sample
    sce value metrics sample --out ./kpi-input.json --json
    
    # 5) Produce machine-readable KPI snapshot
    sce value metrics snapshot --input ./kpi-input.json --json

    Quick Start

    The Simplest Way (30 seconds) ⚡

    Just tell your AI:

    Install sce and use it to manage this project with Spec-driven development.

    Your AI will:

    1. Install sce globally (npm install -g scene-capability-engine)
    2. Adopt it in your project (sce adopt)
    3. Read the methodology guide (.sce/README.md)
    4. Start working according to Spec-driven approach

    That's it! Your AI handles everything. No manual steps needed.


    Step-by-Step Guide (if you want details) 📋

    Click to expand detailed steps

    Step 1: Install sce (30 seconds)

    npm install -g scene-capability-engine

    Verify installation:

    sce --version

    Step 2: Adopt sce in Your Project (30 seconds)

    Navigate to your project directory and run:

    cd your-project
    sce adopt

    This creates a .sce/ directory with:

    • README.md - Project development guide for AI
    • specs/ - Where your Specs live
    • steering/ - Development rules (optional)

    Step 3: Tell Your AI About the Methodology (30 seconds)

    In your AI tool (Cursor, Claude, Windsurf, etc.), say:

    Please read .sce/README.md to understand how this project works.

    Your AI will learn:

    • This project follows Spec-driven development
    • Every feature starts with a Spec (requirements + design + tasks)
    • How to work with this methodology
    • When to use sce commands

    Step 4: Start Building Features

    Just ask your AI to implement features naturally:

    I need a user login feature with email and password.

    Your AI will automatically:

    1. Create a Spec with requirements, design, and tasks
    2. Implement according to the Spec
    3. Update task status as work progresses
    4. Use sce commands internally (you don't need to run them)

    Example conversation:

    • You: "I need user login with email and password"
    • AI: "I'll create a Spec for this. Let me define the requirements..."
    • AI: "Here's the design... Now I'll implement task 1.1..."
    • AI: "Task 1.1 complete. Moving to task 1.2..."

    Key insight: You don't "use sce" - your project "follows Spec-driven methodology" and sce helps enforce it. The AI handles all the sce commands for you.

    Step 5: Next Steps (30 seconds)


    Core Concepts

    Specs

    A Spec is a structured description of a feature or project component. Each Spec contains:

    • Requirements (requirements.md) - What you're building and why
    • Design (design.md) - How you'll build it (architecture, APIs, components)
    • Tasks (tasks.md) - Step-by-step implementation checklist

    Context Export

    Context export transforms your Spec into a format optimized for AI tools. It includes:

    • All requirements, design decisions, and tasks
    • Project structure and conventions
    • Steering rules (optional) for AI behavior

    Integration Modes

    sce supports three ways to work with AI tools:

    1. Direct Workspace Integration - AI tool directly accesses sce in your workspace
    2. Manual Export - You export and paste context (Claude, ChatGPT, Cursor)
    3. Watch Mode - Automatic context updates on file changes (all tools)

    Learn more: Integration Modes Guide


    Integration with Your AI Tool

    sce works with any AI coding assistant. Choose your tool for specific guidance:

    Integration Workflow

    sequenceDiagram
        participant You
        participant AI Tool
        participant sce
        You->>AI Tool: "I have a Spec for user-login, implement task 1.1"
        AI Tool->>sce: sce context export user-login
        sce->>AI Tool: Spec content (requirements, design, tasks)
        AI Tool->>AI Tool: Generate code following Spec
        AI Tool->>You: Here's the implementation
        AI Tool->>sce: Update tasks.md (mark task complete)

    Key insight: You stay in your AI tool. The AI reads the Spec and generates code that matches your design.


    Documentation

    Getting Started

    Core Guides

    Tool-Specific Guides

    Examples

    Advanced Topics

    Complete Documentation


    Key Features

    Current Baseline

    • Default hard gate for handoff preflight: Release flow enforces sce auto handoff preflight-check --require-pass --json and blocks publish on failures.
    • Takeover-first execution: Once sce is adopted, autonomous and orchestrated flows are designed to run end-to-end without per-step confirmation loops.
    • Tag-driven release: Pushing v* tags to GitHub triggers automated test, release evidence gates, and npm publish workflow.

    Autonomous Control 🚀

    • Fully Autonomous Execution: AI independently manages entire development workflows from requirements to delivery
    • Closed-Loop Program Execution: sce auto close-loop "<goal>" runs from goal decomposition to terminal orchestration state without manual confirmation gates
    • Automatic Master/Sub Portfolio Split: Large goals are auto-split into dependency-wired sub-specs and coordinated by a master spec
    • Semantic Decomposition + Live Stream: Clause/category-aware goal parsing plus live orchestration status stream (disable via --no-stream)
    • Session Resume + Retention Hygiene: Resume interrupted runs with --resume interrupted (or --resume latest) and maintain archives via sce auto session list/prune, sce auto batch-session list/prune, and sce auto controller-session list/prune
    • Intelligent Error Recovery: Automatically diagnose and fix errors with 3 retry attempts and learning system
    • Strategic Checkpoints: Pause only at meaningful milestones (phase boundaries, fatal errors, external resources)
    • Continuous Task Execution: Execute multiple tasks without interruption between individual tasks
    • Learning System: Improve over time by learning from successful and failed recovery strategies
    • Safety Boundaries: Respect workspace boundaries, require confirmation for production/external operations
    • Three Execution Modes: Conservative (safe), Balanced (default), Aggressive (fast)
    • Progress Tracking: Real-time status, estimated completion time, detailed execution reports
    • Rollback Support: Create checkpoints and rollback to previous states if needed
    • CORE_PRINCIPLES Compliance: Follows Spec-driven development, file management, and quality standards

    Quick Start:

    # Decompose one broad goal into master/sub specs and run to closure
    sce auto close-loop "build autonomous close-loop and master/sub multi-spec execution for sce"
    
    # Create and execute a feature autonomously
    sce auto create "user authentication with JWT tokens"
    
    # Run existing Spec autonomously
    sce auto run 33-00-ai-autonomous-control
    
    # Check status
    sce auto status
    
    # Resume after pause
    sce auto resume

    Learn more about Autonomous Control →

    Spec-Driven Development

    Structure your work with Requirements → Design → Tasks workflow

    KPI Automation & Observability 🚀

    • Unified Metric Contract: Load and validate KPI definitions from metric-definition.yaml
    • Weekly Snapshot Pipeline: Generate machine-readable snapshots with risk level and audit reasons
    • Baseline and Trend Analysis: Build baseline from historical data and detect worsening trends automatically
    • Gate-Ready Summary: Emit Day30/Day60-consumable summary payloads with evidence paths
    • CLI Commands: value metrics sample, value metrics snapshot, value metrics baseline, value metrics trend with --json support

    Multi-Workspace Management 🚀

    • Workspace Registry: Manage multiple sce projects from a single location
    • Quick Switching: Switch between projects without directory navigation
    • Data Atomicity: Single source of truth (~/.sce/workspace-state.json)
    • Cross-Platform: Consistent path handling across Windows/Linux/macOS
    • Auto Migration: Seamless upgrade from legacy workspace format

    Environment Configuration Management 🚀

    • Environment Registry: Manage multiple environment configurations (dev, test, staging, prod)
    • Quick Switching: Switch between environments with automatic backup
    • Automatic Backup: Create timestamped backups before each switch
    • Rollback Support: Restore previous environment configuration instantly
    • Verification: Validate environment configuration after switching
    • Command Execution: Run commands in specific environment context
    • Cross-Platform: Works seamlessly on Windows, Linux, and macOS

    Multi-Repository Management 🚀

    • Unified Interface: Manage multiple Git subrepositories from a single command
    • Auto-Discovery: Automatically scan and configure all Git repositories in your project
    • Nested Repository Support: Discover and manage Git repositories nested inside other repositories
    • Parent-Child Tracking: Track relationships between parent and nested repositories
    • Batch Operations: Execute Git commands across all repositories simultaneously
    • Status Overview: View status of all repositories in a single table with parent relationships
    • Health Checks: Verify repository configuration and connectivity
    • Cross-Platform: Consistent path handling across Windows/Linux/macOS
    • Smart Exclusions: Automatically skip common non-repository directories (node_modules, build, etc.)

    Moqui ERP Integration 🚀

    • Moqui ERP Adapter: Connect sce scene runtime to live Moqui ERP instances
      • MoquiClient — HTTP client with JWT auth lifecycle (login, refresh, re-login, logout) and retry logic
      • MoquiAdapter — Binding handler for spec.erp.* and moqui.* refs, entity CRUD, service invocation, screen discovery
    • Scene Template Extractor (v1.40.0): Analyze Moqui resources, identify business patterns, generate reusable scene templates
      • Entity grouping by Header/Item suffix patterns (e.g., OrderHeader + OrderItem → composite)
      • Pattern-based manifest generation with governance contracts
    • CLI Commands: scene connect, scene discover, scene extract with --json support

    Multi-Agent Parallel Coordination 🚀

    • Agent Registry: MachineIdentifier-based agent lifecycle with heartbeat monitoring and inactive cleanup
    • Task Lock Manager: File-based task locking with atomic operations, single-agent backward compatibility
    • Task Status Store: Concurrent-safe task status updates with exponential backoff retry
    • Steering File Lock: Write serialization with pending-file degradation fallback
    • Merge Coordinator: Git branch isolation per agent (agent/{agentId}/{specName}), conflict detection, auto-merge
    • Central Coordinator: Dependency-driven ready task computation, task assignment, progress tracking
    • Zero Overhead: All components are no-ops in single-agent mode (full backward compatibility)

    Learn more about Multi-Agent Coordination →

    Agent Orchestrator 🚀

    • Automated Multi-Agent Spec Execution: Replace manual multi-terminal workflows with a single command
    • DAG-Based Scheduling: Analyze Spec dependencies, compute execution batches via topological sort
    • Parallel Execution: Run up to N Specs simultaneously via Codex CLI sub-agents (--max-parallel)
    • Failure Propagation: Failed Spec's dependents automatically marked as skipped
    • Retry Mechanism: Configurable automatic retry for failed Specs
    • Real-Time Monitoring: Track per-Spec status and overall orchestration progress
    • Graceful Termination: Stop all sub-agents cleanly (SIGTERM → SIGKILL)
    • Configurable: Codex command, args, parallelism, timeout, retries via .sce/config/orchestrator.json

    Quick Start:

    # Run 3 Specs in parallel via Codex CLI
    sce orchestrate run --specs "spec-a,spec-b,spec-c" --max-parallel 3
    
    # Check orchestration progress
    sce orchestrate status
    
    # Stop all sub-agents
    sce orchestrate stop

    Tip: sce spec bootstrap|pipeline run|gate run --specs ... now defaults to this orchestrate mode automatically.

    Recommended Codex-Orchestrator config (.sce/config/orchestrator.json):

    {
      "agentBackend": "codex",
      "maxParallel": 3,
      "timeoutSeconds": 900,
      "maxRetries": 2,
      "rateLimitMaxRetries": 8,
      "rateLimitBackoffBaseMs": 1500,
      "rateLimitBackoffMaxMs": 60000,
      "rateLimitAdaptiveParallel": true,
      "rateLimitParallelFloor": 1,
      "rateLimitCooldownMs": 45000,
      "rateLimitLaunchBudgetPerMinute": 8,
      "rateLimitLaunchBudgetWindowMs": 60000,
      "apiKeyEnvVar": "CODEX_API_KEY",
      "codexArgs": ["--skip-git-repo-check"],
      "codexCommand": "npx @openai/codex"
    }

    If Codex CLI is globally installed, you can set "codexCommand": "codex". Use the rateLimit* settings to absorb transient 429/too-many-requests failures without stalling orchestration.

    Spec-Level Steering & Context Sync 🚀

    • Spec Steering (L4): Independent steering.md per Spec with constraints, notes, and decisions — zero cross-agent conflict
    • Steering Loader: Unified L1-L4 four-layer steering loader with priority-based merging
    • Context Sync Manager: Multi-agent friendly CURRENT_CONTEXT.md with structured Spec progress table, concurrent-safe updates
    • Spec Lifecycle Manager: State machine (planned → assigned → in-progress → completed → released) with auto-completion detection
    • Sync Barrier: Agent Spec-switch synchronization — uncommitted change check + steering reload
    • Coordinator Integration: Auto Spec completion check on task complete, SyncBarrier on task assign

    Scene Ontology Enhancement 🚀

    • OntologyGraph: Semantic relationship graph for binding refs (depends_on, composes, extends, produces)
    • Action Abstraction: Intent, preconditions, postconditions per binding for AI agent understanding
    • Data Lineage: Source → transform → sink tracking in governance_contract
    • Agent-Ready Metadata: agent_hints field with summary, complexity, duration, permissions, sequence
    • Agent Readiness Score: Bonus quality dimension (max +10 points)
    • CLI Commands: scene ontology show|deps|validate|actions|lineage|agent-info with --json support

    Scene Template Quality Pipeline 🚀

    • Template Lint Engine: 10-category quality checks for scene packages (manifest completeness, binding refs, governance, consistency, variables, documentation, action abstraction, data lineage, agent hints)
    • Quality Score Calculator: 4-dimension scoring + agent_readiness bonus (contract validity, lint pass rate, documentation quality, governance completeness + agent readiness max +10) with 0-100+ scale
    • One-Stop Contribute Pipeline: Validate → Lint → Score → Preview → Publish in a single command
    • CLI Commands: scene lint, scene score, scene contribute with --strict, --dry-run, --skip-lint, --json support

    Scene Template Engine 🚀

    • Template Variable Schema: Define typed variables (string, number, boolean, enum, array) with validation rules in scene-package.json
    • Multi-File Rendering: Recursive template processing with {{variable}} substitution, {{#if}} conditionals, {{#each}} loops
    • Three-Layer Inheritance: L1-Capability / L2-Domain / L3-Instance package hierarchy with schema and file merging
    • CLI Commands: scene template-validate, scene template-resolve, scene template-render with --json support

    Spec-Level Collaboration 🚀

    • Parallel Development: Enable multiple AI instances to work on different Specs simultaneously
    • Dependency Management: Define and track dependencies between Specs with circular dependency detection
    • Interface Contracts: Formal API definitions ensuring compatibility between independently developed Specs
    • Status Tracking: Monitor progress and assignments across all Specs in real-time
    • Integration Testing: Run cross-Spec integration tests to verify modules work together
    • Dependency Visualization: View dependency graphs with critical path highlighting
    • Backward Compatible: Opt-in system that doesn't affect existing single-Spec workflows

    Learn more about Spec-Level Collaboration →

    Spec Locking Mechanism 🚀

    • Multi-User Coordination: Prevent conflicts when multiple developers work on the same Spec
    • Machine Identification: Unique machine IDs for accurate lock ownership tracking
    • Stale Lock Detection: Automatic detection and cleanup of abandoned locks (default: 24h timeout)
    • Lock Status Integration: View lock status in sce status output
    • Force Unlock: Override locks when necessary with --force flag
    • Backward Compatible: Locking is optional and doesn't affect existing workflows

    Quick Start:

    # Acquire a lock before editing
    sce lock acquire my-feature --reason "Implementing auth module"
    
    # Check lock status
    sce lock status
    
    # Release when done
    sce unlock my-feature
    
    # Clean up stale locks
    sce lock cleanup
    
    # View your machine ID
    sce lock whoami

    DevOps Integration Foundation 🚀

    • Operations Spec Management: Standardized operations documentation (deployment, monitoring, troubleshooting, etc.)
    • Progressive AI Autonomy: L1-L5 takeover levels for gradual AI operations control
    • Audit Logging: Tamper-evident audit trail with SHA-256 integrity verification
    • Feedback Integration: Automated user feedback processing and analytics
    • Permission Management: Environment-based security controls (dev, test, pre-prod, prod)
    • Operations Validation: Complete spec validation with clear error reporting

    Document Governance

    • Automated document lifecycle management
    • Clean project structure enforcement
    • Temporary file cleanup
    • Artifact organization
    • Git hooks for compliance

    Multi-User Collaboration

    • Personal workspaces for team members
    • Task claiming and tracking
    • Workspace synchronization

    Cross-Tool Compatibility

    Export context for Claude Code, Cursor, Windsurf, Copilot, and more

    Watch Mode Automation

    Automatic file monitoring and context updates

    Quality Enhancement

    • Document quality scoring (0-10 scale)
    • Intelligent improvement suggestions
    • Professional standards enforcement

    Multi-Language Support

    English and Chinese interfaces


    Command Overview

    # Project setup
    sce adopt                          # Adopt sce in existing project
    sce create-spec <name>             # Legacy: create empty Spec folder only
    
    # Autonomous close-loop program (one command, no confirmation loop)
    sce auto close-loop "<goal>"       # Auto split goal into master/sub specs and execute to closure
    sce auto close-loop --resume interrupted # Resume from latest non-completed close-loop session
    sce auto close-loop continue       # Shorthand: continue latest interrupted close-loop session
    sce auto continue                  # Shortcut command: continue latest interrupted close-loop session
    sce auto close-loop "<goal>" --dry-run --json  # Preview decomposition plan only
    sce auto close-loop-program "<goal>" --program-govern-until-stable --program-govern-use-action 1 --json # Program-level recovery + governance with remediation action execution
    sce auto close-loop-controller .sce/auto/program-queue.lines --wait-on-empty --dequeue-limit 2 --json # Queue-driven autonomous controller for broad-goal backlogs
    sce auto close-loop-controller --controller-resume latest --json # Resume autonomous controller from latest persisted checkpoint
    sce auto controller-session list --limit 50 --json # Inspect persisted close-loop-controller summary sessions
    sce auto controller-session prune --keep 20 --older-than-days 14 --dry-run --json # Prune old controller summaries by retention policy
    sce auto observability snapshot --days 14 --json # Unified autonomous observability snapshot (sessions + governance + trend)
    sce auto spec status 121-00-master --json # Agent-facing structured spec status interface
    sce auto spec instructions 121-02-sub-track --json # Agent-facing execution instructions for one spec
    sce auto schema check --json # Check autonomous archive schema compatibility
    sce auto schema migrate --apply --json # Backfill/migrate schema_version for autonomous archives
    
    # Spec workflow (recommended)
    sce spec bootstrap --name <spec> --scene <scene-id> --non-interactive # Generate draft and bind as scene child session
    sce spec pipeline run --spec <spec> --scene <scene-id>                 # Run pipeline and auto-archive spec child session
    sce spec gate run --spec <spec> --scene <scene-id> --json  # Run gate and auto-archive spec child session
    sce spec bootstrap --specs "<spec-a,spec-b>" --max-parallel <N>  # Multi-Spec defaults to orchestrate
    sce spec pipeline run --specs "<spec-a,spec-b>" --max-parallel <N> # Multi-Spec defaults to orchestrate
    sce spec gate run --specs "<spec-a,spec-b>" --max-parallel <N>     # Multi-Spec defaults to orchestrate
    
    # Spec session governance default
    # - spec bootstrap|pipeline run|gate run must bind to an active scene primary session.
    # - Use --scene <scene-id> explicitly when multiple active scenes exist.
    # - Multi-Spec orchestrate fallback (--specs ...) keeps the same scene binding and archives per-spec child sessions.
    
    # Context management
    sce context export <spec-name>     # Export context for AI tools
    sce prompt generate <spec> <task>  # Generate task-specific prompt
    
    # Template registry
    sce templates list --type <spec-scaffold|capability-template|runtime-playbook> --compatible-with <semver> --risk <low|medium|high|critical>
    sce templates search <keyword> --type <spec-scaffold|capability-template|runtime-playbook> --compatible-with <semver>
    sce templates show <template-path>  # Show template metadata and compatibility contract
    sce templates update [--source <name>]
    
    # KPI automation and observability
    sce value metrics sample --out <path> --json               # Generate sample KPI input JSON
    sce value metrics snapshot --input <path> --json          # Generate weekly KPI snapshot + gate summary
    sce value metrics baseline --from-history <N> --json      # Build baseline from earliest N snapshots
    sce value metrics trend --window <N> --json               # Analyze trend/risk from latest N snapshots
    sce auto kpi trend --weeks 8 --period week --json         # Aggregate autonomous delivery KPI trend (weekly/daily buckets + anomalies)
    sce auto kpi trend --weeks 8 --period day --csv --out <path> # Export autonomous KPI trend as CSV
    sce auto kpi trend --weeks 8 --mode controller --json     # Filter trend to close-loop-controller sessions only
    
    # Workspace management
    sce workspace create <name> [path] # Register a new workspace
    sce workspace list                 # List all workspaces
    sce workspace switch <name>        # Switch active workspace
    sce workspace info [name]          # Show workspace details
    sce workspace remove <name>        # Remove workspace
    
    # Environment management
    sce env list                       # List all environments
    sce env switch <name>              # Switch to environment (with backup)
    sce env info                       # Show active environment details
    sce env register <config-file>     # Register new environment
    sce env unregister <name>          # Remove environment
    sce env rollback                   # Rollback to previous environment
    sce env verify                     # Verify current environment
    sce env run "<command>"            # Run command in environment context
    
    # Multi-repository management
    sce repo init [--nested]           # Initialize repository configuration (nested scanning by default)
    sce repo init --no-nested          # Initialize without nested repository scanning
    sce repo status [--verbose]        # Show status of all repositories (including nested)
    sce repo exec "<command>"          # Execute command in all repositories
    
    # Spec-level collaboration
    sce collab init <master> [options] # Initialize Master Spec with Sub-Specs
    sce collab status [spec] [--graph] # Display collaboration status
    sce collab assign <spec> <assignee> # Assign Spec to an assignee
    sce collab verify <spec>           # Verify interface contracts
    sce collab integrate <specs...>    # Run integration tests
    sce collab migrate <spec>          # Convert standalone Spec to collaborative
    sce repo health                    # Check repository health
    
    # Scene template engine
    sce scene template-validate --package <path>   # Validate template variable schema
    sce scene template-resolve --package <name>    # Resolve inheritance chain and merged schema
    sce scene template-render --package <name> --values <json> --out <dir>  # Render template files
    
    # Moqui ERP integration
    sce scene connect --config <path>              # Test connectivity to Moqui ERP instance
    sce scene discover --config <path>             # Discover entities, services, screens from Moqui
    sce scene extract --config <path> --out <dir>  # Extract scene templates from Moqui (v1.40.0)
    
    # Scene template quality pipeline
    sce scene lint --package <path>                # Lint scene package for quality issues
    sce scene score --package <path>               # Calculate quality score (0-100)
    sce scene contribute --package <path>          # One-stop validate → lint → score → publish
    
    # Scene ontology
    sce scene ontology show --package <path>       # Show ontology graph
    sce scene ontology deps --ref <ref>            # Query dependency chain
    sce scene ontology impact --ref <ref>          # Analyze reverse impact radius
    sce scene ontology path --from <ref> --to <ref> # Query shortest ontology relation path
    sce scene ontology validate --package <path>   # Validate graph consistency
    sce scene ontology actions --ref <ref>         # Show action abstraction
    sce scene ontology lineage --ref <ref>         # Show data lineage
    sce scene ontology agent-info --package <path> # Show agent hints
    sce scene contribute --package <path>          # One-stop validate → lint → score → publish
    
    # Agent orchestration
    sce orchestrate run --specs "<spec-list>" --max-parallel <N>  # Start multi-agent orchestration
    sce orchestrate status                         # View orchestration progress
    sce orchestrate stop                           # Stop all sub-agents
    
    # Release baseline (default in CI)
    sce auto handoff preflight-check --require-pass --json  # Hard gate: block release on preflight failures
    git tag -a vX.Y.Z -m "vX.Y.Z"                          # Create release tag
    git push origin vX.Y.Z                                  # Push tag to trigger GitHub release + npm publish
    
    # DevOps operations
    sce ops init <project-name>        # Initialize operations specs
    sce ops validate [<project>]       # Validate operations completeness
    sce ops audit [options]            # Query audit logs
    sce ops takeover <action>          # Manage AI takeover levels
    sce ops feedback <action>          # Manage user feedback
    
    # Task management
    sce task claim <spec> <task-id>    # Claim a task
    sce task list <spec>               # List claimed tasks
    
    # Spec locking (multi-user collaboration)
    sce lock acquire <spec-name>       # Acquire lock on a Spec
    sce lock release <spec-name>       # Release lock (or use: sce unlock)
    sce lock status [spec-name]        # Show lock status
    sce lock cleanup                   # Remove stale locks
    sce lock whoami                    # Show machine identifier
    sce unlock <spec-name> [--force]   # Release lock (alias)
    
    # Document governance
    sce docs diagnose                  # Check document compliance
    sce docs cleanup                   # Remove temporary files
    sce docs validate                  # Validate document structure
    sce docs archive --spec <name>     # Organize Spec artifacts
    sce docs hooks install             # Install Git pre-commit hooks
    
    # Automation
    sce watch start                    # Start watch mode
    sce watch status                   # Check watch status
    
    # Project info
    sce status                         # Project status
    sce workflows                      # List available workflows

    See Command Reference for complete documentation.


    Contributing & Support

    Getting Help

    Contributing

    We welcome contributions! See our Contributing Guide for:

    • Code contributions
    • Documentation improvements
    • Bug reports and feature requests
    • Translation help

    Development Setup

    git clone https://github.com/heguangyong/scene-capability-engine.git
    cd scene-capability-engine
    npm install
    npm link  # For local development
    npm test  # Run tests

    License

    MIT License - see LICENSE file for details.


    Acknowledgments

    • Inspired by the Sisyphus myth and the concept of noble struggle
    • Built on practical Spec-driven development methodology
    • Influenced by oh-my-opencode and the Ultrawork Manifesto

    Ready to enhance your AI-assisted development? 🚀

    npm install -g scene-capability-engine
    sce adopt
    sce studio plan --scene scene.demo --from-chat session-demo --goal "bootstrap first feature" --json
    sce spec bootstrap --name 01-00-my-first-feature --scene scene.demo --non-interactive

    đŸ’Ŧ Community & Discussion

    Join our community to discuss AI-driven development, Spec workflows, and best practices.

    WeChat Group

    WeChat Group QR Code

    Scan to add WeChat, note "sce" to join the group

    Other Channels

    Featured Article

    📖 The Philosophy and Practice of AI-Driven Development

    A deep conversation about AI development trends, Neo-Confucian philosophy, and software engineering practices. Based on 2000+ hours of AI-assisted programming experience.

    Read in English | ä¸­æ–‡į‰ˆ

    Also available on:


    Version: 3.3.17
    Last Updated: 2026-02-26