Basic Examples

Essential commands and single-agent workflows for everyday tasks

๐Ÿš€

GemBoost Basic Examples Collection

โœ… Status: Current

Essential commands, single-agent workflows, and common development tasks.

Quick Reference Guide: Copy-paste ready examples for beginners, focused on essential GemBoost usage patterns and fundamental development workflows.

๐Ÿ“

Context Note

These examples show /gb: commands and @agent- invocations that trigger Gemini Cli to read specific context files and adopt the behaviors defined there. The sophistication comes from the behavioral instructions, not from executable software.

Overview and Usage Guide

Purpose

Essential GemBoost commands and patterns for everyday development tasks. Start here for your first GemBoost experience.

Target Audience

New users, developers learning GemBoost fundamentals, immediate task application

Usage Pattern

Copy โ†’ Adapt โ†’ Execute โ†’ Learn from results

Key Features

  • โ€ข Examples demonstrate core GemBoost functionality
  • โ€ข Clear patterns for immediate application
  • โ€ข Single-focus examples for clear learning
  • โ€ข Progressive complexity within basic scope

Essential One-Liner Commands

Core Development Commands

๐Ÿ’ญ

/gb:brainstorm

Purpose: Interactive project discovery and requirements gathering

Syntax: /gb:brainstorm "project description"

Example:

/gb:brainstorm "mobile app for fitness tracking"
# Expected: Socratic dialogue, requirement elicitation, feasibility analysis

Behavior: Triggers interactive discovery dialogue and requirements analysis

๐Ÿ”

/gb:analyze

Purpose: Analyze existing codebase for issues and improvements

Syntax: /gb:analyze [target] --focus [domain]

Example:

/gb:analyze src/ --focus security
# Expected: Comprehensive security audit, vulnerability report, improvement suggestions

Behavior: Provides comprehensive security analysis and improvement recommendations

โšก

/gb:implement

Purpose: Implement a complete feature with best practices

Syntax: /gb:implement "feature description with requirements"

Example:

/gb:implement "user authentication with JWT and rate limiting"
# Expected: Complete auth implementation, security validation, tests included

Behavior: Delivers complete implementation following security and quality standards

๐Ÿ”ง

/gb:troubleshoot

Purpose: Troubleshoot and fix a problem systematically

Syntax: /gb:troubleshoot "problem description"

Example:

/gb:troubleshoot "API returns 500 error on user login"
# Expected: Step-by-step diagnosis, root cause identification, solution ranking

Verification: Activates root-cause-analyst + Sequential reasoning + systematic debugging

๐Ÿงช

/gb:test

Purpose: Generate comprehensive tests for existing code

Syntax: /gb:test [target] --focus [domain]

Example:

/gb:test --focus quality
# Expected: Test suite, quality metrics, coverage reporting

Verification: Activates quality-engineer + test automation

Quick Analysis Commands

Quality Focus

/gb:analyze . --focus quality

Security Focus

/gb:analyze src/ --focus security --think

Performance Focus

/gb:analyze api/ --focus performance

Architecture Focus

/gb:analyze . --focus architecture --serena

Manual Agent Invocation Examples

Direct Specialist Activation

Pattern: @agent-[specialist]

Purpose: Manually invoke specific domain experts instead of auto-activation

Python Expert

@agent-python-expert "optimize this data processing pipeline for performance"
# Expected: Python-specific optimizations, async patterns, memory management

Security Engineer

@agent-security "review this authentication system for vulnerabilities"
# Expected: OWASP compliance check, vulnerability assessment, secure coding recommendations

Frontend Architect

@agent-frontend-architect "design a responsive component architecture"
# Expected: Component patterns, state management, accessibility considerations

Quality Engineer

@agent-quality-engineer "create comprehensive test coverage for payment module"
# Expected: Test strategy, unit/integration/e2e tests, edge cases

Combining Auto and Manual Patterns

Command + Manual Override

# Step 1: Use command with auto-activation
/gb:implement "user profile management system"
# Auto-activates: backend-architect, possibly frontend

# Step 2: Add specific expert review
@agent-security "review the profile system for data privacy compliance"
# Manual activation for targeted review

# Step 3: Performance optimization
@agent-performance-engineer "optimize database queries for profile fetching"
# Manual activation for specific optimization

Sequential Specialist Chain

# Design phase
@agent-system-architect "design microservices architecture for e-commerce"

# Security review
@agent-security "review architecture for security boundaries"

# Implementation guidance
@agent-backend-architect "implement service communication patterns"

# DevOps setup
@agent-devops-architect "configure CI/CD for microservices"

Basic Usage Patterns

Discovery โ†’ Implementation Pattern

# Step 1: Explore and understand requirements
/gb:brainstorm "web dashboard for project management"
# Expected: Requirements discovery, feature prioritization, technical scope

# Step 2: Analyze technical approach
/gb:analyze "dashboard architecture patterns" --focus architecture --c7
# Expected: Architecture patterns, technology recommendations, implementation strategy

