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.
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
|
โก Production-Ready Scaffolding
|
|
๐ง Lifecycle Commands
|
๐ง Skills System
|
๐ก๏ธ Smart File Management
|
๐ Quick Start
Install
npm install -g @nexus-framework/cliCreate a Project
nexus init my-appYou'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 devRun It
cd my-app
npm run dev
# โ Your app is running at http://localhost:3000What Happens Next
Open the project in your AI coding tool (Cursor, Copilot, Windsurf, Cline). The AI agent will:
- Detect the NEXUS instructions automatically (
.cursorrules,.github/copilot-instructions.md, etc.) - Read
index.mdโ your project brain โ to understand status and priorities - Scan
knowledge.mdโ the progressive memory โ for past decisions and gotchas - Check for template docs โ if any have
status: template, it will auto-populate them by scanning your codebase - 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 registryManaging 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 skillCustom Skills
nexus skill new my-service-patternGuides 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 adoptThis 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 errorsBuilt 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.