Skip to content

๐Ÿš€ HelmStack โ€“ Your AI Project Navigator, from idea to delivery. Umbrella repository with docs, architecture, and community resources.

Notifications You must be signed in to change notification settings

helmstack/helmstack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

1 Commit
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽ‰ HelmStack - Contract-first Development Automation CLI

CE (Community Edition): AI integration, Clean Architecture, Real functionality

License: MIT TypeScript Node.js

HelmStack CE implementation following strict Clean Architecture with Contract-first development and AI integration with offline fallback.

๐Ÿ—๏ธ Architecture (CE Principles)

HelmStack follows 4 focused repositories with Clean Architecture:

helmstack/
โ”œโ”€โ”€ helmstack-schemas    # ๐Ÿ“‹ Contracts & Validation (Zod + JSON Schema)
โ”œโ”€โ”€ helmstack-core       # ๐Ÿ—๏ธ Business Logic & Ports (Services + Interfaces)
โ”œโ”€โ”€ helmstack-addons     # ๐Ÿ”Œ Real World Adapters (Git, FS, AI Providers)
โ””โ”€โ”€ helmstack-cli        # ๐Ÿ’ป Command Interface (OCLIF + Commands)

๐ŸŽฏ CE Principles

  1. Contract-First: All data types defined with Zod schemas, exported as JSON Schema
  2. Ports & Adapters: Clean separation between interfaces (core) and implementations (addons)
  3. Thin CLI: Commands only handle parsing and validation, delegate to services
  4. CE = AI var, ML yox: Multiple providers (OpenAI, Anthropic, Gemini) with heuristic fallback
  5. Deterministic & Atomic: File operations with tempโ†’fsyncโ†’rename pattern
  6. Transparency: Complete audit trail in Envelope format
  7. Security: Policy guards, secret redaction, file access control
  8. Performance: Sub-300ms CLI start, enforced budgets per operation

๐Ÿš€ Commands (31 Total - Spec Based)

๐ŸŒ Core Workflow

  • heck init - Initialize workspace (idempotent)
  • heck focus - Manage current focus
  • heck plan - Generate development plans (AI)
  • heck review - Code review with auto-fix (AI)
  • heck wrap - Complete work session

๐Ÿงช Test & Fix

  • heck test - Run test suites with reports
  • heck fix - Auto-fix issues from test reports (AI)

โœ๏ธ Edit & Refactor

  • heck edit <file> - AI-assisted editing
  • heck refactor <pattern> - Code refactoring (AI/AST)

๐Ÿงฉ Index & Search

  • heck index - Build code index (.heck/cache)

๐Ÿงท Patch Management

  • heck patch create - Create atomic patches
  • heck patch apply - Apply with HITL preview
  • heck patch rollback - Rollback changes

โœ… Git Integration

  • heck commit - Conventional commits (AI assist)

๐Ÿค– AI Management

  • heck adapter - Configure AI providers

๐Ÿ“Š Intelligence

  • heck status - Project status
  • heck metrics - Performance metrics
  • heck snapshot - State snapshots
  • heck memory - Knowledge management

๐Ÿ”„ Collaboration

  • heck sync - GitHub/Jira/Trello sync
  • heck team - Team management
  • heck audit - Audit reports
  • heck share / heck join - Session sharing

๐Ÿ”ฎ AI Assistant

  • heck orchestrate - AI pipelines
  • heck suggest - Smart suggestions
  • heck pair - AI pair programming

๐Ÿ—๏ธ DevOps

  • heck repo - Repository creation
  • heck publish - Package publishing
  • heck pr - Pull request automation
  • heck config - Configuration management

๐ŸŽจ Brand

  • heck brand sync - Brand asset management

๐Ÿฅ Health

  • heck health - System diagnostics

๐Ÿ“ฆ Installation

๐Ÿš€ One-Command Install

curl -fsSL https://raw.githubusercontent.com/helmstack/helmstack/main/install-helmstack.sh | bash

๐Ÿ“ฅ Manual Installation

npm install -g helmstack

๐Ÿ Initialize Your First Project

# Initialize workspace
heck init

# Check status
heck status

# Add focus items
heck focus add "Build authentication system" --priority high

# Generate AI project plan
heck plan "Build a modern web application"

# Configure AI (optional)
heck adapter set openai --model gpt-4

๐Ÿ—‘๏ธ Uninstall

curl -fsSL https://raw.githubusercontent.com/helmstack/helmstack/main/uninstall.sh | bash

๐Ÿ”ง Development

Building & Testing

# Build in dependency order
npm run build:schemas
npm run build:core
npm run build:addons
npm run build:cli

# Run tests
npm run test:all

# Test specific components
cd helmstack-core && npm test
cd helmstack-cli && npm run test:commands

๐Ÿค– AI Integration

HelmStack supports multiple AI providers with automatic fallback:

# Configure providers
heck adapter set --provider openai --model gpt-4 --key $OPENAI_API_KEY
heck adapter set --provider anthropic --model claude-3 --key $ANTHROPIC_API_KEY

# Test providers
heck adapter test

# Use AI features
heck plan --ai          # AI-generated development plan
heck review --auto-fix  # AI code review with fixes
heck suggest --scope tasks  # AI task suggestions
heck pair               # AI pair programming

Offline Fallback

When no AI providers are configured, HelmStack uses built-in heuristics.

๐Ÿ”’ Security & Policy

Policy Guards

Protect sensitive files automatically:

{
  "rules": [
    { "glob": ".env", "action": "block" },
    { "glob": "deploy/**/*.yaml", "action": "confirm" },
    { "glob": "db/migrations/**", "action": "confirm" }
  ],
  "on_confirm_note": "Two-man rule for production changes."
}

Secret Redaction

All runlogs automatically redact sensitive information.

๐ŸŽ๏ธ Performance

HelmStack enforces strict performance budgets:

  • CLI Start: <300ms
  • Plan Generation: <60s
  • Test Smoke: <30s
  • Patch Apply: <1s

๐Ÿ“ Workspace Structure

HelmStack creates a .heck/ directory for workspace management:

.heck/
โ”œโ”€โ”€ config.json         # Configuration
โ”œโ”€โ”€ focus.md            # Current focus
โ”œโ”€โ”€ next-steps.md       # Task list
โ”œโ”€โ”€ policy/
โ”‚   โ””โ”€โ”€ rules.json      # Security rules
โ”œโ”€โ”€ patches/            # Atomic patches
โ”œโ”€โ”€ runlogs/           # Operation history
โ”œโ”€โ”€ cache/             # Performance cache
โ””โ”€โ”€ migrations/        # Schema migrations

๐Ÿค Contributing

  1. Follow CE Principles: Contract-first, Ports & Adapters
  2. Add Tests: Unit tests for services, integration tests for adapters
  3. Update Schemas: Add/modify Zod schemas for new data types
  4. Document Commands: Full help text and examples
  5. Performance: Ensure operations meet budget requirements

๐Ÿ“„ License

MIT License - see LICENSE file for details.


๐ŸŽฏ HelmStack: Where AI meets Clean Architecture for developer productivity

Built following CE (Community Edition) principles with real functionality

About

๐Ÿš€ HelmStack โ€“ Your AI Project Navigator, from idea to delivery. Umbrella repository with docs, architecture, and community resources.

Resources

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages