codymaster 7.0.1 → 7.0.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/CHANGELOG.md +64 -0
- package/README.md +117 -2
- package/dist/agent/codex.js +73 -21
- package/dist/agent-dispatch.js +63 -48
- package/dist/cli/commands/brain.js +18 -0
- package/dist/cli/commands/design-studio.js +1 -1
- package/dist/cm-suggest.js +3 -3
- package/dist/dashboard-project-summary.js +9 -0
- package/dist/dashboard.js +11 -5
- package/dist/execution-analyzer.js +9 -1
- package/dist/judge.js +16 -15
- package/dist/mcp-context-server.js +45 -23
- package/dist/mcp-skills-tools.js +2 -2
- package/dist/skill-chain.js +26 -3
- package/dist/skill-token-report.js +105 -0
- package/dist/sprint-pipeline.js +3 -3
- package/dist/ui/onboarding.js +3 -4
- package/dist/utils/design-taste.js +1 -1
- package/dist/utils/output-compress.js +8 -0
- package/package.json +3 -2
- package/public/dashboard/app.js +40 -13
- package/public/dashboard/index.html +190 -5
- package/public/dashboard/style.css +1 -1
- package/scripts/build-skills.mjs +36 -2
- package/scripts/mcp-bridge.js +41 -24
- package/scripts/pack-plugin.mjs +206 -0
- package/skills/cm-ads-tracker/SKILL.md +401 -0
- package/skills/cm-ads-tracker/evals/evals.json +55 -0
- package/skills/cm-ads-tracker/references/gtm-architecture.md +321 -0
- package/skills/cm-ads-tracker/references/industry-events.md +294 -0
- package/skills/cm-ads-tracker/references/platforms-api.md +238 -0
- package/skills/cm-ads-tracker/templates/capi-payload.md +79 -0
- package/skills/cm-ads-tracker/templates/datalayer-push.js +104 -0
- package/skills/cm-ads-tracker/templates/gtm-variables.js +56 -0
- package/skills/cm-auto-publisher/SKILL.md +81 -0
- package/skills/cm-booking-calendar/SKILL.md +521 -0
- package/skills/cm-booking-calendar/references/industry-patterns.md +527 -0
- package/skills/cm-booking-calendar/templates/booking-form.css +626 -0
- package/skills/cm-booking-calendar/templates/booking-form.html +477 -0
- package/skills/cm-booking-calendar/templates/calendar-engine.js +419 -0
- package/skills/cm-booking-calendar/templates/calendar-export.js +395 -0
- package/skills/cm-booking-calendar/templates/reminder-config.js +629 -0
- package/skills/cm-brainstorm-idea/SKILL.md +5 -5
- package/skills/cm-code-review/SKILL.md +2 -2
- package/skills/cm-codeintell/SKILL.md +47 -580
- package/skills/cm-codeintell/references/integration-workflows.md +23 -0
- package/skills/cm-codeintell/references/layer-0-skeleton.md +54 -0
- package/skills/cm-codeintell/references/layer-1-codegraph.md +58 -0
- package/skills/cm-codeintell/references/layer-2-architecture.md +31 -0
- package/skills/cm-codeintell/references/layer-3-context-builder.md +32 -0
- package/skills/cm-content-factory/.content-factory-state.json +132 -0
- package/skills/cm-content-factory/.git 2/logs/refs/heads/main +1 -0
- package/skills/cm-content-factory/.git 2/logs/refs/remotes/origin/main +1 -0
- package/skills/cm-content-factory/.git 2/objects/02/fb0956734b5f8ba3f918b7defd04a89cfe0076 +0 -0
- package/skills/cm-content-factory/.git 2/objects/08/1e129d75dc6feac6c02037272e6bd1a04e3324 +0 -0
- package/skills/cm-content-factory/.git 2/objects/0c/5393416f3c5e01c9a655a802bff0dd52f76f0a +0 -0
- package/skills/cm-content-factory/.git 2/objects/10/0b9be46978a946a77188f68be725098a122001 +0 -0
- package/skills/cm-content-factory/.git 2/objects/10/cf041167fc9843610eb3d90259ef3396315fdc +0 -0
- package/skills/cm-content-factory/.git 2/objects/12/5e19538dd6e1338ffe74f6c4c165b00435bf48 +0 -0
- package/skills/cm-content-factory/.git 2/objects/16/a9b9d0088d5c1347628b45a2620b479d8ad57c +0 -0
- package/skills/cm-content-factory/.git 2/objects/17/8c2a9ef93c33ae4eec9d58e82321f9229843a1 +0 -0
- package/skills/cm-content-factory/.git 2/objects/25/397ae41d09104d763bdcac2695209d85cdea89 +0 -0
- package/skills/cm-content-factory/.git 2/objects/2f/a836b7947f2d458e1f639788bf4bb0983a3305 +0 -0
- package/skills/cm-content-factory/.git 2/objects/3a/baaaf0a1c0909c0828335791557125fba911e0 +0 -0
- package/skills/cm-content-factory/.git 2/objects/42/2924221b81f5ce3c4e4daac9a64a24f9b01f9a +0 -0
- package/skills/cm-content-factory/.git 2/objects/42/ec0ce707447dc11446a34c9995fb8533801731 +0 -0
- package/skills/cm-content-factory/.git 2/objects/46/e43ce92866d56ce74b1d750db307cfe6154a15 +0 -0
- package/skills/cm-content-factory/.git 2/objects/48/5e41b633c63f55b8277bcc59f44f67681f671a +0 -0
- package/skills/cm-content-factory/.git 2/objects/49/49c596a3a89fa240642acd95dd3258e261eb09 +0 -0
- package/skills/cm-content-factory/.git 2/objects/50/9d42d8412ef8eaf7f7e138476bac2e4d10ce60 +0 -0
- package/skills/cm-content-factory/.git 2/objects/55/0c8c389d981b463ef849aeb792d8be3ccb6ec8 +0 -0
- package/skills/cm-content-factory/.git 2/objects/5d/82d3b18410cdda3ace3677436f0cb599dbe2d2 +0 -0
- package/skills/cm-content-factory/.git 2/objects/60/0617c58e871a38b33bf29e282d132bb3c381ad +0 -0
- package/skills/cm-content-factory/.git 2/objects/6a/8369a99c687b7245c92ffaf0e0f0dab9014504 +0 -0
- package/skills/cm-content-factory/.git 2/objects/79/bea435d40ab531c1aaf6be0432c6a5b7aaed21 +0 -0
- package/skills/cm-content-factory/.git 2/objects/7e/5ebd79251c2f14e4aceb86c74b6b6daae6b500 +0 -0
- package/skills/cm-content-factory/.git 2/objects/81/98a822a60178d6d5023ddb3e222cddf048742e +0 -0
- package/skills/cm-content-factory/.git 2/objects/86/0a0e1943dfe53411d2e499a1f16f46a96ef758 +0 -0
- package/skills/cm-content-factory/.git 2/objects/86/971fb55fdc081fdbae52376f0f13e57a4e9b04 +0 -0
- package/skills/cm-content-factory/.git 2/objects/88/b89dd609a0a03f8d4fe8bfde20d5b8fc1d326d +0 -0
- package/skills/cm-content-factory/.git 2/objects/90/8737edb6b7809e32cc01590b4e08ba42a9d40d +0 -0
- package/skills/cm-content-factory/.git 2/objects/93/d5a8a9a7d4fb7f11491cb596a6880528725118 +0 -0
- package/skills/cm-content-factory/.git 2/objects/98/46a2ab81d0c3b3eb00ef88fc56989aa7e9f316 +0 -0
- package/skills/cm-content-factory/.git 2/objects/9b/d8dd1e49cf274eaf9c555f3ab39dce7af5715e +0 -0
- package/skills/cm-content-factory/.git 2/objects/a1/13329fb0cec96ae78b222d33a24c3b5bc7fa1f +0 -0
- package/skills/cm-content-factory/.git 2/objects/a9/e6effe626e8a3aea3a8fc3364b492191c6e7d0 +0 -0
- package/skills/cm-content-factory/.git 2/objects/ad/6de7e48d9782cca9353d1ff0aa1aab7fe1df85 +0 -0
- package/skills/cm-content-factory/.git 2/objects/af/54ae316f771ff692e299ffcd8bf2f06b413b59 +0 -0
- package/skills/cm-content-factory/.git 2/objects/b0/4cb8b0b00dad633e731c1472161419e738d674 +0 -0
- package/skills/cm-content-factory/.git 2/objects/b3/094abb0b9ed46419b269e4a4e36a459690e3b0 +0 -0
- package/skills/cm-content-factory/.git 2/objects/b9/435c5d4baac2cfc5c83009ddd27b46b60db5f1 +0 -0
- package/skills/cm-content-factory/.git 2/objects/ba/5da17dbaec5ec2dcfdfd126aead518d1171d5c +0 -0
- package/skills/cm-content-factory/.git 2/objects/c0/bf58703aa258ba5dd63083bebaec8f223d844c +0 -0
- package/skills/cm-content-factory/.git 2/objects/c4/701a34edf1fc1bad58ccc57bd03f9426acb59a +0 -0
- package/skills/cm-content-factory/.git 2/objects/c7/5ccce9a4e5cc74d9b3174550cf6d993ca43638 +0 -0
- package/skills/cm-content-factory/.git 2/objects/c7/710d59b5a35b0f1f0a0399386643a0bd94c929 +0 -0
- package/skills/cm-content-factory/.git 2/objects/d1/fe58237112e953e5fec52da22cf38e08be3df9 +5 -0
- package/skills/cm-content-factory/.git 2/objects/d2/2bbe9fd2f74c95bc5583e803f5e435f1e2cd86 +0 -0
- package/skills/cm-content-factory/.git 2/objects/d7/e72852ea2bff74581dbf247d400120086229f4 +0 -0
- package/skills/cm-content-factory/.git 2/objects/d8/d4c3b5553e4fd72807e1d4b49ef07d9ef3ac35 +0 -0
- package/skills/cm-content-factory/.git 2/objects/dc/75050c2876f6a02ae2a53a3c886f395b622977 +0 -0
- package/skills/cm-content-factory/.git 2/objects/ee/e8546f95acec500187c08a28a8b9ee02db0dec +0 -0
- package/skills/cm-content-factory/.git 2/objects/ef/263c059208b416c2146434f10cb2b9fabcba16 +0 -0
- package/skills/cm-content-factory/.git 2/objects/f3/ae597e84d9a59b88acd21c99bde2eaf686d785 +0 -0
- package/skills/cm-content-factory/.git 2/objects/f3/f6f5673c821d3d8e76fa267a9e882e7a5387ea +0 -0
- package/skills/cm-content-factory/.git 2/objects/f9/6e6d0ad02624dd11d5848594d056caef7a5e8b +0 -0
- package/skills/cm-content-factory/.git 2/objects/ff/278988fc1edf0db3abcf18de795f4cc0b4f3e1 +0 -0
- package/skills/cm-content-factory/.git 2/refs/heads/main +1 -0
- package/skills/cm-content-factory/.git 2/refs/remotes/origin/main +1 -0
- package/skills/cm-content-factory/.pytest_cache 2/v/cache/nodeids +76 -0
- package/skills/cm-content-factory/.pytest_cache 2/v/cache/stepwise +1 -0
- package/skills/cm-content-factory/AGENTS.md +61 -0
- package/skills/cm-content-factory/CLAUDE.md +63 -0
- package/skills/cm-content-factory/CURSOR.md +43 -0
- package/skills/cm-content-factory/Content Factory.zip +0 -0
- package/skills/cm-content-factory/SKILL.md +416 -0
- package/skills/cm-content-factory/cf +313 -0
- package/skills/cm-content-factory/config.schema.json +397 -0
- package/skills/cm-content-factory/dashboard/app.js +556 -0
- package/skills/cm-content-factory/dashboard/index.html +397 -0
- package/skills/cm-content-factory/dashboard/style.css +1211 -0
- package/skills/cm-content-factory/examples/01-real-estate.config.json +146 -0
- package/skills/cm-content-factory/examples/02-personal-finance.config.json +146 -0
- package/skills/cm-content-factory/examples/03-health-wellness.config.json +147 -0
- package/skills/cm-content-factory/examples/04-saas-software.config.json +147 -0
- package/skills/cm-content-factory/examples/05-legal-services.config.json +147 -0
- package/skills/cm-content-factory/examples/06-insurance.config.json +146 -0
- package/skills/cm-content-factory/examples/07-ecommerce-dropship.config.json +146 -0
- package/skills/cm-content-factory/examples/08-online-education.config.json +147 -0
- package/skills/cm-content-factory/examples/09-crypto-defi.config.json +147 -0
- package/skills/cm-content-factory/examples/10-beauty-skincare.config.json +147 -0
- package/skills/cm-content-factory/examples/11-home-services.config.json +146 -0
- package/skills/cm-content-factory/examples/12-dental-clinic.config.json +147 -0
- package/skills/cm-content-factory/examples/13-pet-care.config.json +147 -0
- package/skills/cm-content-factory/examples/14-travel-hospitality.config.json +147 -0
- package/skills/cm-content-factory/examples/15-ai-automation.config.json +147 -0
- package/skills/cm-content-factory/examples/16-wedding-events.config.json +147 -0
- package/skills/cm-content-factory/examples/17-fitness-coaching.config.json +148 -0
- package/skills/cm-content-factory/examples/18-cybersecurity.config.json +147 -0
- package/skills/cm-content-factory/examples/19-food-restaurant.config.json +148 -0
- package/skills/cm-content-factory/examples/20-solar-energy.config.json +147 -0
- package/skills/cm-content-factory/examples/fitness-blog.config.json +116 -0
- package/skills/cm-content-factory/examples/tech-blog.config.json +107 -0
- package/skills/cm-content-factory/extensions/EXTENSION_GUIDE.md +72 -0
- package/skills/cm-content-factory/extensions/hooks.py +126 -0
- package/skills/cm-content-factory/extensions/openclaw_adapter.py +132 -0
- package/skills/cm-content-factory/landing/docs/content/changelog.md +36 -0
- package/skills/cm-content-factory/landing/docs/content/deployment.md +46 -0
- package/skills/cm-content-factory/landing/docs/content/execution-flow.md +67 -0
- package/skills/cm-content-factory/landing/docs/content/openspace.md +27 -0
- package/skills/cm-content-factory/landing/docs/content/openviking.md +33 -0
- package/skills/cm-content-factory/landing/docs/content/use-cases.md +26 -0
- package/skills/cm-content-factory/landing/docs/content/v5-intro.md +28 -0
- package/skills/cm-content-factory/landing/docs/index.html +240 -0
- package/skills/cm-content-factory/landing/index.html +680 -0
- package/skills/cm-content-factory/landing/script.js +143 -0
- package/skills/cm-content-factory/landing/style.css +1216 -0
- package/skills/cm-content-factory/landing/translations.js +508 -0
- package/skills/cm-content-factory/logs/events.jsonl +11 -0
- package/skills/cm-content-factory/profiles/_template.profile.json +231 -0
- package/skills/cm-content-factory/profiles/finance.profile.json +278 -0
- package/skills/cm-content-factory/profiles/legal.profile.json +263 -0
- package/skills/cm-content-factory/profiles/medical-research.profile.json +321 -0
- package/skills/cm-content-factory/profiles/technology.profile.json +275 -0
- package/skills/cm-content-factory/scripts/agent_dispatcher.py +266 -0
- package/skills/cm-content-factory/scripts/audit.py +106 -0
- package/skills/cm-content-factory/scripts/dashboard_server.py +225 -0
- package/skills/cm-content-factory/scripts/deploy.py +146 -0
- package/skills/cm-content-factory/scripts/extract.py +132 -0
- package/skills/cm-content-factory/scripts/landing_generator.py +459 -0
- package/skills/cm-content-factory/scripts/memory.py +521 -0
- package/skills/cm-content-factory/scripts/monetize.py +239 -0
- package/skills/cm-content-factory/scripts/pipeline.py +357 -0
- package/skills/cm-content-factory/scripts/plan.py +163 -0
- package/skills/cm-content-factory/scripts/publish.py +145 -0
- package/skills/cm-content-factory/scripts/research.py +337 -0
- package/skills/cm-content-factory/scripts/scaffold.py +464 -0
- package/skills/cm-content-factory/scripts/scoreboard.py +336 -0
- package/skills/cm-content-factory/scripts/seo.py +90 -0
- package/skills/cm-content-factory/scripts/state_manager.py +320 -0
- package/skills/cm-content-factory/scripts/token_manager.py +268 -0
- package/skills/cm-content-factory/scripts/validate.py +221 -0
- package/skills/cm-content-factory/scripts/wizard.py +329 -0
- package/skills/cm-content-factory/scripts/write.py +93 -0
- package/skills/cm-content-factory/sites/docs-site/src/assets/houston.webp +0 -0
- package/skills/cm-content-factory/sites/docs-site/src/content/docs/architecture.md +90 -0
- package/skills/cm-content-factory/sites/docs-site/src/content/docs/data-flow.md +54 -0
- package/skills/cm-content-factory/sites/docs-site/src/content/docs/deployment.md +38 -0
- package/skills/cm-content-factory/sites/docs-site/src/content/docs/flows/index.md +65 -0
- package/skills/cm-content-factory/sites/docs-site/src/content/docs/flows/lc-content-lifecycle.md +48 -0
- package/skills/cm-content-factory/sites/docs-site/src/content/docs/flows/seq-write-mode.md +39 -0
- package/skills/cm-content-factory/sites/docs-site/src/content/docs/flows/uj-first-batch.md +42 -0
- package/skills/cm-content-factory/sites/docs-site/src/content/docs/flows/wf-content-pipeline.md +51 -0
- package/skills/cm-content-factory/sites/docs-site/src/content/docs/flows/wf-learning-cycle.md +52 -0
- package/skills/cm-content-factory/sites/docs-site/src/content/docs/getting-started/configuration.md +86 -0
- package/skills/cm-content-factory/sites/docs-site/src/content/docs/getting-started/installation.md +80 -0
- package/skills/cm-content-factory/sites/docs-site/src/content/docs/getting-started/intro.md +58 -0
- package/skills/cm-content-factory/sites/docs-site/src/content/docs/index.md +102 -0
- package/skills/cm-content-factory/sites/docs-site/src/content/docs/jtbd/index.md +45 -0
- package/skills/cm-content-factory/sites/docs-site/src/content/docs/jtbd/optimize-seo.md +29 -0
- package/skills/cm-content-factory/sites/docs-site/src/content/docs/jtbd/scale-content-production.md +55 -0
- package/skills/cm-content-factory/sites/docs-site/src/content/docs/jtbd/standardize-quality.md +29 -0
- package/skills/cm-content-factory/sites/docs-site/src/content/docs/personas/buyer-cmo-huong.md +41 -0
- package/skills/cm-content-factory/sites/docs-site/src/content/docs/personas/buyer-content-lead-khoa.md +40 -0
- package/skills/cm-content-factory/sites/docs-site/src/content/docs/personas/index.md +56 -0
- package/skills/cm-content-factory/sites/docs-site/src/content/docs/personas/user-content-manager-lan.md +46 -0
- package/skills/cm-content-factory/sites/docs-site/src/content/docs/personas/user-seo-minh.md +45 -0
- package/skills/cm-content-factory/sites/docs-site/src/content/docs/personas/user-writer-tu.md +45 -0
- package/skills/cm-content-factory/sites/docs-site/src/content/docs/sop/content-pipeline.md +108 -0
- package/skills/cm-content-factory/sites/docs-site/src/content/docs/sop/index.md +22 -0
- package/skills/cm-content-factory/sites/docs-site/src/content/docs/sop/memory-system.md +52 -0
- package/skills/cm-content-factory/sites/docs-site/src/content/docs/sop/seo-optimization.md +58 -0
- package/skills/cm-content-factory/sites/docs-site/src/content/docs/sop/troubleshooting-guide.md +92 -0
- package/skills/cm-content-factory/sites/docs-site/src/styles/custom.css +575 -0
- package/skills/cm-content-factory/tests/conftest.py +66 -0
- package/skills/cm-content-factory/tests/test_agent_dispatcher.py +125 -0
- package/skills/cm-content-factory/tests/test_memory.py +128 -0
- package/skills/cm-content-factory/tests/test_pipeline.py +107 -0
- package/skills/cm-content-factory/tests/test_research.py +56 -0
- package/skills/cm-content-factory/tests/test_state_manager.py +131 -0
- package/skills/cm-content-factory/tests/test_token_manager.py +110 -0
- package/skills/cm-content-factory/tests/test_wizard.py +121 -0
- package/skills/cm-continuity/SKILL.md +49 -480
- package/skills/cm-continuity/references/cm-uri-scheme.md +23 -0
- package/skills/cm-continuity/references/continuity-template.md +48 -0
- package/skills/cm-continuity/references/mcp-context-server.md +27 -0
- package/skills/cm-continuity/references/memory-architecture.md +26 -0
- package/skills/cm-continuity/references/memory-audit.md +18 -0
- package/skills/cm-continuity/references/session-protocol.md +31 -0
- package/skills/cm-continuity/references/storage-formats.md +20 -0
- package/skills/cm-cro-methodology/SKILL.md +290 -0
- package/skills/cm-cro-methodology/references/COPYWRITING.md +178 -0
- package/skills/cm-cro-methodology/references/OBJECTIONS.md +135 -0
- package/skills/cm-cro-methodology/references/PERSUASION.md +158 -0
- package/skills/cm-cro-methodology/references/RESEARCH.md +220 -0
- package/skills/cm-cro-methodology/references/funnel-analysis.md +365 -0
- package/skills/cm-cro-methodology/references/testing-methodology.md +330 -0
- package/skills/cm-design-system/SKILL.md +5 -6
- package/skills/cm-execution/SKILL.md +61 -379
- package/skills/cm-execution/references/mode-a-batch.md +28 -0
- package/skills/cm-execution/references/mode-b-subagent.md +46 -0
- package/skills/cm-execution/references/mode-c-parallel.md +39 -0
- package/skills/cm-execution/references/mode-d-rarv.md +62 -0
- package/skills/cm-execution/references/mode-e-triz-parallel.md +53 -0
- package/skills/cm-execution/references/mode-f-party.md +61 -0
- package/skills/cm-execution/references/persona-dispatch.md +22 -0
- package/skills/cm-execution/references/security-rules.md +47 -0
- package/skills/cm-google-form/SKILL.md +266 -0
- package/skills/cm-google-form/templates/apps-script.js +55 -0
- package/skills/cm-google-form/templates/form-markup.html +110 -0
- package/skills/cm-google-form/templates/form-submit.js +201 -0
- package/skills/cm-google-form/templates/toast.css +152 -0
- package/skills/cm-growth-hacking/SKILL.md +282 -0
- package/skills/cm-growth-hacking/bottom-sheet-engine.md +261 -0
- package/skills/cm-growth-hacking/calendar-integration.md +264 -0
- package/skills/cm-growth-hacking/references/engagement-patterns.md +346 -0
- package/skills/cm-growth-hacking/templates/bottom-sheet.css +528 -0
- package/skills/cm-growth-hacking/templates/bottom-sheet.js +269 -0
- package/skills/cm-growth-hacking/templates/calendar-cta.js +213 -0
- package/skills/cm-growth-hacking/templates/tracking-events.js +211 -0
- package/skills/cm-growth-hacking/templates/trigger-manager.js +254 -0
- package/skills/cm-growth-hacking/tracking-events.md +246 -0
- package/skills/cm-growth-hacking/trigger-system.md +342 -0
- package/skills/cm-how-it-work/SKILL.md +8 -9
- package/skills/cm-identity-guard/SKILL.md +4 -4
- package/skills/cm-jtbd/SKILL.md +98 -0
- package/skills/cm-notebooklm/SKILL.md +156 -0
- package/skills/cm-notebooklm/references/command_reference.md +94 -0
- package/skills/cm-notebooklm/references/workflows.md +60 -0
- package/skills/cm-notebooklm/resources/knowledge_sources.md +106 -0
- package/skills/cm-notebooklm/scripts/brain-sync.sh +453 -0
- package/skills/cm-notebooklm/scripts/graduate_wisdom.py +101 -0
- package/skills/cm-planning/SKILL.md +3 -3
- package/skills/cm-project-bootstrap/SKILL.md +2 -2
- package/skills/cm-quality-gate/SKILL.md +1 -1
- package/skills/cm-readit/SKILL.md +289 -0
- package/skills/cm-readit/audio-player.md +206 -0
- package/skills/cm-readit/examples/blog-reader.js +352 -0
- package/skills/cm-readit/examples/voice-cro.js +390 -0
- package/skills/cm-readit/tts-engine.md +262 -0
- package/skills/cm-readit/ui-patterns.md +362 -0
- package/skills/cm-readit/voice-cro.md +223 -0
- package/skills/cm-safe-deploy/SKILL.md +80 -510
- package/skills/cm-safe-deploy/references/gate-0-5-security-scan.md +31 -0
- package/skills/cm-safe-deploy/references/gate-0-secret-hygiene.md +68 -0
- package/skills/cm-safe-deploy/references/gate-1-syntax.md +23 -0
- package/skills/cm-safe-deploy/references/gate-2-test-suite.md +28 -0
- package/skills/cm-safe-deploy/references/gate-3-i18n.md +19 -0
- package/skills/cm-safe-deploy/references/gate-4-5-build-dist.md +16 -0
- package/skills/cm-safe-deploy/references/gate-6-deploy-smoke.md +18 -0
- package/skills/cm-safe-deploy/references/rollback.md +17 -0
- package/skills/cm-safe-deploy/references/setup-new-project.md +20 -0
- package/skills/cm-skill-index/SKILL.md +15 -15
- package/skills/cm-start/SKILL.md +1 -1
- package/skills/cm-tdd/SKILL.md +51 -356
- package/skills/cm-tdd/references/bugfix-example.md +15 -0
- package/skills/cm-tdd/references/rationalizations.md +20 -0
- package/skills/cm-tdd/references/red-green-refactor.md +33 -0
- package/skills/cm-tdd/references/stuck-debugging.md +18 -0
- package/skills/cm-tdd/references/test-quality.md +19 -0
- package/skills/cm-ux-master/SKILL.md +368 -115
- package/skills/profiles/core.txt +1 -4
- package/skills/profiles/design.txt +1 -2
- package/skills/profiles/full.txt +10 -16
- package/skills/profiles/growth.txt +9 -9
- package/skills/profiles/top35.json +13 -13
- package/skills/cm-conductor-worktrees/SKILL.archive.md +0 -28
- package/skills/cm-conductor-worktrees/SKILL.md +0 -26
- package/skills/cm-dashboard/SKILL.archive.md +0 -15
- package/skills/cm-dashboard/SKILL.md +0 -26
- package/skills/cm-dashboard/ui/app.js +0 -1278
- package/skills/cm-dashboard/ui/index.html +0 -206
- package/skills/cm-dashboard/ui/style.css +0 -440
- package/skills/cm-design-studio/SKILL.archive.md +0 -34
- package/skills/cm-design-studio/SKILL.md +0 -26
- package/skills/cm-engineering-meta/SKILL.archive.md +0 -73
- package/skills/cm-engineering-meta/SKILL.md +0 -26
- package/skills/cm-git-worktrees/SKILL.archive.md +0 -157
- package/skills/cm-git-worktrees/SKILL.md +0 -26
- package/skills/cm-post-deploy-canary/SKILL.archive.md +0 -22
- package/skills/cm-post-deploy-canary/SKILL.md +0 -26
- package/skills/cm-qa-visual-cli/SKILL.archive.md +0 -22
- package/skills/cm-qa-visual-cli/SKILL.md +0 -26
- package/skills/cm-second-opinion-cli/SKILL.archive.md +0 -23
- package/skills/cm-second-opinion-cli/SKILL.md +0 -26
- package/skills/cm-secret-shield/SKILL.archive.md +0 -580
- package/skills/cm-secret-shield/SKILL.md +0 -26
- package/skills/cm-security-gate/SKILL.archive.md +0 -239
- package/skills/cm-security-gate/SKILL.md +0 -26
- package/skills/cm-skill-health/SKILL.archive.md +0 -83
- package/skills/cm-skill-health/SKILL.md +0 -26
- package/skills/cm-skill-mastery/SKILL.archive.md +0 -156
- package/skills/cm-skill-mastery/SKILL.md +0 -26
- package/skills/cm-skill-search/SKILL.archive.md +0 -49
- package/skills/cm-skill-search/SKILL.md +0 -26
- package/skills/cm-skill-share/SKILL.archive.md +0 -58
- package/skills/cm-skill-share/SKILL.md +0 -26
- package/skills/cm-test-gate/SKILL.archive.md +0 -245
- package/skills/cm-test-gate/SKILL.md +0 -26
- package/skills/cm-ui-preview/SKILL.archive.md +0 -153
- package/skills/cm-ui-preview/SKILL.md +0 -26
|
@@ -0,0 +1,459 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""
|
|
3
|
+
Landing Page Generator — Create persona-based landing pages from config.
|
|
4
|
+
|
|
5
|
+
Generates optimized HTML landing pages for each customer persona using
|
|
6
|
+
Content Mastery SB7 framework and UX Master design principles.
|
|
7
|
+
|
|
8
|
+
Usage:
|
|
9
|
+
python3 scripts/landing_generator.py --config content-factory.config.json
|
|
10
|
+
python3 scripts/landing_generator.py --config content-factory.config.json --persona "economic-buyer"
|
|
11
|
+
python3 scripts/landing_generator.py --list
|
|
12
|
+
"""
|
|
13
|
+
|
|
14
|
+
import json
|
|
15
|
+
import os
|
|
16
|
+
import sys
|
|
17
|
+
import argparse
|
|
18
|
+
from pathlib import Path
|
|
19
|
+
from datetime import datetime
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
SCRIPT_DIR = Path(__file__).resolve().parent
|
|
23
|
+
DEFAULT_TEMPLATE = """<!DOCTYPE html>
|
|
24
|
+
<html lang="{language}">
|
|
25
|
+
<head>
|
|
26
|
+
<meta charset="UTF-8">
|
|
27
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
28
|
+
<title>{title}</title>
|
|
29
|
+
<meta name="description" content="{meta_description}">
|
|
30
|
+
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
31
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
32
|
+
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet">
|
|
33
|
+
<style>
|
|
34
|
+
:root {{
|
|
35
|
+
--primary: {primary_color};
|
|
36
|
+
--secondary: {secondary_color};
|
|
37
|
+
--accent: {accent_color};
|
|
38
|
+
--bg: #0a0e17;
|
|
39
|
+
--bg-card: #1a2332;
|
|
40
|
+
--text: #e2e8f0;
|
|
41
|
+
--text-muted: #94a3b8;
|
|
42
|
+
--radius: 12px;
|
|
43
|
+
}}
|
|
44
|
+
*, *::before, *::after {{ box-sizing: border-box; margin: 0; padding: 0; }}
|
|
45
|
+
body {{
|
|
46
|
+
font-family: 'Inter', system-ui, sans-serif;
|
|
47
|
+
background: var(--bg);
|
|
48
|
+
color: var(--text);
|
|
49
|
+
line-height: 1.7;
|
|
50
|
+
-webkit-font-smoothing: antialiased;
|
|
51
|
+
}}
|
|
52
|
+
.container {{ max-width: 960px; margin: 0 auto; padding: 0 1.5rem; }}
|
|
53
|
+
|
|
54
|
+
/* Hero */
|
|
55
|
+
.hero {{
|
|
56
|
+
padding: 5rem 0 3rem;
|
|
57
|
+
text-align: center;
|
|
58
|
+
background: linear-gradient(180deg, rgba(6,182,212,0.05) 0%, transparent 60%);
|
|
59
|
+
}}
|
|
60
|
+
.hero-badge {{
|
|
61
|
+
display: inline-block;
|
|
62
|
+
font-size: 0.75rem;
|
|
63
|
+
font-weight: 600;
|
|
64
|
+
padding: 6px 16px;
|
|
65
|
+
border-radius: 999px;
|
|
66
|
+
background: rgba(6,182,212,0.1);
|
|
67
|
+
color: var(--primary);
|
|
68
|
+
border: 1px solid rgba(6,182,212,0.2);
|
|
69
|
+
margin-bottom: 1.5rem;
|
|
70
|
+
}}
|
|
71
|
+
.hero h1 {{
|
|
72
|
+
font-size: clamp(2rem, 5vw, 3rem);
|
|
73
|
+
font-weight: 800;
|
|
74
|
+
line-height: 1.2;
|
|
75
|
+
margin-bottom: 1.25rem;
|
|
76
|
+
background: linear-gradient(135deg, var(--text) 0%, var(--primary) 100%);
|
|
77
|
+
-webkit-background-clip: text;
|
|
78
|
+
-webkit-text-fill-color: transparent;
|
|
79
|
+
}}
|
|
80
|
+
.hero p {{
|
|
81
|
+
font-size: 1.15rem;
|
|
82
|
+
color: var(--text-muted);
|
|
83
|
+
max-width: 600px;
|
|
84
|
+
margin: 0 auto 2rem;
|
|
85
|
+
}}
|
|
86
|
+
|
|
87
|
+
/* CTA */
|
|
88
|
+
.cta-btn {{
|
|
89
|
+
display: inline-flex;
|
|
90
|
+
align-items: center;
|
|
91
|
+
gap: 8px;
|
|
92
|
+
font-family: inherit;
|
|
93
|
+
font-size: 1rem;
|
|
94
|
+
font-weight: 600;
|
|
95
|
+
padding: 14px 32px;
|
|
96
|
+
border: none;
|
|
97
|
+
border-radius: var(--radius);
|
|
98
|
+
cursor: pointer;
|
|
99
|
+
text-decoration: none;
|
|
100
|
+
transition: all 0.2s ease;
|
|
101
|
+
min-height: 44px;
|
|
102
|
+
min-width: 44px;
|
|
103
|
+
}}
|
|
104
|
+
.cta-primary {{
|
|
105
|
+
background: var(--primary);
|
|
106
|
+
color: #fff;
|
|
107
|
+
box-shadow: 0 4px 20px rgba(6,182,212,0.3);
|
|
108
|
+
}}
|
|
109
|
+
.cta-primary:hover {{ transform: translateY(-2px); box-shadow: 0 6px 30px rgba(6,182,212,0.4); }}
|
|
110
|
+
.cta-secondary {{
|
|
111
|
+
background: transparent;
|
|
112
|
+
color: var(--text);
|
|
113
|
+
border: 1px solid var(--text-muted);
|
|
114
|
+
}}
|
|
115
|
+
.cta-secondary:hover {{ border-color: var(--primary); color: var(--primary); }}
|
|
116
|
+
.cta-group {{ display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }}
|
|
117
|
+
|
|
118
|
+
/* Sections */
|
|
119
|
+
.section {{ padding: 4rem 0; }}
|
|
120
|
+
.section-title {{
|
|
121
|
+
font-size: 1.75rem;
|
|
122
|
+
font-weight: 700;
|
|
123
|
+
text-align: center;
|
|
124
|
+
margin-bottom: 0.75rem;
|
|
125
|
+
}}
|
|
126
|
+
.section-subtitle {{
|
|
127
|
+
font-size: 1rem;
|
|
128
|
+
color: var(--text-muted);
|
|
129
|
+
text-align: center;
|
|
130
|
+
max-width: 600px;
|
|
131
|
+
margin: 0 auto 2.5rem;
|
|
132
|
+
}}
|
|
133
|
+
|
|
134
|
+
/* Problem Section */
|
|
135
|
+
.problems {{ background: var(--bg-card); border-radius: var(--radius); padding: 2rem; }}
|
|
136
|
+
.problem-item {{
|
|
137
|
+
display: flex;
|
|
138
|
+
align-items: flex-start;
|
|
139
|
+
gap: 1rem;
|
|
140
|
+
padding: 1rem 0;
|
|
141
|
+
border-bottom: 1px solid rgba(255,255,255,0.05);
|
|
142
|
+
}}
|
|
143
|
+
.problem-item:last-child {{ border-bottom: none; }}
|
|
144
|
+
.problem-icon {{ font-size: 1.25rem; flex-shrink: 0; margin-top: 2px; }}
|
|
145
|
+
.problem-text {{ color: var(--text-muted); }}
|
|
146
|
+
.problem-text strong {{ color: var(--text); }}
|
|
147
|
+
|
|
148
|
+
/* Benefits Grid */
|
|
149
|
+
.benefits-grid {{
|
|
150
|
+
display: grid;
|
|
151
|
+
grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
|
|
152
|
+
gap: 1.25rem;
|
|
153
|
+
}}
|
|
154
|
+
.benefit-card {{
|
|
155
|
+
background: var(--bg-card);
|
|
156
|
+
border: 1px solid rgba(255,255,255,0.05);
|
|
157
|
+
border-radius: var(--radius);
|
|
158
|
+
padding: 1.5rem;
|
|
159
|
+
transition: border-color 0.2s;
|
|
160
|
+
}}
|
|
161
|
+
.benefit-card:hover {{ border-color: rgba(6,182,212,0.3); }}
|
|
162
|
+
.benefit-icon {{ font-size: 1.5rem; margin-bottom: 0.75rem; }}
|
|
163
|
+
.benefit-title {{ font-weight: 600; margin-bottom: 0.5rem; }}
|
|
164
|
+
.benefit-desc {{ font-size: 0.9rem; color: var(--text-muted); }}
|
|
165
|
+
|
|
166
|
+
/* Social Proof */
|
|
167
|
+
.social-proof {{ text-align: center; }}
|
|
168
|
+
.proof-stats {{
|
|
169
|
+
display: flex;
|
|
170
|
+
justify-content: center;
|
|
171
|
+
gap: 3rem;
|
|
172
|
+
flex-wrap: wrap;
|
|
173
|
+
margin-bottom: 2rem;
|
|
174
|
+
}}
|
|
175
|
+
.proof-stat-number {{ font-size: 2rem; font-weight: 800; color: var(--primary); }}
|
|
176
|
+
.proof-stat-label {{ font-size: 0.85rem; color: var(--text-muted); }}
|
|
177
|
+
|
|
178
|
+
/* Steps */
|
|
179
|
+
.steps {{ counter-reset: step; }}
|
|
180
|
+
.step-item {{
|
|
181
|
+
display: flex;
|
|
182
|
+
align-items: flex-start;
|
|
183
|
+
gap: 1.5rem;
|
|
184
|
+
padding: 1.5rem 0;
|
|
185
|
+
}}
|
|
186
|
+
.step-number {{
|
|
187
|
+
counter-increment: step;
|
|
188
|
+
display: flex;
|
|
189
|
+
align-items: center;
|
|
190
|
+
justify-content: center;
|
|
191
|
+
width: 44px;
|
|
192
|
+
height: 44px;
|
|
193
|
+
border-radius: 50%;
|
|
194
|
+
background: rgba(6,182,212,0.1);
|
|
195
|
+
border: 2px solid var(--primary);
|
|
196
|
+
color: var(--primary);
|
|
197
|
+
font-weight: 700;
|
|
198
|
+
flex-shrink: 0;
|
|
199
|
+
}}
|
|
200
|
+
.step-number::before {{ content: counter(step); }}
|
|
201
|
+
.step-content h3 {{ font-weight: 600; margin-bottom: 0.25rem; }}
|
|
202
|
+
.step-content p {{ color: var(--text-muted); font-size: 0.9rem; }}
|
|
203
|
+
|
|
204
|
+
/* CTA Section */
|
|
205
|
+
.cta-section {{
|
|
206
|
+
text-align: center;
|
|
207
|
+
padding: 4rem 2rem;
|
|
208
|
+
background: linear-gradient(135deg, rgba(6,182,212,0.08) 0%, rgba(16,185,129,0.08) 100%);
|
|
209
|
+
border-radius: var(--radius);
|
|
210
|
+
margin: 2rem 0;
|
|
211
|
+
}}
|
|
212
|
+
.cta-section h2 {{ font-size: 1.75rem; margin-bottom: 0.75rem; }}
|
|
213
|
+
.cta-section p {{ color: var(--text-muted); margin-bottom: 1.5rem; }}
|
|
214
|
+
|
|
215
|
+
/* Footer */
|
|
216
|
+
.landing-footer {{
|
|
217
|
+
text-align: center;
|
|
218
|
+
padding: 2rem;
|
|
219
|
+
font-size: 0.8rem;
|
|
220
|
+
color: var(--text-muted);
|
|
221
|
+
border-top: 1px solid rgba(255,255,255,0.05);
|
|
222
|
+
}}
|
|
223
|
+
|
|
224
|
+
@media (max-width: 640px) {{
|
|
225
|
+
.hero {{ padding: 3rem 0 2rem; }}
|
|
226
|
+
.section {{ padding: 2.5rem 0; }}
|
|
227
|
+
.proof-stats {{ gap: 1.5rem; }}
|
|
228
|
+
}}
|
|
229
|
+
</style>
|
|
230
|
+
</head>
|
|
231
|
+
<body>
|
|
232
|
+
<section class="hero">
|
|
233
|
+
<div class="container">
|
|
234
|
+
<span class="hero-badge">{badge_text}</span>
|
|
235
|
+
<h1>{headline}</h1>
|
|
236
|
+
<p>{subheadline}</p>
|
|
237
|
+
<div class="cta-group">
|
|
238
|
+
<a href="{cta_url}" class="cta-btn cta-primary">{cta_text}</a>
|
|
239
|
+
<a href="{secondary_cta_url}" class="cta-btn cta-secondary">{secondary_cta_text}</a>
|
|
240
|
+
</div>
|
|
241
|
+
</div>
|
|
242
|
+
</section>
|
|
243
|
+
|
|
244
|
+
<section class="section">
|
|
245
|
+
<div class="container">
|
|
246
|
+
<h2 class="section-title">{problem_title}</h2>
|
|
247
|
+
<p class="section-subtitle">{problem_subtitle}</p>
|
|
248
|
+
<div class="problems">
|
|
249
|
+
{problem_items}
|
|
250
|
+
</div>
|
|
251
|
+
</div>
|
|
252
|
+
</section>
|
|
253
|
+
|
|
254
|
+
<section class="section">
|
|
255
|
+
<div class="container">
|
|
256
|
+
<h2 class="section-title">{benefits_title}</h2>
|
|
257
|
+
<p class="section-subtitle">{benefits_subtitle}</p>
|
|
258
|
+
<div class="benefits-grid">
|
|
259
|
+
{benefit_cards}
|
|
260
|
+
</div>
|
|
261
|
+
</div>
|
|
262
|
+
</section>
|
|
263
|
+
|
|
264
|
+
<section class="section social-proof">
|
|
265
|
+
<div class="container">
|
|
266
|
+
<h2 class="section-title">{proof_title}</h2>
|
|
267
|
+
<div class="proof-stats">
|
|
268
|
+
{proof_stats}
|
|
269
|
+
</div>
|
|
270
|
+
</div>
|
|
271
|
+
</section>
|
|
272
|
+
|
|
273
|
+
<section class="section">
|
|
274
|
+
<div class="container">
|
|
275
|
+
<h2 class="section-title">{steps_title}</h2>
|
|
276
|
+
<p class="section-subtitle">{steps_subtitle}</p>
|
|
277
|
+
<div class="steps">
|
|
278
|
+
{step_items}
|
|
279
|
+
</div>
|
|
280
|
+
</div>
|
|
281
|
+
</section>
|
|
282
|
+
|
|
283
|
+
<section class="cta-section">
|
|
284
|
+
<div class="container">
|
|
285
|
+
<h2>{final_cta_title}</h2>
|
|
286
|
+
<p>{final_cta_subtitle}</p>
|
|
287
|
+
<a href="{cta_url}" class="cta-btn cta-primary">{cta_text}</a>
|
|
288
|
+
</div>
|
|
289
|
+
</section>
|
|
290
|
+
|
|
291
|
+
<footer class="landing-footer">
|
|
292
|
+
<p>© {year} {brand_name}. {footer_text}</p>
|
|
293
|
+
</footer>
|
|
294
|
+
</body>
|
|
295
|
+
</html>"""
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
def generate_problem_items(pain_points: list) -> str:
|
|
299
|
+
icons = ["⚡", "🔥", "💸", "⏰", "😤", "📉", "🔒", "❌"]
|
|
300
|
+
items = []
|
|
301
|
+
for i, point in enumerate(pain_points[:6]):
|
|
302
|
+
icon = icons[i % len(icons)]
|
|
303
|
+
items.append(f''' <div class="problem-item">
|
|
304
|
+
<span class="problem-icon">{icon}</span>
|
|
305
|
+
<p class="problem-text"><strong>{point}</strong></p>
|
|
306
|
+
</div>''')
|
|
307
|
+
return "\n".join(items)
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
def generate_benefit_cards(benefits: list) -> str:
|
|
311
|
+
icons = ["🚀", "💎", "⚡", "🎯", "🔧", "📊"]
|
|
312
|
+
cards = []
|
|
313
|
+
for i, b in enumerate(benefits[:6]):
|
|
314
|
+
icon = icons[i % len(icons)]
|
|
315
|
+
title = b.get("title", b) if isinstance(b, dict) else b
|
|
316
|
+
desc = b.get("description", "") if isinstance(b, dict) else ""
|
|
317
|
+
cards.append(f''' <div class="benefit-card">
|
|
318
|
+
<div class="benefit-icon">{icon}</div>
|
|
319
|
+
<div class="benefit-title">{title}</div>
|
|
320
|
+
<div class="benefit-desc">{desc}</div>
|
|
321
|
+
</div>''')
|
|
322
|
+
return "\n".join(cards)
|
|
323
|
+
|
|
324
|
+
|
|
325
|
+
def generate_proof_stats(stats: list) -> str:
|
|
326
|
+
items = []
|
|
327
|
+
for stat in stats[:4]:
|
|
328
|
+
number = stat.get("number", "0")
|
|
329
|
+
label = stat.get("label", "")
|
|
330
|
+
items.append(f''' <div>
|
|
331
|
+
<div class="proof-stat-number">{number}</div>
|
|
332
|
+
<div class="proof-stat-label">{label}</div>
|
|
333
|
+
</div>''')
|
|
334
|
+
return "\n".join(items)
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
def generate_step_items(steps: list) -> str:
|
|
338
|
+
items = []
|
|
339
|
+
for step in steps[:5]:
|
|
340
|
+
title = step.get("title", step) if isinstance(step, dict) else step
|
|
341
|
+
desc = step.get("description", "") if isinstance(step, dict) else ""
|
|
342
|
+
items.append(f''' <div class="step-item">
|
|
343
|
+
<div class="step-number"></div>
|
|
344
|
+
<div class="step-content">
|
|
345
|
+
<h3>{title}</h3>
|
|
346
|
+
<p>{desc}</p>
|
|
347
|
+
</div>
|
|
348
|
+
</div>''')
|
|
349
|
+
return "\n".join(items)
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
def slugify(text: str) -> str:
|
|
353
|
+
import re
|
|
354
|
+
text = text.lower().strip()
|
|
355
|
+
text = re.sub(r'[^\w\s-]', '', text)
|
|
356
|
+
text = re.sub(r'[\s_]+', '-', text)
|
|
357
|
+
return re.sub(r'-+', '-', text).strip('-')
|
|
358
|
+
|
|
359
|
+
|
|
360
|
+
def generate_landing_page(persona: dict, brand: dict, config: dict) -> str:
|
|
361
|
+
"""Generate a complete landing page HTML for a persona."""
|
|
362
|
+
colors = brand.get("colors", {})
|
|
363
|
+
language = brand.get("language", config.get("content", {}).get("language", "en"))
|
|
364
|
+
|
|
365
|
+
replacements = {
|
|
366
|
+
"language": language,
|
|
367
|
+
"title": persona.get("page_title", f"{brand['name']} — {persona['name']}"),
|
|
368
|
+
"meta_description": persona.get("meta_description", persona.get("subheadline", "")),
|
|
369
|
+
"primary_color": colors.get("primary", "#06b6d4"),
|
|
370
|
+
"secondary_color": colors.get("secondary", "#10b981"),
|
|
371
|
+
"accent_color": colors.get("accent", "#f5f5f5"),
|
|
372
|
+
"badge_text": persona.get("badge", brand.get("slogan", "Welcome")),
|
|
373
|
+
"headline": persona.get("headline", f"Dành cho {persona['name']}"),
|
|
374
|
+
"subheadline": persona.get("subheadline", ""),
|
|
375
|
+
"cta_text": persona.get("cta_text", "Bắt Đầu Ngay"),
|
|
376
|
+
"cta_url": persona.get("cta_url", "#contact"),
|
|
377
|
+
"secondary_cta_text": persona.get("secondary_cta_text", "Tìm Hiểu Thêm"),
|
|
378
|
+
"secondary_cta_url": persona.get("secondary_cta_url", "#benefits"),
|
|
379
|
+
"problem_title": persona.get("problem_title", "Bạn Đang Gặp Phải..."),
|
|
380
|
+
"problem_subtitle": persona.get("problem_subtitle", ""),
|
|
381
|
+
"problem_items": generate_problem_items(persona.get("pain_points", [])),
|
|
382
|
+
"benefits_title": persona.get("benefits_title", "Giải Pháp Cho Bạn"),
|
|
383
|
+
"benefits_subtitle": persona.get("benefits_subtitle", ""),
|
|
384
|
+
"benefit_cards": generate_benefit_cards(persona.get("benefits", [])),
|
|
385
|
+
"proof_title": persona.get("proof_title", "Con Số Nói Lên Tất Cả"),
|
|
386
|
+
"proof_stats": generate_proof_stats(persona.get("social_proof", [])),
|
|
387
|
+
"steps_title": persona.get("steps_title", "Chỉ 3 Bước Đơn Giản"),
|
|
388
|
+
"steps_subtitle": persona.get("steps_subtitle", ""),
|
|
389
|
+
"step_items": generate_step_items(persona.get("steps", [])),
|
|
390
|
+
"final_cta_title": persona.get("final_cta_title", "Sẵn Sàng Bắt Đầu?"),
|
|
391
|
+
"final_cta_subtitle": persona.get("final_cta_subtitle", ""),
|
|
392
|
+
"brand_name": brand["name"],
|
|
393
|
+
"year": datetime.now().year,
|
|
394
|
+
"footer_text": persona.get("footer_text", "All rights reserved."),
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
return DEFAULT_TEMPLATE.format(**replacements)
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
def main():
|
|
401
|
+
parser = argparse.ArgumentParser(description="Landing Page Generator")
|
|
402
|
+
parser.add_argument("--config", required=True, help="Path to config JSON")
|
|
403
|
+
parser.add_argument("--persona", help="Generate for specific persona slug")
|
|
404
|
+
parser.add_argument("--list", action="store_true", help="List all personas")
|
|
405
|
+
parser.add_argument("--output-dir", default="landing-pages", help="Output directory")
|
|
406
|
+
args = parser.parse_args()
|
|
407
|
+
|
|
408
|
+
with open(args.config, "r", encoding="utf-8") as f:
|
|
409
|
+
config = json.load(f)
|
|
410
|
+
|
|
411
|
+
personas = config.get("personas", [])
|
|
412
|
+
brand = config.get("brand", {})
|
|
413
|
+
|
|
414
|
+
if args.list:
|
|
415
|
+
print(f"\n👥 Personas in {config.get('niche', 'unknown')}:")
|
|
416
|
+
for p in personas:
|
|
417
|
+
print(f" • {p['name']} ({slugify(p['name'])})")
|
|
418
|
+
return
|
|
419
|
+
|
|
420
|
+
if not personas:
|
|
421
|
+
print("⚠️ No personas defined in config. Add 'personas' array.")
|
|
422
|
+
print("Example:")
|
|
423
|
+
print(json.dumps({
|
|
424
|
+
"personas": [{
|
|
425
|
+
"name": "Economic Buyer",
|
|
426
|
+
"headline": "Tiết Kiệm 50% Chi Phí Marketing",
|
|
427
|
+
"subheadline": "AI tạo nội dung chuyên nghiệp, nhanh gấp 10x",
|
|
428
|
+
"pain_points": ["Chi phí marketing cao", "Thiếu nhân sự content"],
|
|
429
|
+
"benefits": [{"title": "Tiết kiệm", "description": "Giảm 50% chi phí"}],
|
|
430
|
+
"cta_text": "Dùng Thử Miễn Phí",
|
|
431
|
+
}]
|
|
432
|
+
}, indent=2, ensure_ascii=False))
|
|
433
|
+
return
|
|
434
|
+
|
|
435
|
+
output_dir = Path(args.output_dir)
|
|
436
|
+
output_dir.mkdir(parents=True, exist_ok=True)
|
|
437
|
+
|
|
438
|
+
targets = personas
|
|
439
|
+
if args.persona:
|
|
440
|
+
targets = [p for p in personas if slugify(p["name"]) == args.persona]
|
|
441
|
+
if not targets:
|
|
442
|
+
print(f"❌ Persona not found: {args.persona}")
|
|
443
|
+
return
|
|
444
|
+
|
|
445
|
+
for persona in targets:
|
|
446
|
+
slug = slugify(persona["name"])
|
|
447
|
+
page_dir = output_dir / slug
|
|
448
|
+
page_dir.mkdir(parents=True, exist_ok=True)
|
|
449
|
+
|
|
450
|
+
html = generate_landing_page(persona, brand, config)
|
|
451
|
+
output_path = page_dir / "index.html"
|
|
452
|
+
output_path.write_text(html, encoding="utf-8")
|
|
453
|
+
print(f" ✅ Generated: {output_path}")
|
|
454
|
+
|
|
455
|
+
print(f"\n🎉 Generated {len(targets)} landing page(s) in {output_dir}/")
|
|
456
|
+
|
|
457
|
+
|
|
458
|
+
if __name__ == "__main__":
|
|
459
|
+
main()
|