Skip to content
Productivity
Command

/new-extension

Create a new Nimbalyst extension project from a starter scaffold

From plugin
nimbalyst
2.1k54 skills3 agents54 commands3 MCP
> /plugin marketplace add nimbalyst/nimbalyst
> /plugin install nimbalyst-wiki@nimbalyst

Command definition

new-extension.md
description: Create a new Nimbalyst extension project from a starter scaffold
allowed_tools:
  - Read
  - Write
  - Edit
  - Glob
  - Bash

/new-extension Command

Scaffolds a new Nimbalyst extension project from a neutral starter scaffold and creates a development plan for user review before implementation begins.

Workflow

This command follows a **plan-first approach**:

1. **Scaffold** - Create base project files (manifest, package.json, configs) 2. **Plan** - Generate a README.md with development plan for review 3. **Wait** - User reviews plan, answers questions, approves approach 4. **Implement** - Only after approval, build the actual extension code

**IMPORTANT**: Do NOT immediately implement the full extension. Create the scaffold and plan first, then STOP and wait for user feedback.

Usage

/new-extension <path> <name> [file-patterns]

Arguments

  • `<path>` - Directory path where the extension should be created
  • `<name>` - Human-readable name for the extension (e.g., "3D Model Viewer")
  • `[file-patterns]` - (Optional) Comma-separated file patterns (e.g., `*.obj,*.stl`)

Legacy form still works:

/new-extension <template> <path> <name> [file-patterns]

Examples

/new-extension ~/extensions/obj-viewer "OBJ Viewer" *.obj
/new-extension ~/my-todo-extension "Todo List Editor" *.todo
/new-extension ~/code-metrics "Code Metrics"

Step 1: Create Project Scaffold

Create these base files only:

manifest.json

{
  "id": "com.nimbalyst.<extension-name>",
  "name": "<Extension Name>",
  "version": "0.1.0",
  "description": "<Brief description - will be refined in planning>",
  "main": "dist/index.js",
  "apiVersion": "1.0.0",
  "permissions": {},
  "contributions": {}
}

`apiVersion` is currently optional but recommended.

package.json

{
  "name": "<extension-id>",
  "version": "0.1.0",
  "private": true,
  "type": "module",
  "scripts": {
    "build": "vite build"
  },
  "dependencies": {
    "react": "^18.2.0"
  },
  "devDependencies": {
    "@nimbalyst/extension-sdk": "^0.1.0",
    "@types/react": "^18.2.0",
    "typescript": "^5.0.0",
    "vite": "^7.1.12"
  }
}

tsconfig.json

{
  "compilerOptions": {
    "target": "ES2020",
    "module": "ESNext",
    "moduleResolution": "bundler",
    "jsx": "react-jsx",
    "strict": true,
    "esModuleInterop": true,
    "skipLibCheck": true,
    "declaration": true,
    "outDir": "dist",
    "rootDir": "src"
  },
  "include": ["src/**/*"]
}

vite.config.ts

import { defineConfig } from 'vite';
import { createExtensionConfig } from '@nimbalyst/extension-sdk/vite';

export default defineConfig(createExtensionConfig({
  entry: './src/index.ts',
}));

src/index.ts (minimal placeholder)

// Extension entry point - implementation pending plan approval

export const components = {};

export function activate() {
  console.log('Extension activated');
}

export function deactivate() {
  console.log('Extension deactivated');
}

Step 2: Create Development Plan (README.md)

After creating the scaffold, generate a comprehensive README.md that serves as the development plan. This is the most important output - it should help clarify requirements before any coding begins.

README.md Template

# <Extension Name>

> Development plan - please review and provide feedback before implementation begins.

## Overview

<Brief description of what this extension will do>

## Open Questions

Before building, I need clarification on:

1. **<Question about core functionality>**
   - Option A: ...
   - Option B: ...
   - Your preference?

2. **<Question about UI/UX>**
   - ...

3. **<Question about file format or data>**
   - ...

4. **<Question about edge cases>**
   - ...

## Proposed Features

### Core Features (v0.1.0)
- [ ] <Feature 1>
- [ ] <Feature 2>
- [ ] <Feature 3>

### Nice to Have (Future)
- [ ] <Future feature 1>
- [ ] <Future feature 2>

## Design Mockups

<If this is a visual extension, consider creating mockup files>

Would you like me to create a `.mockup.html` file to visualize the UI before building?

- [ ] Yes, create a mockup first
- [ ] No, proceed with implementation

## Technical Approach

### File Format
<Description of how files will be parsed/stored>

### Component Structure
<High-level description of React components>

### AI Tools (if applicable)
<What AI tools will be provided and what they'll do>

## Implementation Checklist

### Phase 1: Basic Structure
- [ ] Set up manifest.json with contributions
- [ ] Create main editor component
- [ ] Implement file parsing
- [ ] Implement file serialization
- [ ] Basic styling with theme variables

### Phase 2: Core Functionality
- [ ] <Specific feature implementation>
- [ ] <Another feature>
- [ ] Error handling

### Phase 3: Polish
- [ ] Keyboard shortcuts
- [ ] Undo/redo support
- [ ] Performance optimization for large files

### Phase 4: AI Integration (if needed)
- [ ] Define AI tools
- [ ] Implement tool handlers
- [ ] Test with Claude

## Next Steps

Please review this plan and:
1. Answer the open questions above
2. Confirm or modify the feature list
3. Let me know if you want mockups first
4. Say "approved" or "proceed" when ready to start implementation

---
*This plan was generated by the Extension Developer Kit. Edit as needed.*

Step 3: STOP and Wait

After creating the scaffold and README.md:

1. **Tell the user** the project has been scaffolded 2. **Point them to README.md** to review the development plan 3. **Ask them to review** and provide feedback 4. **Do NOT start implementing** until they approve

Example response after scaffolding:

> I've created the extension scaffold at `<path>` with: > - `manifest.json` - Extension metadata > - `package.json` - Dependencies > - `tsconfig.json` - TypeScript config > - `vite.config.ts` - Build config > - `src/index.ts` - Placeholder entry point > - `README.md` - **Development plan

Read more
@nimbalyst
Ships withnimbalyst

Nimbalyst - The open-source visual workspace for Claude Code, Codex, and OpenCode. Run multiple coding agents in parallel, edit their work visually in markdown, mockups, and diagrams, and track tasks. Free, MIT-licensed desktop app for macOS, Windows, Linux, with mobile companion for iOS and Android.

2.1k16 skills3 agents3 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
2.1k
Star history of nimbalyst/nimbalyst on GitHub, a chart by star-history.com

Other commands on nimbalyst.

analyze-sessions

analyze-sessions

Command

Audit recent AI coding sessions to find repeated mistakes, speed losses, and missed Nimbalyst tool usage — then propose harness…

@nimbalyst@nimbalystInstall Command
audit-updates

audit-updates

Command

Triage pnpm audit findings and produce a prioritized, supply-chain-cautious package-update plan, then apply approved batches

@nimbalyst@nimbalystInstall Command
autofix-issues

autofix-issues

Command

Survey recently triaged GitHub issues, propose the ones safe to fix without a product decision, and fan the selected ones out to…

@nimbalyst@nimbalystInstall Command

More commands from other plugins.

analyze-cohorts

analyze-cohorts

Command

Perform cohort analysis on user data — retention curves, feature adoption, and engagement trends

@phuryn@phurynInstall Command
again

again

Command

PUA Again — 用于再试试、换个方法、别放弃、为什么还不行、同一路径失败多次;要求停止微调同一思路,改用本质不同方案。

pua2mo20k
@tanweai@tanweaiInstall Command