devmind-ai
v1.0.4
Published
π§ AI-powered CLI assistant that generates project ideas, scaffolds structures, writes READMEs, suggests tech stacks, explains errors, and builds full starter projects β for any domain.
Maintainers
Readme
π§ DevMind AI
AI-Powered CLI Assistant for Developers
Generate project ideas β’ Scaffold structures β’ Get tech stacks β’ Fix errors β’ Build full starter apps
π Quick Start
npx devmind-ai
# or install globally:
npm install -g devmind-ai
devmind --help⨠Commands
| Command | Description |
|---------|-------------|
| devmind idea <domain> | π‘ Generate project ideas |
| devmind scaffold <stack> | π Create project folder structure |
| devmind stack <project> | π οΈ Get tech stack recommendations |
| devmind fix "<error>" | π§ Explain and fix any error |
| devmind roadmap <project> | πΊοΈ Generate a development roadmap |
| devmind build <project> | β‘ Build a full starter project |
| devmind readme | π Generate a professional README |
| devmind scan [path] | π Security scan for vulnerabilities |
| devmind chat | π¬ Interactive AI coding assistant |
| devmind config | βοΈ Configure API key and settings |
πΈ Usage Examples
π‘ Generate Ideas
devmind idea "cybersecurity"Output β 5 detailed project ideas with features, difficulty, and estimated time
π Scaffold a Project
devmind scaffold "node api"
# Creates: src/, routes/, controllers/, models/, tests/, package.json, .env.exampleπ οΈ Tech Stack
devmind stack "AI chatbot"
# Outputs a table: Frontend | Backend | Database | Auth | Deployment | ...π§ Fix Errors
devmind fix "TypeError: Cannot read properties of undefined"
# Output: Root cause, 3+ common causes, working code fix, prevention tipβ‘ Build Full Project (Killer Feature)
devmind build "password manager"
# Creates full project with starter code, README, package.json, .gitignoreπ Security Scan
devmind scan ./my-project
# Checks for: hardcoded secrets, SQL injection, eval(), weak random, HTTP URLs...βοΈ Configuration (Unlock AI)
This tool works in demo mode out of the box with smart static responses.
To unlock live AI capabilities (OpenAI GPT):
devmind config --set-key sk-your-openai-key-hereGet your API key at platform.openai.com/api-keys.
# Change model (default: gpt-4o-mini)
devmind config --set-model gpt-4o
# Show current configuration
devmind config --showπ Security Scanner Rules
| Rule | Severity | What it Detects |
|------|----------|-----------------|
| S001 | π¨ CRITICAL | Hardcoded API keys |
| S002 | π¨ CRITICAL | Hardcoded passwords |
| S003 | β οΈ HIGH | Hardcoded secrets/tokens |
| S004 | β οΈ HIGH | Dangerous eval() usage |
| S005 | π MEDIUM | console.log in production |
| S006 | β οΈ HIGH | SQL injection via template literals |
| S007 | π MEDIUM | HTTP instead of HTTPS |
| S008 | β οΈ HIGH | Weak Math.random() for security |
| S009 | π MEDIUM | TLS verification disabled |
| S010 | βΉοΈ LOW | Unresolved TODO/FIXME |
π Project Structure
devmind-ai/
βββ bin/
β βββ devmind.js # CLI entry point
βββ commands/
β βββ idea.js # Project idea generator
β βββ scaffold.js # Project scaffolder
β βββ readme.js # README generator
β βββ stack.js # Tech stack advisor
β βββ fix.js # Error explainer
β βββ roadmap.js # Project roadmap
β βββ build.js # Full project builder
β βββ scan.js # Security scanner
β βββ chat.js # Interactive chat
β βββ config.js # Configuration manager
βββ utils/
β βββ ai.js # OpenAI API + mock responses
β βββ config.js # Config persistence
β βββ ui.js # Shared terminal UI helpers
βββ package.jsonπ Why DevMind AI?
- Works offline β demo mode with intelligent responses, no API key required
- 10 commands covering the full developer workflow
- Security-focused β built-in vulnerability scanner (great for cybersecurity students!)
- Resume-worthy β mentionable as a published npm package
- Extensible β clean command architecture makes it easy to add new commands
π€ Contributing
- Fork the repo
- Create your branch:
git checkout -b feature/new-command - Commit:
git commit -m 'feat: add new command' - Push & open a PR
π License
MIT Β© Your Name
Built with β€οΈ by a cybersecurity student. Published to npm.
