agent-browser-automati…
Automate browser interactions for development testing using Puppeteer MCP
Navigate intelligently between related files across the codebase
How it fires
How this command gets triggered: by you, by Claude, or both.
/relatedContext preview
What this command does when you run it.
Navigate intelligently between related files across the codebase
allowed-tools: Read, Grep, Glob, Bash(fd:*), Bash(rg:*), Bash(bat:*), Edit, MultiEdit name: "Related" description: "Navigate intelligently between related files across the codebase" author: "wcygan" tags: ["code","navigate"] version: "1.0.0" created_at: "2025-07-14T00:00:00Z" updated_at: "2025-07-14T00:00:00Z"
Intelligently navigate between related files in the codebase, understanding patterns like test files, API endpoints, components, migrations, and more.
STEP 1: Parse arguments and determine navigation intent
Arguments: $ARGUMENTS
Parse navigation request:
Navigation types: test, impl, api, component, migration, config, style, story
STEP 2: Analyze target file context and patterns
Create context analysis: `/tmp/navigation-context-$SESSION_ID.json`
Determine file characteristics:
File pattern detection:
{
"target_file": "$ARGUMENTS",
"session_id": "$SESSION_ID",
"file_type": "test|impl|api|component|model|config",
"framework": "detected_framework",
"patterns": {
"test_patterns": ["*.test.ts", "*_test.go", "*.spec.js"],
"api_patterns": ["api/*", "routes/*", "handlers/*"],
"component_patterns": ["components/*", "*.tsx", "*.jsx"]
}
}STEP 3: Execute intelligent file discovery based on action type
CASE action: WHEN "discover_all":
**CRITICAL: Launch parallel sub-agents for maximum performance (8-10x faster discovery)**
IMMEDIATELY deploy 5 parallel sub-agents for comprehensive file discovery:
**Sub-Agent Coordination:**
WHEN "find_related":
WHEN "test":
WHEN "impl":
WHEN "api":
WHEN "component":
STEP 4: Smart file pattern matching and discovery
FOR EACH navigation type, execute pattern-based search:
**Test File Discovery Patterns:**
# From implementation to test
target_base=$(basename "$target_file" .ts)
target_dir=$(dirname "$target_file")
# Search patterns in order of preference
fd "${target_base}\\.(test|spec)\\.(ts|js|tsx|jsx)$" "$target_dir"
fd "${target_base}\\.(test|spec)\\.(ts|js|tsx|jsx)$" "tests/"
fd "${target_base}\\.(test|spec)\\.(ts|js|tsx|jsx)$" "__tests__/"**API Endpoint Discovery:**
# Find API routes and handlers rg -l "(router\\.(get|post|put|delete)|app\\.(get|post))" ap
A lightweight (~46kB) and comprehensive CLI tool for managing Claude commands, configurations, and workflows.
Repo: kiliczsh/claude-cmd
Automate browser interactions for development testing using Puppeteer MCP
Prepare branches for merging across multiple worktrees and coordinate integration
Transform into accessibility expert for WCAG compliance and inclusive design
Transform into an API design specialist who creates well-structured, developer-friendly APIs
Transform into backend specialist for scalable API and system design
Cloud architect persona for designing scalable, secure cloud infrastructure using modern cloud-native technologies