Agent Skill
2/7/2026

universal-debug

Meta-level consciousness engineering protocol for systematic problem-solving across all domains. Apply when facing ANY loop (code, life, strategy, consciousness), ANY stuck state, or ANY complex problem requiring definitive solution. Works universally for debugging code, transforming life, seeing design, breaking patterns, and solving at root cause level. Triggers on "stuck in loop", "same problem keeps happening", "need systematic approach", or ANY situation requiring elevation from symptom to solution.

A
apexbusiness
0GitHub Stars
1Views
npx skills add apexbusiness-systems/APEX-OmniHub

SKILL.md

Nameuniversal-debug
DescriptionMeta-level consciousness engineering protocol for systematic problem-solving across all domains. Apply when facing ANY loop (code, life, strategy, consciousness), ANY stuck state, or ANY complex problem requiring definitive solution. Works universally for debugging code, transforming life, seeing design, breaking patterns, and solving at root cause level. Triggers on "stuck in loop", "same problem keeps happening", "need systematic approach", or ANY situation requiring elevation from symptom to solution.

Universal Synchronized Orchestrator

 █████╗ ██████╗ ███████╗██╗  ██╗  ██████╗ ███╗   ███╗███╗   ██╗██╗██╗  ██╗██╗   ██╗██████╗
██╔══██╗██╔══██╗██╔════╝╚██╗██╔╝ ██╔═══██╗████╗ ████║████╗  ██║██║██║  ██║██║   ██║██╔══██╗
███████║██████╔╝█████╗   ╚███╔╝  ██║   ██║██╔████╔██║██╔██╗ ██║██║███████║██║   ██║██████╔╝
██╔══██║██╔═══╝ ██╔══╝   ██╔██╗  ██║   ██║██║╚██╔╝██║██║╚██╗██║██║██╔══██║██║   ██║██╔══██╗
██║  ██║██║     ███████╗██╔╝ ██╗ ╚██████╔╝██║ ╚═╝ ██║██║ ╚████║██║██║  ██║╚██████╔╝██████╔╝
╚═╝  ╚═╝╚═╝     ╚══════╝╚═╝  ╚═╝  ╚═════╝ ╚═╝     ╚═╝╚═╝  ╚═══╝╚═╝╚═╝  ╚═╝ ╚═════╝ ╚═════╝

INTELLIGENCE DESIGNED. Directable • Accountable • Dependable

Release line: 1.6.3 (target) | package.json version: 1.6.0 | Changeset for 1.6.1 pending | Release Date: 2026-05-11 | Docs audit: 2026-05-20

CI Runtime Gates Production Readiness Gate Orchestrator CI Security Regression Guard License


🚦 Start Here (Canonical Map)

Before touching code, read the canonical architecture map:


Overview

APEX OmniHub is the first Universal Sync Orchestrator for governed execution across ALL modern stacks, AI apps, legacy enterprise systems, and Web3 infrastructure. Think "Anti-OS", it is a "USO": one place to connect fragmented systems, translate universally, enforce policy, and produce an audit trail you can defend.

The platform relies on a "Holy Trinity" architecture:

  1. OmniHub: The Universal Sync Orchestrator (Logic & Policy).
  2. OmniLink: The Secure Gateway (Connectivity).
  3. OmniPort: The Multimodal Normalizer (Input/Output).

OmniHub's job is simple: translate intent into deterministic execution, without lock-in, without chaos, and without silent failure.


Platform Statistics (Repository Snapshot 2026-05-16)

MetricValue
Source Files (src/)346 total files
TypeScript/TSX (src/)311 files
React Components (src/)94 .tsx component files
Page Routes (src/pages/)0 page files; routes live under app/domain folders
Edge Functions (supabase/functions/)27 function directories
Database Migrations (supabase/migrations/)74 SQL migration files
CI/CD Workflows (.github/workflows/)21 workflow files
Test Specs (tests/ + e2e/ + sim/)229 spec/test source files; latest pass counts are recorded in certification status
Custom Hooks (src/)21 hook files matching use*.ts*
Orchestrator (Python)95 files (Temporal workers, activities, security)

