agent-browser-automati…
CommandAutomate browser interactions for development testing using Puppeteer MCP
Convert existing shell scripts to Deno TypeScript scripts with cross-platform compatibility and type safety
allowed-tools: Read, Write, Edit, MultiEdit, Task, Bash(fd:*), Bash(rg:*), Bash(jq:*), Bash(gdate:*), Bash(eza:*) name: "Deno Ify" description: "Convert existing shell scripts to Deno TypeScript scripts with cross-platform compatibility and type safety" author: "wcygan" tags: ["code","migrate"] version: "1.0.0" created_at: "2025-07-14T00:00:00Z" updated_at: "2025-07-14T00:00:00Z"
Think deeply about shell script modernization strategy, cross-platform compatibility, and type-safe automation patterns.
STEP 1: Shell Script Discovery and Analysis
STEP 2: Migration Strategy Planning
STEP 3: State Management and Session Tracking
STEP 4: Migration Execution Strategy
CASE migration_complexity: WHEN "simple" (1-5 scripts):
WHEN "moderate" (6-20 scripts):
WHEN "complex" (20+ scripts OR high interdependencies):
STEP 5: Conversion Workflow Implementation
TRY:
CATCH (dax_compatibility_issues):
CATCH (permission_configuration_errors):
CATCH (dependency_resolution_failures):
FINALLY:
STEP 6: Validation and Testing Framework
// /tmp/deno-migration-$SESSION_ID.json
{
"sessionId": "$SESSION_ID",
"timestamp": "ISO_8601_TIMESTAMP",
"target_directory": "$ARGUMENTS",
"migration_phase": "discovery|planning|conversion|validation|complete",
"discovered_scripts": [
{
"path": "relative/path/to/script.sh",
"complexity": "simple|moderate|complex",
"dependencies": ["external_command1", "external_command2"],
"functionality": "build|deploy|utility|test|config",
"status": "pending|in-progress|converted|tested|validated"
}
],
"conversion_strategy": {
"approach": "sequential|parallel|multi-phase",
"sub_agents_required": "number_of_agents",
"estimated_duration": "time_estimate",
"complexity_factors": ["interdependencies", "external_tools", "platform_specific"]
},
"generated_artifacts": {
"scripts_directory": "/scripts",
"deno_config": "deno.json",
"converted_scripts": [],
"task_definitions": [],
"documentation": []
},
"validation_results": {
"functionality_preserved": "boolean",
"cross_platform_tested": "boolean",
"performance_comparison": "before_vs_after_metrics",
"type_safety_improvements": "typescript_benefits"
},
"checkpoints": {
"last_checkpoint": "cheA lightweight (~46kB) and comprehensive CLI tool for managing Claude commands, configurations, and workflows.
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
Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.