agent-browser-automati…
Automate browser interactions for development testing using Puppeteer MCP
Ultra-fast parallel database schema analysis using 8 sub-agents for comprehensive coverage
How it fires
How this command gets triggered: by you, by Claude, or both.
/schemaContext preview
What this command does when you run it.
Ultra-fast parallel database schema analysis using 8 sub-agents for comprehensive coverage
allowed-tools: Read, Write, Edit, Bash, Task name: "Schema" description: "Ultra-fast parallel database schema analysis using 8 sub-agents for comprehensive coverage" author: "wcygan" tags: ["analyze","code"] version: "1.0.0" created_at: "2025-07-14T00:00:00Z" updated_at: "2025-07-14T00:00:00Z"
**IMMEDIATELY DEPLOY 8 PARALLEL SUB-AGENTS** for instant comprehensive database analysis
STEP 1: Initialize Schema Management Session
Arguments: $ARGUMENTS
STEP 2: **LAUNCH ALL 8 AGENTS SIMULTANEOUSLY**
**NO SEQUENTIAL ANALYSIS** - All agents work in parallel:
1. **Schema Discovery Agent**: Analyze existing database schemas and tables 2. **Migration Analysis Agent**: Scan migration history and pending changes 3. **ORM Detection Agent**: Identify ORM frameworks and patterns 4. **Relationship Mapping Agent**: Map foreign keys and constraints 5. **CRUD Generation Agent**: Generate repository patterns for all entities 6. **Data Seeding Agent**: Create realistic test data generators 7. **Index Optimization Agent**: Analyze query patterns and indexes 8. **API Generation Agent**: Create REST/GraphQL endpoints
Each agent saves results to: `/tmp/schema-results-$SESSION_ID/agent-N.json`
**Expected speedup: 8x faster schema analysis and code generation**
Analyze current project to determine:
Create context file: `/tmp/schema-context-$SESSION_ID.json`
STEP 3: Execute specific action based on detected context
CASE action: WHEN "migration":
WHEN "crud_generation":
WHEN "data_seeding":
WHEN "schema_analysis":
STEP 4: Handle framework-specific implementation
Database Tool Detection:
ORM Pattern Recognition:
STEP 5: Generate appropriate code/files
Based on detected tools and patterns:
STEP 6: Validation and safety checks
STEP 7: Report results and cleanup
-- migrations/000001_create_users.up.sql
CREATE TABLE users (
id SERIAL PRIMARY KEY,
email VARCHAR(255) NOT NULL UNIQUE,
created_at TIMESTAMP DEFAULT NOW()
);
-- migrations/000001_create_users.down.sql
DROP TABLE users;// migrations/create_users/up.sql
CREATE TABLE users (
id SERIAL PRIMARY KEY,
email VARCHAR NOT NULL UNIQUE,
created_at TIMESTAMP NOT NULL DEFAULT NOW()
);-- V1__Create_users_table.sql
CREATE TABLE users (
id BIGINT AUTO_INCREMENT PRIMARY KEY,
email VARCHAR(255) NOT NULL UNIQUE,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
);type UserRepository struct {
db *sqlx.DB
}
func (r *UserRepository) Create(ctx context.Context, user *User) error {
query := `INSERT INTO users (email) VALUES ($1) RETURNING id`
return r.db.QueryRowContext(ctx, query, user.Email).Scan(&user.ID)
}impl UserRepository {
pub async fn create(&self, user: &User) -> Result<User, sqlx::Error> {
let row = sqlx::query_as!(
User,
"INSERT INTO users (email) VALUES ($1) RETURNING *",
user.email
)
.fetch_one(&self.pool)
.await?;
Ok(row)
}
}@Repository
public interface UserRepository extends JpaRepository<User, Long> {
Optional<User> findByEmail(String email);
}Session state file: `/tmp/schema-state-$SESSION_ID.json`
{
"session_id": "$SESSION_ID",
"action": "migration",
"detected_tools": ["golang-migrate", "sqlx"],
"database_type": "postgres",
"generated_files": [
"migrations/000001_create_users.up.sql",
"migrations/000001_create_users.down.sql"
],
"status": "completed"
}TRY:
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