What OmniHub Is (and Is Not)

Is: A secure orchestration layer + universal translation engine that standardizes execution, policy enforcement, and auditability across your entire stack.


Core Pillars

1) Tri-Force Protocol (Governed Autonomy)

A 3-tier agent architecture designed to keep unsafe reasoning from reaching production:

LayerRoleImplementation
GuardianPolicy & safety evaluationorchestrator/security/
PlannerDeterministic planningorchestrator/workflows/
ExecutorTool execution with audit trailsorchestrator/activities/

2) Orchestrator (Durable Workflows)

Temporal.io-backed orchestration for workflows that survive restarts:

  • Event sourcing + deterministic replay
  • Saga-style compensation patterns
  • Idempotent task execution
  • Manual Approval Node gates (MAN Mode - supabase/migrations/20260108120000_man_mode.sql)

3) Fortress Protocol (Security & Compliance)

Security is not "a feature." OmniHub enforces:

  • Armageddon Test Suite: Continuous chaos engineering and red-teaming engine.
  • Zero-trust device registry (20251218000001_create_device_registry_table.sql)
  • Audit logging (20251218000000_create_audit_logs_table.sql)
  • Emergency controls (20260103000000_create_emergency_controls.sql)
  • OMEGA security hardening (20260125000001_enable_omega_security.sql)

4) OmniLink & OmniPort (Connectivity & Normalization)

The "Trinity" connectivity layer:

  • OmniLink: The Secure Gateway for universal connectivity (20260111000000_omnilink_universal_port.sql).
  • OmniPort: The Multimodal Normalizer for standardized I/O and DLQ (20260124000000_omniport_dlq.sql).
  • OmniTrace: Full replay & tracing capability (20260125000000_omnitrace_replay.sql).

5) Edge Compute Layer (Media & CORS)

Client-side infrastructure for deterministic media delivery:

  • Edge CORS Proxy: [LEGACY] Vercel Edge Function (api/cors.ts) — historical only, superseded by Cloudflare Pages Worker (edge/cors-proxy/edge-cors-proxy.js). Retained for reference; Cloudflare-first topology is canonical.
  • LRU Media Cache: 250 MB ceiling with localStorage ledger eviction (lib/media/EdgeCacheController.ts).
  • Cloudflare Worker: Stateless CORS proxy at edge/cors-proxy/edge-cors-proxy.js for production CDN.
  • Fail-Safe Design: Every cache miss gracefully degrades to proxy URL — zero silent failures.

6) Web3-Native Identity (Optional)

  • SIWE (Sign-In with Ethereum) - supabase/functions/web3-verify/
  • NFT verification - supabase/functions/verify-nft/
  • Multi-chain support (20260101000000_create_web3_verification.sql)
  • Chain transaction logging (20260109120000_create_chain_tx_log.sql)

Edge Functions (22 Directories in Repository)

FunctionPurpose
apex-assistantAI conversation handler
apex-voiceReal-time voice processing
omnilink-agentAgent orchestration
omnilink-portUniversal connector
trigger-workflowTemporal dispatch
verify-nftNFT ownership check
web3-verifySIWE authentication
send-push-notificationMobile push delivery
lovable-healthcheckIntegration health
execute-automationWorkflow execution

Runtime and release authority

APEX OmniHub requires Node.js 22+ (Node 22 LTS recommended; Node 24 also supported; supported range >=22 <25). npm is the authoritative package manager for CI, releases, and the canonical lockfile (package-lock.json). Use npm ci for clean installs in CI. bun is optional for local development — bun install or bun run may be used for speed, but bun.lock is not relied on by CI. Both bun.lock (local bun users) and package-lock.json (CI canonical; required by npm audit) are committed. Python 3.11+ is required for orchestrator services. See CLAUDE.md §2 for the full policy.

Repository Layout

