
AI-assisted code generation, architecture scaffolding, code reviews, and enterprise-grade boilerplate for Angular and .NET Core projects — directly inside VS Code.
StackPilot AI is built for serious development teams. It scaffolds the patterns enterprise apps actually use (typed services, OnPush components, DDD/feature-based folder structures, barrel exports, REST API boilerplate) without forcing you out of the IDE. Upcoming releases add AI code reviews, .NET Core support, and cloud team features.
✨ Features
| Feature |
Description |
| Component Generator |
OnPush, typed inputs/outputs, lifecycle hooks, optional standalone, optional route file. |
| Service Generator |
HttpClient + RxJS + typed CRUD methods, configurable providedIn, environment-driven URLs. |
| Module Generator |
Feature module with container/presentation separation, optional routing & NgRx-style store. |
| Folder Structure Generator |
Feature-based, domain-driven, or layered architectures, with ARCHITECTURE.md doc. |
| Barrel Export Generator |
Recursive index.ts generation across components, services, models, utilities. |
| API Boilerplate Generator |
REST service, DTOs, request/response interfaces, endpoint constants, environment seeding. |
| Sidebar Tree View |
One-click access to every generator under a dedicated Activity Bar item. |
| Command Palette |
Every generator is fully invocable via Ctrl+Shift+P → StackPilot AI: …. |
| Configurable Defaults |
Standalone, change detection, style extension, architecture style — all via settings. |
| Logging + Error Handling |
Dedicated output channel, validation, friendly notifications. |
🚀 Installation
From a VSIX (recommended while in MVP)
npm install
npm run compile
npm run package # produces stackpilot-ai-0.1.0.vsix
code --install-extension stackpilot-ai-0.1.0.vsix
From source (development host)
npm install
- Open this folder in VS Code.
- Press
F5 to launch the Extension Development Host.
🧪 Commands
All commands are available via the Command Palette under the StackPilot AI: prefix and through the sidebar tree view.
| Command ID |
Title |
stackpilotai.generateComponent |
Generate Component |
stackpilotai.generateService |
Generate Service |
stackpilotai.generateModule |
Generate Module |
stackpilotai.generateStructure |
Generate Enterprise Folder Structure |
stackpilotai.generateBarrels |
Generate Barrel Exports |
stackpilotai.generateApiBoilerplate |
Generate API Boilerplate |
stackpilotai.refreshSidebar |
Refresh StackPilot AI Sidebar |
You can also right-click any folder in the Explorer to invoke any of the above generators against that folder.
⚙️ Settings
| Setting |
Type |
Default |
Description |
stackpilotai.defaultArchitecture |
enum |
feature-based |
Style used by the structure generator. |
stackpilotai.useStandalone |
boolean |
true |
Generate standalone components by default. |
stackpilotai.generateTests |
boolean |
true |
Emit *.spec.ts files. |
stackpilotai.defaultStyleExtension |
enum |
scss |
scss | css | less | sass. |
stackpilotai.enableLogging |
boolean |
true |
Verbose logging in the StackPilot AI output channel. |
stackpilotai.changeDetection |
enum |
OnPush |
Default change detection strategy. |
stackpilotai.apiBasePath |
string |
src/app/core/api |
Where API boilerplate is generated by default. |
🛣️ Roadmap
Phase 2 — AI Productivity
- AI-powered code review on generated artifacts.
- Angular migration assistant (v15 → v17 / standalone migration).
- AI documentation generation per component/service.
- Smart refactoring (extract to shared module, promote to core, etc.).
- Architecture validation (enforce import boundaries between layers).
Phase 3 — .NET Core Support
- Enterprise project scaffolding for ASP.NET Core Web APIs.
- Clean Architecture / Vertical Slice folder structure generation.
- Controller, service, repository, and DTO boilerplate.
- Entity Framework Core migration helpers.
Phase 4 — Team & Cloud
- Cloud sync of team templates.
- Shared team configuration & playbooks.
- Premium AI features (advanced prompts, change reviews).
- Pluggable AI backends — OpenAI, Anthropic, Ollama.
🛠️ Development Guide
# 1. Install
npm install
# 2. Compile
npm run compile
# 3. Watch (recommended during dev)
npm run watch
# 4. Lint / format
npm run lint
npm run format
# 5. Run tests in a headless VS Code instance
npm test
# 6. Debug
# Open this folder in VS Code, press F5.
Architecture
src/
extension/ VS Code activation entry point
commands/ Command palette commands (1 file per command)
generators/ Pure file generators (BaseGenerator + concrete)
templates/ String-template renderers (no I/O)
services/ Logging, FS, workspace, notifications, prompts, config
utils/ Pure utility functions
views/ Sidebar tree provider
config/ Constants & settings reader
types/ Type definitions (no runtime code)
test/ Mocha + @vscode/test-electron test suites
resources/ Icons and marketplace assets
The architecture follows SOLID principles — generators don't talk to VS Code,
commands don't talk to disk directly, services are the only boundary between
the two. This is also why every feature is trivial to add: drop a generator,
drop a command, register both.
🧱 Packaging & Publishing
# Produce a .vsix
npm run package
# Publish to the marketplace (requires `vsce login <publisher>`)
npm run publish
See the VS Code publishing docs for full marketplace prerequisites.
📜 License
MIT © Stack Pilot AI