JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 28
  • Score
    100M100P100Q62557F
  • License Apache-2.0

The AI-Native Development Framework โ€” turns every project into an AI-powered workspace with structured docs, progressive memory, and configurable agent personas

Package Exports

  • @nexus-framework/cli
  • @nexus-framework/cli/dist/index.js

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 (@nexus-framework/cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

๐Ÿ”ฎ NEXUS CLI

The AI-Native Development Framework

The open-source CLI by GDA Africa that turns every project into an AI-powered workspace โ€” where coding agents understand your architecture, remember your decisions, and code with knowledge.

TypeScript Node.js Vitest npm License PRs Welcome


Where AI agents don't just write code โ€” they understand why.


๐ŸŒ About GDA Africa

GDA (Glenhalton Digital Agency) is building the digital infrastructure for Africa's next generation of products and services. NEXUS CLI is GDA's open-source developer framework โ€” the bridge between human intent and AI execution, giving every project a brain that coding agents can link to, learn from, and build upon.


๐ŸŽฏ Why NEXUS?

Scaffolding tools generate files. NEXUS generates understanding.

Every project gets a documentation system AI agents can parse, a knowledge base they learn from, a project brain they check before every task, and a persona that makes them feel like a real teammate โ€” not a generic autocomplete.

Problem NEXUS Solution
๐Ÿค– AI tools (Cursor, Copilot, Windsurf) have no project-wide context NEXUS Knowledge System โ€” AI first structured files AI agents read automatically, covering vision โ†’ architecture โ†’ implementation
๏ฟฝ AI agents forget everything between sessions Progressive Knowledge Base โ€” append-only memory AI agents scan before tasks and write to after discoveries
๐Ÿ”„ AI agents don't know what to work on next Project Brain (index.md) โ€” status matrix, feature backlog, progress log, and "What's Next" priority queue
๐Ÿ˜ AI assistants feel generic and disconnected Agent Persona โ€” configurable tone, verbosity, identity. Your AI calls itself "Nexus" and speaks with intent
๏ฟฝ Hours of setup and config guesswork 2-minute interactive setup โ€” strategy-first questions, 6 frameworks, full toolchain, tests from day one
๐Ÿ“š Docs and tests are always afterthoughts Generated from day one โ€” tests, CI/CD, ESLint, Prettier, and 8 AI-readable doc files included

โœจ Features

๐Ÿง  AI-Native Intelligence

  • NEXUS Doc System โ€” 8 structured AI-readable docs per project
  • Project Brain โ€” index.md drives what AI agents work on next
  • Knowledge Base โ€” append-only memory that persists across sessions
  • Agent Persona โ€” tone, verbosity, identity, custom directives
  • Onboarding Protocol โ€” AI agents auto-populate docs on first run
  • Multi-Tool Support โ€” Cursor, Copilot, Windsurf, Cline, Claude Code

โšก Production-Ready Scaffolding

  • 6 Frameworks โ€” Next.js, React+Vite, SvelteKit, Nuxt, Astro, Remix
  • Strategy-First Setup โ€” asks about goals, not just tech preferences
  • Full Toolchain โ€” TypeScript, ESLint, Prettier pre-configured
  • Test Infrastructure โ€” Vitest/Jest config, example tests, helpers
  • CI/CD Templates โ€” GitHub Actions workflows out of the box
  • Pattern Support โ€” PWA, Offline-First, i18n, Theming, Real-time

๐Ÿ”ง Lifecycle Commands

  • nexus init โ€” scaffold a new project with full AI integration
  • nexus adopt โ€” add NEXUS to any existing codebase
  • nexus upgrade โ€” regenerate templates, preserve user work
  • nexus repair โ€” fix missing or corrupted NEXUS files
  • nexus pack โ€” zip .nexus/ into a portable backup
  • nexus unpack โ€” restore from a backup zip with verification
  • nexus update โ€” self-update the CLI to the latest version

๐Ÿง  Skills System

  • nexus skill list โ€” see all skills installed in your project
  • nexus skill registry โ€” browse all available skills in the registry
  • nexus skill new โ€” scaffold a custom skill interactively
  • nexus skill status โ€” health-check all installed skills
  • Pre-read instruction files so AI agents know how to do tasks
  • Sourced from @nexus-framework/skills โ€” updated independently

๐Ÿ›ก๏ธ Smart File Management

  • YAML Frontmatter Tracking โ€” knows which docs you've edited
  • Corruption Detection โ€” finds empty files, broken JSON, missing metadata
  • Preserve-or-Replace Logic โ€” never overwrites your populated docs
  • Manifest Recovery โ€” upgrades without re-prompting

๐Ÿš€ Quick Start

Install

npm install -g @nexus-framework/cli

Create a Project

nexus init my-app

You'll be guided through an interactive setup:

๐Ÿ”ฎ NEXUS CLI v0.3.0 โ€” AI-Native Development Framework

? What are you building?                โ€บ Web Application
? How will your app handle data?        โ€บ Cloud First
? Which application patterns?           โ€บ PWA, Theming
? Which frontend framework?             โ€บ Next.js 15 (App Router)
? Testing framework?                    โ€บ Vitest
? Package manager?                      โ€บ npm
? Initialize a git repository?          โ€บ Yes
? Install dependencies now?             โ€บ Yes
? ๐ŸŽญ What vibe should your AI have?    โ€บ ๐Ÿ˜Š Friendly
? ๐Ÿ“ How detailed should responses be? โ€บ โš–๏ธ Balanced
? ๐Ÿค– I'm Nexus! What should I call myself? โ€บ Nexus
? โœจ Custom personality note?           โ€บ (skip)

โœ” Project created successfully!

  cd my-app
  npm run dev

Run It

cd my-app
npm run dev
# โ†’ Your app is running at http://localhost:3000

What Happens Next

Open the project in your AI coding tool (Cursor, Copilot, Windsurf, Cline). The AI agent will:

  1. Detect the NEXUS instructions automatically (.cursorrules, .github/copilot-instructions.md, etc.)
  2. Read index.md โ€” your project brain โ€” to understand status and priorities
  3. Scan knowledge.md โ€” the progressive memory โ€” for past decisions and gotchas
  4. Check for template docs โ€” if any have status: template, it will auto-populate them by scanning your codebase
  5. Start working from the "What's Next" section โ€” no more "what should I build?"

๐Ÿ“ฆ What You Get

Every generated project includes:

Output What's Inside
src/ Framework-specific source code and branded landing page
.nexus/docs/ The NEXUS Doc System โ€” 8 AI-readable files + project brain + knowledge base
.nexus/ai/ Master AI instructions โ€” the single source of truth for agent behavior
.nexus/skills/ Skills System โ€” core/ (framework skills), custom/ (yours), community/ (registry)
Tool configs .cursorrules, .windsurfrules, .clinerules, AGENTS.md, .github/copilot-instructions.md โ€” each embeds full instructions
tests/ Vitest/Jest config, example tests, and test helpers
package.json Real dependencies, real scripts โ€” npm run dev works immediately
CI/CD GitHub Actions workflow for lint, test, and build
Config TypeScript, ESLint, Prettier, EditorConfig โ€” all pre-configured

The NEXUS Doc System

# File Purpose
๐Ÿง  index.md Project Brain โ€” status, backlog, progress, what's next
๐Ÿ“š knowledge.md Knowledge Base โ€” append-only memory of decisions, gotchas, patterns
1 01_vision.md Product requirements, user stories, success metrics
2 02_architecture.md System design, tech stack, data flow
3 03_data_contracts.md Database schemas, validation, relationships
4 04_api_contracts.md Endpoints, interfaces, status codes
5 05_business_logic.md Rules, algorithms, state machines
6 06_test_strategy.md Coverage targets, test types, philosophy
7 07_implementation.md Build order, file-by-file plan
8 08_deployment.md Infrastructure, CI/CD, environment config

๐Ÿง  Skills System

Skills are pre-read instruction files that tell AI agents how to execute tasks in your specific project โ€” not just what to do, but the exact patterns, conventions, and anti-patterns your codebase follows.

Every project gets a .nexus/skills/ directory with three zones:

.nexus/skills/
  README.md          โ† auto-generated index agents read first
  core/              โ† framework-matched skills from @nexus-framework/skills
  custom/            โ† your own skills (created with nexus skill new, never touched by NEXUS)
  community/         โ† skills installed from the registry

Managing Skills

nexus skill list                         # what's installed in this project
nexus skill registry                     # browse everything in the registry
nexus skill registry --framework nextjs  # filter to one framework
nexus skill new                          # scaffold a custom skill interactively
nexus skill status                       # health-check: deprecated, invalid frontmatter
nexus skill install <pkg>                # install a community skill pack
nexus skill remove <name>                # remove a community skill

Custom Skills

nexus skill new my-service-pattern

Guides you through setting a category, trigger phrases, and scaffolds a full markdown template. The AI agent reads this file before any task matching the triggers.

Precedence: custom/ > core/ > community/ โ€” your skills always win.


๐ŸŽญ Agent Persona

NEXUS lets you configure how AI agents communicate when they're synced with your project.

Option Choices Default
Tone ๐Ÿ‘” Professional ยท ๐Ÿ˜Š Friendly ยท ๐Ÿง  Witty ยท ๐Ÿง˜ Zen ยท ๐Ÿดโ€โ˜ ๏ธ Pirate Friendly
Verbosity โšก Concise ยท โš–๏ธ Balanced ยท ๐Ÿ“– Detailed Balanced
Identity Name the AI uses for itself (persists across upgrades) Nexus
Custom directive Any freeform personality instruction โ€”

When an AI agent reads the NEXUS instructions and sees the persona config, it adopts that personality. The user sees "Nexus" in responses โ€” their signal that the agent has read the docs, scanned the knowledge base, and is synced with the project brain.


๐Ÿ—๏ธ Adopt an Existing Project

Already have a project? Add the NEXUS AI layer without touching your source code.

cd my-existing-app
nexus adopt

This adds .nexus/docs/, .nexus/ai/, and AI tool config files. It does not modify your source code, configs, or dependencies.

After adopting, your AI coding tool will auto-detect the NEXUS docs, scan your codebase to populate them, and ask you about anything it can't infer โ€” giving the AI full project context from that point forward.


๐Ÿ“– Supported Frameworks

Framework Version Notes
Next.js 15 (App Router) React Server Components, Turbopack
React + Vite React 19 + Vite 6 SWC, fast HMR
SvelteKit 2.x Svelte 5, file-based routing
Nuxt 3.x Vue 3, auto-imports
Astro 5.x Content-first, island architecture
Remix 2.x Nested routing, loaders/actions

๐Ÿ—บ๏ธ Roadmap

โœ… Shipped

  • Core CLI with nexus init, nexus adopt, nexus upgrade, nexus repair
  • Interactive prompt system (7 modules including persona)
  • Generator engine (8 modules: structure, docs, config, tests, CI/CD, landing page, AI config, skills)
  • AI-native documentation system (8 structured files + project brain + knowledge base + onboarding protocol)
  • Agent Persona system (tone, verbosity, identity, custom directives)
  • Multi-tool AI support (Cursor, Copilot, Windsurf, Cline, Claude Code)
  • 6 frontend frameworks supported
  • Smart file strategy (upgrade preserves user work, repair fixes corruption)
  • Progressive knowledge base (append-only, category-tagged, AI-scannable)
  • Skills System โ€” nexus skill (6 subcommands), .nexus/skills/, sourced from @nexus-framework/skills
  • nexus pack / nexus unpack โ€” portable .nexus/ migration with zip + verification
  • nexus update โ€” self-updating CLI + startup update notifications
  • 225 unit tests passing
  • Published to npm as @nexus-framework/cli
  • CI/CD with auto-publish to npm on version bump

๐Ÿ”œ Next Up (v0.3.x)

  • E2E tests โ€” generate a project, run its build, verify all files
  • Framework-specific template content (not just landing pages)
  • nexus add <feature> โ€” add capabilities to existing NEXUS projects
  • Improve error messages and edge case handling

๐Ÿ—“๏ธ Near-term

  • Plugin system for custom generators
  • Template marketplace / community templates
  • Web-based project configurator
  • Docker template support
  • Strategy pattern generators (PWA service workers, i18n setup, theming engine)

๐Ÿ“‹ Backlog

  • nexus eject โ€” remove NEXUS, keep code
  • nexus validate โ€” check project against NEXUS standards
  • nexus migrate โ€” migrate from CRA, etc.
  • GitLab CI, Bitbucket Pipelines templates
  • Pro tier features (paid AI-powered code generation)

๐Ÿค Contributing

We welcome contributions! See CONTRIBUTING.md for guidelines.

git clone https://github.com/GDA-Africa/nexus-cli.git
cd nexus-cli && yarn install
yarn lint && yarn test    # 225 tests, zero lint errors


Built with โค๏ธ by GDA Africa โ€” Powering Africa's Digital Future

NEXUS CLI is the open-source foundation of the NEXUS framework โ€” where AI agents don't just write code, they understand your project. For questions, ideas, or collaboration, reach out to the GDA engineering team.