# Step 3: Implement core functionality
/gb:implement "React dashboard with task management and team collaboration"
# Expected: Complete dashboard implementation with modern React patterns

Development โ†’ Quality Pattern

# Step 1: Build the feature
/gb:implement "user registration with email verification"
# Expected: Registration system with email integration

# Step 2: Test thoroughly
/gb:test --focus quality
# Expected: Comprehensive test coverage and validation

# Step 3: Review and improve
/gb:analyze . --focus quality && /gb:implement "quality improvements"
# Expected: Quality assessment and targeted improvements

Problem โ†’ Solution Pattern

# Step 1: Understand the problem
/gb:troubleshoot "slow database queries on user dashboard"
# Expected: Systematic problem diagnosis and root cause analysis

# Step 2: Analyze affected components
/gb:analyze db/ --focus performance
# Expected: Database performance analysis and optimization opportunities

# Step 3: Implement solutions
/gb:implement "database query optimization and caching"
# Expected: Performance improvements with measurable impact

Getting Started Examples

Your First Project Analysis

# Complete project understanding workflow
/gb:load . && /gb:analyze --focus quality

Expected Results:

  • โ€ข Project structure analysis and documentation
  • โ€ข Code quality assessment across all files
  • โ€ข Architecture overview with component relationships
  • โ€ข Security audit and performance recommendations

Activates: Serena (project loading) + analyzer + security-engineer + performance-engineer
Output: Comprehensive project report with actionable insights

Variations for different focuses:

/gb:analyze src/ --focus quality          # Code quality only
/gb:analyze . --scope file               # Quick file analysis
/gb:analyze backend/ --focus security    # Backend security review

Interactive Requirements Discovery

# Transform vague ideas into concrete requirements
/gb:brainstorm "productivity app for remote teams"

Expected Interaction:

  • โ€ข Socratic questioning about user needs and pain points
  • โ€ข Feature prioritization and scope definition
  • โ€ข Technical feasibility assessment
  • โ€ข Structured requirements document generation

Activates: Brainstorming mode + system-architect + requirements-analyst
Output: Product Requirements Document (PRD) with clear specifications

Follow-up commands for progression:

/gb:analyze "team collaboration architecture" --focus architecture --c7
/gb:implement "real-time messaging system with React and WebSocket"

Simple Feature Implementation

# Complete authentication system
/gb:implement "user login with JWT tokens and password hashing"

Expected Implementation:

  • โ€ข Secure password hashing with bcrypt
  • โ€ข JWT token generation and validation
  • โ€ข Login/logout endpoints with proper error handling
  • โ€ข Frontend login form with validation

Activates: security-engineer + backend-architect + Context7
Output: Production-ready authentication system

Variations for different auth needs:

/gb:implement "OAuth integration with Google and GitHub"
/gb:implement "password reset flow with email verification"
/gb:implement "two-factor authentication with TOTP"

Common Development Tasks

API Development Basics

# REST API with CRUD operations
/gb:implement "Express.js REST API for blog posts with validation"
# Expected: Complete REST API with proper HTTP methods, validation, error handling

# API documentation generation
/gb:analyze api/ --focus architecture --c7
# Expected: Comprehensive API documentation with usage examples

# API testing setup
/gb:test --focus api --type integration
# Expected: Integration test suite for API endpoints

Frontend Component Development

# React component with modern patterns
/gb:implement "React user profile component with form validation and image upload"
# Activates: frontend-architect + Magic MCP + accessibility patterns
# Expected: Modern React component with hooks, validation, accessibility

# Component testing
/gb:test src/components/ --focus quality
# Expected: Component tests with React Testing Library

# Responsive design implementation
/gb:implement "responsive navigation component with mobile menu"
# Expected: Mobile-first responsive navigation with accessibility

Database Integration

# Database setup with ORM
/gb:implement "PostgreSQL integration with Prisma ORM and migrations"
# Expected: Database schema, ORM setup, migration system

# Database query optimization
/gb:analyze db/ --focus performance
# Expected: Query performance analysis and optimization suggestions

# Data validation and security
/gb:implement "input validation and SQL injection prevention"
# Expected: Comprehensive input validation and security measures

Basic Troubleshooting Examples

Common API Issues

# Performance problems
/gb:troubleshoot "API response time increased from 200ms to 2 seconds"
# Activates: root-cause-analyst + performance-engineer + Sequential reasoning
# Expected: Systematic diagnosis, root cause identification, solution ranking

# Authentication errors
/gb:troubleshoot "JWT token validation failing for valid users"
# Expected: Token validation analysis, security assessment, fix implementation

# Database connection issues
/gb:troubleshoot "database connection pool exhausted under load"
# Expected: Connection analysis, configuration fixes, scaling recommendations

Frontend Debugging

