antigravity-ide 4.2.1 → 4.3.3
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/.agent/.shared/{design-philosophy → core/design-philosophy}/README.md +12 -1
- package/.agent/.shared/{ai-master → technical/ai-master}/README.md +12 -1
- package/.agent/.shared/{api-standards → technical/api-standards}/README.md +12 -1
- package/.agent/.shared/{database-master → technical/database-master}/README.md +12 -2
- package/.agent/.shared/{seo-master → technical/seo-master}/README.md +12 -1
- package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/README.md +12 -1
- package/.agent/ARCHITECTURE.md +16 -10
- package/.agent/ARCHITECTURE.vi.md +8 -8
- package/{GEMINI.md → .agent/GEMINI.md} +4 -5
- package/.agent/RESOURCES.md +6 -1
- package/.agent/agents/backend-specialist.md +154 -19
- package/.agent/agents/browser-subagent.md +45 -0
- package/.agent/agents/cloud-architect.md +108 -189
- package/.agent/agents/debugger.md +83 -182
- package/.agent/agents/documentation-writer.md +125 -72
- package/.agent/agents/frontend-specialist.md +40 -7
- package/.agent/agents/game-developer.md +111 -116
- package/.agent/agents/mobile-developer.md +108 -321
- package/.agent/agents/orchestrator.md +106 -366
- package/.agent/agents/performance-optimizer.md +105 -136
- package/.agent/agents/project-planner.md +132 -39
- package/.agent/agents/quality-inspector.md +136 -32
- package/.agent/agents/security-auditor.md +138 -15
- package/.agent/agents/seo-specialist.md +118 -72
- package/.agent/agents/test-engineer.md +142 -11
- package/.agent/brain/task.md +16 -0
- package/.agent/rules/GEMINI.md +63 -31
- package/.agent/rules/code-quality.md +34 -3
- package/.agent/rules/frontend.md +3 -3
- package/.agent/rules/strict-protocol.md +44 -3
- package/.agent/rules/system-update.md +56 -3
- package/.agent/skills/agent-backend-patterns/SKILL.md +16 -3
- package/.agent/skills/ai-engineer/SKILL.md +29 -16
- package/.agent/skills/api-documenter/SKILL.md +4 -4
- package/.agent/skills/app-builder/SKILL.md +1 -1
- package/.agent/skills/app-builder/tech-stack.md +2 -2
- package/.agent/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +39 -79
- package/.agent/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +53 -75
- package/.agent/skills/app-builder/templates/nextjs-static/TEMPLATE.md +56 -119
- package/.agent/skills/app-builder/templates/nuxt-app/TEMPLATE.md +61 -94
- package/.agent/skills/app-builder/templates/react-native-app/TEMPLATE.md +56 -82
- package/.agent/skills/brand-guidelines-anthropic/LICENSE.txt +202 -0
- package/.agent/skills/brand-guidelines-anthropic/SKILL.md +26 -0
- package/.agent/skills/brand-guidelines-anthropic/sub-skills/color-application.md +5 -0
- package/.agent/skills/brand-guidelines-anthropic/sub-skills/colors.md +14 -0
- package/.agent/skills/brand-guidelines-anthropic/sub-skills/font-management.md +6 -0
- package/.agent/skills/brand-guidelines-anthropic/sub-skills/shape-and-accent-colors.md +7 -0
- package/.agent/skills/brand-guidelines-anthropic/sub-skills/smart-font-application.md +6 -0
- package/.agent/skills/brand-guidelines-anthropic/sub-skills/text-styling.md +6 -0
- package/.agent/skills/brand-guidelines-anthropic/sub-skills/typography.md +7 -0
- package/.agent/skills/cloud-architect-master/SKILL.md +9 -4
- package/.agent/skills/cro-expert-kit/SKILL.md +9 -4
- package/.agent/skills/database-migration/SKILL.md +9 -3
- package/.agent/skills/deployment-engineer/SKILL.md +9 -3
- package/.agent/skills/frontend-design/ux-psychology.md +10 -585
- package/.agent/skills/full-stack-scaffold/SKILL.md +4 -4
- package/.agent/skills/game-development/2d-games/SKILL.md +4 -2
- package/.agent/skills/game-development/3d-games/SKILL.md +4 -2
- package/.agent/skills/game-development/SKILL.md +18 -149
- package/.agent/skills/game-development/game-art/SKILL.md +4 -2
- package/.agent/skills/game-development/game-audio/SKILL.md +4 -2
- package/.agent/skills/game-development/game-design/SKILL.md +4 -2
- package/.agent/skills/game-development/mobile-games/SKILL.md +4 -2
- package/.agent/skills/game-development/multiplayer/SKILL.md +4 -2
- package/.agent/skills/game-development/pc-games/SKILL.md +4 -2
- package/.agent/skills/game-development/vr-ar/SKILL.md +4 -2
- package/.agent/skills/game-development/web-games/SKILL.md +4 -2
- package/.agent/skills/geo-fundamentals/SKILL.md +9 -136
- package/.agent/skills/git-collaboration-master/SKILL.md +9 -4
- package/.agent/skills/i18n-localization/SKILL.md +10 -118
- package/.agent/skills/incident-responder/SKILL.md +9 -6
- package/.agent/skills/internal-comms-anthropic/LICENSE.txt +202 -0
- package/.agent/skills/internal-comms-anthropic/SKILL.md +33 -0
- package/.agent/skills/internal-comms-anthropic/examples/3p-updates.md +47 -0
- package/.agent/skills/internal-comms-anthropic/examples/company-newsletter.md +65 -0
- package/.agent/skills/internal-comms-anthropic/examples/faq-answers.md +30 -0
- package/.agent/skills/internal-comms-anthropic/examples/general-comms.md +16 -0
- package/.agent/skills/last30days/tests/__init__.py +1 -0
- package/.agent/skills/last30days/tests/test_cache.py +59 -0
- package/.agent/skills/last30days/tests/test_dates.py +114 -0
- package/.agent/skills/last30days/tests/test_dedupe.py +111 -0
- package/.agent/skills/last30days/tests/test_models.py +135 -0
- package/.agent/skills/last30days/tests/test_normalize.py +138 -0
- package/.agent/skills/last30days/tests/test_render.py +116 -0
- package/.agent/skills/last30days/tests/test_score.py +168 -0
- package/.agent/skills/legacy-modernizer/SKILL.md +9 -4
- package/.agent/skills/lint-and-validate/scripts/lint_runner.py +2 -14
- package/.agent/skills/loki-mode/.github/workflows/claude-code-review.yml +57 -0
- package/.agent/skills/loki-mode/.github/workflows/claude.yml +50 -0
- package/.agent/skills/loki-mode/.github/workflows/release.yml +128 -0
- package/.agent/skills/loki-mode/tests/run-all-tests.sh +78 -0
- package/.agent/skills/loki-mode/tests/test-agent-timeout.sh +348 -0
- package/.agent/skills/loki-mode/tests/test-bootstrap.sh +196 -0
- package/.agent/skills/loki-mode/tests/test-circuit-breaker.sh +389 -0
- package/.agent/skills/loki-mode/tests/test-state-recovery.sh +393 -0
- package/.agent/skills/loki-mode/tests/test-task-queue.sh +396 -0
- package/.agent/skills/loki-mode/tests/test-wrapper.sh +314 -0
- package/.agent/skills/mcp-builder/SKILL.md +21 -164
- package/.agent/skills/mobile-design/SKILL.md +21 -369
- package/.agent/skills/mobile-design/mobile-performance.md +1 -1
- package/.agent/skills/modern-web-architect/SKILL.md +12 -6
- package/.agent/skills/nextjs-react-expert/scripts/convert_rules.py +1 -1
- package/.agent/skills/penetration-tester-master/SKILL.md +9 -4
- package/.agent/skills/performance-engineer/SKILL.md +4 -5
- package/.agent/skills/production-code-audit/SKILL.md +6 -0
- package/.agent/skills/rust-pro/SKILL.md +0 -177
- package/.agent/skills/security-auditor/SKILL.md +35 -27
- package/.agent/skills/seo-expert-kit/SKILL.md +9 -4
- package/.agent/skills/shopify-development/scripts/tests/test_shopify_init.py +379 -0
- package/.agent/skills/tdd-master-workflow/SKILL.md +9 -3
- package/.agent/workflows/audit.md +30 -16
- package/.agent/workflows/brainstorm.md +33 -96
- package/.agent/workflows/create.md +37 -45
- package/.agent/workflows/debug.md +45 -84
- package/.agent/workflows/deploy.md +33 -158
- package/.agent/workflows/document.md +38 -15
- package/.agent/workflows/enhance.md +33 -48
- package/.agent/workflows/monitor.md +35 -14
- package/.agent/workflows/orchestrate.md +33 -218
- package/.agent/workflows/plan.md +39 -70
- package/.agent/workflows/security.md +35 -14
- package/.agent/workflows/seo.md +39 -16
- package/.agent/workflows/status.md +33 -72
- package/.agent/workflows/test.md +30 -127
- package/.agent/workflows/ui-ux-pro-max.md +24 -283
- package/LICENSE +22 -8
- package/README.md +105 -72
- package/README.vi.md +93 -110
- package/cli/create.js +275 -413
- package/cli/index.js +36 -24
- package/cli/lib/auto-update.js +14 -21
- package/cli/logic/product-skills.js +58 -0
- package/cli/logic/skill-definitions.js +0 -39
- package/cli/prompts.js +151 -145
- package/cli/skills/browser-subagent-core/SKILL.md +22 -0
- package/cli/tools/browser.js +75 -0
- package/cli/ui/dashboard.js +48 -0
- package/docs/AGENTS_GUIDE.vi.md +39 -45
- package/docs/CONTRIBUTING.vi.md +12 -3
- package/docs/{GEMINI_GUIDE.md → GEMINI_USAGE.md} +6 -6
- package/docs/GLOSSARY.vi.md +49 -30
- package/docs/HOW_ANTIGRAVITY_THINKS.vi.md +1 -1
- package/docs/OPERATIONAL_FLOW.vi.md +15 -0
- package/docs/{PUBLISHING.md → PUBLISHING_GUIDE.md} +31 -3
- package/docs/RULES_GUIDE.vi.md +67 -31
- package/docs/SHARED_LIBRARY_GUIDE.vi.md +18 -22
- package/docs/SKILLS_GUIDE.vi.md +119 -32
- package/docs/TROUBLESHOOTING.vi.md +10 -2
- package/docs/WORKFLOW_GUIDE.vi.md +57 -9
- package/package.json +32 -8
- package/setup.js +147 -114
- package/.agent/.shared/compliance/README.md +0 -19
- package/.agent/.shared/design-system/README.md +0 -18
- package/.agent/.shared/domain-blueprints/README.md +0 -18
- package/.agent/.shared/dx-toolkit/README.md +0 -19
- package/.agent/.shared/i18n-master/README.md +0 -18
- package/.agent/.shared/infra-blueprints/README.md +0 -18
- package/.agent/.shared/metrics/README.md +0 -17
- package/.agent/.shared/resilience-patterns/README.md +0 -19
- package/.agent/.shared/security-armor/README.md +0 -25
- package/.agent/.shared/testing-master/README.md +0 -20
- package/.agent/.shared/vitals-templates/README.md +0 -18
- package/.agent/agents/accessibility-expert.md +0 -22
- package/.agent/agents/api-architect.md +0 -22
- package/.agent/agents/backend-specialist.eco.md +0 -19
- package/.agent/agents/backend-specialist.instant.md +0 -19
- package/.agent/agents/codebase-expert.md +0 -23
- package/.agent/agents/compliance-expert.md +0 -22
- package/.agent/agents/data-scientist.md +0 -22
- package/.agent/agents/debugger.eco.md +0 -20
- package/.agent/agents/debugger.instant.md +0 -20
- package/.agent/agents/deep-thinker.ultra.md +0 -23
- package/.agent/agents/devex-optimizer.md +0 -22
- package/.agent/agents/devops-architect.md +0 -22
- package/.agent/agents/frontend-specialist.eco.md +0 -19
- package/.agent/agents/frontend-specialist.instant.md +0 -19
- package/.agent/agents/growth-engineer.md +0 -22
- package/.agent/agents/i18n-specialist.md +0 -21
- package/.agent/agents/legacy-modernizer.md +0 -22
- package/.agent/agents/microservices-specialist.md +0 -22
- package/.agent/agents/motion-designer.md +0 -22
- package/.agent/agents/orchestrator.creative.md +0 -28
- package/.agent/agents/orchestrator.eco.md +0 -29
- package/.agent/agents/orchestrator.instant.md +0 -29
- package/.agent/agents/orchestrator.ultra.md +0 -28
- package/.agent/agents/performance-benchmarker.md +0 -22
- package/.agent/agents/project-planner.eco.md +0 -19
- package/.agent/agents/project-planner.instant.md +0 -19
- package/.agent/agents/security-pentester.md +0 -22
- package/.agent/agents/serverless-expert.md +0 -22
- package/.agent/fastcode_index.json +0 -1038
- package/.agent/mcp_config.json +0 -24
- package/.agent/rules/GEMINI.eco.md +0 -37
- package/.agent/rules/GEMINI.instant.md +0 -37
- package/.agent/rules/api-spec.md +0 -28
- package/.agent/rules/database.md +0 -24
- package/.agent/rules/devops.md +0 -23
- package/.agent/rules/growth-strategy.md +0 -22
- package/.agent/rules/logging-monitoring.md +0 -22
- package/.agent/rules/quality-assurance.md +0 -22
- package/.agent/rules/system-reasoning.md +0 -20
- package/.agent/rules/ui-design.md +0 -23
- package/.agent/rules/ux-patterns.md +0 -23
- package/.agent/scripts/auto_preview.py +0 -148
- package/.agent/scripts/checklist.py +0 -252
- package/.agent/scripts/session_manager.py +0 -120
- package/.agent/scripts/simulation_install.js +0 -59
- package/.agent/scripts/sync_to_global.py +0 -78
- package/.agent/scripts/translate_workflows.py +0 -53
- package/.agent/scripts/verify_all.py +0 -327
- package/.agent/scripts/verify_shared_modules.js +0 -126
- package/.agent/skills/fastcode-search/SKILL.md +0 -46
- package/.agent/skills/fastcode-search/fastcode_config.example.json +0 -17
- package/.agent/skills/frontend-trends-2026/SKILL.md +0 -78
- package/.agent/skills/frontend-trends-2026/formulas/BentoGrid.tsx +0 -42
- package/.agent/skills/frontend-trends-2026/formulas/LiquidCard.tsx +0 -32
- package/.agent/skills/frontend-trends-2026/formulas/NeoButton.tsx +0 -27
- package/.agent/workflows/deep-security-audit.md +0 -9
- package/.agent/workflows/growth-max.md +0 -9
- package/.agent/workflows/performance-max.md +0 -9
- package/.editorconfig +0 -21
- package/.gitattributes +0 -7
- package/CHANGELOG.md +0 -32
- package/ERRORS.md +0 -67
- package/action.yml +0 -32
- package/antigravity-ide-logo.png +0 -0
- package/antigravity-ide-logo.svg +0 -24
- package/assets/skills-bundle.json +0 -1
- package/cli/manifest.js +0 -524
- package/cli/skills/fastcode.js +0 -181
- package/docs/AGENT_FLOW.md +0 -608
- package/docs/CONTRIBUTING.md +0 -46
- package/docs/COPYRIGHT.md +0 -57
- package/docs/DEPLOYMENT.md +0 -77
- package/docs/GLOSSARY.md +0 -109
- package/docs/MASTER_GUIDE.md +0 -103
- package/docs/OPERATIONAL_FLOW.md +0 -147
- package/docs/PLAN-upgrade-core-architecture.md +0 -71
- package/docs/SKILLS.md +0 -610
- package/docs/TROUBLESHOOTING.md +0 -43
- package/jest.config.js +0 -8
- package/scripts/bump.js +0 -93
- package/scripts/bundle-skills.js +0 -59
- package/scripts/internal/automation/auto-release.js +0 -177
- package/scripts/internal/fractalize-skills.js +0 -89
- package/scripts/internal/generate-skill-definitions.js +0 -134
- package/scripts/internal/internal/update-docs.js +0 -115
- package/scripts/internal/refactor-skill-content.js +0 -127
- package/scripts/internal/rename-skills.js +0 -96
- package/scripts/internal/sync-skills.js +0 -112
- package/scripts/internal/update-frontmatter-names.js +0 -99
- package/scripts/internal/verification/audit-dna.js +0 -56
- package/scripts/internal/verification/audit-skills.js +0 -65
- package/web/src/app/docs/guide/examples/brainstorm/page.mdx +0 -91
- package/web/src/app/docs/guide/examples/create/page.mdx +0 -84
- package/web/src/app/docs/guide/examples/debugging/page.mdx +0 -83
- package/web/src/app/docs/guide/examples/deployment/page.mdx +0 -93
- package/web/src/app/docs/guide/examples/new-feature/page.mdx +0 -102
- package/web/src/app/docs/guide/examples/orchestration/page.mdx +0 -99
- package/web/src/app/docs/guide/examples/plan/page.mdx +0 -76
- package/web/src/app/docs/guide/examples/preview/page.mdx +0 -77
- package/web/src/app/docs/guide/examples/status/page.mdx +0 -78
- package/web/src/app/docs/guide/examples/test/page.mdx +0 -80
- package/web/src/app/docs/guide/examples/ui-design/page.mdx +0 -90
- package/web/src/components/mdx/Callout.tsx +0 -60
- package/web/src/components/mdx/FeatureGrid.tsx +0 -38
- package/web/src/components/mdx/ProTips.tsx +0 -29
- package/web/src/components/mdx/StepList.tsx +0 -33
- package/web/src/components/mdx/Terminal.tsx +0 -58
- package/web/src/components/mdx/index.ts +0 -5
- package/web/src/mdx-components.tsx +0 -98
- /package/.agent/.shared/{design-philosophy → core/design-philosophy}/MANIFESTO.md +0 -0
- /package/.agent/.shared/{design-philosophy → core/design-philosophy}/checklists/tactile_audit.md +0 -0
- /package/.agent/.shared/{design-philosophy → core/design-philosophy}/checklists/visual_audit.md +0 -0
- /package/.agent/.shared/{design-philosophy → core/design-philosophy}/presets/linear_glow.json +0 -0
- /package/.agent/.shared/{dx-toolkit → core/dx-toolkit}/checklists/code_review.md +0 -0
- /package/.agent/.shared/{dx-toolkit → core/dx-toolkit}/presets/vscode_settings.json +0 -0
- /package/.agent/.shared/{metrics → core/metrics}/benchmarks.json +0 -0
- /package/.agent/.shared/{vitals-templates → core/vitals-templates}/audit_report.md +0 -0
- /package/.agent/.shared/{vitals-templates → core/vitals-templates}/plan_prd.md +0 -0
- /package/.agent/.shared/{ai-master → technical/ai-master}/best_patterns.md +0 -0
- /package/.agent/.shared/{ai-master → technical/ai-master}/checklists/prompt_audit.md +0 -0
- /package/.agent/.shared/{ai-master → technical/ai-master}/presets/model_configs.json +0 -0
- /package/.agent/.shared/{api-standards → technical/api-standards}/data +0 -0
- /package/.agent/.shared/{api-standards → technical/api-standards}/endpoints_naming.md +0 -0
- /package/.agent/.shared/{api-standards → technical/api-standards}/error_codes.csv +0 -0
- /package/.agent/.shared/{api-standards → technical/api-standards}/pagination_sorting.md +0 -0
- /package/.agent/.shared/{api-standards → technical/api-standards}/response_format.json +0 -0
- /package/.agent/.shared/{database-master → technical/database-master}/schemas/auth_rbac.sql +0 -0
- /package/.agent/.shared/{database-master → technical/database-master}/schemas/cms.sql +0 -0
- /package/.agent/.shared/{database-master → technical/database-master}/schemas/ecommerce.sql +0 -0
- /package/.agent/.shared/{design-system → technical/design-system}/brand_presets.json +0 -0
- /package/.agent/.shared/{design-system → technical/design-system}/micro_interactions.md +0 -0
- /package/.agent/.shared/{i18n-master → technical/i18n-master}/vi_tech_dictionary.csv +0 -0
- /package/.agent/.shared/{i18n-master → technical/i18n-master}/workflows.json +0 -0
- /package/.agent/.shared/{resilience-patterns → technical/resilience-patterns}/checklists/chaos_engineering.md +0 -0
- /package/.agent/.shared/{resilience-patterns → technical/resilience-patterns}/presets/circuit_breaker.json +0 -0
- /package/.agent/.shared/{security-armor → technical/security-armor}/checklists/vuln_scan.md +0 -0
- /package/.agent/.shared/{security-armor → technical/security-armor}/hardening.md +0 -0
- /package/.agent/.shared/{security-armor → technical/security-armor}/presets/helmet_config.json +0 -0
- /package/.agent/.shared/{seo-master → technical/seo-master}/checklists/technical_seo.md +0 -0
- /package/.agent/.shared/{seo-master → technical/seo-master}/presets/json_ld_schema.json +0 -0
- /package/.agent/.shared/{testing-master → technical/testing-master}/checklists/pre_release.md +0 -0
- /package/.agent/.shared/{testing-master → technical/testing-master}/scenarios.md +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/colors.csv +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/icons.csv +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/landing.csv +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/products.csv +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/react-performance.csv +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/stacks/flutter.csv +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/stacks/html-tailwind.csv +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/stacks/jetpack-compose.csv +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/stacks/nextjs.csv +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/stacks/nuxt-ui.csv +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/stacks/nuxtjs.csv +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/stacks/react-native.csv +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/stacks/react.csv +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/stacks/shadcn.csv +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/stacks/svelte.csv +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/stacks/swiftui.csv +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/stacks/vue.csv +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/ux-guidelines.csv +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/data/web-interface.csv +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/scripts/__pycache__/core.cpython-313.pyc +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/scripts/__pycache__/design_system.cpython-313.pyc +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/scripts/core.py +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/scripts/design_system.py +0 -0
- /package/.agent/.shared/{ui-ux-pro-max → technical/ui-ux-pro-max}/scripts/search.py +0 -0
- /package/.agent/.shared/{compliance → verticals/compliance}/legal_templates.md +0 -0
- /package/.agent/.shared/{domain-blueprints → verticals/domain-blueprints}/edtech.md +0 -0
- /package/.agent/.shared/{domain-blueprints → verticals/domain-blueprints}/fintech.md +0 -0
- /package/.agent/.shared/{domain-blueprints → verticals/domain-blueprints}/fnb_restaurant.md +0 -0
- /package/.agent/.shared/{domain-blueprints → verticals/domain-blueprints}/freelance_marketplace.md +0 -0
- /package/.agent/.shared/{domain-blueprints → verticals/domain-blueprints}/healthcare.md +0 -0
- /package/.agent/.shared/{domain-blueprints → verticals/domain-blueprints}/hospitality_tourism.md +0 -0
- /package/.agent/.shared/{domain-blueprints → verticals/domain-blueprints}/logistics.md +0 -0
- /package/.agent/.shared/{domain-blueprints → verticals/domain-blueprints}/marketing_automation.md +0 -0
- /package/.agent/.shared/{domain-blueprints → verticals/domain-blueprints}/personal_branding.md +0 -0
- /package/.agent/.shared/{domain-blueprints → verticals/domain-blueprints}/real_estate.md +0 -0
- /package/.agent/.shared/{domain-blueprints → verticals/domain-blueprints}/retail_ecommerce.md +0 -0
- /package/.agent/.shared/{domain-blueprints → verticals/domain-blueprints}/standard-pro-agents.md +0 -0
- /package/.agent/.shared/{infra-blueprints → verticals/infra-blueprints}/deployment_specs.md +0 -0
- /package/.agent/skills/ai-engineer/{resources → sub-skills}/ai_infra_stack.md +0 -0
- /package/.agent/skills/cloud-architect-master/{resources → sub-skills}/cost_optimization_checklist.md +0 -0
- /package/.agent/skills/cro-expert-kit/{resources → sub-skills}/psychological_triggers.md +0 -0
- /package/.agent/skills/database-migration/{resources → sub-skills}/zero_downtime_strategy.md +0 -0
- /package/.agent/skills/deployment-engineer/{resources → sub-skills}/k8s_best_practices.md +0 -0
- /package/.agent/skills/git-collaboration-master/{resources → sub-skills}/pr_template.md +0 -0
- /package/.agent/skills/incident-responder/{resources → sub-skills}/incident_severity_levels.md +0 -0
- /package/.agent/skills/legacy-modernizer/{resources → sub-skills}/strangler_fig_pattern.md +0 -0
- /package/.agent/skills/penetration-tester-master/{resources → sub-skills}/owasp_top_10_2025.md +0 -0
- /package/.agent/skills/production-code-audit/{resources → sub-skills}/solid_principles_cheat_sheet.md +0 -0
- /package/.agent/skills/seo-expert-kit/{resources → sub-skills}/technical_seo_checklist.md +0 -0
- /package/.agent/skills/tdd-master-workflow/{resources → sub-skills}/unit_test_naming_convention.md +0 -0
- /package/.agent/{.shared → skills}/ui-ux-pro-max/data/charts.csv +0 -0
- /package/.agent/{.shared → skills}/ui-ux-pro-max/data/prompts.csv +0 -0
- /package/.agent/{.shared → skills}/ui-ux-pro-max/data/styles.csv +0 -0
- /package/.agent/{.shared → skills}/ui-ux-pro-max/data/typography.csv +0 -0
- /package/.agent/{.shared → skills}/ui-ux-pro-max/data/ui-reasoning.csv +0 -0
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: mcp-builder
|
|
3
|
-
description: MCP (Model Context Protocol) server building principles.
|
|
4
|
-
|
|
3
|
+
description: MCP (Model Context Protocol) server building principles.
|
|
4
|
+
category: tools
|
|
5
|
+
version: 4.1.0-fractal
|
|
6
|
+
layer: master-skill
|
|
5
7
|
---
|
|
6
8
|
|
|
7
9
|
# MCP Builder
|
|
@@ -12,165 +14,20 @@ allowed-tools: Read, Write, Edit, Glob, Grep
|
|
|
12
14
|
|
|
13
15
|
## 1. MCP Overview
|
|
14
16
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
###
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
###
|
|
32
|
-
|
|
33
|
-
```
|
|
34
|
-
my-mcp-server/
|
|
35
|
-
├── src/
|
|
36
|
-
│ └── index.ts # Main entry
|
|
37
|
-
├── package.json
|
|
38
|
-
└── tsconfig.json
|
|
39
|
-
```
|
|
40
|
-
|
|
41
|
-
### Transport Types
|
|
42
|
-
|
|
43
|
-
| Type | Use |
|
|
44
|
-
|------|-----|
|
|
45
|
-
| **Stdio** | Local, CLI-based |
|
|
46
|
-
| **SSE** | Web-based, streaming |
|
|
47
|
-
| **WebSocket** | Real-time, bidirectional |
|
|
48
|
-
|
|
49
|
-
---
|
|
50
|
-
|
|
51
|
-
## 3. Tool Design Principles
|
|
52
|
-
|
|
53
|
-
### Good Tool Design
|
|
54
|
-
|
|
55
|
-
| Principle | Description |
|
|
56
|
-
|-----------|-------------|
|
|
57
|
-
| Clear name | Action-oriented (get_weather, create_user) |
|
|
58
|
-
| Single purpose | One thing well |
|
|
59
|
-
| Validated input | Schema with types and descriptions |
|
|
60
|
-
| Structured output | Predictable response format |
|
|
61
|
-
|
|
62
|
-
### Input Schema Design
|
|
63
|
-
|
|
64
|
-
| Field | Required? |
|
|
65
|
-
|-------|-----------|
|
|
66
|
-
| Type | Yes - object |
|
|
67
|
-
| Properties | Define each param |
|
|
68
|
-
| Required | List mandatory params |
|
|
69
|
-
| Description | Human-readable |
|
|
70
|
-
|
|
71
|
-
---
|
|
72
|
-
|
|
73
|
-
## 4. Resource Patterns
|
|
74
|
-
|
|
75
|
-
### Resource Types
|
|
76
|
-
|
|
77
|
-
| Type | Use |
|
|
78
|
-
|------|-----|
|
|
79
|
-
| Static | Fixed data (config, docs) |
|
|
80
|
-
| Dynamic | Generated on request |
|
|
81
|
-
| Template | URI with parameters |
|
|
82
|
-
|
|
83
|
-
### URI Patterns
|
|
84
|
-
|
|
85
|
-
| Pattern | Example |
|
|
86
|
-
|---------|---------|
|
|
87
|
-
| Fixed | `docs://readme` |
|
|
88
|
-
| Parameterized | `users://{userId}` |
|
|
89
|
-
| Collection | `files://project/*` |
|
|
90
|
-
|
|
91
|
-
---
|
|
92
|
-
|
|
93
|
-
## 5. Error Handling
|
|
94
|
-
|
|
95
|
-
### Error Types
|
|
96
|
-
|
|
97
|
-
| Situation | Response |
|
|
98
|
-
|-----------|----------|
|
|
99
|
-
| Invalid params | Validation error message |
|
|
100
|
-
| Not found | Clear "not found" |
|
|
101
|
-
| Server error | Generic error, log details |
|
|
102
|
-
|
|
103
|
-
### Best Practices
|
|
104
|
-
|
|
105
|
-
- Return structured errors
|
|
106
|
-
- Don't expose internal details
|
|
107
|
-
- Log for debugging
|
|
108
|
-
- Provide actionable messages
|
|
109
|
-
|
|
110
|
-
---
|
|
111
|
-
|
|
112
|
-
## 6. Multimodal Handling
|
|
113
|
-
|
|
114
|
-
### Supported Types
|
|
115
|
-
|
|
116
|
-
| Type | Encoding |
|
|
117
|
-
|------|----------|
|
|
118
|
-
| Text | Plain text |
|
|
119
|
-
| Images | Base64 + MIME type |
|
|
120
|
-
| Files | Base64 + MIME type |
|
|
121
|
-
|
|
122
|
-
---
|
|
123
|
-
|
|
124
|
-
## 7. Security Principles
|
|
125
|
-
|
|
126
|
-
### Input Validation
|
|
127
|
-
|
|
128
|
-
- Validate all tool inputs
|
|
129
|
-
- Sanitize user-provided data
|
|
130
|
-
- Limit resource access
|
|
131
|
-
|
|
132
|
-
### API Keys
|
|
133
|
-
|
|
134
|
-
- Use environment variables
|
|
135
|
-
- Don't log secrets
|
|
136
|
-
- Validate permissions
|
|
137
|
-
|
|
138
|
-
---
|
|
139
|
-
|
|
140
|
-
## 8. Configuration
|
|
141
|
-
|
|
142
|
-
### Claude Desktop Config
|
|
143
|
-
|
|
144
|
-
| Field | Purpose |
|
|
145
|
-
|-------|---------|
|
|
146
|
-
| command | Executable to run |
|
|
147
|
-
| args | Command arguments |
|
|
148
|
-
| env | Environment variables |
|
|
149
|
-
|
|
150
|
-
---
|
|
151
|
-
|
|
152
|
-
## 9. Testing
|
|
153
|
-
|
|
154
|
-
### Test Categories
|
|
155
|
-
|
|
156
|
-
| Type | Focus |
|
|
157
|
-
|------|-------|
|
|
158
|
-
| Unit | Tool logic |
|
|
159
|
-
| Integration | Full server |
|
|
160
|
-
| Contract | Schema validation |
|
|
161
|
-
|
|
162
|
-
---
|
|
163
|
-
|
|
164
|
-
## 10. Best Practices Checklist
|
|
165
|
-
|
|
166
|
-
- [ ] Clear, action-oriented tool names
|
|
167
|
-
- [ ] Complete input schemas with descriptions
|
|
168
|
-
- [ ] Structured JSON output
|
|
169
|
-
- [ ] Error handling for all cases
|
|
170
|
-
- [ ] Input validation
|
|
171
|
-
- [ ] Environment-based configuration
|
|
172
|
-
- [ ] Logging for debugging
|
|
173
|
-
|
|
174
|
-
---
|
|
175
|
-
|
|
176
|
-
> **Remember:** MCP tools should be simple, focused, and well-documented. The AI relies on descriptions to use them correctly.
|
|
17
|
+
## 🧠 Knowledge Modules (Fractal Skills)
|
|
18
|
+
|
|
19
|
+
### 1. [What is MCP?](./sub-skills/what-is-mcp.md)
|
|
20
|
+
### 2. [Core Concepts](./sub-skills/core-concepts.md)
|
|
21
|
+
### 3. [Project Structure](./sub-skills/project-structure.md)
|
|
22
|
+
### 4. [Transport Types](./sub-skills/transport-types.md)
|
|
23
|
+
### 5. [Good Tool Design](./sub-skills/good-tool-design.md)
|
|
24
|
+
### 6. [Input Schema Design](./sub-skills/input-schema-design.md)
|
|
25
|
+
### 7. [Resource Types](./sub-skills/resource-types.md)
|
|
26
|
+
### 8. [URI Patterns](./sub-skills/uri-patterns.md)
|
|
27
|
+
### 9. [Error Types](./sub-skills/error-types.md)
|
|
28
|
+
### 10. [Best Practices](./sub-skills/best-practices.md)
|
|
29
|
+
### 11. [Supported Types](./sub-skills/supported-types.md)
|
|
30
|
+
### 12. [Input Validation](./sub-skills/input-validation.md)
|
|
31
|
+
### 13. [API Keys](./sub-skills/api-keys.md)
|
|
32
|
+
### 14. [Claude Desktop Config](./sub-skills/claude-desktop-config.md)
|
|
33
|
+
### 15. [Test Categories](./sub-skills/test-categories.md)
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: mobile-design
|
|
3
|
-
description: Mobile-first design thinking and decision-making for iOS and Android apps.
|
|
4
|
-
|
|
3
|
+
description: Mobile-first design thinking and decision-making for iOS and Android apps.
|
|
4
|
+
category: design
|
|
5
|
+
version: 4.1.0-fractal
|
|
6
|
+
layer: master-skill
|
|
5
7
|
---
|
|
6
8
|
|
|
7
9
|
# Mobile Design System
|
|
@@ -25,370 +27,20 @@ allowed-tools: Read, Glob, Grep, Bash
|
|
|
25
27
|
|
|
26
28
|
**⛔ DO NOT start development until you read the relevant files:**
|
|
27
29
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
### Platform-Specific (Read Based on Target)
|
|
46
|
-
|
|
47
|
-
| Platform | File | Content | When to Read |
|
|
48
|
-
|----------|------|---------|--------------|
|
|
49
|
-
| **iOS** | [platform-ios.md](platform-ios.md) | Human Interface Guidelines, SF Pro, SwiftUI patterns | Building for iPhone/iPad |
|
|
50
|
-
| **Android** | [platform-android.md](platform-android.md) | Material Design 3, Roboto, Compose patterns | Building for Android |
|
|
51
|
-
| **Cross-Platform** | Both above | Platform divergence points | React Native / Flutter |
|
|
52
|
-
|
|
53
|
-
> 🔴 **If building for iOS → Read platform-ios.md FIRST!**
|
|
54
|
-
> 🔴 **If building for Android → Read platform-android.md FIRST!**
|
|
55
|
-
> 🔴 **If cross-platform → Read BOTH and apply conditional platform logic!**
|
|
56
|
-
|
|
57
|
-
---
|
|
58
|
-
|
|
59
|
-
## ⚠️ CRITICAL: ASK BEFORE ASSUMING (MANDATORY)
|
|
60
|
-
|
|
61
|
-
> **STOP! If the user's request is open-ended, DO NOT default to your favorites.**
|
|
62
|
-
|
|
63
|
-
### You MUST Ask If Not Specified:
|
|
64
|
-
|
|
65
|
-
| Aspect | Ask | Why |
|
|
66
|
-
|--------|-----|-----|
|
|
67
|
-
| **Platform** | "iOS, Android, or both?" | Affects EVERY design decision |
|
|
68
|
-
| **Framework** | "React Native, Flutter, or native?" | Determines patterns and tools |
|
|
69
|
-
| **Navigation** | "Tab bar, drawer, or stack-based?" | Core UX decision |
|
|
70
|
-
| **State** | "What state management? (Zustand/Redux/Riverpod/BLoC?)" | Architecture foundation |
|
|
71
|
-
| **Offline** | "Does this need to work offline?" | Affects data strategy |
|
|
72
|
-
| **Target devices** | "Phone only, or tablet support?" | Layout complexity |
|
|
73
|
-
|
|
74
|
-
### ⛔ AI MOBILE ANTI-PATTERNS (YASAK LİSTESİ)
|
|
75
|
-
|
|
76
|
-
> 🚫 **These are AI default tendencies that MUST be avoided!**
|
|
77
|
-
|
|
78
|
-
#### Performance Sins
|
|
79
|
-
|
|
80
|
-
| ❌ NEVER DO | Why It's Wrong | ✅ ALWAYS DO |
|
|
81
|
-
|-------------|----------------|--------------|
|
|
82
|
-
| **ScrollView for long lists** | Renders ALL items, memory explodes | Use `FlatList` / `FlashList` / `ListView.builder` |
|
|
83
|
-
| **Inline renderItem function** | New function every render, all items re-render | `useCallback` + `React.memo` |
|
|
84
|
-
| **Missing keyExtractor** | Index-based keys cause bugs on reorder | Unique, stable ID from data |
|
|
85
|
-
| **Skip getItemLayout** | Async layout = janky scroll | Provide when items have fixed height |
|
|
86
|
-
| **setState() everywhere** | Unnecessary widget rebuilds | Targeted state, `const` constructors |
|
|
87
|
-
| **Native driver: false** | Animations blocked by JS thread | `useNativeDriver: true` always |
|
|
88
|
-
| **console.log in production** | Blocks JS thread severely | Remove before release build |
|
|
89
|
-
| **Skip React.memo/const** | Every item re-renders on any change | Memoize list items ALWAYS |
|
|
90
|
-
|
|
91
|
-
#### Touch/UX Sins
|
|
92
|
-
|
|
93
|
-
| ❌ NEVER DO | Why It's Wrong | ✅ ALWAYS DO |
|
|
94
|
-
|-------------|----------------|--------------|
|
|
95
|
-
| **Touch target < 44px** | Impossible to tap accurately, frustrating | Minimum 44pt (iOS) / 48dp (Android) |
|
|
96
|
-
| **Spacing < 8px between targets** | Accidental taps on neighbors | Minimum 8-12px gap |
|
|
97
|
-
| **Gesture-only interactions** | Motor impaired users excluded | Always provide button alternative |
|
|
98
|
-
| **No loading state** | User thinks app crashed | ALWAYS show loading feedback |
|
|
99
|
-
| **No error state** | User stuck, no recovery path | Show error with retry option |
|
|
100
|
-
| **No offline handling** | Crash/block when network lost | Graceful degradation, cached data |
|
|
101
|
-
| **Ignore platform conventions** | Users confused, muscle memory broken | iOS feels iOS, Android feels Android |
|
|
102
|
-
|
|
103
|
-
#### Security Sins
|
|
104
|
-
|
|
105
|
-
| ❌ NEVER DO | Why It's Wrong | ✅ ALWAYS DO |
|
|
106
|
-
|-------------|----------------|--------------|
|
|
107
|
-
| **Token in AsyncStorage** | Easily accessible, stolen on rooted device | `SecureStore` / `Keychain` / `EncryptedSharedPreferences` |
|
|
108
|
-
| **Hardcode API keys** | Reverse engineered from APK/IPA | Environment variables, secure storage |
|
|
109
|
-
| **Skip SSL pinning** | MITM attacks possible | Pin certificates in production |
|
|
110
|
-
| **Log sensitive data** | Logs can be extracted | Never log tokens, passwords, PII |
|
|
111
|
-
|
|
112
|
-
#### Architecture Sins
|
|
113
|
-
|
|
114
|
-
| ❌ NEVER DO | Why It's Wrong | ✅ ALWAYS DO |
|
|
115
|
-
|-------------|----------------|--------------|
|
|
116
|
-
| **Business logic in UI** | Untestable, unmaintainable | Service layer separation |
|
|
117
|
-
| **Global state for everything** | Unnecessary re-renders, complexity | Local state default, lift when needed |
|
|
118
|
-
| **Deep linking as afterthought** | Notifications, shares broken | Plan deep links from day one |
|
|
119
|
-
| **Skip dispose/cleanup** | Memory leaks, zombie listeners | Clean up subscriptions, timers |
|
|
120
|
-
|
|
121
|
-
---
|
|
122
|
-
|
|
123
|
-
## 📱 Platform Decision Matrix
|
|
124
|
-
|
|
125
|
-
### When to Unify vs Diverge
|
|
126
|
-
|
|
127
|
-
```
|
|
128
|
-
UNIFY (same on both) DIVERGE (platform-specific)
|
|
129
|
-
─────────────────── ──────────────────────────
|
|
130
|
-
Business Logic ✅ Always -
|
|
131
|
-
Data Layer ✅ Always -
|
|
132
|
-
Core Features ✅ Always -
|
|
133
|
-
|
|
134
|
-
Navigation - ✅ iOS: edge swipe, Android: back button
|
|
135
|
-
Gestures - ✅ Platform-native feel
|
|
136
|
-
Icons - ✅ SF Symbols vs Material Icons
|
|
137
|
-
Date Pickers - ✅ Native pickers feel right
|
|
138
|
-
Modals/Sheets - ✅ iOS: bottom sheet vs Android: dialog
|
|
139
|
-
Typography - ✅ SF Pro vs Roboto (or custom)
|
|
140
|
-
Error Dialogs - ✅ Platform conventions for alerts
|
|
141
|
-
```
|
|
142
|
-
|
|
143
|
-
### Quick Reference: Platform Defaults
|
|
144
|
-
|
|
145
|
-
| Element | iOS | Android |
|
|
146
|
-
|---------|-----|---------|
|
|
147
|
-
| **Primary Font** | SF Pro / SF Compact | Roboto |
|
|
148
|
-
| **Min Touch Target** | 44pt × 44pt | 48dp × 48dp |
|
|
149
|
-
| **Back Navigation** | Edge swipe left | System back button/gesture |
|
|
150
|
-
| **Bottom Tab Icons** | SF Symbols | Material Symbols |
|
|
151
|
-
| **Action Sheet** | UIActionSheet from bottom | Bottom Sheet / Dialog |
|
|
152
|
-
| **Progress** | Spinner | Linear progress (Material) |
|
|
153
|
-
| **Pull to Refresh** | Native UIRefreshControl | SwipeRefreshLayout |
|
|
154
|
-
|
|
155
|
-
---
|
|
156
|
-
|
|
157
|
-
## 🧠 Mobile UX Psychology (Quick Reference)
|
|
158
|
-
|
|
159
|
-
### Fitts' Law for Touch
|
|
160
|
-
|
|
161
|
-
```
|
|
162
|
-
Desktop: Cursor is precise (1px)
|
|
163
|
-
Mobile: Finger is imprecise (~7mm contact area)
|
|
164
|
-
|
|
165
|
-
→ Touch targets MUST be 44-48px minimum
|
|
166
|
-
→ Important actions in THUMB ZONE (bottom of screen)
|
|
167
|
-
→ Destructive actions AWAY from easy reach
|
|
168
|
-
```
|
|
169
|
-
|
|
170
|
-
### Thumb Zone (One-Handed Usage)
|
|
171
|
-
|
|
172
|
-
```
|
|
173
|
-
┌─────────────────────────────┐
|
|
174
|
-
│ HARD TO REACH │ ← Navigation, menu, back
|
|
175
|
-
│ (stretch) │
|
|
176
|
-
├─────────────────────────────┤
|
|
177
|
-
│ OK TO REACH │ ← Secondary actions
|
|
178
|
-
│ (natural) │
|
|
179
|
-
├─────────────────────────────┤
|
|
180
|
-
│ EASY TO REACH │ ← PRIMARY CTAs, tab bar
|
|
181
|
-
│ (thumb's natural arc) │ ← Main content interaction
|
|
182
|
-
└─────────────────────────────┘
|
|
183
|
-
[ HOME ]
|
|
184
|
-
```
|
|
185
|
-
|
|
186
|
-
### Mobile-Specific Cognitive Load
|
|
187
|
-
|
|
188
|
-
| Desktop | Mobile Difference |
|
|
189
|
-
|---------|-------------------|
|
|
190
|
-
| Multiple windows | ONE task at a time |
|
|
191
|
-
| Keyboard shortcuts | Touch gestures |
|
|
192
|
-
| Hover states | NO hover (tap or nothing) |
|
|
193
|
-
| Large viewport | Limited space, scroll vertical |
|
|
194
|
-
| Stable attention | Interrupted constantly |
|
|
195
|
-
|
|
196
|
-
For deep dive: [touch-psychology.md](touch-psychology.md)
|
|
197
|
-
|
|
198
|
-
---
|
|
199
|
-
|
|
200
|
-
## ⚡ Performance Principles (Quick Reference)
|
|
201
|
-
|
|
202
|
-
### React Native Critical Rules
|
|
203
|
-
|
|
204
|
-
```typescript
|
|
205
|
-
// ✅ CORRECT: Memoized renderItem + React.memo wrapper
|
|
206
|
-
const ListItem = React.memo(({ item }: { item: Item }) => (
|
|
207
|
-
<View style={styles.item}>
|
|
208
|
-
<Text>{item.title}</Text>
|
|
209
|
-
</View>
|
|
210
|
-
));
|
|
211
|
-
|
|
212
|
-
const renderItem = useCallback(
|
|
213
|
-
({ item }: { item: Item }) => <ListItem item={item} />,
|
|
214
|
-
[]
|
|
215
|
-
);
|
|
216
|
-
|
|
217
|
-
// ✅ CORRECT: FlatList with all optimizations
|
|
218
|
-
<FlatList
|
|
219
|
-
data={items}
|
|
220
|
-
renderItem={renderItem}
|
|
221
|
-
keyExtractor={(item) => item.id} // Stable ID, NOT index
|
|
222
|
-
getItemLayout={(data, index) => ({
|
|
223
|
-
length: ITEM_HEIGHT,
|
|
224
|
-
offset: ITEM_HEIGHT * index,
|
|
225
|
-
index,
|
|
226
|
-
})}
|
|
227
|
-
removeClippedSubviews={true}
|
|
228
|
-
maxToRenderPerBatch={10}
|
|
229
|
-
windowSize={5}
|
|
230
|
-
/>
|
|
231
|
-
```
|
|
232
|
-
|
|
233
|
-
### Flutter Critical Rules
|
|
234
|
-
|
|
235
|
-
```dart
|
|
236
|
-
// ✅ CORRECT: const constructors prevent rebuilds
|
|
237
|
-
class MyWidget extends StatelessWidget {
|
|
238
|
-
const MyWidget({super.key}); // CONST!
|
|
239
|
-
|
|
240
|
-
@override
|
|
241
|
-
Widget build(BuildContext context) {
|
|
242
|
-
return const Column( // CONST!
|
|
243
|
-
children: [
|
|
244
|
-
Text('Static content'),
|
|
245
|
-
MyConstantWidget(),
|
|
246
|
-
],
|
|
247
|
-
);
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
// ✅ CORRECT: Targeted state with ValueListenableBuilder
|
|
252
|
-
ValueListenableBuilder<int>(
|
|
253
|
-
valueListenable: counter,
|
|
254
|
-
builder: (context, value, child) => Text('$value'),
|
|
255
|
-
child: const ExpensiveWidget(), // Won't rebuild!
|
|
256
|
-
)
|
|
257
|
-
```
|
|
258
|
-
|
|
259
|
-
### Animation Performance
|
|
260
|
-
|
|
261
|
-
```
|
|
262
|
-
GPU-accelerated (FAST): CPU-bound (SLOW):
|
|
263
|
-
├── transform ├── width, height
|
|
264
|
-
├── opacity ├── top, left, right, bottom
|
|
265
|
-
└── (use these ONLY) ├── margin, padding
|
|
266
|
-
└── (AVOID animating these)
|
|
267
|
-
```
|
|
268
|
-
|
|
269
|
-
For complete guide: [mobile-performance.md](mobile-performance.md)
|
|
270
|
-
|
|
271
|
-
---
|
|
272
|
-
|
|
273
|
-
## 📝 CHECKPOINT (MANDATORY Before Any Mobile Work)
|
|
274
|
-
|
|
275
|
-
> **Before writing ANY mobile code, you MUST complete this checkpoint:**
|
|
276
|
-
|
|
277
|
-
```
|
|
278
|
-
🧠 CHECKPOINT:
|
|
279
|
-
|
|
280
|
-
Platform: [ iOS / Android / Both ]
|
|
281
|
-
Framework: [ React Native / Flutter / SwiftUI / Kotlin ]
|
|
282
|
-
Files Read: [ List the skill files you've read ]
|
|
283
|
-
|
|
284
|
-
3 Principles I Will Apply:
|
|
285
|
-
1. _______________
|
|
286
|
-
2. _______________
|
|
287
|
-
3. _______________
|
|
288
|
-
|
|
289
|
-
Anti-Patterns I Will Avoid:
|
|
290
|
-
1. _______________
|
|
291
|
-
2. _______________
|
|
292
|
-
```
|
|
293
|
-
|
|
294
|
-
**Example:**
|
|
295
|
-
```
|
|
296
|
-
🧠 CHECKPOINT:
|
|
297
|
-
|
|
298
|
-
Platform: iOS + Android (Cross-platform)
|
|
299
|
-
Framework: React Native + Expo
|
|
300
|
-
Files Read: touch-psychology.md, mobile-performance.md, platform-ios.md, platform-android.md
|
|
301
|
-
|
|
302
|
-
3 Principles I Will Apply:
|
|
303
|
-
1. FlatList with React.memo + useCallback for all lists
|
|
304
|
-
2. 48px touch targets, thumb zone for primary CTAs
|
|
305
|
-
3. Platform-specific navigation (edge swipe iOS, back button Android)
|
|
306
|
-
|
|
307
|
-
Anti-Patterns I Will Avoid:
|
|
308
|
-
1. ScrollView for lists → FlatList
|
|
309
|
-
2. Inline renderItem → Memoized
|
|
310
|
-
3. AsyncStorage for tokens → SecureStore
|
|
311
|
-
```
|
|
312
|
-
|
|
313
|
-
> 🔴 **Can't fill the checkpoint? → GO BACK AND READ THE SKILL FILES.**
|
|
314
|
-
|
|
315
|
-
---
|
|
316
|
-
|
|
317
|
-
## 🔧 Framework Decision Tree
|
|
318
|
-
|
|
319
|
-
```
|
|
320
|
-
WHAT ARE YOU BUILDING?
|
|
321
|
-
│
|
|
322
|
-
├── Need OTA updates + rapid iteration + web team
|
|
323
|
-
│ └── ✅ React Native + Expo
|
|
324
|
-
│
|
|
325
|
-
├── Need pixel-perfect custom UI + performance critical
|
|
326
|
-
│ └── ✅ Flutter
|
|
327
|
-
│
|
|
328
|
-
├── Deep native features + single platform focus
|
|
329
|
-
│ ├── iOS only → SwiftUI
|
|
330
|
-
│ └── Android only → Kotlin + Jetpack Compose
|
|
331
|
-
│
|
|
332
|
-
├── Existing RN codebase + new features
|
|
333
|
-
│ └── ✅ React Native (bare workflow)
|
|
334
|
-
│
|
|
335
|
-
└── Enterprise + existing Flutter codebase
|
|
336
|
-
└── ✅ Flutter
|
|
337
|
-
```
|
|
338
|
-
|
|
339
|
-
For complete decision trees: [decision-trees.md](decision-trees.md)
|
|
340
|
-
|
|
341
|
-
---
|
|
342
|
-
|
|
343
|
-
## 📋 Pre-Development Checklist
|
|
344
|
-
|
|
345
|
-
### Before Starting ANY Mobile Project
|
|
346
|
-
|
|
347
|
-
- [ ] **Platform confirmed?** (iOS / Android / Both)
|
|
348
|
-
- [ ] **Framework chosen?** (RN / Flutter / Native)
|
|
349
|
-
- [ ] **Navigation pattern decided?** (Tabs / Stack / Drawer)
|
|
350
|
-
- [ ] **State management selected?** (Zustand / Redux / Riverpod / BLoC)
|
|
351
|
-
- [ ] **Offline requirements known?**
|
|
352
|
-
- [ ] **Deep linking planned from day one?**
|
|
353
|
-
- [ ] **Target devices defined?** (Phone / Tablet / Both)
|
|
354
|
-
|
|
355
|
-
### Before Every Screen
|
|
356
|
-
|
|
357
|
-
- [ ] **Touch targets ≥ 44-48px?**
|
|
358
|
-
- [ ] **Primary CTA in thumb zone?**
|
|
359
|
-
- [ ] **Loading state exists?**
|
|
360
|
-
- [ ] **Error state with retry exists?**
|
|
361
|
-
- [ ] **Offline handling considered?**
|
|
362
|
-
- [ ] **Platform conventions followed?**
|
|
363
|
-
|
|
364
|
-
### Before Release
|
|
365
|
-
|
|
366
|
-
- [ ] **console.log removed?**
|
|
367
|
-
- [ ] **SecureStore for sensitive data?**
|
|
368
|
-
- [ ] **SSL pinning enabled?**
|
|
369
|
-
- [ ] **Lists optimized (memo, keyExtractor)?**
|
|
370
|
-
- [ ] **Memory cleanup on unmount?**
|
|
371
|
-
- [ ] **Tested on low-end devices?**
|
|
372
|
-
- [ ] **Accessibility labels on all interactive elements?**
|
|
373
|
-
|
|
374
|
-
---
|
|
375
|
-
|
|
376
|
-
## 📚 Reference Files
|
|
377
|
-
|
|
378
|
-
For deeper guidance on specific areas:
|
|
379
|
-
|
|
380
|
-
| File | When to Use |
|
|
381
|
-
|------|-------------|
|
|
382
|
-
| [mobile-design-thinking.md](mobile-design-thinking.md) | **FIRST! Anti-memorization, forces context-based thinking** |
|
|
383
|
-
| [touch-psychology.md](touch-psychology.md) | Understanding touch interaction, Fitts' Law, gesture design |
|
|
384
|
-
| [mobile-performance.md](mobile-performance.md) | Optimizing RN/Flutter, 60fps, memory/battery |
|
|
385
|
-
| [platform-ios.md](platform-ios.md) | iOS-specific design, HIG compliance |
|
|
386
|
-
| [platform-android.md](platform-android.md) | Android-specific design, Material Design 3 |
|
|
387
|
-
| [mobile-navigation.md](mobile-navigation.md) | Navigation patterns, deep linking |
|
|
388
|
-
| [mobile-typography.md](mobile-typography.md) | Type scale, system fonts, accessibility |
|
|
389
|
-
| [mobile-color-system.md](mobile-color-system.md) | OLED optimization, dark mode, battery |
|
|
390
|
-
| [decision-trees.md](decision-trees.md) | Framework, state, storage decisions |
|
|
391
|
-
|
|
392
|
-
---
|
|
393
|
-
|
|
394
|
-
> **Remember:** Mobile users are impatient, interrupted, and using imprecise fingers on small screens. Design for the WORST conditions: bad network, one hand, bright sun, low battery. If it works there, it works everywhere.
|
|
30
|
+
## 🧠 Knowledge Modules (Fractal Skills)
|
|
31
|
+
|
|
32
|
+
### 1. [Universal (Always Read)](./sub-skills/universal-always-read.md)
|
|
33
|
+
### 2. [Platform-Specific (Read Based on Target)](./sub-skills/platform-specific-read-based-on-target.md)
|
|
34
|
+
### 3. [You MUST Ask If Not Specified:](./sub-skills/you-must-ask-if-not-specified.md)
|
|
35
|
+
### 4. [⛔ AI MOBILE ANTI-PATTERNS (YASAK LİSTESİ)](./sub-skills/ai-mobile-anti-patterns-yasak-listesi.md)
|
|
36
|
+
### 5. [When to Unify vs Diverge](./sub-skills/when-to-unify-vs-diverge.md)
|
|
37
|
+
### 6. [Quick Reference: Platform Defaults](./sub-skills/quick-reference-platform-defaults.md)
|
|
38
|
+
### 7. [Fitts' Law for Touch](./sub-skills/fitts-law-for-touch.md)
|
|
39
|
+
### 8. [Thumb Zone (One-Handed Usage)](./sub-skills/thumb-zone-one-handed-usage.md)
|
|
40
|
+
### 9. [Mobile-Specific Cognitive Load](./sub-skills/mobile-specific-cognitive-load.md)
|
|
41
|
+
### 10. [React Native Critical Rules](./sub-skills/react-native-critical-rules.md)
|
|
42
|
+
### 11. [Flutter Critical Rules](./sub-skills/flutter-critical-rules.md)
|
|
43
|
+
### 12. [Animation Performance](./sub-skills/animation-performance.md)
|
|
44
|
+
### 13. [Before Starting ANY Mobile Project](./sub-skills/before-starting-any-mobile-project.md)
|
|
45
|
+
### 14. [Before Every Screen](./sub-skills/before-every-screen.md)
|
|
46
|
+
### 15. [Before Release](./sub-skills/before-release.md)
|
|
@@ -498,7 +498,7 @@ Everything else causes layout recalculation.
|
|
|
498
498
|
| Micro-interaction | 100-200ms | ease-out |
|
|
499
499
|
| Standard transition | 200-300ms | ease-out |
|
|
500
500
|
| Page transition | 300-400ms | ease-in-out |
|
|
501
|
-
| Complex/dramatic |
|
|
501
|
+
| Complex/dramatic | 4.0.800ms | ease-in-out |
|
|
502
502
|
| Loading skeletons | 1000-1500ms | linear (loop) |
|
|
503
503
|
|
|
504
504
|
### Spring Physics
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: modern-web-architect
|
|
3
|
-
description:
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
description: Master Frontend & Web Architecture.
|
|
4
|
+
category: architecture
|
|
5
|
+
version: 4.1.0-fractal
|
|
6
|
+
layer: master-skill
|
|
6
7
|
---
|
|
7
8
|
|
|
8
9
|
# 🌐 Modern Web Architect (Master Skill)
|
|
@@ -34,6 +35,8 @@ Before coding, calculate the **Frontend Feasibility & Complexity Index (FFCI)**:
|
|
|
34
35
|
## 2. React 19 & Next.js 15 Patterns
|
|
35
36
|
- **App Router**: Use folder-based routing, parallel routes, and intercepting routes.
|
|
36
37
|
- **Server Components (RSC)**: Default to Server Components for data fetching. Use `'use client'` only for interactivity.
|
|
38
|
+
- **Edge-First Thinking (Vercel)**: Prioritize logic that runs on the Edge (Middleware, Edge Functions) to minimize TTFB. Use Edge Runtime for high-performance dynamic routing.
|
|
39
|
+
- **Zero-Config & Composable Logic (Antfu)**: Build small, logic-only components (Hooks/Composables) that are tool-agnostic. Prefer `Vite` for development and `Vitest` for lightening-fast testing.
|
|
37
40
|
- **New Hooks**: Leverage `useActionState`, `useOptimistic`, and the `use` API.
|
|
38
41
|
- **Suspense-First**: Always wrap heavy components and data-fetching in `<Suspense>`. **No manual `isLoading` flags.**
|
|
39
42
|
|
|
@@ -46,6 +49,7 @@ Before coding, calculate the **Frontend Feasibility & Complexity Index (FFCI)**:
|
|
|
46
49
|
- `Zustand` for complex global state.
|
|
47
50
|
- `Context` for subtree configuration.
|
|
48
51
|
- **Doctrine**: "Props down, Actions up."
|
|
52
|
+
- **Data Validation**: Use Zod or Valibot at the boundaries (API/Forms) for end-to-end type safety.
|
|
49
53
|
|
|
50
54
|
---
|
|
51
55
|
|
|
@@ -57,16 +61,18 @@ Evaluate via **Design Feasibility & Impact Index (DFII)**:
|
|
|
57
61
|
|
|
58
62
|
- **Mandate**:
|
|
59
63
|
- ❌ No generic "AI UI" or default Tailwind/ShadCN layouts.
|
|
60
|
-
- ✅ Custom typography, purposeful motion, and textured depth.
|
|
61
|
-
- ✅ One "Memorable Anchor" per page.
|
|
64
|
+
- ✅ Custom typography, purposeful motion (Framer Motion), and textured depth.
|
|
65
|
+
- ✅ One "Memorable Anchor" per page (Magic UI component e.g., Bento Grid).
|
|
62
66
|
|
|
63
67
|
---
|
|
64
68
|
|
|
65
69
|
## 5. Performance & Optimization
|
|
70
|
+
- **Vercel Performance**: Implement ISR (Incremental Static Regeneration) and PPR (Partial Prerendering) where possible.
|
|
71
|
+
- **Turborepo Master**: Use intelligent caching to speed up builds and tests in monorepos.
|
|
66
72
|
- **Code Splitting**: Dynamic imports (`React.lazy`) for heavy modules.
|
|
67
73
|
- **Rendering**: Optimize for Core Web Vitals (LCP < 2.5s, CLS < 0.1).
|
|
68
74
|
- **Images**: Use Next.js `<Image>` for automatic optimization.
|
|
69
|
-
- **Bundle**: Audit dependencies to avoid bloat.
|
|
75
|
+
- **Bundle**: Audit dependencies using `npm list` or bundle analyzers to avoid bloat. Prefer lightweight libraries (e.g., `lucide-react` over `font-awesome`).
|
|
70
76
|
|
|
71
77
|
---
|
|
72
78
|
|
|
@@ -187,7 +187,7 @@ def main():
|
|
|
187
187
|
# Paths
|
|
188
188
|
base_dir = Path(__file__).parent.parent.parent.parent.parent
|
|
189
189
|
rules_dir = base_dir / "others/agent-skills/skills/react-best-practices/rules"
|
|
190
|
-
output_dir = base_dir / ".agent/skills/react-
|
|
190
|
+
output_dir = base_dir / ".agent/skills/nextjs-react-expert"
|
|
191
191
|
|
|
192
192
|
print(f"[*] Reading rules from: {rules_dir}")
|
|
193
193
|
print(f"[*] Output to: {output_dir}")
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: penetration-tester-master
|
|
3
|
-
description:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
description: Ultimate Offensive Security Master Skill.
|
|
4
|
+
category: security
|
|
5
|
+
version: 4.1.0-fractal
|
|
6
|
+
layer: master-skill
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# 🗡️ Penetration Tester Master Kit
|
|
@@ -73,3 +73,8 @@ You are an **Elite Red Team Lead and Professional Pentester**. This skill provid
|
|
|
73
73
|
|
|
74
74
|
---
|
|
75
75
|
*Merged and optimized from 25 legacy offensive security and tool-specific skills.*
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
## 🧠 Knowledge Modules (Fractal Skills)
|
|
79
|
+
|
|
80
|
+
### 1. [owasp_top_10_2025](./sub-skills/owasp_top_10_2025.md)
|