npx claudepluginhub cure-consulting-group/productengineeringskillsDefined in hooks/hooks.json
auto|manualecho 'CONTEXT RE-INJECTION AFTER COMPACTION:\n\nCure Consulting Group Standards (always apply):\n- Clean Architecture: domain (pure logic) / data (DTOs + repos) / presentation (VMs + UI)\n- Android: Kotlin + Compose + Hilt + MVI + Coroutines/Flow\n- iOS: Swift + SwiftUI + MVVM + structured concurrency\n- Web: Next.js App Router + TypeScript strict + Tailwind + Server Components by default\n- Firebase: Firestore + Cloud Functions v2 (TypeScript) + security rules deny-by-default\n- Python: 3.11+, type hints, pydantic, pytest, asyncio\n- Go: 1.22+, interface-based, errgroup, table-driven tests\n- Rust: 2021 edition, thiserror/anyhow, clippy pedantic, tokio\n- SQL: parameterized queries, timestamptz, reversible migrations\n- Docker: multi-stage, non-root, health checks, pinned images\n- Terraform: remote state + locking, plan before apply, prevent_destroy on critical resources\n- Testing: 80% coverage minimum on new code\n- Security: validate all inputs, no hardcoded secrets, parameterized queries\n\nAvailable skills (64 total):\n\nProduct & Strategy: product-manager, product-design, market-research, go-to-market, product-marketing, customer-onboarding, seo-content-engine\n\nEngineering & Architecture: sdlc, android-feature-scaffold, ios-architect, nextjs-feature-scaffold, firebase-architect, api-architect, api-gateway, stripe-integration, ai-feature-builder, llmops, database-architect, data-migration, infrastructure-scaffold, edge-computing, micro-frontends, offline-first, i18n, notification-architect\n\nQuality & Security: feature-audit, testing-strategy, e2e-testing, test-accounts, uat, security-review, compliance-architect, accessibility-audit, performance-review, chaos-engineering, green-software\n\nOperations & Delivery: project-bootstrap, project-manager, ci-cd-pipeline, release-management, feature-flags, observability, dora-metrics, analytics-implementation, incident-response, disaster-recovery, growth-engineering, design-system\n\nBusiness & Finance: engineering-cost-model, saas-financial-model, finops, investor-reporting, fundraising-materials, burn-rate-tracker, legal-doc-scaffold\n\nPortfolio Management: portfolio-registry, technology-radar\n\nConsulting Operations: client-handoff, client-communication, proposal-generator\n\nDesign: android-design-expert, ios-design-expert, web-design-expert, stitch-design\n\nAgents (30):\n Engineering: code-reviewer, test-runner, pr-reviewer, refactor-assistant, ci-debugger, release-coordinator, doc-generator, codebase-explainer, migration-validator, deployment-validator, dependency-auditor, api-validator, project-bootstrapper\n Product: product-analyst, ux-researcher, roadmap-strategist, competitive-intel\n Marketing: content-strategist, campaign-analyst, brand-guardian, growth-analyst\n Business: financial-analyst, market-intelligence, investor-relations, contract-reviewer\n Data: data-analyst, metrics-dashboard, ab-test-analyst\n Security: accessibility-checker, firebase-security-auditor\n\nRun /cure-product-engineering:<skill> to invoke any skill.'Edit|WriteFILE=$(echo $CLAUDE_TOOL_INPUT | python3 -c "import sys,json; d=json.load(sys.stdin); print(d.get('file_path',''))" 2>/dev/null); if [ -n "$FILE" ]; then case "$FILE" in *.env|*.env.*) echo 'BLOCKED: Do not modify .env files directly. Use environment variable management.' >&2; exit 2 ;; *-lock.json|*-lock.yaml|*.lock|*shrinkwrap*) echo 'BLOCKED: Lock files should only be modified by package managers, not manually.' >&2; exit 2 ;; */credentials*|*/secrets*|*serviceAccount*|*service-account*|*.pem|*id_rsa*|*id_ed25519*) echo 'BLOCKED: Credential and secret files must not be modified by AI. Manage these manually.' >&2; exit 2 ;; *.tfstate|*.tfstate.*) echo 'BLOCKED: Terraform state files must never be manually edited. Use terraform state commands.' >&2; exit 2 ;; esac; fi; exit 0BashCMD=$(echo $CLAUDE_TOOL_INPUT | python3 -c "import sys,json; d=json.load(sys.stdin); print(d.get('command',''))" 2>/dev/null); case "$CMD" in *'rm -rf /'*|*'rm -rf /*'*|*'rm -rf ~'*) echo 'BLOCKED: Destructive system-wide delete prevented.' >&2; exit 2 ;; *'--force'*push*main*|*'--force'*push*master*|*'push --force'*main*|*'push --force'*master*) echo 'BLOCKED: Force push to main/master is not allowed. Use a feature branch.' >&2; exit 2 ;; *'git reset --hard'*) echo 'BLOCKED: git reset --hard can destroy uncommitted work. Use git stash or git checkout for specific files.' >&2; exit 2 ;; *'git clean -f'*|*'git clean -fd'*|*'git clean -fdx'*) echo 'BLOCKED: git clean can permanently delete untracked files. Review with git clean -n first.' >&2; exit 2 ;; *'drop table'*|*'DROP TABLE'*|*'drop database'*|*'DROP DATABASE'*|*'TRUNCATE'*|*'truncate'*) echo 'BLOCKED: Destructive database operations require manual confirmation outside Claude.' >&2; exit 2 ;; *firebase*deploy*'--project'*prod*|*firebase*deploy*production*) echo 'BLOCKED: Direct production Firebase deployment blocked. Use CI/CD pipeline instead.' >&2; exit 2 ;; *'kubectl delete'*namespace*|*'kubectl delete'*deployment*prod*) echo 'BLOCKED: Destructive Kubernetes operations on production blocked. Use CI/CD pipeline.' >&2; exit 2 ;; *'gcloud'*delete*'--project'*prod*|*'aws'*'--profile'*prod*delete*) echo 'BLOCKED: Destructive cloud operations on production blocked. Use infrastructure-scaffold skill for safe IaC changes.' >&2; exit 2 ;; *'terraform destroy'*) echo 'BLOCKED: terraform destroy is blocked. Use targeted resource removal with terraform state rm + plan.' >&2; exit 2 ;; esac; exit 0Edit|WriteBashauto|manualecho 'Context compacted. Cure Consulting Group plugin active — 64 skills, 31 agents available. Use /cure-product-engineering:<skill-name> to invoke.'Edit|WriteFILE=$(echo $CLAUDE_TOOL_INPUT | python3 -c "import sys,json; d=json.load(sys.stdin); print(d.get('file_path',''))" 2>/dev/null); if [ -n "$FILE" ]; then case "$FILE" in *.kt|*.java) echo '{"reminder": "Android file modified. Consider running /cure-product-engineering:feature-audit and /cure-product-engineering:testing-strategy if feature is complete.", "suggested_agents": ["code-reviewer", "test-runner"]}' ;; *.swift) echo '{"reminder": "iOS file modified. Consider running /cure-product-engineering:feature-audit and /cure-product-engineering:testing-strategy if feature is complete.", "suggested_agents": ["code-reviewer", "test-runner"]}' ;; *.tsx|*.ts|*.jsx|*.js) echo '{"reminder": "Web file modified. Consider running /cure-product-engineering:feature-audit and /cure-product-engineering:testing-strategy if feature is complete.", "suggested_agents": ["code-reviewer", "test-runner", "brand-guardian"]}' ;; */functions/*|*/firestore*|*.rules) echo '{"reminder": "Firebase file modified. Run firebase-security-auditor agent for security validation.", "suggested_agents": ["firebase-security-auditor", "code-reviewer"]}' ;; */docker*|*/Dockerfile|*compose*) echo '{"reminder": "Infrastructure file modified. Run deployment-validator agent before deploying.", "suggested_agents": ["deployment-validator"]}' ;; *.sql|*/migrations/*) echo '{"reminder": "Database migration modified. Run migration-validator agent before applying.", "suggested_agents": ["migration-validator", "data-analyst"]}' ;; *.tf|*.tfvars) echo '{"reminder": "Terraform file modified. Run terraform plan before applying. Run deployment-validator agent for validation.", "suggested_agents": ["deployment-validator"]}' ;; *.py) echo '{"reminder": "Python file modified. Ensure type hints, pytest tests, and pydantic models follow Cure standards.", "suggested_agents": ["code-reviewer", "test-runner"]}' ;; *.go) echo '{"reminder": "Go file modified. Ensure error handling with %w wrapping, table-driven tests, and interface-based design.", "suggested_agents": ["code-reviewer", "test-runner"]}' ;; *.rs) echo '{"reminder": "Rust file modified. Run cargo clippy and cargo test. No .unwrap() in production code.", "suggested_agents": ["code-reviewer", "test-runner"]}' ;; .github/workflows/*) echo '{"reminder": "CI/CD workflow modified. Verify action versions are pinned to SHA and secrets are not logged.", "suggested_agents": ["ci-debugger", "deployment-validator"]}' ;; *.md|*/docs/*) echo '{"reminder": "Documentation modified. Run doc-generator agent to validate consistency.", "suggested_agents": ["doc-generator"]}' ;; */i18n/*|*/locales/*|*/translations/*) echo '{"reminder": "Localization file modified. Check all locale files are in sync.", "suggested_agents": ["brand-guardian"]}' ;; */test*|*spec*|*__tests__*) echo '{"reminder": "Test file modified. Run test-runner agent to validate suite health.", "suggested_agents": ["test-runner"]}' ;; esac; fiBashCMD=$(echo $CLAUDE_TOOL_INPUT | python3 -c "import sys,json; d=json.load(sys.stdin); print(d.get('command',''))" 2>/dev/null); case "$CMD" in *'npm test'*|*'npx vitest'*|*'npx jest'*|*'pytest'*|*'cargo test'*|*'./gradlew test'*) echo '{"post_test": "Tests executed. If failures found, run ci-debugger agent for diagnosis. If all pass and feature is complete, consider pr-reviewer agent.", "suggested_agents": ["ci-debugger", "pr-reviewer"]}' ;; *'npm install'*|*'npm add'*|*'yarn add'*|*'pip install'*|*'cargo add'*) echo '{"post_install": "New dependency added. Run dependency-auditor agent to check for vulnerabilities and license compliance.", "suggested_agents": ["dependency-auditor"]}' ;; *'npm audit'*|*'pip audit'*|*'cargo audit'*) echo '{"post_audit": "Security audit complete. Review findings and upgrade vulnerable packages.", "suggested_agents": ["dependency-auditor"]}' ;; *'terraform plan'*) echo '{"post_plan": "Terraform plan generated. Run deployment-validator agent before applying.", "suggested_agents": ["deployment-validator"]}' ;; *'firebase deploy'*) echo '{"post_deploy": "Firebase deployment executed. Run smoke tests and monitor error rates. Use metrics-dashboard agent to verify health.", "suggested_agents": ["metrics-dashboard", "firebase-security-auditor"]}' ;; *'docker build'*) echo '{"post_build": "Docker image built. Run deployment-validator agent to verify image security before pushing.", "suggested_agents": ["deployment-validator", "dependency-auditor"]}' ;; *'gh pr create'*|*'gh pr merge'*) echo '{"post_pr": "PR action completed. Run pr-reviewer agent for automated review.", "suggested_agents": ["pr-reviewer", "code-reviewer"]}' ;; *'git tag'*|*'gh release'*) echo '{"post_release": "Release action detected. Run release-coordinator agent for full release validation.", "suggested_agents": ["release-coordinator"]}' ;; esacecho '{"notification_logged": true}'startupecho 'Cure Consulting Group ProductEngineeringSkills plugin loaded (v4.0.0). 64 skills, 31 agents, 11 rules, 9 output styles, 4 MCP servers, 2 LSP servers. Use /cure-product-engineering:<skill-name> to invoke. Run /cure-product-engineering:project-bootstrap to set up a new project.'startupecho "Git branch: $(git branch --show-current 2>/dev/null || echo 'not a git repo'). Uncommitted changes: $(git status --porcelain 2>/dev/null | wc -l | tr -d ' '). Last commit: $(git log --oneline -1 2>/dev/null || echo 'none')."startupif [ -f package.json ]; then OUTDATED=$(npm outdated --json 2>/dev/null | python3 -c "import sys,json; d=json.load(sys.stdin); print(len(d))" 2>/dev/null || echo '0'); if [ "$OUTDATED" -gt 0 ] 2>/dev/null; then echo "Dependency check: $OUTDATED outdated packages. Consider running dependency-auditor agent."; fi; fistartupecho '\nAvailable Agents (30):\n Engineering: code-reviewer, test-runner, pr-reviewer, refactor-assistant, ci-debugger, release-coordinator, doc-generator, codebase-explainer, migration-validator, deployment-validator, dependency-auditor, api-validator, project-bootstrapper\n Product: product-analyst, ux-researcher, roadmap-strategist, competitive-intel\n Marketing: content-strategist, campaign-analyst, brand-guardian, growth-analyst\n Business: financial-analyst, market-intelligence, investor-relations, contract-reviewer\n Data: data-analyst, metrics-dashboard, ab-test-analyst\n Security: accessibility-checker, firebase-security-auditor'echo 'Agent completed. Review output against Cure Consulting Group quality standards. If code was modified, consider running: test-runner (verify tests), code-reviewer (quality check), pr-reviewer (if ready for PR).'AGENT=$(echo $CLAUDE_TOOL_INPUT | python3 -c "import sys,json; d=json.load(sys.stdin); print(d.get('name', d.get('subagent_type', 'unknown')))" 2>/dev/null || echo 'unknown'); echo "Agent [$AGENT] started. Cure Consulting Group standards apply — Clean Architecture, 80% coverage, no hardcoded secrets. Available companion agents: code-reviewer, test-runner, pr-reviewer, deployment-validator."echo 'Task completed. Quality checklist: (1) Tests pass and coverage >= 80%? (2) Security review done for sensitive changes? (3) Documentation updated? (4) Brand consistency checked for UI changes? Suggested agents: test-runner, code-reviewer, doc-generator, brand-guardian.'PROMPT=$(echo $CLAUDE_TOOL_INPUT | python3 -c "import sys,json; d=json.load(sys.stdin); print(d.get('prompt','').lower()[:500])" 2>/dev/null); case "$PROMPT" in *'delete all'*|*'drop all'*|*'remove everything'*|*'wipe'*|*'nuke'*) echo '{"warning": "Destructive operation detected in prompt. Proceeding with caution — will confirm before any irreversible actions."}' ;; esac; exit 0BashCMD=$(echo $CLAUDE_TOOL_INPUT | python3 -c "import sys,json; d=json.load(sys.stdin); print(d.get('command',''))" 2>/dev/null); case "$CMD" in *'npm test'*|*'npx vitest'*|*'pytest'*|*'cargo test'*|*'./gradlew test'*) echo '{"recovery": "Tests failed. Run ci-debugger agent for automated diagnosis and fix suggestions.", "auto_agent": "ci-debugger"}' ;; *'npm run build'*|*'npx tsc'*|*'cargo build'*|*'./gradlew build'*) echo '{"recovery": "Build failed. Run ci-debugger agent for diagnosis. Check for type errors, missing imports, or incompatible dependencies.", "auto_agent": "ci-debugger"}' ;; *'terraform'*) echo '{"recovery": "Terraform command failed. Check state lock, credentials, and resource quotas. Run deployment-validator for full diagnostic.", "auto_agent": "deployment-validator"}' ;; *'docker build'*) echo '{"recovery": "Docker build failed. Check Dockerfile syntax, base image availability, and build context.", "auto_agent": "ci-debugger"}' ;; *'npm install'*|*'pip install'*|*'cargo add'*) echo '{"recovery": "Package installation failed. Run dependency-auditor agent to diagnose version conflicts.", "auto_agent": "dependency-auditor"}' ;; *'gh pr'*|*'gh run'*|*'gh release'*) echo '{"recovery": "GitHub CLI command failed. Check authentication, permissions, and remote branch state."}' ;; esac{"riskFlags": {"touchesBash": true, "matchAllTools": false, "touchesFileWrites": true}, "typeStats": {"agent": 1, "prompt": 3, "command": 16}, "eventStats": {"Stop": 1, "PreCompact": 1, "PreToolUse": 4, "PostCompact": 1, "PostToolUse": 2, "Notification": 1, "SessionStart": 4, "SubagentStop": 1, "SubagentStart": 1, "TaskCompleted": 1, "UserPromptSubmit": 2, "PostToolUseFailure": 1}, "originCounts": {"absolutePaths": 0, "pluginScripts": 0, "projectScripts": 0}, "timeoutStats": {"commandsWithoutTimeout": 16}}