# React rendering issues
/gb:troubleshoot "React components not updating when data changes"
# Expected: State management analysis, re-rendering optimization, debugging guide

# Performance problems
/gb:troubleshoot "React app loading slowly with large component tree"
# Expected: Performance analysis, optimization strategies, code splitting recommendations

# Build failures
/gb:troubleshoot "webpack build failing with dependency conflicts"
# Expected: Dependency analysis, conflict resolution, build optimization

Development Environment Issues

# Setup problems
/gb:troubleshoot "Node.js application not starting after npm install"
# Expected: Environment analysis, dependency troubleshooting, configuration fixes

# Testing failures
/gb:troubleshoot "tests passing locally but failing in CI"
# Expected: Environment comparison, CI configuration analysis, fix recommendations

# Deployment issues
/gb:troubleshoot "application crashes on production deployment"
# Expected: Production environment analysis, configuration validation, deployment fixes

Copy-Paste Quick Solutions

Immediate Project Setup

# New React project with TypeScript
/gb:implement "React TypeScript project with routing, state management, and testing setup"
@agent-frontend-architect "review and optimize the project structure"

# New Node.js API server
/gb:implement "Express.js REST API with JWT authentication and PostgreSQL integration"
@agent-backend-architect "ensure scalability and best practices"

# Python web API
/gb:implement "FastAPI application with async PostgreSQL and authentication middleware"
@agent-python-expert "optimize async patterns and dependency injection"

# Next.js full-stack app
/gb:implement "Next.js 14 application with App Router, TypeScript, and Tailwind CSS"
@agent-system-architect "design optimal data fetching strategy"

Quick Quality Improvements

# Code quality enhancement
/gb:analyze . --focus quality && /gb:implement "code quality improvements"
@agent-quality-engineer "create quality metrics dashboard"

# Security hardening
/gb:analyze . --focus security && /gb:implement "security improvements"

# Test coverage improvement  
/gb:test --focus quality && /gb:implement "additional test coverage"

Common Feature Implementations

# User authentication system
/gb:implement "complete user authentication with registration, login, and password reset"

# File upload functionality
/gb:implement "secure file upload with image resizing and cloud storage"

# Real-time features
/gb:implement "real-time chat with WebSocket and message persistence"

# Payment processing
/gb:implement "Stripe payment integration with subscription management"

# Email functionality
/gb:implement "email service with templates and delivery tracking"

Basic Flag Examples

Analysis Depth Control

# Quick analysis
/gb:analyze src/ --scope file

# Standard analysis
/gb:analyze . --think

# Deep analysis
/gb:analyze . --think-hard --focus architecture

Focus Area Selection

# Security-focused analysis
/gb:analyze . --focus security

# Implementation with specific focus
/gb:implement "API optimization" --focus architecture

# Quality-focused testing
/gb:test --focus quality

Tool Integration

# Use Context7 for official patterns
/gb:implement "React hooks implementation" --c7

# Use Serena for project memory
/gb:analyze . --serena --focus architecture

# Efficient token usage
/gb:analyze large-project/ --uc

Learning Progression Workflow

Week 1: Foundation

# Day 1-2: Basic commands
/gb:analyze . --focus quality
/gb:implement "simple feature"
/gb:test --focus quality

# Day 3-4: Troubleshooting
/gb:troubleshoot "specific problem"
/gb:analyze problem-area/ --focus relevant-domain

# Day 5-7: Integration
/gb:brainstorm "project idea"
/gb:implement "core feature"
/gb:test --focus quality

Week 2: Patterns

# Workflow patterns
/gb:brainstorm โ†’ /gb:analyze โ†’ /gb:implement โ†’ /gb:test

# Problem-solving patterns
/gb:troubleshoot โ†’ /gb:analyze โ†’ /gb:implement

# Quality patterns
/gb:analyze โ†’ /gb:implement โ†’ /gb:test โ†’ /gb:analyze

Week 3-4: Integration

# Multi-step projects
/gb:brainstorm "larger project"
/gb:implement "phase 1"
/gb:test --focus quality
/gb:implement "phase 2"
/gb:test --focus integration

Next Steps

Ready for Intermediate?

  • โ€ข Comfortable with all basic commands
  • โ€ข Can complete simple workflows independently
  • โ€ข Understanding of agent activation and tool selection
  • โ€ข Ready for multi-step projects

Continue Learning:

  • โ€ข Advanced Workflows: Complex orchestration and multi-agent coordination
  • โ€ข Integration Patterns: Framework integration and cross-tool coordination
  • โ€ข Best Practices Guide: Optimization strategies and expert techniques

Success Indicators:

  • โ€ข Can solve common development problems independently
  • โ€ข Understands when to use different flags and focuses
  • โ€ข Can adapt examples to specific project needs
  • โ€ข Ready to explore more complex GemBoost capabilities

Remember: Start simple, practice frequently, and gradually increase complexity. These basic examples form the foundation for all advanced GemBoost usage.