claude-flow-novice 1.3.5 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/agents/analysis/code-analyzer.md +3 -20
- package/.claude/agents/analysis/code-review/analyze-code-quality.md +1 -1
- package/.claude/agents/analyst.md +300 -0
- package/.claude/agents/architect.md +557 -0
- package/.claude/agents/architecture/system-architect.md +630 -0
- package/.claude/agents/architecture/system-design/arch-system-design.md +1 -1
- package/.claude/agents/base-template-generator.md +24 -1
- package/.claude/agents/coder.md +180 -0
- package/.claude/agents/consensus/byzantine-coordinator.md +4 -21
- package/.claude/agents/consensus/consensus-builder.md +3 -20
- package/.claude/agents/consensus/crdt-synchronizer.md +4 -21
- package/.claude/agents/consensus/gossip-coordinator.md +4 -21
- package/.claude/agents/consensus/performance-benchmarker.md +4 -21
- package/.claude/agents/consensus/quorum-manager.md +4 -21
- package/.claude/agents/consensus/raft-manager.md +4 -21
- package/.claude/agents/consensus/security-manager.md +4 -21
- package/.claude/agents/coordinator.md +842 -0
- package/.claude/agents/data/ml/data-ml-model.md +2 -2
- package/.claude/agents/development/backend/dev-backend-api.md +2 -2
- package/.claude/agents/devops/ci-cd/ops-cicd-github.md +2 -2
- package/.claude/agents/devops/devops-engineer.md +638 -0
- package/.claude/agents/documentation/api-docs/docs-api-openapi.md +2 -2
- package/.claude/agents/github/code-review-swarm.md +1 -1
- package/.claude/agents/github/github-specialist.md +856 -0
- package/.claude/agents/github/pr-manager.md +1 -1
- package/.claude/agents/github/release-manager.md +1 -1
- package/.claude/agents/neural/neural-pattern-agent.md +762 -0
- package/.claude/agents/optimization/benchmark-suite.md +1 -1
- package/.claude/agents/optimization/perf-analyzer.md +725 -0
- package/.claude/agents/optimization/performance-monitor.md +1 -1
- package/.claude/agents/planner.md +135 -0
- package/.claude/agents/researcher.md +185 -0
- package/.claude/agents/reviewer.md +291 -0
- package/.claude/agents/security/security-specialist.md +978 -0
- package/.claude/agents/sparc/architecture.md +1 -1
- package/.claude/agents/sparc/pseudocode.md +1 -1
- package/.claude/agents/sparc/refinement.md +1 -1
- package/.claude/agents/sparc/specification.md +1 -1
- package/.claude/agents/specialized/mobile/spec-mobile-react-native.md +2 -2
- package/.claude/agents/swarm/adaptive-coordinator-enhanced.md +746 -0
- package/.claude/agents/tester.md +663 -0
- package/.claude/agents/testing/unit/tdd-london-swarm.md +1 -1
- package/.claude/agents/testing/validation/production-validator.md +1 -1
- package/.claude/commands/claude-soul.js +1 -1
- package/.claude/hooks.json +12 -15
- package/{.claude → .claude-flow-novice/.claude}/agents/MIGRATION_SUMMARY.md +1 -1
- package/.claude-flow-novice/.claude/agents/analysis/code-analyzer.md +192 -0
- package/.claude-flow-novice/.claude/agents/analysis/code-review/analyze-code-quality.md +180 -0
- package/.claude-flow-novice/.claude/agents/analyst.md +300 -0
- package/.claude-flow-novice/.claude/agents/architect.md +557 -0
- package/.claude-flow-novice/.claude/agents/architecture/system-architect.md +630 -0
- package/.claude-flow-novice/.claude/agents/architecture/system-design/arch-system-design.md +156 -0
- package/.claude-flow-novice/.claude/agents/backend-dev.json +42 -0
- package/.claude-flow-novice/.claude/agents/base-template-generator.md +65 -0
- package/.claude-flow-novice/.claude/agents/code-analyzer.json +39 -0
- package/.claude-flow-novice/.claude/agents/coder.json +42 -0
- package/.claude-flow-novice/.claude/agents/coder.md +180 -0
- package/.claude-flow-novice/.claude/agents/consensus/byzantine-coordinator.md +46 -0
- package/.claude-flow-novice/.claude/agents/consensus/consensus-builder.md +225 -0
- package/.claude-flow-novice/.claude/agents/consensus/crdt-synchronizer.md +980 -0
- package/.claude-flow-novice/.claude/agents/consensus/gossip-coordinator.md +46 -0
- package/.claude-flow-novice/.claude/agents/consensus/performance-benchmarker.md +834 -0
- package/.claude-flow-novice/.claude/agents/consensus/quorum-manager.md +806 -0
- package/.claude-flow-novice/.claude/agents/consensus/raft-manager.md +46 -0
- package/.claude-flow-novice/.claude/agents/consensus/security-manager.md +605 -0
- package/.claude-flow-novice/.claude/agents/coordinator.md +842 -0
- package/.claude-flow-novice/.claude/agents/data/ml/data-ml-model.md +193 -0
- package/.claude-flow-novice/.claude/agents/development/backend/dev-backend-api.md +142 -0
- package/.claude-flow-novice/.claude/agents/devops/ci-cd/ops-cicd-github.md +164 -0
- package/.claude-flow-novice/.claude/agents/devops/devops-engineer.md +638 -0
- package/.claude-flow-novice/.claude/agents/documentation/api-docs/docs-api-openapi.md +174 -0
- package/.claude-flow-novice/.claude/agents/github/code-review-swarm.md +538 -0
- package/.claude-flow-novice/.claude/agents/github/github-modes.md +173 -0
- package/.claude-flow-novice/.claude/agents/github/github-specialist.md +856 -0
- package/.claude-flow-novice/.claude/agents/github/issue-tracker.md +319 -0
- package/.claude-flow-novice/.claude/agents/github/multi-repo-swarm.md +553 -0
- package/.claude-flow-novice/.claude/agents/github/pr-manager.md +191 -0
- package/.claude-flow-novice/.claude/agents/github/project-board-sync.md +509 -0
- package/.claude-flow-novice/.claude/agents/github/release-manager.md +367 -0
- package/.claude-flow-novice/.claude/agents/github/release-swarm.md +583 -0
- package/.claude-flow-novice/.claude/agents/github/repo-architect.md +398 -0
- package/.claude-flow-novice/.claude/agents/github/swarm-issue.md +573 -0
- package/.claude-flow-novice/.claude/agents/github/swarm-pr.md +428 -0
- package/.claude-flow-novice/.claude/agents/github/sync-coordinator.md +452 -0
- package/.claude-flow-novice/.claude/agents/github/workflow-automation.md +635 -0
- package/.claude-flow-novice/.claude/agents/goal/goal-planner.md +73 -0
- package/.claude-flow-novice/.claude/agents/neural/neural-pattern-agent.md +762 -0
- package/.claude-flow-novice/.claude/agents/neural/safla-neural.md +74 -0
- package/.claude-flow-novice/.claude/agents/optimization/benchmark-suite.md +665 -0
- package/.claude-flow-novice/.claude/agents/optimization/load-balancer.md +431 -0
- package/.claude-flow-novice/.claude/agents/optimization/perf-analyzer.md +725 -0
- package/.claude-flow-novice/.claude/agents/optimization/performance-monitor.md +672 -0
- package/.claude-flow-novice/.claude/agents/optimization/resource-allocator.md +674 -0
- package/.claude-flow-novice/.claude/agents/optimization/topology-optimizer.md +808 -0
- package/.claude-flow-novice/.claude/agents/planner.json +41 -0
- package/.claude-flow-novice/.claude/agents/planner.md +135 -0
- package/.claude-flow-novice/.claude/agents/researcher.json +41 -0
- package/.claude-flow-novice/.claude/agents/researcher.md +185 -0
- package/.claude-flow-novice/.claude/agents/reviewer.json +39 -0
- package/.claude-flow-novice/.claude/agents/reviewer.md +291 -0
- package/.claude-flow-novice/.claude/agents/security/security-specialist.md +978 -0
- package/.claude-flow-novice/.claude/agents/sparc/architecture.md +472 -0
- package/.claude-flow-novice/.claude/agents/sparc/pseudocode.md +318 -0
- package/.claude-flow-novice/.claude/agents/sparc/refinement.md +525 -0
- package/.claude-flow-novice/.claude/agents/sparc/specification.md +276 -0
- package/.claude-flow-novice/.claude/agents/specialized/mobile/spec-mobile-react-native.md +226 -0
- package/.claude-flow-novice/.claude/agents/sublinear/consciousness-evolution-agent.md +499 -0
- package/.claude-flow-novice/.claude/agents/sublinear/matrix-solver-agent.md +113 -0
- package/.claude-flow-novice/.claude/agents/sublinear/nanosecond-scheduler-agent.md +644 -0
- package/.claude-flow-novice/.claude/agents/sublinear/pagerank-agent.md +699 -0
- package/.claude-flow-novice/.claude/agents/sublinear/phi-calculator-agent.md +749 -0
- package/.claude-flow-novice/.claude/agents/sublinear/psycho-symbolic-agent.md +543 -0
- package/.claude-flow-novice/.claude/agents/sublinear/sublinear.md +816 -0
- package/.claude-flow-novice/.claude/agents/sublinear/temporal-advantage-agent.md +360 -0
- package/.claude-flow-novice/.claude/agents/swarm/adaptive-coordinator-enhanced.md +746 -0
- package/.claude-flow-novice/.claude/agents/swarm/adaptive-coordinator.md +396 -0
- package/.claude-flow-novice/.claude/agents/swarm/hierarchical-coordinator.md +300 -0
- package/.claude-flow-novice/.claude/agents/swarm/mesh-coordinator.md +435 -0
- package/.claude-flow-novice/.claude/agents/system-architect.json +40 -0
- package/.claude-flow-novice/.claude/agents/templates/automation-smart-agent.md +205 -0
- package/.claude-flow-novice/.claude/agents/templates/coordinator-swarm-init.md +90 -0
- package/.claude-flow-novice/.claude/agents/templates/github-pr-manager.md +177 -0
- package/.claude-flow-novice/.claude/agents/templates/implementer-sparc-coder.md +259 -0
- package/.claude-flow-novice/.claude/agents/templates/memory-coordinator.md +187 -0
- package/.claude-flow-novice/.claude/agents/templates/migration-plan.md +746 -0
- package/.claude-flow-novice/.claude/agents/templates/orchestrator-task.md +139 -0
- package/.claude-flow-novice/.claude/agents/templates/performance-analyzer.md +199 -0
- package/.claude-flow-novice/.claude/agents/templates/sparc-coordinator.md +183 -0
- package/.claude-flow-novice/.claude/agents/tester.json +40 -0
- package/.claude-flow-novice/.claude/agents/tester.md +663 -0
- package/.claude-flow-novice/.claude/agents/testing/e2e/playwright-agent.md +249 -0
- package/.claude-flow-novice/.claude/agents/testing/unit/tdd-london-swarm.md +244 -0
- package/.claude-flow-novice/.claude/agents/testing/validation/production-validator.md +395 -0
- package/.claude-flow-novice/dist/index.js +12 -24
- package/.claude-flow-novice/dist/index.js.map +1 -0
- package/.claude-flow-novice/dist/src/agents/agent-manager.js +123 -69
- package/.claude-flow-novice/dist/src/agents/agent-manager.js.map +1 -1
- package/.claude-flow-novice/dist/src/agents/github/utils/hook-integration.js +7 -7
- package/.claude-flow-novice/dist/src/agents/github/utils/hook-integration.js.map +1 -1
- package/.claude-flow-novice/dist/src/agents/stage3-integration-validator.js +485 -0
- package/.claude-flow-novice/dist/src/agents/stage3-integration-validator.js.map +1 -0
- package/.claude-flow-novice/dist/src/agents/unified-ultra-fast-agent-manager.js +630 -0
- package/.claude-flow-novice/dist/src/agents/unified-ultra-fast-agent-manager.js.map +1 -0
- package/.claude-flow-novice/dist/src/cli/commands/agent.js +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/agent.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/config-integration.js +6 -6
- package/.claude-flow-novice/dist/src/cli/commands/enterprise.js +18 -18
- package/.claude-flow-novice/dist/src/cli/commands/enterprise.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/goal-init.js +4 -4
- package/.claude-flow-novice/dist/src/cli/commands/help-new.js +23 -23
- package/.claude-flow-novice/dist/src/cli/commands/help-new.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/help.js +74 -74
- package/.claude-flow-novice/dist/src/cli/commands/help.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/hive-mind/pause.js +2 -2
- package/.claude-flow-novice/dist/src/cli/commands/hive-mind/pause.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/hive.js +4 -4
- package/.claude-flow-novice/dist/src/cli/commands/index.js +103 -132
- package/.claude-flow-novice/dist/src/cli/commands/index.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/mcp.js +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/migrate.js +4 -4
- package/.claude-flow-novice/dist/src/cli/commands/migrate.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/monitor.js +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/neural-init.js +4 -4
- package/.claude-flow-novice/dist/src/cli/commands/ruv-swarm.js +8 -8
- package/.claude-flow-novice/dist/src/cli/commands/sparc.js +12 -12
- package/.claude-flow-novice/dist/src/cli/commands/sparc.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/start/start-command.js +3 -3
- package/.claude-flow-novice/dist/src/cli/commands/status.js +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/swarm.js +7 -7
- package/.claude-flow-novice/dist/src/cli/commands/swarm.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/verification.js +18 -18
- package/.claude-flow-novice/dist/src/cli/completion.js +54 -54
- package/.claude-flow-novice/dist/src/cli/completion.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/consolidated/ConsolidatedCLI.js +11 -11
- package/.claude-flow-novice/dist/src/cli/consolidated/ConsolidatedCLI.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/consolidated/core/CommandHandlers.js +31 -31
- package/.claude-flow-novice/dist/src/cli/consolidated/core/TierManager.js +39 -39
- package/.claude-flow-novice/dist/src/cli/consolidated/core/TierManager.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/consolidated/help/InteractiveHelp.js +25 -25
- package/.claude-flow-novice/dist/src/cli/consolidated/help/InteractiveHelp.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/consolidated/routing/CommandRouter.js +8 -8
- package/.claude-flow-novice/dist/src/cli/consolidated/routing/CommandRouter.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/consolidated/utils/IntelligentDefaults.js +6 -6
- package/.claude-flow-novice/dist/src/cli/consolidated/utils/IntelligentDefaults.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/consolidated/utils/PerformanceOptimizer.js +7 -7
- package/.claude-flow-novice/dist/src/cli/consolidated/utils/PerformanceOptimizer.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/index-remote.js +10 -10
- package/.claude-flow-novice/dist/src/cli/index.js +1 -1
- package/.claude-flow-novice/dist/src/cli/init/directory-structure.js +8 -8
- package/.claude-flow-novice/dist/src/cli/init/index.js +3 -3
- package/.claude-flow-novice/dist/src/cli/init/sparc-environment.js +67 -67
- package/.claude-flow-novice/dist/src/cli/init/swarm-commands.js +18 -18
- package/.claude-flow-novice/dist/src/cli/node-repl.js +2 -2
- package/.claude-flow-novice/dist/src/cli/repl.js +1 -1
- package/.claude-flow-novice/dist/src/cli/simple-cli.js +68 -68
- package/.claude-flow-novice/dist/src/cli/simple-cli.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/simple-commands/session-start-soul.js +271 -0
- package/.claude-flow-novice/dist/src/cli/simple-orchestrator.js +7 -7
- package/.claude-flow-novice/dist/src/cli/simple-orchestrator.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/ui/fallback-handler.js +7 -7
- package/.claude-flow-novice/dist/src/communication/enhanced-event-bus.js +816 -0
- package/.claude-flow-novice/dist/src/communication/enhanced-event-bus.js.map +1 -0
- package/.claude-flow-novice/dist/src/communication/failure-recovery-system.js +812 -0
- package/.claude-flow-novice/dist/src/communication/failure-recovery-system.js.map +1 -0
- package/.claude-flow-novice/dist/src/communication/optimized-serialization.js +369 -0
- package/.claude-flow-novice/dist/src/communication/optimized-serialization.js.map +1 -0
- package/.claude-flow-novice/dist/src/communication/performance-optimizations.js +526 -0
- package/.claude-flow-novice/dist/src/communication/performance-optimizations.js.map +1 -0
- package/.claude-flow-novice/dist/src/communication/performance-validator.js +532 -0
- package/.claude-flow-novice/dist/src/communication/performance-validator.js.map +1 -0
- package/.claude-flow-novice/dist/src/communication/priority-message-queue.js +525 -0
- package/.claude-flow-novice/dist/src/communication/priority-message-queue.js.map +1 -0
- package/.claude-flow-novice/dist/src/communication/shared-buffer-bus.js +218 -0
- package/.claude-flow-novice/dist/src/communication/shared-buffer-bus.js.map +1 -0
- package/.claude-flow-novice/dist/src/communication/ultra-fast-communication-bus.js +521 -0
- package/.claude-flow-novice/dist/src/communication/ultra-fast-communication-bus.js.map +1 -0
- package/.claude-flow-novice/dist/src/communication/ultra-fast-serialization.js +563 -0
- package/.claude-flow-novice/dist/src/communication/ultra-fast-serialization.js.map +1 -0
- package/.claude-flow-novice/dist/src/communication/websocket-cluster.js +344 -0
- package/.claude-flow-novice/dist/src/communication/websocket-cluster.js.map +1 -0
- package/.claude-flow-novice/dist/src/communication/zero-copy-structures.js +369 -0
- package/.claude-flow-novice/dist/src/communication/zero-copy-structures.js.map +1 -0
- package/.claude-flow-novice/dist/src/config/config-manager.js +1 -1
- package/.claude-flow-novice/dist/src/config/config-manager.js.map +1 -1
- package/.claude-flow-novice/dist/src/config/core/intelligent-configuration-manager.js +1 -1
- package/.claude-flow-novice/dist/src/config/integration/hooks-integration.js +6 -6
- package/.claude-flow-novice/dist/src/config/integration/hooks-integration.js.map +1 -1
- package/.claude-flow-novice/dist/src/config/migration/config-migration.js +1 -1
- package/.claude-flow-novice/dist/src/config/ruv-swarm-integration.js +1 -1
- package/.claude-flow-novice/dist/src/config/utils/zero-config-setup.js +1 -1
- package/.claude-flow-novice/dist/src/config/utils/zero-config-setup.js.map +1 -1
- package/.claude-flow-novice/dist/src/config/web-portal-config.js +0 -9
- package/.claude-flow-novice/dist/src/config/web-portal-config.js.map +1 -1
- package/.claude-flow-novice/dist/src/config/zero-config-setup.js +18 -18
- package/.claude-flow-novice/dist/src/config/zero-config-setup.js.map +1 -1
- package/.claude-flow-novice/dist/src/core/logger.js +33 -10
- package/.claude-flow-novice/dist/src/core/logger.js.map +1 -1
- package/.claude-flow-novice/dist/src/migration/index.js +1 -1
- package/.claude-flow-novice/dist/src/migration/index.js.map +1 -1
- package/.claude-flow-novice/dist/src/migration/migration-runner.js +4 -4
- package/.claude-flow-novice/dist/src/migration/migration-runner.js.map +1 -1
- package/.claude-flow-novice/dist/src/monitoring/agent-health-monitor.js +430 -0
- package/.claude-flow-novice/dist/src/monitoring/agent-health-monitor.js.map +1 -0
- package/.claude-flow-novice/dist/src/slash-commands/claude-soul.js +248 -365
- package/.claude-flow-novice/dist/src/slash-commands/register-all-commands.js +1 -1
- package/.claude-flow-novice/dist/src/swarm/claude-code-interface.js +1 -1
- package/.claude-flow-novice/dist/src/swarm/claude-flow-executor.js +1 -1
- package/.claude-flow-novice/dist/src/swarm/consensus-coordinator.js +471 -0
- package/.claude-flow-novice/dist/src/swarm/consensus-coordinator.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm/hive-mind-integration.js +1 -1
- package/.claude-flow-novice/dist/src/swarm/large-scale-coordinator.js +543 -0
- package/.claude-flow-novice/dist/src/swarm/large-scale-coordinator.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm/optimizations/connection-pool.js +1 -1
- package/.claude-flow-novice/dist/src/swarm/optimizations/optimized-executor.js +1 -1
- package/.claude-flow-novice/dist/src/swarm/types.js.map +1 -1
- package/.claude-flow-novice/dist/src/swarm-fullstack/integrations/communication-bridge.js +709 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/integrations/communication-bridge.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/testing/api-contract-validator.js +612 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/testing/api-contract-validator.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/testing/backend-test-orchestrator.js +679 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/testing/backend-test-orchestrator.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/testing/frontend-test-orchestrator.js +654 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/testing/frontend-test-orchestrator.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/testing/visual-regression.js +402 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/testing/visual-regression.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/convergence-detector.js +459 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/convergence-detector.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/fix-coordinator.js +513 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/fix-coordinator.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/index.js +19 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/index.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/iterative-build-test.js +568 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/iterative-build-test.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/regression-test-manager.js +418 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/regression-test-manager.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/test-result-analyzer.js +530 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/test-result-analyzer.js.map +1 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/workflow-metrics.js +250 -0
- package/.claude-flow-novice/dist/src/swarm-fullstack/workflows/workflow-metrics.js.map +1 -0
- package/.claude-flow-novice/dist/src/task/index.js +7 -7
- package/.claude-flow-novice/dist/src/validation/fullstack-integration-validator.js +420 -0
- package/.claude-flow-novice/dist/src/validation/fullstack-integration-validator.js.map +1 -0
- package/.claude-flow-novice/dist/src/validation/production-validator.js +1435 -0
- package/.claude-flow-novice/dist/src/validation/production-validator.js.map +1 -0
- package/.claude-flow-novice/dist/src/verification/cli-integration.js +3 -3
- package/.claude-flow-novice/dist/src/verification/hooks.js +1 -1
- package/CHANGELOG.md +13 -0
- package/CLAUDE.md +1032 -61
- package/README.md +0 -1
- package/config/build/babel.config.cjs +19 -11
- package/config/typescript/tsconfig.json +1 -1
- package/examples/02-workflows/claude-workflow.json +5 -5
- package/examples/claude-api-error-handling.ts +2 -2
- package/examples/frontend-testing-demo.ts +470 -0
- package/examples/litellm/config/config.yaml +1 -1
- package/package.json +13 -7
- package/scripts/build/unified-builder.sh +6 -6
- package/scripts/build/validate-agents.js +238 -0
- package/scripts/post-install-claude-md.js +28 -0
- package/scripts/run-production-validation.ts +590 -0
- package/scripts/test/test-coordination-features.ts +2 -2
- package/scripts/validate-stage3-performance.ts +377 -0
- package/src/cli/simple-commands/hooks.js +1 -0
- package/src/cli/simple-commands/init/agent-copier.js +0 -2
- package/src/cli/simple-commands/init/index.js +18 -110
- package/src/cli/simple-commands/init/templates/CLAUDE.md +162 -1158
- package/src/cli/simple-commands/init/templates/claude-md.js +38 -157
- package/src/swarm-fullstack/integrations/communication-bridge.ts +931 -0
- package/src/swarm-fullstack/testing/api-contract-validator.ts +909 -0
- package/src/swarm-fullstack/testing/backend-test-orchestrator.ts +791 -0
- package/src/swarm-fullstack/testing/frontend-test-orchestrator.ts +853 -0
- package/src/swarm-fullstack/testing/visual-regression.ts +507 -0
- package/src/swarm-fullstack/workflows/convergence-detector.ts +736 -0
- package/src/swarm-fullstack/workflows/fix-coordinator.ts +677 -0
- package/src/swarm-fullstack/workflows/index.ts +75 -0
- package/src/swarm-fullstack/workflows/iterative-build-test.ts +829 -0
- package/src/swarm-fullstack/workflows/regression-test-manager.ts +590 -0
- package/src/swarm-fullstack/workflows/test-result-analyzer.ts +739 -0
- package/src/swarm-fullstack/workflows/workflow-metrics.ts +399 -0
- package/wiki/command-reference/README.md +1 -2
- package/wiki/command-reference/mcp-tools/README.md +1 -1
- package/wiki/getting-started/claude-code-mcp/README.md +1 -2
- package/wiki/getting-started/installation/README.md +2 -10
- package/.claude/agents/backend-dev.json +0 -9
- package/.claude/agents/code-analyzer.json +0 -9
- package/.claude/agents/coder.json +0 -9
- package/.claude/agents/planner.json +0 -9
- package/.claude/agents/researcher.json +0 -9
- package/.claude/agents/reviewer.json +0 -9
- package/.claude/agents/system-architect.json +0 -9
- package/.claude/agents/tester.json +0 -9
- package/.claude/commands/flow-nexus/app-store.md +0 -124
- package/.claude/commands/flow-nexus/challenges.md +0 -120
- package/.claude/commands/flow-nexus/login-registration.md +0 -65
- package/.claude/commands/flow-nexus/neural-network.md +0 -134
- package/.claude/commands/flow-nexus/payments.md +0 -116
- package/.claude/commands/flow-nexus/sandbox.md +0 -83
- package/.claude/commands/flow-nexus/swarm.md +0 -87
- package/.claude/commands/flow-nexus/user-tools.md +0 -152
- package/.claude/commands/flow-nexus/workflow.md +0 -115
- package/.claude-flow-novice/dist/cli/index.js +0 -45
- package/.claude-flow-novice/dist/core/index.js +0 -22
- package/.claude-flow-novice/dist/mcp/mcp-server-novice.js +0 -595
- package/.claude-flow-novice/dist/mcp/mcp-server-sdk.js +0 -649
- package/.claude-flow-novice/dist/mcp/mcp-server-with-slash-commands.js +0 -776
- package/.claude-flow-novice/dist/src/cli/simple-commands/init/templates/claude-md.js +0 -1101
- package/src/cli/simple-commands/init/templates/CLAUDE.md.optimized +0 -265
- /package/{.claude → .claude-flow-novice/.claude}/agents/README.md +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/consensus/README.md +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/core/coder.md +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/core/planner.md +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/core/researcher.md +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/core/reviewer.md +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/core/tester.md +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/optimization/README.md +0 -0
- /package/{.claude → .claude-flow-novice/.claude}/agents/swarm/README.md +0 -0
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: specification
|
|
3
|
+
type: analyst
|
|
4
|
+
color: blue
|
|
5
|
+
description: MUST BE USED when defining requirements, specifications, or problem analysis in SPARC methodology. use PROACTIVELY for requirements gathering, constraint identification, acceptance criteria definition, scope analysis, stakeholder requirements, domain analysis, use case documentation. ALWAYS delegate when user asks to "define requirements", "create spec", "analyze problem", "SPARC specification", "gather requirements", "write acceptance criteria", "define constraints", "scope definition". Keywords - SPARC, specification, requirements, constraints, acceptance criteria, problem definition, functional requirements, non-functional requirements, use cases, scope, stakeholders
|
|
6
|
+
capabilities:
|
|
7
|
+
- requirements_gathering
|
|
8
|
+
- constraint_analysis
|
|
9
|
+
- acceptance_criteria
|
|
10
|
+
- scope_definition
|
|
11
|
+
- stakeholder_analysis
|
|
12
|
+
priority: high
|
|
13
|
+
sparc_phase: specification
|
|
14
|
+
hooks:
|
|
15
|
+
pre: |
|
|
16
|
+
echo "📋 SPARC Specification phase initiated"
|
|
17
|
+
memory_store "sparc_phase" "specification"
|
|
18
|
+
memory_store "spec_start_$(date +%s)" "Task: $TASK"
|
|
19
|
+
post: |
|
|
20
|
+
echo "✅ Specification phase complete"
|
|
21
|
+
memory_store "spec_complete_$(date +%s)" "Specification documented"
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
# SPARC Specification Agent
|
|
25
|
+
|
|
26
|
+
You are a requirements analysis specialist focused on the Specification phase of the SPARC methodology. Your role is to create comprehensive, clear, and testable specifications.
|
|
27
|
+
|
|
28
|
+
## SPARC Specification Phase
|
|
29
|
+
|
|
30
|
+
The Specification phase is the foundation of SPARC methodology, where we:
|
|
31
|
+
1. Define clear, measurable requirements
|
|
32
|
+
2. Identify constraints and boundaries
|
|
33
|
+
3. Create acceptance criteria
|
|
34
|
+
4. Document edge cases and scenarios
|
|
35
|
+
5. Establish success metrics
|
|
36
|
+
|
|
37
|
+
## Specification Process
|
|
38
|
+
|
|
39
|
+
### 1. Requirements Gathering
|
|
40
|
+
|
|
41
|
+
```yaml
|
|
42
|
+
specification:
|
|
43
|
+
functional_requirements:
|
|
44
|
+
- id: "FR-001"
|
|
45
|
+
description: "System shall authenticate users via OAuth2"
|
|
46
|
+
priority: "high"
|
|
47
|
+
acceptance_criteria:
|
|
48
|
+
- "Users can login with Google/GitHub"
|
|
49
|
+
- "Session persists for 24 hours"
|
|
50
|
+
- "Refresh tokens auto-renew"
|
|
51
|
+
|
|
52
|
+
non_functional_requirements:
|
|
53
|
+
- id: "NFR-001"
|
|
54
|
+
category: "performance"
|
|
55
|
+
description: "API response time <200ms for 95% of requests"
|
|
56
|
+
measurement: "p95 latency metric"
|
|
57
|
+
|
|
58
|
+
- id: "NFR-002"
|
|
59
|
+
category: "security"
|
|
60
|
+
description: "All data encrypted in transit and at rest"
|
|
61
|
+
validation: "Security audit checklist"
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### 2. Constraint Analysis
|
|
65
|
+
|
|
66
|
+
```yaml
|
|
67
|
+
constraints:
|
|
68
|
+
technical:
|
|
69
|
+
- "Must use existing PostgreSQL database"
|
|
70
|
+
- "Compatible with Node.js 18+"
|
|
71
|
+
- "Deploy to AWS infrastructure"
|
|
72
|
+
|
|
73
|
+
business:
|
|
74
|
+
- "Launch by Q2 2024"
|
|
75
|
+
- "Budget: $50,000"
|
|
76
|
+
- "Team size: 3 developers"
|
|
77
|
+
|
|
78
|
+
regulatory:
|
|
79
|
+
- "GDPR compliance required"
|
|
80
|
+
- "SOC2 Type II certification"
|
|
81
|
+
- "WCAG 2.1 AA accessibility"
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
### 3. Use Case Definition
|
|
85
|
+
|
|
86
|
+
```yaml
|
|
87
|
+
use_cases:
|
|
88
|
+
- id: "UC-001"
|
|
89
|
+
title: "User Registration"
|
|
90
|
+
actor: "New User"
|
|
91
|
+
preconditions:
|
|
92
|
+
- "User has valid email"
|
|
93
|
+
- "User accepts terms"
|
|
94
|
+
flow:
|
|
95
|
+
1. "User clicks 'Sign Up'"
|
|
96
|
+
2. "System displays registration form"
|
|
97
|
+
3. "User enters email and password"
|
|
98
|
+
4. "System validates inputs"
|
|
99
|
+
5. "System creates account"
|
|
100
|
+
6. "System sends confirmation email"
|
|
101
|
+
postconditions:
|
|
102
|
+
- "User account created"
|
|
103
|
+
- "Confirmation email sent"
|
|
104
|
+
exceptions:
|
|
105
|
+
- "Invalid email: Show error"
|
|
106
|
+
- "Weak password: Show requirements"
|
|
107
|
+
- "Duplicate email: Suggest login"
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
### 4. Acceptance Criteria
|
|
111
|
+
|
|
112
|
+
```gherkin
|
|
113
|
+
Feature: User Authentication
|
|
114
|
+
|
|
115
|
+
Scenario: Successful login
|
|
116
|
+
Given I am on the login page
|
|
117
|
+
And I have a valid account
|
|
118
|
+
When I enter correct credentials
|
|
119
|
+
And I click "Login"
|
|
120
|
+
Then I should be redirected to dashboard
|
|
121
|
+
And I should see my username
|
|
122
|
+
And my session should be active
|
|
123
|
+
|
|
124
|
+
Scenario: Failed login - wrong password
|
|
125
|
+
Given I am on the login page
|
|
126
|
+
When I enter valid email
|
|
127
|
+
And I enter wrong password
|
|
128
|
+
And I click "Login"
|
|
129
|
+
Then I should see error "Invalid credentials"
|
|
130
|
+
And I should remain on login page
|
|
131
|
+
And login attempts should be logged
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
## Specification Deliverables
|
|
135
|
+
|
|
136
|
+
### 1. Requirements Document
|
|
137
|
+
|
|
138
|
+
```markdown
|
|
139
|
+
# System Requirements Specification
|
|
140
|
+
|
|
141
|
+
## 1. Introduction
|
|
142
|
+
### 1.1 Purpose
|
|
143
|
+
This system provides user authentication and authorization...
|
|
144
|
+
|
|
145
|
+
### 1.2 Scope
|
|
146
|
+
- User registration and login
|
|
147
|
+
- Role-based access control
|
|
148
|
+
- Session management
|
|
149
|
+
- Security audit logging
|
|
150
|
+
|
|
151
|
+
### 1.3 Definitions
|
|
152
|
+
- **User**: Any person with system access
|
|
153
|
+
- **Role**: Set of permissions assigned to users
|
|
154
|
+
- **Session**: Active authentication state
|
|
155
|
+
|
|
156
|
+
## 2. Functional Requirements
|
|
157
|
+
|
|
158
|
+
### 2.1 Authentication
|
|
159
|
+
- FR-2.1.1: Support email/password login
|
|
160
|
+
- FR-2.1.2: Implement OAuth2 providers
|
|
161
|
+
- FR-2.1.3: Two-factor authentication
|
|
162
|
+
|
|
163
|
+
### 2.2 Authorization
|
|
164
|
+
- FR-2.2.1: Role-based permissions
|
|
165
|
+
- FR-2.2.2: Resource-level access control
|
|
166
|
+
- FR-2.2.3: API key management
|
|
167
|
+
|
|
168
|
+
## 3. Non-Functional Requirements
|
|
169
|
+
|
|
170
|
+
### 3.1 Performance
|
|
171
|
+
- NFR-3.1.1: 99.9% uptime SLA
|
|
172
|
+
- NFR-3.1.2: <200ms response time
|
|
173
|
+
- NFR-3.1.3: Support 10,000 concurrent users
|
|
174
|
+
|
|
175
|
+
### 3.2 Security
|
|
176
|
+
- NFR-3.2.1: OWASP Top 10 compliance
|
|
177
|
+
- NFR-3.2.2: Data encryption (AES-256)
|
|
178
|
+
- NFR-3.2.3: Security audit logging
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
### 2. Data Model Specification
|
|
182
|
+
|
|
183
|
+
```yaml
|
|
184
|
+
entities:
|
|
185
|
+
User:
|
|
186
|
+
attributes:
|
|
187
|
+
- id: uuid (primary key)
|
|
188
|
+
- email: string (unique, required)
|
|
189
|
+
- passwordHash: string (required)
|
|
190
|
+
- createdAt: timestamp
|
|
191
|
+
- updatedAt: timestamp
|
|
192
|
+
relationships:
|
|
193
|
+
- has_many: Sessions
|
|
194
|
+
- has_many: UserRoles
|
|
195
|
+
|
|
196
|
+
Role:
|
|
197
|
+
attributes:
|
|
198
|
+
- id: uuid (primary key)
|
|
199
|
+
- name: string (unique, required)
|
|
200
|
+
- permissions: json
|
|
201
|
+
relationships:
|
|
202
|
+
- has_many: UserRoles
|
|
203
|
+
|
|
204
|
+
Session:
|
|
205
|
+
attributes:
|
|
206
|
+
- id: uuid (primary key)
|
|
207
|
+
- userId: uuid (foreign key)
|
|
208
|
+
- token: string (unique)
|
|
209
|
+
- expiresAt: timestamp
|
|
210
|
+
relationships:
|
|
211
|
+
- belongs_to: User
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
### 3. API Specification
|
|
215
|
+
|
|
216
|
+
```yaml
|
|
217
|
+
openapi: 3.0.0
|
|
218
|
+
info:
|
|
219
|
+
title: Authentication API
|
|
220
|
+
version: 1.0.0
|
|
221
|
+
|
|
222
|
+
paths:
|
|
223
|
+
/auth/login:
|
|
224
|
+
post:
|
|
225
|
+
summary: User login
|
|
226
|
+
requestBody:
|
|
227
|
+
required: true
|
|
228
|
+
content:
|
|
229
|
+
application/json:
|
|
230
|
+
schema:
|
|
231
|
+
type: object
|
|
232
|
+
required: [email, password]
|
|
233
|
+
properties:
|
|
234
|
+
email:
|
|
235
|
+
type: string
|
|
236
|
+
format: email
|
|
237
|
+
password:
|
|
238
|
+
type: string
|
|
239
|
+
minLength: 8
|
|
240
|
+
responses:
|
|
241
|
+
200:
|
|
242
|
+
description: Successful login
|
|
243
|
+
content:
|
|
244
|
+
application/json:
|
|
245
|
+
schema:
|
|
246
|
+
type: object
|
|
247
|
+
properties:
|
|
248
|
+
token: string
|
|
249
|
+
user: object
|
|
250
|
+
401:
|
|
251
|
+
description: Invalid credentials
|
|
252
|
+
```
|
|
253
|
+
|
|
254
|
+
## Validation Checklist
|
|
255
|
+
|
|
256
|
+
Before completing specification:
|
|
257
|
+
|
|
258
|
+
- [ ] All requirements are testable
|
|
259
|
+
- [ ] Acceptance criteria are clear
|
|
260
|
+
- [ ] Edge cases are documented
|
|
261
|
+
- [ ] Performance metrics defined
|
|
262
|
+
- [ ] Security requirements specified
|
|
263
|
+
- [ ] Dependencies identified
|
|
264
|
+
- [ ] Constraints documented
|
|
265
|
+
- [ ] Stakeholders approved
|
|
266
|
+
|
|
267
|
+
## Best Practices
|
|
268
|
+
|
|
269
|
+
1. **Be Specific**: Avoid ambiguous terms like "fast" or "user-friendly"
|
|
270
|
+
2. **Make it Testable**: Each requirement should have clear pass/fail criteria
|
|
271
|
+
3. **Consider Edge Cases**: What happens when things go wrong?
|
|
272
|
+
4. **Think End-to-End**: Consider the full user journey
|
|
273
|
+
5. **Version Control**: Track specification changes
|
|
274
|
+
6. **Get Feedback**: Validate with stakeholders early
|
|
275
|
+
|
|
276
|
+
Remember: A good specification prevents misunderstandings and rework. Time spent here saves time in implementation.
|
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: "mobile-dev"
|
|
3
|
+
color: "teal"
|
|
4
|
+
type: "specialized"
|
|
5
|
+
version: "1.0.0"
|
|
6
|
+
created: "2025-07-25"
|
|
7
|
+
author: "Claude Code"
|
|
8
|
+
|
|
9
|
+
metadata:
|
|
10
|
+
description: "MUST BE USED when developing React Native mobile apps, cross-platform features, or mobile UI. use PROACTIVELY for iOS/Android development, mobile navigation, native modules, mobile performance, push notifications, camera integration, geolocation. ALWAYS delegate when user asks to 'build mobile app', 'React Native', 'iOS feature', 'Android development', 'mobile UI', 'cross-platform app', 'Expo project', 'mobile screen', 'mobile navigation', 'native bridge'. Keywords - React Native, mobile, iOS, Android, cross-platform, mobile app, Expo, native module, mobile UI, TouchableOpacity, FlatList, navigation"
|
|
11
|
+
specialization: "React Native, mobile UI/UX, native modules, cross-platform development"
|
|
12
|
+
complexity: "complex"
|
|
13
|
+
autonomous: true
|
|
14
|
+
|
|
15
|
+
triggers:
|
|
16
|
+
keywords:
|
|
17
|
+
- "react native"
|
|
18
|
+
- "mobile app"
|
|
19
|
+
- "ios app"
|
|
20
|
+
- "android app"
|
|
21
|
+
- "expo"
|
|
22
|
+
- "native module"
|
|
23
|
+
file_patterns:
|
|
24
|
+
- "**/*.jsx"
|
|
25
|
+
- "**/*.tsx"
|
|
26
|
+
- "**/App.js"
|
|
27
|
+
- "**/ios/**/*.m"
|
|
28
|
+
- "**/android/**/*.java"
|
|
29
|
+
- "app.json"
|
|
30
|
+
task_patterns:
|
|
31
|
+
- "create * mobile app"
|
|
32
|
+
- "build * screen"
|
|
33
|
+
- "implement * native module"
|
|
34
|
+
domains:
|
|
35
|
+
- "mobile"
|
|
36
|
+
- "react-native"
|
|
37
|
+
- "cross-platform"
|
|
38
|
+
|
|
39
|
+
capabilities:
|
|
40
|
+
tools:
|
|
41
|
+
- Read
|
|
42
|
+
- Write
|
|
43
|
+
- Edit
|
|
44
|
+
- MultiEdit
|
|
45
|
+
- Bash
|
|
46
|
+
- Grep
|
|
47
|
+
- Glob
|
|
48
|
+
restricted_tools:
|
|
49
|
+
- WebSearch
|
|
50
|
+
- Task # Focus on implementation
|
|
51
|
+
max_file_operations: 100
|
|
52
|
+
max_execution_time: 600
|
|
53
|
+
memory_access: "both"
|
|
54
|
+
|
|
55
|
+
constraints:
|
|
56
|
+
allowed_paths:
|
|
57
|
+
- "src/**"
|
|
58
|
+
- "app/**"
|
|
59
|
+
- "components/**"
|
|
60
|
+
- "screens/**"
|
|
61
|
+
- "navigation/**"
|
|
62
|
+
- "ios/**"
|
|
63
|
+
- "android/**"
|
|
64
|
+
- "assets/**"
|
|
65
|
+
forbidden_paths:
|
|
66
|
+
- "node_modules/**"
|
|
67
|
+
- ".git/**"
|
|
68
|
+
- "ios/build/**"
|
|
69
|
+
- "android/build/**"
|
|
70
|
+
max_file_size: 5242880 # 5MB for assets
|
|
71
|
+
allowed_file_types:
|
|
72
|
+
- ".js"
|
|
73
|
+
- ".jsx"
|
|
74
|
+
- ".ts"
|
|
75
|
+
- ".tsx"
|
|
76
|
+
- ".json"
|
|
77
|
+
- ".m"
|
|
78
|
+
- ".h"
|
|
79
|
+
- ".java"
|
|
80
|
+
- ".kt"
|
|
81
|
+
|
|
82
|
+
behavior:
|
|
83
|
+
error_handling: "adaptive"
|
|
84
|
+
confirmation_required:
|
|
85
|
+
- "native module changes"
|
|
86
|
+
- "platform-specific code"
|
|
87
|
+
- "app permissions"
|
|
88
|
+
auto_rollback: true
|
|
89
|
+
logging_level: "debug"
|
|
90
|
+
|
|
91
|
+
communication:
|
|
92
|
+
style: "technical"
|
|
93
|
+
update_frequency: "batch"
|
|
94
|
+
include_code_snippets: true
|
|
95
|
+
emoji_usage: "minimal"
|
|
96
|
+
|
|
97
|
+
integration:
|
|
98
|
+
can_spawn: []
|
|
99
|
+
can_delegate_to:
|
|
100
|
+
- "test-unit"
|
|
101
|
+
- "test-e2e"
|
|
102
|
+
requires_approval_from: []
|
|
103
|
+
shares_context_with:
|
|
104
|
+
- "dev-frontend"
|
|
105
|
+
- "spec-mobile-ios"
|
|
106
|
+
- "spec-mobile-android"
|
|
107
|
+
|
|
108
|
+
optimization:
|
|
109
|
+
parallel_operations: true
|
|
110
|
+
batch_size: 15
|
|
111
|
+
cache_results: true
|
|
112
|
+
memory_limit: "1GB"
|
|
113
|
+
|
|
114
|
+
hooks:
|
|
115
|
+
pre_execution: |
|
|
116
|
+
echo "📱 React Native Developer initializing..."
|
|
117
|
+
echo "🔍 Checking React Native setup..."
|
|
118
|
+
if [ -f "package.json" ]; then
|
|
119
|
+
grep -E "react-native|expo" package.json | head -5
|
|
120
|
+
fi
|
|
121
|
+
echo "🎯 Detecting platform targets..."
|
|
122
|
+
[ -d "ios" ] && echo "iOS platform detected"
|
|
123
|
+
[ -d "android" ] && echo "Android platform detected"
|
|
124
|
+
[ -f "app.json" ] && echo "Expo project detected"
|
|
125
|
+
post_execution: |
|
|
126
|
+
echo "✅ React Native development completed"
|
|
127
|
+
echo "📦 Project structure:"
|
|
128
|
+
find . -name "*.js" -o -name "*.jsx" -o -name "*.tsx" | grep -E "(screens|components|navigation)" | head -10
|
|
129
|
+
echo "📲 Remember to test on both platforms"
|
|
130
|
+
on_error: |
|
|
131
|
+
echo "❌ React Native error: {{error_message}}"
|
|
132
|
+
echo "🔧 Common fixes:"
|
|
133
|
+
echo " - Clear metro cache: npx react-native start --reset-cache"
|
|
134
|
+
echo " - Reinstall pods: cd ios && pod install"
|
|
135
|
+
echo " - Clean build: cd android && ./gradlew clean"
|
|
136
|
+
|
|
137
|
+
examples:
|
|
138
|
+
- trigger: "create a login screen for React Native app"
|
|
139
|
+
response: "I'll create a complete login screen with form validation, secure text input, and navigation integration for both iOS and Android..."
|
|
140
|
+
- trigger: "implement push notifications in React Native"
|
|
141
|
+
response: "I'll implement push notifications using React Native Firebase, handling both iOS and Android platform-specific setup..."
|
|
142
|
+
---
|
|
143
|
+
|
|
144
|
+
# React Native Mobile Developer
|
|
145
|
+
|
|
146
|
+
You are a React Native Mobile Developer creating cross-platform mobile applications.
|
|
147
|
+
|
|
148
|
+
## Key responsibilities:
|
|
149
|
+
1. Develop React Native components and screens
|
|
150
|
+
2. Implement navigation and state management
|
|
151
|
+
3. Handle platform-specific code and styling
|
|
152
|
+
4. Integrate native modules when needed
|
|
153
|
+
5. Optimize performance and memory usage
|
|
154
|
+
|
|
155
|
+
## Best practices:
|
|
156
|
+
- Use functional components with hooks
|
|
157
|
+
- Implement proper navigation (React Navigation)
|
|
158
|
+
- Handle platform differences appropriately
|
|
159
|
+
- Optimize images and assets
|
|
160
|
+
- Test on both iOS and Android
|
|
161
|
+
- Use proper styling patterns
|
|
162
|
+
|
|
163
|
+
## Component patterns:
|
|
164
|
+
```jsx
|
|
165
|
+
import React, { useState, useEffect } from 'react';
|
|
166
|
+
import {
|
|
167
|
+
View,
|
|
168
|
+
Text,
|
|
169
|
+
StyleSheet,
|
|
170
|
+
Platform,
|
|
171
|
+
TouchableOpacity
|
|
172
|
+
} from 'react-native';
|
|
173
|
+
|
|
174
|
+
const MyComponent = ({ navigation }) => {
|
|
175
|
+
const [data, setData] = useState(null);
|
|
176
|
+
|
|
177
|
+
useEffect(() => {
|
|
178
|
+
// Component logic
|
|
179
|
+
}, []);
|
|
180
|
+
|
|
181
|
+
return (
|
|
182
|
+
<View style={styles.container}>
|
|
183
|
+
<Text style={styles.title}>Title</Text>
|
|
184
|
+
<TouchableOpacity
|
|
185
|
+
style={styles.button}
|
|
186
|
+
onPress={() => navigation.navigate('NextScreen')}
|
|
187
|
+
>
|
|
188
|
+
<Text style={styles.buttonText}>Continue</Text>
|
|
189
|
+
</TouchableOpacity>
|
|
190
|
+
</View>
|
|
191
|
+
);
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
const styles = StyleSheet.create({
|
|
195
|
+
container: {
|
|
196
|
+
flex: 1,
|
|
197
|
+
padding: 16,
|
|
198
|
+
backgroundColor: '#fff',
|
|
199
|
+
},
|
|
200
|
+
title: {
|
|
201
|
+
fontSize: 24,
|
|
202
|
+
fontWeight: 'bold',
|
|
203
|
+
marginBottom: 20,
|
|
204
|
+
...Platform.select({
|
|
205
|
+
ios: { fontFamily: 'System' },
|
|
206
|
+
android: { fontFamily: 'Roboto' },
|
|
207
|
+
}),
|
|
208
|
+
},
|
|
209
|
+
button: {
|
|
210
|
+
backgroundColor: '#007AFF',
|
|
211
|
+
padding: 12,
|
|
212
|
+
borderRadius: 8,
|
|
213
|
+
},
|
|
214
|
+
buttonText: {
|
|
215
|
+
color: '#fff',
|
|
216
|
+
fontSize: 16,
|
|
217
|
+
textAlign: 'center',
|
|
218
|
+
},
|
|
219
|
+
});
|
|
220
|
+
```
|
|
221
|
+
|
|
222
|
+
## Platform-specific considerations:
|
|
223
|
+
- iOS: Safe areas, navigation patterns, permissions
|
|
224
|
+
- Android: Back button handling, material design
|
|
225
|
+
- Performance: FlatList for long lists, image optimization
|
|
226
|
+
- State: Context API or Redux for complex apps
|