/src                 - Core frontend/domain source tree (346 files)
/dashboard/OmniDashShell.tsx  -  Unified dashboard Shell / layout
/apps/omnihub-site/dashboard/components/  -  Panels/widgets: (Today, Pipeline, KPIs, Ops, etc.)
/src/omnidash/uiRegistry.ts  -   UI registry wiring


/supabase/migrations - Database schema (74 versioned SQL migrations)
/supabase/functions  - Edge functions (27 serverless endpoints)
/orchestrator        - Temporal workers and orchestration services (95 Python files)
/tests               - Automated test suite
/.github/workflows   - CI/CD workflows (21 workflow files)

Quick Start (Local)

Prerequisites

  • Node.js 22+ (Node 22 LTS recommended; Node 24 also supported; range >=22 <25)
  • Python 3.11+
  • Docker & Docker Compose

Full Stack — One Command (Recommended)

cp .env.example .env.local  # Fill in your Supabase credentials
docker compose -f docker-compose.dev.yml up

This starts: Frontend (port 8080) + Temporal worker + Temporal UI (port 8233) + Redis. Supabase runs in the cloud — point .env.local to your Supabase project. Browser builds require VITE_SUPABASE_URL plus VITE_SUPABASE_PUBLISHABLE_KEY or legacy VITE_SUPABASE_ANON_KEY; CI/production builds fail closed when they are missing. For local UI-only work without Supabase, set APEX_ALLOW_MISSING_SUPABASE_CONFIG=true.

Manual Setup (alternative)

1) Install dependencies

npm ci
# or, for local dev speed: bun install

2) Run OmniDash (main UI)

npm run dev
# or, for local dev speed: bun run dev

3) Run the Orchestrator (Temporal)

cd orchestrator
pip install -r requirements.txt
python -m main

Docker (production compose)

docker compose -f docker-compose.prod.yml up -d

Deployment Targets

SlotURLNotes
Productionhttps://apexomnihub.icuCloudflare Pages — canonical production
Shadowhttps://apex-omnihub-shadow.pages.devShadow slot provisioned 2026-05-20

CI / Quality Gates

Run these before any PR:

npm run lint       # ESLint
npm run typecheck  # TypeScript strict mode
npm run test       # Vitest suite
npm run build      # Production build

CI/CD Pipelines (Selected Workflows)

WorkflowTriggerPurpose
ci-runtime-gatesPR/PushBuild, test, lint, typecheck
cd-stagingPush to developStaging deployment
deploy-web3-functionsPush to mainEdge function deployment
secret-scanningPRSecurity scanning
chaos-simulation-ciScheduledResilience testing
sonarqube-analysisPRCode quality audit
guardrail-alertCI failureGuardrail violation alerting

Documentation

Full documentation is available in the docs/ directory.

DocumentDescription
Release Notes v1.6.0What is new in v1.6.0
Executive Architecture SummarySystem design
Production Certification StatusCurrent certification authority
Documentation Release IndexCurrent docs map, READMEs, status, audits, runbooks
Testing Evidence & Armageddon ReportsValidation history
PR Triage ReportOpen PR resolution matrix
OPS RunbooksOperations procedures
Supabase SetupDatabase config guide
orchestrator/READMETemporal setup
orchestrator/MAN_MODEManual Approval Node
orchestrator/ARCHITECTUREBackend design

Contributing (APEX Standard)

  1. Fork the repo
  2. Create a branch: git checkout -b feature/your-feature
  3. Write tests for your changes
  4. Run full gates: npm run test && npm run lint && npm run typecheck && npm run build
  5. Submit a PR

Non-Negotiables

  • No vendor lock-in - portable adapters, clean interfaces
  • Single-port integration - no scattered API calls
  • Idempotent operations - safe to re-run, easy rollback
  • No secrets in code - env/config only
  • Observable behavior - health checks, structured logs

📄 Documentation

Proprietary - © 2026 APEX Business Systems Ltd.


 █████╗ ██████╗ ███████╗██╗  ██╗
