A configuration framework that enhances Amazon Q CLI with specialized commands, cognitive personas, and development methodologies.
IMPORTANT: Start Fresh by removing old files and dir in .amazonq (RULES.md TOOLS.md PERSONAS.md Q.md and /commands dir)
SuperQ v2 introduces architectural improvements focused on maintainability and extensibility:
- โก Streamlined Architecture: @include reference system for configuration management
- ๐ญ Personas as Context Hooks: 9 cognitive personas integrated into the context hooks system (
/context hooks add persona-architect,/context hooks add persona-security, etc.) - ๐ฆ Enhanced Installer: install.sh with update mode, dry-run, backup handling, and platform detection
- ๐ง Modular Design: Template system for adding new commands and features
- ๐ฏ Unified Experience: Consistent command behavior across all operations
See ROADMAP.md for future development ideas and contribution opportunities.
Amazon Q CLI provides powerful capabilities but can benefit from:
- Specialized expertise for different technical domains
- Token efficiency for complex projects
- Evidence-based approaches to development
- Context preservation during debugging sessions
- Domain-specific thinking for various tasks
SuperQ enhances Amazon Q CLI with:
- 18 Specialized Commands covering development lifecycle tasks
- 9 Cognitive Personas for domain-specific approaches
- Token Optimization with compression options
- Evidence-Based Methodology encouraging documentation
- Tool Integration with file system, bash execution, and AWS access
- Git Checkpoint Support for safe experimentation
- Introspection Mode for framework improvement and troubleshooting
The installer provides various options:
$ git clone https://github.com/NomenAK/SuperQ.git
$ cd SuperQ
# Basic installation
$ ./install.sh # Default: ~/.amazonq/
# Advanced options
$ ./install.sh --dir /opt/amazonq # Custom location
$ ./install.sh --update # Update existing installation
$ ./install.sh --dry-run --verbose # Preview changes with details
$ ./install.sh --force # Skip confirmations (automation)
$ ./install.sh --log install.log # Log all operationsv2.0.1 Installer Features:
- ๐ Update Mode: Preserves customizations while updating
- ๐๏ธ Dry Run: Preview changes before applying
- ๐พ Smart Backups: Automatic backup with timestamping
- ๐งน Clean Updates: Removes obsolete files
- ๐ฅ๏ธ Platform Detection: Works with Linux, macOS, WSL
- ๐ Progress Tracking: Installation feedback
Zero dependencies. Installs to ~/.amazonq/ by default.
Note: After installation, all configuration files are located in ~/.amazonq/ (your home directory), not in the project directory.
Switch between different approaches with persona context hooks:
Amazon Q> /context hooks add persona-architect # Systems thinking approach
Amazon Q> /context hooks add persona-frontend # UX-focused development
Amazon Q> /context hooks add persona-security # Security-first analysis
Amazon Q> /context hooks add persona-analyzer # Root cause analysis approachv2.0.1 Update: All 9 personas are now available as context hooks, with both conversation_start and per_prompt options for consistent access to specialized approaches.
Development lifecycle coverage:
Development Commands
$ q chat
Amazon Q> /build --react --tdd # Development with AI components
Amazon Q> /dev-setup --ci --monitor # Environment setup
Amazon Q> /test --coverage --e2e # Testing strategiesAnalysis & Quality
$ q chat
Amazon Q> /review --quality --evidence # AI-powered code review
Amazon Q> /analyze --architecture # System analysis
Amazon Q> /troubleshoot --prod --five-whys # Issue resolution
Amazon Q> /improve --performance --iterate # Optimization
Amazon Q> /explain --depth expert --visual # DocumentationOperations & Security
$ q chat
Amazon Q> /deploy --env prod --plan # Deployment planning
Amazon Q> /scan --security --owasp --deps # Security audits
Amazon Q> /migrate --dry-run --rollback # Database migrations
Amazon Q> /cleanup --all --validate # Maintenance tasks- fs_read: Access to file system for reading
- fs_write: File system write capabilities
- execute_bash: Command execution capabilities
- use_aws: AWS service integration
/tools commands to use tool-related functionality.
SuperQ's @include template system helps manage token usage:
- Compact mode option for token reduction (
/compact) - Template references for configuration management
- Caching mechanisms to avoid redundancy
- Context-aware compression options
$ q chat
Amazon Q> /context hooks add persona-architect
Amazon Q> /design --api --ddd --bounded-context # Domain-driven design
Amazon Q> /estimate --detailed --worst-case # Resource planning
Amazon Q> /context hooks add persona-security
Amazon Q> /scan --security --validate # Security review
Amazon Q> /context hooks add persona-backend
Amazon Q> /build --api --tdd --coverage # Implementation$ q chat
Amazon Q> /context hooks add persona-analyzer
Amazon Q> /troubleshoot --investigate --prod # Analysis
Amazon Q> /analyze --profile --perf # Performance review
Amazon Q> /context hooks add persona-performance
Amazon Q> /improve --performance --threshold 95% # Optimization
Amazon Q> /test --integration --e2e # Validation$ q chat
Amazon Q> /troubleshoot --introspect # Debug SuperQ behavior
Amazon Q> /analyze --introspect # Analyze framework patterns
Amazon Q> /improve --introspect # Optimize token usage
Amazon Q> /compact # Reduce token usage$ q chat
Amazon Q> /context hooks add persona-frontend
Amazon Q> /build --react --watch # UI development
Amazon Q> /context hooks add persona-qa
Amazon Q> /test --coverage --e2e --strict # Quality assurance
Amazon Q> /context hooks add persona-security
Amazon Q> /scan --validate --deps # Security check| Persona | Focus Area | Tools | Use Cases |
|---|---|---|---|
| architect | System design | File system, Bash | Architecture planning |
| frontend | User experience | File system, Bash | UI development |
| backend | Server systems | File system, Bash, AWS | API development |
| security | Security analysis | File system, Bash | Security reviews |
| analyzer | Problem solving | All tools | Debugging |
| qa | Quality assurance | File system, Bash | Testing |
| performance | Optimization | File system, Bash | Performance tuning |
| refactorer | Code quality | File system, Bash | Code improvement |
| mentor | Knowledge sharing | File system | Documentation |
$ q chat
Amazon Q> /analyze --think
# Deeper analysis
Amazon Q> /design --think-hard
# Maximum depth
Amazon Q> /troubleshoot --ultrathink$ q chat
Amazon Q> /analyze --introspect
# Debug SuperQ behavior
Amazon Q> /troubleshoot --introspect
# Optimize framework performance
Amazon Q> /improve --introspect --persona-performance$ q chat
# Standard mode
Amazon Q> /build --react
# With compression
Amazon Q> /analyze --architecture
Amazon Q> /compact
# Native tools only
Amazon Q> /scan --security --no-toolsSuperQ encourages:
- Documentation for design decisions
- Testing for quality improvements
- Metrics for performance work
- Security validation for deployments
- Analysis for architectural choices
/build- Project builder with stack templates/dev-setup- Development environment setup/test- Testing framework
/review- AI-powered code review with evidence-based recommendations/analyze- Code and system analysis/troubleshoot- Debugging and issue resolution/improve- Enhancement and optimization/explain- Documentation and explanations
/deploy- Application deployment/migrate- Database and code migrations/scan- Security and validation/estimate- Project estimation/cleanup- Project maintenance/git- Git workflow management
/design- System architecture/spawn- Parallel task execution/document- Documentation creation/load- Project context loading/task- Task management
SuperQ v2's architecture enables extensibility:
๐๏ธ Modular Configuration
- Q.md โ Core configuration with @include references
- .amazonq/shared/ โ Centralized YAML templates
- commands/shared/ โ Reusable command patterns
- @include System โ Template engine for configuration
๐ฏ Unified Command System
- 19 Commands โ Development lifecycle coverage
- Command Inheritance โ Universal commands
- Persona Integration โ 9 cognitive modes as context hooks
- Template Validation โ Reference integrity checking
๐ฆ Architecture Benefits
- Single Source of Truth โ Centralized updates
- Easy Extension โ Add new commands
- Consistent Behavior โ Unified command handling
- Reduced Duplication โ Template-based configuration
โ Quality Features
- Evidence-Based Approach โ Documentation encouraged
- Research Integration โ Library documentation access
- Error Recovery โ Graceful failure handling
- Structured Output โ Organized file locations
| Aspect | Standard Amazon Q CLI | SuperQ Framework |
|---|---|---|
| Expertise | General responses | 9 specialized personas |
| Commands | Manual instructions | 18 workflow commands |
| Context | Session-based | Git checkpoint support |
| Tokens | Standard usage | Compression options |
| Approach | General purpose | Evidence-based |
| Documentation | As needed | Systematic approach |
| Quality | Variable | Validation patterns |
| Integration | Basic tools | Advanced tool orchestration |
Development Teams
- Consistent approaches across domains
- Standardized workflows
- Evidence-based decisions
- Documentation practices
Technical Leaders
- Architecture reviews
- Performance optimization
- Code quality improvement
- Team knowledge sharing
Operations
- Deployment procedures
- Debugging workflows
- Security management
- Maintenance tasks
Good fit for:
- โ Teams wanting consistent AI assistance
- โ Projects needing specialized approaches
- โ Evidence-based development practices
- โ Token-conscious workflows
- โ Domain-specific expertise needs
May not suit:
- โ Purely manual workflows
- โ Minimal configuration preferences
- โ Ad-hoc development styles
- โ Single-domain focus
-
Install SuperQ
$ git clone https://github.com/NomenAK/SuperQ.git && cd SuperQ && ./install.sh
-
Validate Installation
$ q chat Amazon Q> /load # Load project context Amazon Q> /analyze --code --think # Test analysis Amazon Q> /context hooks add persona-architect Amazon Q> /analyze --architecture # Try personas
-
Example Workflow
$ q chat Amazon Q> /design --api --ddd # Architecture design Amazon Q> /build --feature --tdd # Implementation Amazon Q> /test --coverage --e2e # Quality assurance Amazon Q> /deploy --env staging --plan # Deployment
-
Conversation Management
# Automatic resume of previous session $ q chat --resume # Manual save/load within chat Amazon Q> /save my-project-design Amazon Q> /load my-project-design
-
Model Selection
# Change model in-session Amazon Q> /model # Launch with specific model $ q chat --model claude-3-opus-20240229 # Set default model $ q settings chat.defaultModel claude-3-opus-20240229
-
Tool Permissions
# Trust specific tools Amazon Q> /tools trust fs_read Amazon Q> /tools trust fs_write # Trust all tools Amazon Q> /tools trustall # Revoke trust Amazon Q> /tools untrust execute_bash
- Installation Help: Run
./install.sh --help - Command Details: Check
~/.amazonq/commands/ - Settings Management: Run
q settings all -f json-pretty - Contributing: See CONTRIBUTING.md
- Issues: GitHub Issues
SuperQ welcomes contributions:
- New Personas for specialized workflows
- Commands for domain-specific operations
- Patterns for development practices
- Integrations for productivity tools
Join the community: Discussions
๐ฏ Architecture Improvements:
- Configuration Management: @include reference system
- Token Efficiency: Compression options maintained
- Command System: Unified command inheritance
- Persona System: Now available as context hooks
- Installer: Enhanced with new modes
- Maintenance: Centralized configuration
๐ Framework Details:
- Commands: 19 specialized commands
- Personas: 9 cognitive approaches
- Tool Integration: File system, Bash, AWS
- Methodology: Evidence-based approach
- Usage: By development teams
SuperQ provides a structured approach to using Amazon Q CLI with specialized commands, personas, and development patterns.
SuperQ v2.0.1 โ Development framework for Amazon Q CLI