/auto
Automatically detect and load comprehensive project context with intelligent environment analysis
How it fires
How this command gets triggered: by you, by Claude, or both.
- Fires itselfClaude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/auto
Context preview
What this command does when you run it.
Automatically detect and load comprehensive project context with intelligent environment analysis
Command definition
auto.mdallowed-tools: Read, Grep, Glob, Bash(git:*), Bash(rg:*), Bash(fd:*), Bash(jq:*), Bash(bat:*), Bash(eza:*), Bash(gdate:*), TodoWrite, Task
name: "Auto"
description: "Automatically detect and load comprehensive project context with intelligent environment analysis"
author: "wcygan"
tags: ["context","project"]
version: "1.0.0"
created_at: "2025-07-14T00:00:00Z"
updated_at: "2025-07-14T00:00:00Z"
Context
- Session ID: !`gdate +%s%N`
- Current directory: !`pwd`
- Git branch: !`git branch --show-current 2>/dev/null || echo "Not a git repository"`
- Project name: !`basename "$(git rev-parse --show-toplevel 2>/dev/null || pwd)"`
- Recent commits: !`git log --oneline -5 2>/dev/null || echo "No git history"`
- Uncommitted changes: !`git status --porcelain 2>/dev/null | wc -l | tr -d ' ' || echo "0"`
- Active worktrees: !`git worktree list 2>/dev/null | wc -l | tr -d ' ' || echo "0"`
- Language detected: !`if [ -f "deno.json" ] || [ -f "deno.jsonc" ]; then echo "Deno/TypeScript"; elif [ -f "package.json" ]; then echo "Node.js"; elif [ -f "Cargo.toml" ]; then echo "Rust"; elif [ -f "go.mod" ]; then echo "Go"; elif [ -f "pom.xml" ]; then echo "Java/Maven"; elif [ -f "requirements.txt" ] || [ -f "pyproject.toml" ]; then echo "Python"; else echo "Unknown"; fi`
- Framework detected: !`if [ -f "deno.json" ] && rg -q "@fresh/core" deno.json 2>/dev/null; then echo "Fresh"; elif [ -f "package.json" ] && rg -q "next" package.json 2>/dev/null; then echo "Next.js"; elif [ -f "Cargo.toml" ] && rg -q "axum" Cargo.toml 2>/dev/null; then echo "Axum"; elif [ -f "go.mod" ] && rg -q "connect-go" go.mod 2>/dev/null; then echo "ConnectRPC"; else echo "See dependencies"; fi`
- Issue context available: !`BRANCH=$(git branch --show-current 2>/dev/null); PROJECT=$(basename $(git rev-parse --show-toplevel 2>/dev/null || pwd)); if [ -f "/tmp/$PROJECT/$BRANCH-issue-context.md" ]; then echo "✓ Available"; else echo "✗ None"; fi`
- PLAN.md exists: !`if [ -f "PLAN.md" ]; then echo "✓ Available"; else echo "✗ None"; fi`
- CLAUDE.md exists: !`if [ -f "CLAUDE.md" ]; then echo "✓ Project-specific"; elif [ -f "$HOME/.claude/CLAUDE.md" ]; then echo "✓ Global only"; else echo "✗ None"; fi`
Your Task
**IMMEDIATELY DEPLOY 8 PARALLEL CONTEXT-LOADING AGENTS** for ultra-fast comprehensive project context discovery: **$ARGUMENTS** (optional focus area)
Think deeply about comprehensive project context while maximizing parallel execution for 8x speedup.
**CRITICAL**: Launch ALL agents simultaneously in first response - NO sequential processing.
Parallel Context Loading Framework
STEP 1: **LAUNCH ALL 8 AGENTS SIMULTANEOUSLY**
**NO SEQUENTIAL PROCESSING** - Deploy these specialized context agents in parallel:
1. **Project Structure Agent**: Analyze build files, dependencies, project architecture, and technology stack 2. **Documentation Discovery Agent**: Load PLAN.md, CLAUDE.md, README.md, docs/ directories, and coordination files 3. **Git History & Branch Agent**: Analyze commits, branch patterns, issue context, and development workflow 4. **Environment & Services Agent**: Detect Docker services, database connections, port configurations, and external dependencies 5. **Testing Strategy Agent**: Identify test frameworks, coverage patterns, CI/CD setup, and testing workflows 6. **Development Commands Agent**: Extract deno.json tasks, package.json scripts, cargo commands, and build processes 7. **Configuration Analysis Agent**: Process .env files, config directories, deployment settings, and environment setup 8. **Integration Points Agent**: Find API endpoints, service mesh, external integrations, and coordination patterns
**Expected speedup**: 8x faster than sequential context loading.
STEP 2: Initialize Parallel Session Management
// /tmp/auto-context-$SESSION_ID.json
{
"sessionId": "$SESSION_ID",
"timestamp": "ISO_8601_TIMESTAMP",
"project": {
"name": "detected_project_name",
"path": "absolute_project_path",
"language": "detected_language",
"framework": "detected_framework",
"type": "standalone|worktree|submodule|monorepo"
},
"context_sources": {
"issue_context": "path_or_null",
"plan_md": "boolean",
"claude_md": "path_or_null",
"coordination_files": ["list_of_files"],
"documentation": ["discovered_docs"]
},
"loaded_context": {},
"todos_generated": [],
"phase": "parallel_loading"
}STEP 3: Parallel Context Discovery & Analysis
**ALL AGENTS WORK CONCURRENTLY:**
**Context Discovery Execution:**
# Project structure and dependencies
fd . -t f -e json -e toml -e xml -e yaml -e txt | rg "(deno\.json|package\.json|Cargo\.toml|go\.mod|pom\.xml|requirements\.txt)"
# Documentation sources
fd . -t f -e md | rg "(README|PLAN|CLAUDE|CONTRIBUTING|CHANGELOG)"
# Configuration and environment files
fd . -t f -e env -e conf -e yaml -e json | rg "(docker|config|env|settings)"
# Testing and build files
fd . -t f | rg "(test|spec|build|ci|Dockerfile)"
TRY: Launch all 8 parallel agents for comprehensive context analysis Execute concurrent discovery across all project aspects Synthesize findings from all agent results Generate intelligent todos based on discovered context Update session state: phase = "context_loaded"
CATCH (agent_failures): Continue with available agent results Document failed context sources Provide partial analysis with gaps identified Generate basic setup todos for missing context
FINALLY: Aggregate all parallel agent findings Create comprehensive project understanding Generate TodoWrite list based on discovered context and project state Save context cache: `/tmp/auto-context-cache-$SESSION_ID.json` Clean up temporary analysis files
STEP 4: **Parallel Results Synthesis**
WAIT for ALL 8 agents to complete context loading AGGREGATE findings from all parallel streams:
- Project architecture and technology stack
- Complete documentation inventory
- Development workflow patterns
- Environment and service configurations
- Test
Read more
allowed-tools: Read, Grep, Glob, Bash(git:*), Bash(rg:*), Bash(fd:*), Bash(jq:*), Bash(bat:*), Bash(eza:*), Bash(gdate:*), TodoWrite, Task name: "Auto" description: "Automatically detect and load comprehensive project context with intelligent environment analysis" author: "wcygan" tags: ["context","project"] version: "1.0.0" created_at: "2025-07-14T00:00:00Z" updated_at: "2025-07-14T00:00:00Z"
Context
- Session ID: !`gdate +%s%N`
- Current directory: !`pwd`
- Git branch: !`git branch --show-current 2>/dev/null || echo "Not a git repository"`
- Project name: !`basename "$(git rev-parse --show-toplevel 2>/dev/null || pwd)"`
- Recent commits: !`git log --oneline -5 2>/dev/null || echo "No git history"`
- Uncommitted changes: !`git status --porcelain 2>/dev/null | wc -l | tr -d ' ' || echo "0"`
- Active worktrees: !`git worktree list 2>/dev/null | wc -l | tr -d ' ' || echo "0"`
- Language detected: !`if [ -f "deno.json" ] || [ -f "deno.jsonc" ]; then echo "Deno/TypeScript"; elif [ -f "package.json" ]; then echo "Node.js"; elif [ -f "Cargo.toml" ]; then echo "Rust"; elif [ -f "go.mod" ]; then echo "Go"; elif [ -f "pom.xml" ]; then echo "Java/Maven"; elif [ -f "requirements.txt" ] || [ -f "pyproject.toml" ]; then echo "Python"; else echo "Unknown"; fi`
- Framework detected: !`if [ -f "deno.json" ] && rg -q "@fresh/core" deno.json 2>/dev/null; then echo "Fresh"; elif [ -f "package.json" ] && rg -q "next" package.json 2>/dev/null; then echo "Next.js"; elif [ -f "Cargo.toml" ] && rg -q "axum" Cargo.toml 2>/dev/null; then echo "Axum"; elif [ -f "go.mod" ] && rg -q "connect-go" go.mod 2>/dev/null; then echo "ConnectRPC"; else echo "See dependencies"; fi`
- Issue context available: !`BRANCH=$(git branch --show-current 2>/dev/null); PROJECT=$(basename $(git rev-parse --show-toplevel 2>/dev/null || pwd)); if [ -f "/tmp/$PROJECT/$BRANCH-issue-context.md" ]; then echo "✓ Available"; else echo "✗ None"; fi`
- PLAN.md exists: !`if [ -f "PLAN.md" ]; then echo "✓ Available"; else echo "✗ None"; fi`
- CLAUDE.md exists: !`if [ -f "CLAUDE.md" ]; then echo "✓ Project-specific"; elif [ -f "$HOME/.claude/CLAUDE.md" ]; then echo "✓ Global only"; else echo "✗ None"; fi`
Your Task
**IMMEDIATELY DEPLOY 8 PARALLEL CONTEXT-LOADING AGENTS** for ultra-fast comprehensive project context discovery: **$ARGUMENTS** (optional focus area)
Think deeply about comprehensive project context while maximizing parallel execution for 8x speedup.
**CRITICAL**: Launch ALL agents simultaneously in first response - NO sequential processing.
Parallel Context Loading Framework
STEP 1: **LAUNCH ALL 8 AGENTS SIMULTANEOUSLY**
**NO SEQUENTIAL PROCESSING** - Deploy these specialized context agents in parallel:
1. **Project Structure Agent**: Analyze build files, dependencies, project architecture, and technology stack 2. **Documentation Discovery Agent**: Load PLAN.md, CLAUDE.md, README.md, docs/ directories, and coordination files 3. **Git History & Branch Agent**: Analyze commits, branch patterns, issue context, and development workflow 4. **Environment & Services Agent**: Detect Docker services, database connections, port configurations, and external dependencies 5. **Testing Strategy Agent**: Identify test frameworks, coverage patterns, CI/CD setup, and testing workflows 6. **Development Commands Agent**: Extract deno.json tasks, package.json scripts, cargo commands, and build processes 7. **Configuration Analysis Agent**: Process .env files, config directories, deployment settings, and environment setup 8. **Integration Points Agent**: Find API endpoints, service mesh, external integrations, and coordination patterns
**Expected speedup**: 8x faster than sequential context loading.
STEP 2: Initialize Parallel Session Management
// /tmp/auto-context-$SESSION_ID.json
{
"sessionId": "$SESSION_ID",
"timestamp": "ISO_8601_TIMESTAMP",
"project": {
"name": "detected_project_name",
"path": "absolute_project_path",
"language": "detected_language",
"framework": "detected_framework",
"type": "standalone|worktree|submodule|monorepo"
},
"context_sources": {
"issue_context": "path_or_null",
"plan_md": "boolean",
"claude_md": "path_or_null",
"coordination_files": ["list_of_files"],
"documentation": ["discovered_docs"]
},
"loaded_context": {},
"todos_generated": [],
"phase": "parallel_loading"
}STEP 3: Parallel Context Discovery & Analysis
**ALL AGENTS WORK CONCURRENTLY:**
**Context Discovery Execution:**
# Project structure and dependencies fd . -t f -e json -e toml -e xml -e yaml -e txt | rg "(deno\.json|package\.json|Cargo\.toml|go\.mod|pom\.xml|requirements\.txt)" # Documentation sources fd . -t f -e md | rg "(README|PLAN|CLAUDE|CONTRIBUTING|CHANGELOG)" # Configuration and environment files fd . -t f -e env -e conf -e yaml -e json | rg "(docker|config|env|settings)" # Testing and build files fd . -t f | rg "(test|spec|build|ci|Dockerfile)"
TRY: Launch all 8 parallel agents for comprehensive context analysis Execute concurrent discovery across all project aspects Synthesize findings from all agent results Generate intelligent todos based on discovered context Update session state: phase = "context_loaded"
CATCH (agent_failures): Continue with available agent results Document failed context sources Provide partial analysis with gaps identified Generate basic setup todos for missing context
FINALLY: Aggregate all parallel agent findings Create comprehensive project understanding Generate TodoWrite list based on discovered context and project state Save context cache: `/tmp/auto-context-cache-$SESSION_ID.json` Clean up temporary analysis files
STEP 4: **Parallel Results Synthesis**
WAIT for ALL 8 agents to complete context loading AGGREGATE findings from all parallel streams:
- Project architecture and technology stack
- Complete documentation inventory
- Development workflow patterns
- Environment and service configurations
- Test
A lightweight (~46kB) and comprehensive CLI tool for managing Claude commands, configurations, and workflows.
Repo: kiliczsh/claude-cmd
Other commands on claude-cmd.
- /agent-browser-automation
Automate browser interactions for development testing using Puppeteer MCP
Open command - /agent-prep-merge
Prepare branches for merging across multiple worktrees and coordinate integration
Open command - /agent-persona-accessibility-expert
Transform into accessibility expert for WCAG compliance and inclusive design
Open command - /agent-persona-api-designer
Transform into an API design specialist who creates well-structured, developer-friendly APIs
Open command - /agent-persona-backend-specialist
Transform into backend specialist for scalable API and system design
Open command - /agent-persona-cloud-architect
Cloud architect persona for designing scalable, secure cloud infrastructure using modern cloud-native technologies
Open command