██╔══██╗██╔══██╗██╔════╝╚██╗██╔╝
███████║██████╔╝█████╗   ╚███╔╝
██╔══██║██╔═══╝ ██╔══╝   ██╔██╗
██║  ██║██║     ███████╗██╔╝ ██╗
╚═╝  ╚═╝╚═╝     ╚══════╝╚═╝  ╚═╝
Intelligence Designed. Engineering the Impossible.

APEX Bible Governance

APEX Bible Complete Package

Version: 1.1.0 Canonical governance package for APEX-level builds.

Single nav: see governance/INDEX.md. Doctrine: see governance/doctrine/APEX_BUILD_DOCTRINE.md.


What This Locks In

  • canonical build doctrine (13 principles)
  • architecture review gates + merge-rights policy
  • RFC template + usage policy
  • CI policy gates (with a working policy-check script, not placeholders)
  • secret scanning (gitleaks), dependency vuln scan (osv-scanner), SAST (CodeQL)
  • service tiers (T1–T4) with SLOs and error budgets
  • data classification (P0–P4) + privacy SLAs
  • FinOps tags + budget tiers + AI cost caps
  • release management + API versioning + deprecation lifecycle
  • supply-chain controls (SBOM, signing, vendor review)
  • DR (RPO/RTO) + on-call SLAs + postmortem + runbook templates
  • threat model template (STRIDE + AI-specific)
  • incident disclosure SLAs (PIPEDA/GDPR-aware)
  • AI governance: prompt, kill switch, evaluation policy
  • engineering onboarding with two scored merge-rights exercises
  • 100-point build rubric + per-category scoring guide

Drop-In Install

Copy this package into the root of your repository:

/.github
/governance
/CHANGELOG.md
/CONTRIBUTING.md
/LICENSE
/Makefile
/README.md
/SECURITY.md
/package_manifest.json

Implementation Order (Day 1)

  1. Commit governance/doctrine/APEX_BUILD_DOCTRINE.md.
  2. Enable .github/workflows/apex-governance.yml. Mark the governance-gate job as a required status check in branch protection.
  3. Require PRs to use .github/pull_request_template.md.
  4. Add reviewers in .github/CODEOWNERS (adjust team handles to match your org).
  5. Require architecture review before granting merge rights (see governance/architecture/MERGE_RIGHTS_POLICY.md).
  6. Install governance/ai/AI_AGENT_SYSTEM_PROMPT.md into all internal AI agents.
  7. Run make apex-policy locally to confirm green.

Implementation Order (Week 1)

  1. Classify every data store per governance/data/DATA_CLASSIFICATION.md.
  2. Tag every cloud resource per governance/finops/COST_BUDGET_POLICY.md.
  3. Assign each service a tier per governance/release/RELEASE_POLICY.md.
  4. Declare SLOs per governance/observability/SLO_POLICY.md.
  5. Write runbooks for the top-5 alerts per T1/T2 service using governance/ops/RUNBOOK_TEMPLATE.md.
  6. Verify kill switches per governance/ai/AI_KILL_SWITCH.md for every production AI feature.

Mandatory Rule

No feature, AI-generated change, refactor, or infrastructure update may merge unless it preserves:

  • user workflow clarity
  • modularity
  • idempotency
  • observability
  • rollback capability
  • domain boundaries
  • regression resistance
  • overload resistance
  • data classification compliance
  • cost attribution
  • AI kill-switch availability

Local Commands

make apex-policy        # run policy check (human-readable)
make apex-policy-json   # run policy check (JSON report)
make apex-validate      # validate package structure + manifest
make apex-verify        # full local validation (policy + structure)
make apex-install       # print install instructions for a target repo
make apex-zip           # build distributable zip

Versioning

This package follows SemVer. See CHANGELOG.md. Contribute via CONTRIBUTING.md. Report security issues per SECURITY.md.

Skills Info
Original Name:universal-debugAuthor:apexbusiness