SDLC Gate Checker — VS Code Extension
Validate specs and code artifacts against SDLC phase checklists using AI (Ollama or Azure OpenAI), directly from VS Code.
Features
| Feature |
Description |
| Check File |
Right-click any .md, .pdf, .docx, or .txt file → SDLC Gate: Check Current File |
| Check with Phase |
Pick a specific SDLC phase from the list before running |
| Review with Template |
Upload a template (checklist) file and review your doc against it |
| Show Phases |
List all available SDLC gate phases |
| Set Mode |
Switch between Cloud AI and local SLM (Ollama) |
Results are displayed in a rich WebView panel with:
- ✅ / ❌ PASS/FAIL badge
- Risk score bar (0–10)
- Missing items list
- AI suggestions
- Evidence mapping
Prerequisites
The extension requires the sdlc-ai-oe CLI tool. Install it globally:
npm install -g sdlc-ai-oe
Or the extension will use npx sdlc-ai-oe automatically as a fallback.
For Cloud AI mode (default)
Create a runtime-config.local.json in your workspace root:
{
"CLOUD_PROVIDER": "azure",
"CLOUD_API_KEY": "your-api-key",
"CLOUD_API_URL": "https://your-endpoint.openai.azure.com/openai/deployments/gpt-4.1/chat/completions?api-version=2024-12-01-preview",
"CLOUD_MODEL": "gpt-4.1"
}
Or configure the API key and URL in VS Code Settings → SDLC Gate Checker.
For local SLM mode
Install and run Ollama with the phi3:mini model:
ollama pull phi3:mini
ollama serve
Then set the mode to slm via the SDLC Gate: Set AI Mode command.
Extension Settings
| Setting |
Default |
Description |
sdlcGate.mode |
cloud |
AI mode: cloud or slm |
sdlcGate.defaultPhase |
spec-to-dev |
Default SDLC phase |
sdlcGate.cloudApiKey |
(empty) |
Cloud AI API key |
sdlcGate.cloudApiUrl |
(empty) |
Cloud AI endpoint URL |
sdlcGate.cloudProvider |
azure |
Cloud provider (azure / openai) |
sdlcGate.cloudModel |
(empty) |
Cloud model name |
sdlcGate.cliPath |
(empty) |
Custom path to sdlc-gate CLI |
Usage
From Command Palette
- Open a spec file (
.md, .pdf, .docx, .txt)
- Press
Cmd+Shift+P (Mac) or Ctrl+Shift+P (Windows/Linux)
- Type "SDLC Gate" and pick a command
- Right-click a file in the Explorer sidebar
- Select SDLC Gate: Check Current File or SDLC Gate: Review with Template
From Editor Title Bar
Click the shield icon in the editor title bar for supported file types.
Building the Extension
cd vscode-extension
npm install
To package as a .vsix:
npm install -g @vscode/vsce
vsce package
To install locally:
code --install-extension sdlc-gate-checker-1.0.0.vsix
Development
cd vscode-extension
npm install
# Press F5 in VS Code to launch Extension Development Host