agent-browser-automatiโฆ
Automate browser interactions for development testing using Puppeteer MCP
Intelligent project organization orchestrator with language-specific conventions and parallel analysis
How it fires
How this command gets triggered: by you, by Claude, or both.
/organizeContext preview
What this command does when you run it.
Intelligent project organization orchestrator with language-specific conventions and parallel analysis
allowed-tools: Task, Read, Write, Edit, MultiEdit, Bash(fd:*), Bash(rg:*), Bash(eza:*), Bash(bat:*), Bash(jq:*), Bash(gdate:*), Bash(git:*), Bash(mv:*), Bash(mkdir:*), Bash(rmdir:*) name: "Organize" description: "Intelligent project organization orchestrator with language-specific conventions and parallel analysis" author: "wcygan" tags: ["workflow","manage"] version: "1.0.0" created_at: "2025-07-14T00:00:00Z" updated_at: "2025-07-14T00:00:00Z"
STEP 1: Initialize organization session and analyze project architecture
# Initialize organization session state
echo '{
"sessionId": "'$SESSION_ID'",
"targetDirectory": "'$ARGUMENTS'",
"detectedTechnologies": [],
"organizationStrategy": "auto-detect",
"backupCreated": false,
"changesApplied": []
}' > /tmp/organize-session-$SESSION_ID.jsonSTEP 2: Comprehensive project analysis with parallel sub-agent coordination
TRY:
IF project_complexity == "multi-language" OR directory_structure == "disorganized":
LAUNCH parallel sub-agents for comprehensive project analysis:
ELSE:
EXECUTE streamlined single-language organization workflow:
# Single-language organization workflow echo "๐ Analyzing single-language project organization..."
STEP 3: Safety checkpoint and backup creation
**CRITICAL SAFETY MEASURES:**
# Create git commit before major reorganization if git rev-parse --git-dir >/dev/null 2>&1; then echo "๐ฆ Creating safety commit before reorganization..." git add -A git commit -m "backup: pre-organization snapshot for session $SESSION_ID" || echo "No changes to commit" # Update session state jq '.backupCreated = true' /tmp/organize-session-$SESSION_ID.json > /tmp/organize-session-$SESSION_ID.tmp && mv /tmp/organize-session-$SESSION_ID.tmp /tmp/organize-session-$SESSION_ID.json else echo "โ ๏ธ Not a git repository - manual backup recommended" fi
STEP 4: Language-specific organization implementation
CASE detected_primary_language: WHEN "rust":
**Rust Project Organization:**
# Ensure Cargo.toml and Cargo.lock are in project root
if [ -f "$ARGUMENTS/Cargo.toml" ]; then
echo "๐ฆ Organizing Rust project structure..."
# Create standard Rust directories
mkdir -p "$ARGUMENTS/src"
mkdir -p "$ARGUMENTS/tests"
mkdir -p "$ARGUMENTS/benches"
mkdir -p "$ARGUMENTS/examples"
# Move source files to src/ if not already there
fd "\.rs$" "$ARGUMENTS" -E "src/*" -E "tests/*" -E "benches/*" -E "examples/*" | \
xargs -I {} sh -c 'echo "Moving {} to src/"'
# Verify lib.rs vs main.rs structure
if [ -f "$ARGUMENTS/src/main.rs" ] && [ -f "$ARGUMENTS/src/lib.rs" ]; then
echo "๐ Both lib.rs and main.rs detected - binary with library structure"
fi
fiWHEN "go":
**Go Project Organization:**
# Ensure go.mod and go.sum are in module root
if [ -f "$ARGUMENTS/go.mod" ]; then
echo "๐น Organizing Go project structure..."
# Create standard Go directories
mkdir -p "$ARGUMENTS/cmd"
mkdir -p "$ARGUMENTS/internal"
mkdir -p "$ARGUMENTS/pkg"
mkdir -p "$ARGUMENTS/api"
mkdir -p "$ARGUMENTS/web"
# Organize main packages in cmd/
fd "main\.go$" "$ARGUMENTS" -E "cmd/*" | \
xargs -I {} sh -c 'echo "Consider moving {} to cmd/ directory"'
fiWHEN "java":
**Java Project Organization:**
# Ensure Maven/Gradle files are in project root if [ -f "$ARGUMENTS/pom.xml" ] || [
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