@nguyenphp/antigravity-marketing 1.0.16 → 1.0.19
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/README.md +187 -74
- package/bin/index.js +4 -4
- package/package.json +4 -3
- package/templates/.agent/agents/backend-specialist.md +263 -0
- package/templates/.agent/agents/database-architect.md +226 -0
- package/templates/.agent/agents/debugger.md +225 -0
- package/templates/.agent/agents/devops-engineer.md +242 -0
- package/templates/.agent/agents/documentation-writer.md +104 -0
- package/templates/.agent/agents/explorer-agent.md +73 -0
- package/templates/.agent/agents/frontend-specialist.md +527 -0
- package/templates/.agent/agents/game-developer.md +162 -0
- package/templates/.agent/agents/mobile-developer.md +377 -0
- package/templates/.agent/agents/orchestrator.md +400 -0
- package/templates/.agent/agents/penetration-tester.md +188 -0
- package/templates/.agent/agents/performance-optimizer.md +187 -0
- package/templates/.agent/agents/project-planner.md +403 -0
- package/templates/.agent/agents/security-auditor.md +170 -0
- package/templates/.agent/agents/seo-specialist.md +111 -0
- package/templates/.agent/agents/test-engineer.md +158 -0
- package/templates/.agent/rules/GEMINI.md +248 -0
- package/templates/.agent/skills/analytics-marketing/SKILL.md +172 -324
- package/templates/.agent/skills/api-patterns/SKILL.md +81 -0
- package/templates/.agent/skills/api-patterns/api-style.md +42 -0
- package/templates/.agent/skills/api-patterns/auth.md +24 -0
- package/templates/.agent/skills/api-patterns/documentation.md +26 -0
- package/templates/.agent/skills/api-patterns/graphql.md +41 -0
- package/templates/.agent/skills/api-patterns/rate-limiting.md +31 -0
- package/templates/.agent/skills/api-patterns/response.md +37 -0
- package/templates/.agent/skills/api-patterns/rest.md +40 -0
- package/templates/.agent/skills/api-patterns/scripts/api_validator.py +211 -0
- package/templates/.agent/skills/api-patterns/security-testing.md +122 -0
- package/templates/.agent/skills/api-patterns/trpc.md +41 -0
- package/templates/.agent/skills/api-patterns/versioning.md +22 -0
- package/templates/.agent/skills/app-builder/SKILL.md +75 -0
- package/templates/.agent/skills/app-builder/agent-coordination.md +71 -0
- package/templates/.agent/skills/app-builder/feature-building.md +53 -0
- package/templates/.agent/skills/app-builder/project-detection.md +34 -0
- package/templates/.agent/skills/app-builder/scaffolding.md +118 -0
- package/templates/.agent/skills/app-builder/tech-stack.md +40 -0
- package/templates/.agent/skills/app-builder/templates/SKILL.md +39 -0
- package/templates/.agent/skills/app-builder/templates/astro-static/TEMPLATE.md +76 -0
- package/templates/.agent/skills/app-builder/templates/chrome-extension/TEMPLATE.md +92 -0
- package/templates/.agent/skills/app-builder/templates/cli-tool/TEMPLATE.md +88 -0
- package/templates/.agent/skills/app-builder/templates/electron-desktop/TEMPLATE.md +88 -0
- package/templates/.agent/skills/app-builder/templates/express-api/TEMPLATE.md +83 -0
- package/templates/.agent/skills/app-builder/templates/flutter-app/TEMPLATE.md +90 -0
- package/templates/.agent/skills/app-builder/templates/monorepo-turborepo/TEMPLATE.md +90 -0
- package/templates/.agent/skills/app-builder/templates/nextjs-fullstack/TEMPLATE.md +82 -0
- package/templates/.agent/skills/app-builder/templates/nextjs-saas/TEMPLATE.md +100 -0
- package/templates/.agent/skills/app-builder/templates/nextjs-static/TEMPLATE.md +106 -0
- package/templates/.agent/skills/app-builder/templates/nuxt-app/TEMPLATE.md +101 -0
- package/templates/.agent/skills/app-builder/templates/python-fastapi/TEMPLATE.md +83 -0
- package/templates/.agent/skills/app-builder/templates/react-native-app/TEMPLATE.md +93 -0
- package/templates/.agent/skills/architecture/SKILL.md +55 -0
- package/templates/.agent/skills/architecture/context-discovery.md +43 -0
- package/templates/.agent/skills/architecture/examples.md +94 -0
- package/templates/.agent/skills/architecture/pattern-selection.md +68 -0
- package/templates/.agent/skills/architecture/patterns-reference.md +50 -0
- package/templates/.agent/skills/architecture/trade-off-analysis.md +77 -0
- package/templates/.agent/skills/banner-design/SKILL.md +192 -0
- package/templates/.agent/skills/banner-design/references/banner-sizes-and-styles.md +118 -0
- package/templates/.agent/skills/bash-linux/SKILL.md +199 -0
- package/templates/.agent/skills/behavioral-modes/SKILL.md +242 -0
- package/templates/.agent/skills/brainstorming/SKILL.md +163 -0
- package/templates/.agent/skills/brainstorming/dynamic-questioning.md +350 -0
- package/templates/.agent/skills/brand/SKILL.md +97 -0
- package/templates/.agent/skills/brand/references/approval-checklist.md +169 -0
- package/templates/.agent/skills/brand/references/asset-organization.md +157 -0
- package/templates/.agent/skills/brand/references/brand-guideline-template.md +140 -0
- package/templates/.agent/skills/brand/references/color-palette-management.md +186 -0
- package/templates/.agent/skills/brand/references/consistency-checklist.md +94 -0
- package/templates/.agent/skills/brand/references/logo-usage-rules.md +185 -0
- package/templates/.agent/skills/brand/references/messaging-framework.md +85 -0
- package/templates/.agent/skills/brand/references/typography-specifications.md +214 -0
- package/templates/.agent/skills/brand/references/update.md +118 -0
- package/templates/.agent/skills/brand/references/visual-identity.md +96 -0
- package/templates/.agent/skills/brand/references/voice-framework.md +88 -0
- package/templates/.agent/skills/brand/scripts/extract-colors.cjs +341 -0
- package/templates/.agent/skills/brand/scripts/inject-brand-context.cjs +349 -0
- package/templates/.agent/skills/brand/scripts/sync-brand-to-tokens.cjs +266 -0
- package/templates/.agent/skills/brand/scripts/validate-asset.cjs +387 -0
- package/templates/.agent/skills/brand/templates/brand-guidelines-starter.md +275 -0
- package/templates/.agent/skills/clean-code/SKILL.md +201 -0
- package/templates/.agent/skills/code-review-checklist/SKILL.md +109 -0
- package/templates/.agent/skills/copywriting/SKILL.md +250 -0
- package/templates/.agent/skills/database-design/SKILL.md +52 -0
- package/templates/.agent/skills/database-design/database-selection.md +43 -0
- package/templates/.agent/skills/database-design/indexing.md +39 -0
- package/templates/.agent/skills/database-design/migrations.md +48 -0
- package/templates/.agent/skills/database-design/optimization.md +36 -0
- package/templates/.agent/skills/database-design/orm-selection.md +30 -0
- package/templates/.agent/skills/database-design/schema-design.md +56 -0
- package/templates/.agent/skills/database-design/scripts/schema_validator.py +172 -0
- package/templates/.agent/skills/deployment-procedures/SKILL.md +241 -0
- package/templates/.agent/skills/docker-expert/SKILL.md +409 -0
- package/templates/.agent/skills/frontend-design/animation-guide.md +331 -0
- package/templates/.agent/skills/frontend-design/color-system.md +311 -0
- package/templates/.agent/skills/frontend-design/decision-trees.md +418 -0
- package/templates/.agent/skills/frontend-design/motion-graphics.md +306 -0
- package/templates/.agent/skills/frontend-design/scripts/accessibility_checker.py +183 -0
- package/templates/.agent/skills/frontend-design/scripts/ux_audit.py +722 -0
- package/templates/.agent/skills/frontend-design/typography-system.md +345 -0
- package/templates/.agent/skills/frontend-design/ux-psychology.md +541 -0
- package/templates/.agent/skills/frontend-design/visual-effects.md +383 -0
- package/templates/.agent/skills/frontend-slides/SKILL.md +92 -0
- package/templates/.agent/skills/frontend-slides/STYLE_PRESETS.md +347 -0
- package/templates/.agent/skills/frontend-slides/animation-patterns.md +110 -0
- package/templates/.agent/skills/frontend-slides/examples/n8n-jupviec-automation.html +789 -0
- package/templates/.agent/skills/frontend-slides/examples/n8n-jupviec-automation.pptx +0 -0
- package/templates/.agent/skills/frontend-slides/html-template.md +347 -0
- package/templates/.agent/skills/frontend-slides/scripts/export-pptx.py +58 -0
- package/templates/.agent/skills/frontend-slides/scripts/extract-pptx.py +96 -0
- package/templates/.agent/skills/frontend-slides/viewport-base.css +153 -0
- package/templates/.agent/skills/game-development/2d-games/SKILL.md +119 -0
- package/templates/.agent/skills/game-development/3d-games/SKILL.md +135 -0
- package/templates/.agent/skills/game-development/SKILL.md +167 -0
- package/templates/.agent/skills/game-development/game-art/SKILL.md +185 -0
- package/templates/.agent/skills/game-development/game-audio/SKILL.md +190 -0
- package/templates/.agent/skills/game-development/game-design/SKILL.md +129 -0
- package/templates/.agent/skills/game-development/mobile-games/SKILL.md +108 -0
- package/templates/.agent/skills/game-development/multiplayer/SKILL.md +132 -0
- package/templates/.agent/skills/game-development/pc-games/SKILL.md +144 -0
- package/templates/.agent/skills/game-development/vr-ar/SKILL.md +123 -0
- package/templates/.agent/skills/game-development/web-games/SKILL.md +150 -0
- package/templates/.agent/skills/geo-fundamentals/SKILL.md +156 -0
- package/templates/.agent/skills/geo-fundamentals/scripts/geo_checker.py +289 -0
- package/templates/.agent/skills/growth-engine/SKILL.md +244 -0
- package/templates/.agent/skills/i18n-localization/SKILL.md +154 -0
- package/templates/.agent/skills/i18n-localization/scripts/i18n_checker.py +241 -0
- package/templates/.agent/skills/lint-and-validate/SKILL.md +45 -0
- package/templates/.agent/skills/lint-and-validate/scripts/lint_runner.py +172 -0
- package/templates/.agent/skills/lint-and-validate/scripts/type_coverage.py +173 -0
- package/templates/.agent/skills/marketing-report-expert/SKILL.md +70 -0
- package/templates/.agent/skills/mcp-builder/SKILL.md +176 -0
- package/templates/.agent/skills/minimax-docx/LICENSE +21 -0
- package/templates/.agent/skills/minimax-docx/SKILL.md +274 -0
- package/templates/.agent/skills/minimax-docx/assets/styles/academic_styles.xml +250 -0
- package/templates/.agent/skills/minimax-docx/assets/styles/corporate_styles.xml +284 -0
- package/templates/.agent/skills/minimax-docx/assets/styles/default_styles.xml +449 -0
- package/templates/.agent/skills/minimax-docx/assets/xsd/aesthetic-rules.xsd +470 -0
- package/templates/.agent/skills/minimax-docx/assets/xsd/business-rules.xsd +130 -0
- package/templates/.agent/skills/minimax-docx/assets/xsd/common-types.xsd +159 -0
- package/templates/.agent/skills/minimax-docx/assets/xsd/wml-subset.xsd +589 -0
- package/templates/.agent/skills/minimax-docx/references/cjk_typography.md +357 -0
- package/templates/.agent/skills/minimax-docx/references/cjk_university_template_guide.md +184 -0
- package/templates/.agent/skills/minimax-docx/references/comments_guide.md +191 -0
- package/templates/.agent/skills/minimax-docx/references/design_good_bad_examples.md +829 -0
- package/templates/.agent/skills/minimax-docx/references/design_principles.md +819 -0
- package/templates/.agent/skills/minimax-docx/references/openxml_element_order.md +308 -0
- package/templates/.agent/skills/minimax-docx/references/openxml_encyclopedia_part1.md +4061 -0
- package/templates/.agent/skills/minimax-docx/references/openxml_encyclopedia_part2.md +2820 -0
- package/templates/.agent/skills/minimax-docx/references/openxml_encyclopedia_part3.md +3381 -0
- package/templates/.agent/skills/minimax-docx/references/openxml_namespaces.md +82 -0
- package/templates/.agent/skills/minimax-docx/references/openxml_units.md +72 -0
- package/templates/.agent/skills/minimax-docx/references/scenario_a_create.md +284 -0
- package/templates/.agent/skills/minimax-docx/references/scenario_b_edit_content.md +295 -0
- package/templates/.agent/skills/minimax-docx/references/scenario_c_apply_template.md +456 -0
- package/templates/.agent/skills/minimax-docx/references/track_changes_guide.md +200 -0
- package/templates/.agent/skills/minimax-docx/references/troubleshooting.md +506 -0
- package/templates/.agent/skills/minimax-docx/references/typography_guide.md +294 -0
- package/templates/.agent/skills/minimax-docx/references/xsd_validation_guide.md +158 -0
- package/templates/.agent/skills/minimax-docx/scripts/doc_to_docx.sh +40 -0
- package/templates/.agent/skills/minimax-docx/scripts/docx_preview.sh +37 -0
- package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Cli/MiniMaxAIDocx.Cli.csproj +19 -0
- package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Cli/Program.cs +18 -0
- package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Commands/AnalyzeCommand.cs +147 -0
- package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Commands/ApplyTemplateCommand.cs +322 -0
- package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Commands/CreateCommand.cs +324 -0
- package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Commands/DiffCommand.cs +155 -0
- package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Commands/EditContentCommand.cs +487 -0
- package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Commands/FixOrderCommand.cs +108 -0
- package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Commands/MergeRunsCommand.cs +122 -0
- package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Commands/ValidateCommand.cs +107 -0
- package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/MiniMaxAIDocx.Core.csproj +15 -0
- package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/OpenXml/CommentSynchronizer.cs +169 -0
- package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/OpenXml/ElementOrder.cs +80 -0
- package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/OpenXml/NamespaceConstants.cs +42 -0
- package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/OpenXml/RunMerger.cs +81 -0
- package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/OpenXml/StyleAnalyzer.cs +81 -0
- package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/OpenXml/TrackChangesHelper.cs +99 -0
- package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/OpenXml/UnitConverter.cs +23 -0
- package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/AestheticRecipeSamples.cs +1832 -0
- package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/AestheticRecipeSamples_Batch1.cs +910 -0
- package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/AestheticRecipeSamples_Batch2.cs +999 -0
- package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/AestheticRecipeSamples_Batch3.cs +1048 -0
- package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/AestheticRecipeSamples_Batch4.cs +1038 -0
- package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/CharacterFormattingSamples.cs +1020 -0
- package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/DocumentCreationSamples.cs +1121 -0
- package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/FieldAndTocSamples.cs +624 -0
- package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/FootnoteAndCommentSamples.cs +675 -0
- package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/HeaderFooterSamples.cs +838 -0
- package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/ImageSamples.cs +917 -0
- package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/ListAndNumberingSamples.cs +826 -0
- package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/ParagraphFormattingSamples.cs +1199 -0
- package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/StyleSystemSamples.cs +1487 -0
- package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/TableSamples.cs +1163 -0
- package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Samples/TrackChangesSamples.cs +595 -0
- package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Typography/CjkHelper.cs +39 -0
- package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Typography/FontDefaults.cs +24 -0
- package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Typography/PageSizes.cs +20 -0
- package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Validation/BusinessRuleValidator.cs +224 -0
- package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Validation/GateCheckValidator.cs +148 -0
- package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Validation/ValidationResult.cs +23 -0
- package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.Core/Validation/XsdValidator.cs +69 -0
- package/templates/.agent/skills/minimax-docx/scripts/dotnet/MiniMaxAIDocx.slnx +4 -0
- package/templates/.agent/skills/minimax-docx/scripts/env_check.sh +196 -0
- package/templates/.agent/skills/minimax-docx/scripts/setup.ps1 +274 -0
- package/templates/.agent/skills/minimax-docx/scripts/setup.sh +504 -0
- package/templates/.agent/skills/minimax-multimodal-toolkit/SKILL.md +359 -0
- package/templates/.agent/skills/minimax-pdf/README.md +222 -0
- package/templates/.agent/skills/minimax-pdf/SKILL.md +201 -0
- package/templates/.agent/skills/minimax-pdf/design/design.md +381 -0
- package/templates/.agent/skills/minimax-pdf/scripts/cover.py +1579 -0
- package/templates/.agent/skills/minimax-pdf/scripts/fill_inspect.py +200 -0
- package/templates/.agent/skills/minimax-pdf/scripts/fill_write.py +242 -0
- package/templates/.agent/skills/minimax-pdf/scripts/make.sh +491 -0
- package/templates/.agent/skills/minimax-pdf/scripts/merge.py +112 -0
- package/templates/.agent/skills/minimax-pdf/scripts/palette.py +559 -0
- package/templates/.agent/skills/minimax-pdf/scripts/reformat_parse.py +374 -0
- package/templates/.agent/skills/minimax-pdf/scripts/render_body.py +1055 -0
- package/templates/.agent/skills/minimax-pdf/scripts/render_cover.cjs +111 -0
- package/templates/.agent/skills/minimax-xlsx/SKILL.md +138 -0
- package/templates/.agent/skills/minimax-xlsx/references/create.md +691 -0
- package/templates/.agent/skills/minimax-xlsx/references/edit.md +684 -0
- package/templates/.agent/skills/minimax-xlsx/references/fix.md +37 -0
- package/templates/.agent/skills/minimax-xlsx/references/format.md +768 -0
- package/templates/.agent/skills/minimax-xlsx/references/ooxml-cheatsheet.md +231 -0
- package/templates/.agent/skills/minimax-xlsx/references/read-analyze.md +97 -0
- package/templates/.agent/skills/minimax-xlsx/references/validate.md +772 -0
- package/templates/.agent/skills/minimax-xlsx/scripts/formula_check.py +422 -0
- package/templates/.agent/skills/minimax-xlsx/scripts/libreoffice_recalc.py +248 -0
- package/templates/.agent/skills/minimax-xlsx/scripts/shared_strings_builder.py +163 -0
- package/templates/.agent/skills/minimax-xlsx/scripts/style_audit.py +575 -0
- package/templates/.agent/skills/minimax-xlsx/scripts/xlsx_add_column.py +395 -0
- package/templates/.agent/skills/minimax-xlsx/scripts/xlsx_insert_row.py +274 -0
- package/templates/.agent/skills/minimax-xlsx/scripts/xlsx_pack.py +87 -0
- package/templates/.agent/skills/minimax-xlsx/scripts/xlsx_reader.py +362 -0
- package/templates/.agent/skills/minimax-xlsx/scripts/xlsx_shift_rows.py +396 -0
- package/templates/.agent/skills/minimax-xlsx/scripts/xlsx_unpack.py +130 -0
- package/templates/.agent/skills/minimax-xlsx/templates/minimal_xlsx/[Content_Types].xml +9 -0
- package/templates/.agent/skills/minimax-xlsx/templates/minimal_xlsx/_rels/.rels +6 -0
- package/templates/.agent/skills/minimax-xlsx/templates/minimal_xlsx/xl/_rels/workbook.xml.rels +19 -0
- package/templates/.agent/skills/minimax-xlsx/templates/minimal_xlsx/xl/sharedStrings.xml +33 -0
- package/templates/.agent/skills/minimax-xlsx/templates/minimal_xlsx/xl/styles.xml +160 -0
- package/templates/.agent/skills/minimax-xlsx/templates/minimal_xlsx/xl/workbook.xml +30 -0
- package/templates/.agent/skills/minimax-xlsx/templates/minimal_xlsx/xl/worksheets/sheet1.xml +70 -0
- package/templates/.agent/skills/mobile-design/SKILL.md +394 -0
- package/templates/.agent/skills/mobile-design/decision-trees.md +516 -0
- package/templates/.agent/skills/mobile-design/mobile-backend.md +491 -0
- package/templates/.agent/skills/mobile-design/mobile-color-system.md +420 -0
- package/templates/.agent/skills/mobile-design/mobile-debugging.md +122 -0
- package/templates/.agent/skills/mobile-design/mobile-design-thinking.md +357 -0
- package/templates/.agent/skills/mobile-design/mobile-navigation.md +458 -0
- package/templates/.agent/skills/mobile-design/mobile-performance.md +767 -0
- package/templates/.agent/skills/mobile-design/mobile-testing.md +356 -0
- package/templates/.agent/skills/mobile-design/mobile-typography.md +433 -0
- package/templates/.agent/skills/mobile-design/platform-android.md +666 -0
- package/templates/.agent/skills/mobile-design/platform-ios.md +561 -0
- package/templates/.agent/skills/mobile-design/scripts/mobile_audit.py +670 -0
- package/templates/.agent/skills/mobile-design/touch-psychology.md +537 -0
- package/templates/.agent/skills/nestjs-expert/SKILL.md +552 -0
- package/templates/.agent/skills/nextjs-best-practices/SKILL.md +203 -0
- package/templates/.agent/skills/nodejs-best-practices/SKILL.md +333 -0
- package/templates/.agent/skills/parallel-agents/SKILL.md +175 -0
- package/templates/.agent/skills/performance-profiling/SKILL.md +143 -0
- package/templates/.agent/skills/performance-profiling/scripts/lighthouse_audit.py +76 -0
- package/templates/.agent/skills/plan-writing/SKILL.md +152 -0
- package/templates/.agent/skills/powershell-windows/SKILL.md +167 -0
- package/templates/.agent/skills/ppc-advertising/SKILL.md +183 -475
- package/templates/.agent/skills/pptx-generator/SKILL.md +249 -0
- package/templates/.agent/skills/pptx-generator/references/design-system.md +392 -0
- package/templates/.agent/skills/pptx-generator/references/editing.md +162 -0
- package/templates/.agent/skills/pptx-generator/references/pitfalls.md +112 -0
- package/templates/.agent/skills/pptx-generator/references/pptxgenjs.md +420 -0
- package/templates/.agent/skills/pptx-generator/references/slide-types.md +413 -0
- package/templates/.agent/skills/prisma-expert/SKILL.md +355 -0
- package/templates/.agent/skills/python-patterns/SKILL.md +441 -0
- package/templates/.agent/skills/react-patterns/SKILL.md +198 -0
- package/templates/.agent/skills/red-team-tactics/SKILL.md +199 -0
- package/templates/.agent/skills/remotion-best-practices/SKILL.md +45 -111
- package/templates/.agent/skills/remotion-best-practices/rules/3d.md +4 -4
- package/templates/.agent/skills/remotion-best-practices/rules/animations.md +5 -7
- package/templates/.agent/skills/remotion-best-practices/rules/assets/charts-bar-chart.tsx +173 -0
- package/templates/.agent/skills/remotion-best-practices/rules/assets/text-animations-typewriter.tsx +100 -0
- package/templates/.agent/skills/remotion-best-practices/rules/assets/text-animations-word-highlight.tsx +103 -0
- package/templates/.agent/skills/remotion-best-practices/rules/assets.md +78 -0
- package/templates/.agent/skills/remotion-best-practices/rules/audio-visualization.md +198 -0
- package/templates/.agent/skills/remotion-best-practices/rules/audio.md +1 -4
- package/templates/.agent/skills/remotion-best-practices/rules/calculate-metadata.md +47 -17
- package/templates/.agent/skills/remotion-best-practices/rules/can-decode.md +75 -0
- package/templates/.agent/skills/remotion-best-practices/rules/charts.md +80 -48
- package/templates/.agent/skills/remotion-best-practices/rules/compositions.md +22 -14
- package/templates/.agent/skills/remotion-best-practices/rules/display-captions.md +79 -21
- package/templates/.agent/skills/remotion-best-practices/rules/extract-frames.md +229 -0
- package/templates/.agent/skills/remotion-best-practices/rules/ffmpeg.md +38 -0
- package/templates/.agent/skills/remotion-best-practices/rules/fonts.md +96 -54
- package/templates/.agent/skills/remotion-best-practices/rules/get-audio-duration.md +58 -0
- package/templates/.agent/skills/remotion-best-practices/rules/get-video-dimensions.md +68 -0
- package/templates/.agent/skills/remotion-best-practices/rules/get-video-duration.md +60 -0
- package/templates/.agent/skills/remotion-best-practices/rules/gifs.md +21 -18
- package/templates/.agent/skills/remotion-best-practices/rules/images.md +6 -2
- package/templates/.agent/skills/remotion-best-practices/rules/import-srt-captions.md +69 -0
- package/templates/.agent/skills/remotion-best-practices/rules/light-leaks.md +73 -0
- package/templates/.agent/skills/remotion-best-practices/rules/lottie.md +10 -7
- package/templates/.agent/skills/remotion-best-practices/rules/maps.md +412 -0
- package/templates/.agent/skills/remotion-best-practices/rules/measuring-dom-nodes.md +34 -0
- package/templates/.agent/skills/remotion-best-practices/rules/measuring-text.md +140 -0
- package/templates/.agent/skills/remotion-best-practices/rules/parameters.md +109 -0
- package/templates/.agent/skills/remotion-best-practices/rules/sequencing.md +13 -1
- package/templates/.agent/skills/remotion-best-practices/rules/sfx.md +26 -0
- package/templates/.agent/skills/remotion-best-practices/rules/subtitles.md +36 -0
- package/templates/.agent/skills/remotion-best-practices/rules/tailwind.md +11 -0
- package/templates/.agent/skills/remotion-best-practices/rules/text-animations.md +4 -115
- package/templates/.agent/skills/remotion-best-practices/rules/timing.md +19 -19
- package/templates/.agent/skills/remotion-best-practices/rules/transcribe-captions.md +70 -0
- package/templates/.agent/skills/remotion-best-practices/rules/transitions.md +117 -42
- package/templates/.agent/skills/remotion-best-practices/rules/transparent-videos.md +106 -0
- package/templates/.agent/skills/remotion-best-practices/rules/trimming.md +51 -0
- package/templates/.agent/skills/remotion-best-practices/rules/voiceover.md +99 -0
- package/templates/.agent/skills/seo-fundamentals/SKILL.md +83 -441
- package/templates/.agent/skills/seo-fundamentals/scripts/seo_checker.py +219 -0
- package/templates/.agent/skills/server-management/SKILL.md +161 -0
- package/templates/.agent/skills/systematic-debugging/SKILL.md +109 -0
- package/templates/.agent/skills/tdd-workflow/SKILL.md +149 -0
- package/templates/.agent/skills/testing-patterns/SKILL.md +178 -0
- package/templates/.agent/skills/testing-patterns/scripts/test_runner.py +219 -0
- package/templates/.agent/skills/tutorial-video-expert/SKILL.md +88 -0
- package/templates/.agent/skills/typescript-expert/SKILL.md +429 -0
- package/templates/.agent/skills/ui-ux-pro-max/SKILL.md +1 -1
- package/templates/.agent/skills/ui-ux-pro-max/data/charts.csv +26 -0
- package/templates/.agent/skills/ui-ux-pro-max/data/colors.csv +97 -0
- package/templates/.agent/skills/ui-ux-pro-max/data/icons.csv +101 -0
- package/templates/.agent/skills/ui-ux-pro-max/data/landing.csv +31 -0
- package/templates/.agent/skills/ui-ux-pro-max/data/products.csv +97 -0
- package/templates/.agent/skills/ui-ux-pro-max/data/prompts.csv +24 -0
- package/templates/.agent/skills/ui-ux-pro-max/data/react-performance.csv +45 -0
- package/templates/.agent/skills/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
- package/templates/.agent/skills/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
- package/templates/.agent/skills/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
- package/templates/.agent/skills/ui-ux-pro-max/data/stacks/nuxt-ui.csv +51 -0
- package/templates/.agent/skills/ui-ux-pro-max/data/stacks/nuxtjs.csv +59 -0
- package/templates/.agent/skills/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
- package/templates/.agent/skills/ui-ux-pro-max/data/stacks/react.csv +54 -0
- package/templates/.agent/skills/ui-ux-pro-max/data/stacks/shadcn.csv +61 -0
- package/templates/.agent/skills/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
- package/templates/.agent/skills/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
- package/templates/.agent/skills/ui-ux-pro-max/data/stacks/vue.csv +50 -0
- package/templates/.agent/skills/ui-ux-pro-max/data/styles.csv +59 -0
- package/templates/.agent/skills/ui-ux-pro-max/data/typography.csv +58 -0
- package/templates/.agent/skills/ui-ux-pro-max/data/ui-reasoning.csv +101 -0
- package/templates/.agent/skills/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
- package/templates/.agent/skills/ui-ux-pro-max/data/web-interface.csv +31 -0
- package/templates/.agent/skills/ui-ux-pro-max/scripts/core.py +257 -0
- package/templates/.agent/skills/ui-ux-pro-max/scripts/design_system.py +487 -0
- package/templates/.agent/skills/ui-ux-pro-max/scripts/search.py +76 -0
- package/templates/.agent/skills/vision-analysis/SKILL.md +174 -0
- package/templates/.agent/skills/vue-expert/SKILL.md +374 -0
- package/templates/.agent/skills/vulnerability-scanner/SKILL.md +276 -0
- package/templates/.agent/skills/vulnerability-scanner/checklists.md +121 -0
- package/templates/.agent/skills/vulnerability-scanner/scripts/security_scan.py +458 -0
- package/templates/.agent/skills/webapp-testing/SKILL.md +187 -0
- package/templates/.agent/skills/webapp-testing/scripts/playwright_runner.py +173 -0
- package/templates/.agent/workflows/analyze.md +3 -0
- package/templates/.agent/workflows/brainstorm.md +113 -0
- package/templates/.agent/workflows/brand-report.md +44 -0
- package/templates/.agent/workflows/create.md +59 -0
- package/templates/.agent/workflows/debug.md +103 -0
- package/templates/.agent/workflows/deploy.md +176 -0
- package/templates/.agent/workflows/enhance.md +63 -0
- package/templates/.agent/workflows/orchestrate.md +237 -0
- package/templates/.agent/workflows/plan.md +89 -0
- package/templates/.agent/workflows/preview.md +80 -0
- package/templates/.agent/workflows/report.md +49 -0
- package/templates/.agent/workflows/status.md +86 -0
- package/templates/.agent/workflows/test.md +144 -0
- package/templates/.agent/workflows/ui-ux-pro-max.md +231 -0
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# Brand Voice Framework
|
|
2
|
+
|
|
3
|
+
## Voice vs. Tone
|
|
4
|
+
|
|
5
|
+
**Voice** = Brand's personality (consistent)
|
|
6
|
+
**Tone** = How voice adapts to context (variable)
|
|
7
|
+
|
|
8
|
+
Example: A friendly brand (voice) might be celebratory in a win announcement but empathetic in a support response (tone).
|
|
9
|
+
|
|
10
|
+
## Voice Dimensions
|
|
11
|
+
|
|
12
|
+
### Tone Spectrum
|
|
13
|
+
```
|
|
14
|
+
Formal ←――――――――――――――→ Casual
|
|
15
|
+
[Legal docs] [Social media]
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
### Language Spectrum
|
|
19
|
+
```
|
|
20
|
+
Simple ←――――――――――――――→ Complex
|
|
21
|
+
[Consumer] [Technical B2B]
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
### Character Spectrum
|
|
25
|
+
```
|
|
26
|
+
Serious ←――――――――――――――→ Playful
|
|
27
|
+
[Finance] [Entertainment]
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### Emotion Spectrum
|
|
31
|
+
```
|
|
32
|
+
Reserved ←――――――――――――――→ Expressive
|
|
33
|
+
[Corporate] [Lifestyle brand]
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
## Voice Development Process
|
|
37
|
+
|
|
38
|
+
### Step 1: Define Personality Traits
|
|
39
|
+
Choose 3-5 traits that describe your brand:
|
|
40
|
+
- Confident, not arrogant
|
|
41
|
+
- Friendly, not unprofessional
|
|
42
|
+
- Knowledgeable, not condescending
|
|
43
|
+
- Innovative, not gimmicky
|
|
44
|
+
- Authentic, not casual
|
|
45
|
+
|
|
46
|
+
### Step 2: Create Voice Chart
|
|
47
|
+
|
|
48
|
+
| Trait | Description | Do | Don't |
|
|
49
|
+
|-------|-------------|-----|-------|
|
|
50
|
+
| [Trait] | [Meaning] | [Example] | [Example] |
|
|
51
|
+
|
|
52
|
+
### Step 3: Context Adaptation
|
|
53
|
+
|
|
54
|
+
| Context | Tone Shift | Example |
|
|
55
|
+
|---------|------------|---------|
|
|
56
|
+
| Social media | More casual | "Hey there!" |
|
|
57
|
+
| Support | More empathetic | "We understand..." |
|
|
58
|
+
| Legal | More formal | "In accordance with..." |
|
|
59
|
+
| Sales | More confident | "You'll see results..." |
|
|
60
|
+
|
|
61
|
+
## Voice Testing
|
|
62
|
+
|
|
63
|
+
Ask these questions:
|
|
64
|
+
1. Does this sound like our brand?
|
|
65
|
+
2. Would a competitor say this?
|
|
66
|
+
3. Does it resonate with our audience?
|
|
67
|
+
4. Is it consistent with our values?
|
|
68
|
+
|
|
69
|
+
## Voice Guide Template
|
|
70
|
+
|
|
71
|
+
```markdown
|
|
72
|
+
## [Brand] Voice Guide
|
|
73
|
+
|
|
74
|
+
### We Are
|
|
75
|
+
- [Trait 1]: [Description]
|
|
76
|
+
- [Trait 2]: [Description]
|
|
77
|
+
- [Trait 3]: [Description]
|
|
78
|
+
|
|
79
|
+
### We Sound Like
|
|
80
|
+
[Example phrases]
|
|
81
|
+
|
|
82
|
+
### We Don't Sound Like
|
|
83
|
+
[Anti-examples]
|
|
84
|
+
|
|
85
|
+
### Sample Rewrites
|
|
86
|
+
Before: [Generic copy]
|
|
87
|
+
After: [Branded copy]
|
|
88
|
+
```
|
|
@@ -0,0 +1,341 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
/**
|
|
3
|
+
* extract-colors.cjs
|
|
4
|
+
*
|
|
5
|
+
* Extract dominant colors from an image and compare against brand palette.
|
|
6
|
+
* Uses pure Node.js without external image processing dependencies.
|
|
7
|
+
*
|
|
8
|
+
* For full color extraction from images, integrate with ai-multimodal skill
|
|
9
|
+
* or use ImageMagick via shell commands.
|
|
10
|
+
*
|
|
11
|
+
* Usage:
|
|
12
|
+
* node extract-colors.cjs <image-path>
|
|
13
|
+
* node extract-colors.cjs <image-path> --brand-file <path>
|
|
14
|
+
* node extract-colors.cjs --palette # Show brand palette from guidelines
|
|
15
|
+
*
|
|
16
|
+
* Integration:
|
|
17
|
+
* For image color analysis, use: ai-multimodal skill or ImageMagick
|
|
18
|
+
* magick <image> -colors 10 -depth 8 -format "%c" histogram:info:
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
const fs = require("fs");
|
|
22
|
+
const path = require("path");
|
|
23
|
+
|
|
24
|
+
// Default brand guidelines path
|
|
25
|
+
const DEFAULT_GUIDELINES_PATH = "docs/brand-guidelines.md";
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Extract hex colors from markdown content
|
|
29
|
+
*/
|
|
30
|
+
function extractHexColors(text) {
|
|
31
|
+
const hexPattern = /#[0-9A-Fa-f]{6}\b/g;
|
|
32
|
+
return [...new Set(text.match(hexPattern) || [])];
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Parse brand guidelines for color palette
|
|
37
|
+
*/
|
|
38
|
+
function parseBrandColors(guidelinesPath) {
|
|
39
|
+
const resolvedPath = path.isAbsolute(guidelinesPath)
|
|
40
|
+
? guidelinesPath
|
|
41
|
+
: path.join(process.cwd(), guidelinesPath);
|
|
42
|
+
|
|
43
|
+
if (!fs.existsSync(resolvedPath)) {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
const content = fs.readFileSync(resolvedPath, "utf-8");
|
|
48
|
+
|
|
49
|
+
const palette = {
|
|
50
|
+
primary: [],
|
|
51
|
+
secondary: [],
|
|
52
|
+
neutral: [],
|
|
53
|
+
semantic: [],
|
|
54
|
+
all: [],
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
// Extract colors from different sections
|
|
58
|
+
const sections = [
|
|
59
|
+
{ name: "primary", regex: /### Primary[\s\S]*?(?=###|##|$)/i },
|
|
60
|
+
{ name: "secondary", regex: /### Secondary[\s\S]*?(?=###|##|$)/i },
|
|
61
|
+
{ name: "neutral", regex: /### Neutral[\s\S]*?(?=###|##|$)/i },
|
|
62
|
+
{ name: "semantic", regex: /### Semantic[\s\S]*?(?=###|##|$)/i },
|
|
63
|
+
];
|
|
64
|
+
|
|
65
|
+
sections.forEach(({ name, regex }) => {
|
|
66
|
+
const match = content.match(regex);
|
|
67
|
+
if (match) {
|
|
68
|
+
const colors = extractHexColors(match[0]);
|
|
69
|
+
palette[name] = colors;
|
|
70
|
+
palette.all.push(...colors);
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
// Dedupe all
|
|
75
|
+
palette.all = [...new Set(palette.all)];
|
|
76
|
+
|
|
77
|
+
return palette;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Convert hex to RGB
|
|
82
|
+
*/
|
|
83
|
+
function hexToRgb(hex) {
|
|
84
|
+
const result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);
|
|
85
|
+
return result
|
|
86
|
+
? {
|
|
87
|
+
r: parseInt(result[1], 16),
|
|
88
|
+
g: parseInt(result[2], 16),
|
|
89
|
+
b: parseInt(result[3], 16),
|
|
90
|
+
}
|
|
91
|
+
: null;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Convert RGB to hex
|
|
96
|
+
*/
|
|
97
|
+
function rgbToHex(r, g, b) {
|
|
98
|
+
return (
|
|
99
|
+
"#" +
|
|
100
|
+
[r, g, b]
|
|
101
|
+
.map((x) => {
|
|
102
|
+
const hex = Math.round(x).toString(16);
|
|
103
|
+
return hex.length === 1 ? "0" + hex : hex;
|
|
104
|
+
})
|
|
105
|
+
.join("")
|
|
106
|
+
.toUpperCase()
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Calculate color distance (Euclidean in RGB space)
|
|
112
|
+
*/
|
|
113
|
+
function colorDistance(color1, color2) {
|
|
114
|
+
const rgb1 = typeof color1 === "string" ? hexToRgb(color1) : color1;
|
|
115
|
+
const rgb2 = typeof color2 === "string" ? hexToRgb(color2) : color2;
|
|
116
|
+
|
|
117
|
+
if (!rgb1 || !rgb2) return Infinity;
|
|
118
|
+
|
|
119
|
+
return Math.sqrt(
|
|
120
|
+
Math.pow(rgb1.r - rgb2.r, 2) +
|
|
121
|
+
Math.pow(rgb1.g - rgb2.g, 2) +
|
|
122
|
+
Math.pow(rgb1.b - rgb2.b, 2)
|
|
123
|
+
);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Find nearest brand color
|
|
128
|
+
*/
|
|
129
|
+
function findNearestBrandColor(color, brandColors) {
|
|
130
|
+
let nearest = null;
|
|
131
|
+
let minDistance = Infinity;
|
|
132
|
+
|
|
133
|
+
brandColors.forEach((brandColor) => {
|
|
134
|
+
const distance = colorDistance(color, brandColor);
|
|
135
|
+
if (distance < minDistance) {
|
|
136
|
+
minDistance = distance;
|
|
137
|
+
nearest = brandColor;
|
|
138
|
+
}
|
|
139
|
+
});
|
|
140
|
+
|
|
141
|
+
return { color: nearest, distance: minDistance };
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Calculate brand compliance percentage
|
|
146
|
+
* Distance threshold: 50 (out of max ~441 for RGB)
|
|
147
|
+
*/
|
|
148
|
+
function calculateCompliance(extractedColors, brandColors, threshold = 50) {
|
|
149
|
+
if (!extractedColors || extractedColors.length === 0) return 100;
|
|
150
|
+
if (!brandColors || brandColors.length === 0) return 0;
|
|
151
|
+
|
|
152
|
+
let matchCount = 0;
|
|
153
|
+
|
|
154
|
+
extractedColors.forEach((color) => {
|
|
155
|
+
const nearest = findNearestBrandColor(color, brandColors);
|
|
156
|
+
if (nearest.distance <= threshold) {
|
|
157
|
+
matchCount++;
|
|
158
|
+
}
|
|
159
|
+
});
|
|
160
|
+
|
|
161
|
+
return Math.round((matchCount / extractedColors.length) * 100);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Generate ImageMagick command for color extraction
|
|
166
|
+
*/
|
|
167
|
+
function generateImageMagickCommand(imagePath, numColors = 10) {
|
|
168
|
+
return `magick "${imagePath}" -colors ${numColors} -depth 8 -format "%c" histogram:info:`;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
/**
|
|
172
|
+
* Parse ImageMagick histogram output to extract colors
|
|
173
|
+
*/
|
|
174
|
+
function parseImageMagickOutput(output) {
|
|
175
|
+
const colors = [];
|
|
176
|
+
const lines = output.trim().split("\n");
|
|
177
|
+
|
|
178
|
+
lines.forEach((line) => {
|
|
179
|
+
// Match pattern like: 12345: (255,128,64) #FF8040 srgb(255,128,64)
|
|
180
|
+
const hexMatch = line.match(/#([0-9A-Fa-f]{6})/);
|
|
181
|
+
const countMatch = line.match(/^\s*(\d+):/);
|
|
182
|
+
|
|
183
|
+
if (hexMatch) {
|
|
184
|
+
colors.push({
|
|
185
|
+
hex: "#" + hexMatch[1].toUpperCase(),
|
|
186
|
+
count: countMatch ? parseInt(countMatch[1]) : 0,
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
});
|
|
190
|
+
|
|
191
|
+
// Sort by count (most common first)
|
|
192
|
+
colors.sort((a, b) => b.count - a.count);
|
|
193
|
+
|
|
194
|
+
return colors;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* Display brand palette
|
|
199
|
+
*/
|
|
200
|
+
function displayPalette(palette) {
|
|
201
|
+
console.log("\n" + "=".repeat(50));
|
|
202
|
+
console.log("BRAND COLOR PALETTE");
|
|
203
|
+
console.log("=".repeat(50));
|
|
204
|
+
|
|
205
|
+
if (palette.primary.length > 0) {
|
|
206
|
+
console.log("\nPrimary Colors:");
|
|
207
|
+
palette.primary.forEach((c) => console.log(` ${c}`));
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
if (palette.secondary.length > 0) {
|
|
211
|
+
console.log("\nSecondary Colors:");
|
|
212
|
+
palette.secondary.forEach((c) => console.log(` ${c}`));
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
if (palette.neutral.length > 0) {
|
|
216
|
+
console.log("\nNeutral Colors:");
|
|
217
|
+
palette.neutral.forEach((c) => console.log(` ${c}`));
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
if (palette.semantic.length > 0) {
|
|
221
|
+
console.log("\nSemantic Colors:");
|
|
222
|
+
palette.semantic.forEach((c) => console.log(` ${c}`));
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
console.log("\n" + "=".repeat(50));
|
|
226
|
+
console.log(`Total: ${palette.all.length} colors in brand palette`);
|
|
227
|
+
console.log("=".repeat(50) + "\n");
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* Main function
|
|
232
|
+
*/
|
|
233
|
+
function main() {
|
|
234
|
+
const args = process.argv.slice(2);
|
|
235
|
+
const jsonOutput = args.includes("--json");
|
|
236
|
+
const showPalette = args.includes("--palette");
|
|
237
|
+
const brandFileIdx = args.indexOf("--brand-file");
|
|
238
|
+
const brandFile =
|
|
239
|
+
brandFileIdx !== -1 ? args[brandFileIdx + 1] : DEFAULT_GUIDELINES_PATH;
|
|
240
|
+
const brandFileValue = brandFileIdx !== -1 ? args[brandFileIdx + 1] : null;
|
|
241
|
+
const imagePath = args.find(
|
|
242
|
+
(a) => !a.startsWith("--") && a !== brandFileValue
|
|
243
|
+
);
|
|
244
|
+
|
|
245
|
+
// Load brand palette
|
|
246
|
+
const brandPalette = parseBrandColors(brandFile);
|
|
247
|
+
|
|
248
|
+
if (!brandPalette) {
|
|
249
|
+
console.error(`Brand guidelines not found at: ${brandFile}`);
|
|
250
|
+
console.error(`Create brand guidelines or specify path with --brand-file`);
|
|
251
|
+
process.exit(1);
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
// Show palette mode
|
|
255
|
+
if (showPalette || !imagePath) {
|
|
256
|
+
if (jsonOutput) {
|
|
257
|
+
console.log(JSON.stringify(brandPalette, null, 2));
|
|
258
|
+
} else {
|
|
259
|
+
displayPalette(brandPalette);
|
|
260
|
+
|
|
261
|
+
if (!imagePath) {
|
|
262
|
+
console.log("To extract colors from an image:");
|
|
263
|
+
console.log(" node extract-colors.cjs <image-path>");
|
|
264
|
+
console.log("\nOr use ImageMagick directly:");
|
|
265
|
+
console.log(' magick image.png -colors 10 -depth 8 -format "%c" histogram:info:');
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
return;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
// Resolve image path
|
|
272
|
+
const resolvedPath = path.isAbsolute(imagePath)
|
|
273
|
+
? imagePath
|
|
274
|
+
: path.join(process.cwd(), imagePath);
|
|
275
|
+
|
|
276
|
+
if (!fs.existsSync(resolvedPath)) {
|
|
277
|
+
console.error(`Image not found: ${resolvedPath}`);
|
|
278
|
+
process.exit(1);
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
// Generate extraction instructions
|
|
282
|
+
const result = {
|
|
283
|
+
image: resolvedPath,
|
|
284
|
+
brandPalette: brandPalette,
|
|
285
|
+
extractionCommand: generateImageMagickCommand(resolvedPath),
|
|
286
|
+
instructions: [
|
|
287
|
+
"1. Run the ImageMagick command to extract colors:",
|
|
288
|
+
` ${generateImageMagickCommand(resolvedPath)}`,
|
|
289
|
+
"",
|
|
290
|
+
"2. Or use the ai-multimodal skill:",
|
|
291
|
+
` python .claude/skills/ai-multimodal/scripts/gemini_batch_process.py \\`,
|
|
292
|
+
` --files "${resolvedPath}" \\`,
|
|
293
|
+
` --task analyze \\`,
|
|
294
|
+
` --prompt "Extract the 10 most dominant colors as hex values"`,
|
|
295
|
+
"",
|
|
296
|
+
"3. Then compare extracted colors against brand palette",
|
|
297
|
+
],
|
|
298
|
+
complianceCheck: {
|
|
299
|
+
threshold: 50,
|
|
300
|
+
description:
|
|
301
|
+
"Colors within distance 50 (RGB space) are considered brand-compliant",
|
|
302
|
+
brandColors: brandPalette.all,
|
|
303
|
+
},
|
|
304
|
+
};
|
|
305
|
+
|
|
306
|
+
if (jsonOutput) {
|
|
307
|
+
console.log(JSON.stringify(result, null, 2));
|
|
308
|
+
} else {
|
|
309
|
+
console.log("\n" + "=".repeat(60));
|
|
310
|
+
console.log("COLOR EXTRACTION HELPER");
|
|
311
|
+
console.log("=".repeat(60));
|
|
312
|
+
console.log(`\nImage: ${result.image}`);
|
|
313
|
+
console.log(`\nBrand Colors: ${brandPalette.all.length} colors loaded`);
|
|
314
|
+
console.log("\nTo extract colors from this image:\n");
|
|
315
|
+
result.instructions.forEach((line) => console.log(line));
|
|
316
|
+
console.log("\n" + "=".repeat(60));
|
|
317
|
+
|
|
318
|
+
// Show brand palette for reference
|
|
319
|
+
console.log("\nBrand Palette Reference:");
|
|
320
|
+
console.log(` Primary: ${brandPalette.primary.join(", ") || "none"}`);
|
|
321
|
+
console.log(` Secondary: ${brandPalette.secondary.join(", ") || "none"}`);
|
|
322
|
+
console.log(` Neutral: ${brandPalette.neutral.join(", ") || "none"}`);
|
|
323
|
+
console.log("=".repeat(60) + "\n");
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
// Export functions for use as module
|
|
328
|
+
module.exports = {
|
|
329
|
+
parseBrandColors,
|
|
330
|
+
hexToRgb,
|
|
331
|
+
rgbToHex,
|
|
332
|
+
colorDistance,
|
|
333
|
+
findNearestBrandColor,
|
|
334
|
+
calculateCompliance,
|
|
335
|
+
parseImageMagickOutput,
|
|
336
|
+
};
|
|
337
|
+
|
|
338
|
+
// Run if called directly
|
|
339
|
+
if (require.main === module) {
|
|
340
|
+
main();
|
|
341
|
+
}
|