heraspec 0.1.16 → 0.1.18

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/bin/heraspec.js CHANGED
@@ -161,7 +161,8 @@ var init_config = __esm({
161
161
  "generic-webapp",
162
162
  "backend-api",
163
163
  "frontend-app",
164
- "multi-stack"
164
+ "multi-stack",
165
+ "content-channel"
165
166
  ];
166
167
  HERASPEC_MARKERS = {
167
168
  PROJECT_MD: "project.md",
@@ -378,6 +379,84 @@ var init_skills_template_map = __esm({
378
379
  templateFileName: "wordpress/plugin-directory/skill.md",
379
380
  isCrossCutting: false,
380
381
  projectType: "wordpress-plugin"
382
+ },
383
+ // Content Channel skills
384
+ "content-channel": {
385
+ templateFileName: "content-channel/skill.md",
386
+ isCrossCutting: true,
387
+ resourceDirs: [
388
+ "content-channel/content-strategy",
389
+ "content-channel/content-scaffolding",
390
+ "content-channel/content-scripting",
391
+ "content-channel/content-voice-adapter",
392
+ "content-channel/content-prompts",
393
+ "content-channel/content-compliance",
394
+ "content-channel/content-vault-sync"
395
+ ]
396
+ },
397
+ "content-channel:content-strategy": {
398
+ templateFileName: "content-channel/content-strategy/skill.md",
399
+ isCrossCutting: false,
400
+ projectType: "content-channel"
401
+ },
402
+ "content-channel:content-scaffolding": {
403
+ templateFileName: "content-channel/content-scaffolding/skill.md",
404
+ isCrossCutting: false,
405
+ projectType: "content-channel"
406
+ },
407
+ "content-channel:content-scripting": {
408
+ templateFileName: "content-channel/content-scripting/skill.md",
409
+ isCrossCutting: false,
410
+ projectType: "content-channel"
411
+ },
412
+ "content-channel:content-voice-adapter": {
413
+ templateFileName: "content-channel/content-voice-adapter/skill.md",
414
+ isCrossCutting: false,
415
+ projectType: "content-channel"
416
+ },
417
+ "content-channel:content-prompts": {
418
+ templateFileName: "content-channel/content-prompts/skill.md",
419
+ isCrossCutting: false,
420
+ projectType: "content-channel"
421
+ },
422
+ "content-channel:content-compliance": {
423
+ templateFileName: "content-channel/content-compliance/skill.md",
424
+ isCrossCutting: false,
425
+ projectType: "content-channel"
426
+ },
427
+ "content-channel:content-vault-sync": {
428
+ templateFileName: "content-channel/content-vault-sync/skill.md",
429
+ isCrossCutting: false,
430
+ projectType: "content-channel"
431
+ },
432
+ // Direct aliases (cross-cutting)
433
+ "content-strategy": {
434
+ templateFileName: "content-channel/content-strategy/skill.md",
435
+ isCrossCutting: true
436
+ },
437
+ "content-scaffolding": {
438
+ templateFileName: "content-channel/content-scaffolding/skill.md",
439
+ isCrossCutting: true
440
+ },
441
+ "content-scripting": {
442
+ templateFileName: "content-channel/content-scripting/skill.md",
443
+ isCrossCutting: true
444
+ },
445
+ "content-voice-adapter": {
446
+ templateFileName: "content-channel/content-voice-adapter/skill.md",
447
+ isCrossCutting: true
448
+ },
449
+ "content-prompts": {
450
+ templateFileName: "content-channel/content-prompts/skill.md",
451
+ isCrossCutting: true
452
+ },
453
+ "content-compliance": {
454
+ templateFileName: "content-channel/content-compliance/skill.md",
455
+ isCrossCutting: true
456
+ },
457
+ "content-vault-sync": {
458
+ templateFileName: "content-channel/content-vault-sync/skill.md",
459
+ isCrossCutting: true
381
460
  }
382
461
  };
383
462
  }
@@ -3216,6 +3295,12 @@ When the user types messages starting with a slash (/), you MUST intercept them
3216
3295
  ## Overview
3217
3296
  Describe your project here.
3218
3297
 
3298
+ ## Project Types
3299
+ - List your project type(s) here (e.g., content-channel, node-service, wordpress-plugin, wordpress-theme, perfex-module, laravel-package, generic-webapp, backend-api, frontend-app, multi-stack)
3300
+
3301
+ ## Tech Stack
3302
+ - List primary languages, frameworks, runtime, and key libraries
3303
+
3219
3304
  ## Architecture
3220
3305
  Describe the high-level architecture: entry points, module structure, data flow.
3221
3306
 
@@ -3291,7 +3376,7 @@ The following commands are classified by risk level. You **MUST NOT** execute th
3291
3376
  - Existing architecture patterns
3292
3377
  - Coding standards
3293
3378
 
3294
- > **IGNORE backup files**: Files like \\\`project.back1.md\\\`, \\\`project.back2.md\\\`, etc. are automatic backups created during \\\`heraspec init\\\` updates. NEVER read or reference them unless explicitly asked by the user. Only \\\`project.md\\\` is the source of truth.
3379
+ > **IGNORE backup files**: Files like \`project.back1.md\`, \`project.back2.md\`, etc. are automatic backups created during \`heraspec init\` updates. NEVER read or reference them unless explicitly asked by the user. Only \`project.md\` is the source of truth.
3295
3380
 
3296
3381
  **Then scaffold:**
3297
3382
  - \`heraspec/changes/<slug>/\` - Create proposal.md, tasks.md, design.md (optional)
@@ -3423,7 +3508,22 @@ The following commands are classified by risk level. You **MUST NOT** execute th
3423
3508
  10. **Zero Emojis**: 0 Unicode emojis across custom code, comments, views, documentation, and UI.
3424
3509
  - Use templates from \`heraspec/skills/perfex-module/module-codebase/templates/\` (module-main.php, install.php, uninstall.php, controller-admin.php, controller-api.php, model-main.php, helper.php, deploy.ps1, webpack.config.js).
3425
3510
 
3426
-
3511
+ **Special case - Content & Channel Development skills (projectType: content-channel):**
3512
+ - Tasks: \`(projectType: content-channel, skill: content-strategy)\`, \`(skill: content-scaffolding)\`, \`(skill: content-scripting)\`, \`(skill: content-voice-adapter)\`, \`(skill: content-prompts)\`, \`(skill: content-compliance)\`, \`(skill: content-vault-sync)\`, or \`(skill: content-channel)\`
3513
+ - Install: \`heraspec skill add content-channel\` or \`heraspec skill add <skill-name> --project-type content-channel\`
3514
+ - Agent reads corresponding skill instructions in \`heraspec/skills/<skill-name>/skill.md\` or \`heraspec/skills/content-channel/<skill-name>/skill.md\`.
3515
+ - Agent MUST adhere to **7 Core Content Production Standards**:
3516
+ 1. **Golden Naming Rule**: ZERO \`[K\xEAnh]\`, \`[Channel]\`, or \`K\xEAnh:\` prefixes in channel/folder names. 100% pure brand names only.
3517
+ 2. **MTxStudio 2-Level Tree Hierarchy**: Every channel must map to standard categories: \`_plan\` (\`type: "docs"\`), \`_posts\` (\`type: "article"\`), \`_prompts\` (\`type: "prompts"\`), \`_music\` (\`type: "music"\`), and optional \`_affiliate\` (\`type: "docs"\`).
3518
+ 3. **Strict TTS Acoustic Rules (Natural Flow)**:
3519
+ - Short sentences: 12 - 20 words max per sentence (never exceed 25 words or 120 chars).
3520
+ - Comma clauses: 8 - 12 words max.
3521
+ - Repetition Bug Prevention: Never place 2 reduplicative words (t\u1EEB l\xE1y) adjacently; always separate with a natural comma \`,\`.
3522
+ - Clean text: Zero artificial bracket tags; rely entirely on natural punctuation (\`.\`, \`,\`, \`...\`, \`!\`) and sentence rhythm for voice pacing.
3523
+ 4. **Strict Poetry & Verse Formatting**: Never use \`join(' ')\` or combine verses into a single line. EVERY verse line MUST preserve its \`\\n\` newline.
3524
+ 5. **Mandatory 3-Position Disclaimer (Decree 15/2020/ND-CP)**: For horror, health, psychological healing, and finance niches, disclaimers are mandatory at: (1) Intro Warning Card 0:00-0:04, (2) Caption Footer / Pinned Comment, (3) Spoken Narration.
3525
+ 6. **Safe Vault Sync (Zero SQLite Tampering)**: NEVER write directly to \`mtxstudio.db\`. All channel exports must go through \`Facebook/export_vault_json.py\` to generate sanitized JSON bundles (\`mtxstudio_vault_import.json\`, \`all_channels_bundle.json\`) with UTF-8 encoding and zero en-dash/em-dash characters.
3526
+ 7. **Channel Voice Adaptation (Transmutation)**: When repurposing raw texts, always use \`content-voice-adapter\` to de-bias off-brand elements and reframe the message through the designated channel's core philosophy and natural voice style.
3427
3527
 
3428
3528
  - Follow tasks.md
3429
3529
  - Mark tasks completed: \`- [x]\`
@@ -3476,6 +3576,7 @@ Tasks grouped by project type and skill:
3476
3576
  > heraspec skill add documents"
3477
3577
  - **DO NOT** create a task plan or attempt manual generation without the skill language.
3478
3578
  3. **Execute After Install**: Only after the skill folder is created (or installed), read the \`skill.md\` and proceed with the task.
3579
+ 4. **Ignore Vietnamese Skill Files**: You MUST only read the English \`skill.md\` file inside the skill folder. Completely ignore all \`*.vi.md\` files (e.g., \`skill.vi.md\`), as they are strictly for reference purposes by human developers.
3479
3580
 
3480
3581
  **Example prompt for Documents skill:**
3481
3582
  If you need to generate multi-format documentation, use this prompt:
@@ -3486,6 +3587,42 @@ If you need to generate multi-format documentation, use this prompt:
3486
3587
  > - Premium Documentation Landing Page (documentations/documentation-landing-page.html)
3487
3588
  > - CRITICAL: Save all files in the /documentations directory (create it if missing)."
3488
3589
 
3590
+ **Example prompts for Content Channel Development (content-channel skills):**
3591
+ - **Channel Strategy (\`content-strategy\`)**:
3592
+ > "S\u1EED d\u1EE5ng skill content-strategy \u0111\u1EC3 l\u1EADp B\u1EA3n K\u1EBF Ho\u1EA1ch 30 Ng\xE0y (plan.md) cho k\xEAnh m\u1EDBi:
3593
+ > - T\xEAn k\xEAnh: [T\xEAn thu\u1EA7n t\xFAy, v\xED d\u1EE5: G\xF3c An Tr\xFA]
3594
+ > - Ng\xE1ch: [V\xED d\u1EE5: Thi\u1EC1n \u0111\u1ECBnh & L\u1ED1i s\u1ED1ng t\u1ED1i gi\u1EA3n]
3595
+ > - Kh\xE1n gi\u1EA3 m\u1EE5c ti\xEAu: [V\xED d\u1EE5: 25 - 40 tu\u1ED5i, nh\xE2n vi\xEAn v\u0103n ph\xF2ng stress]
3596
+ > - Y\xEAu c\u1EA7u: X\xE2y d\u1EF1ng 5 tr\u1EE5 c\u1ED9t n\u1ED9i dung, l\u1ED9 tr\xECnh Cold Start 14 ng\xE0y (70% Reels / 30% In-stream), khung gi\u1EDD v\xE0ng v\xE0 b\u1EA3ng ph\xE2n b\u1ED5 30 b\xE0i vi\u1EBFt chi ti\u1EBFt."
3597
+
3598
+ - **Channel Scaffolding (\`content-scaffolding\`)**:
3599
+ > "S\u1EED d\u1EE5ng skill content-scaffolding \u0111\u1EC3 kh\u1EDFi t\u1EA1o c\u1EA5u tr\xFAc th\u01B0 m\u1EE5c k\xEAnh m\u1EDBi:
3600
+ > - T\xEAn k\xEAnh: [V\xED d\u1EE5: Th\xE2n An T\xE2m L\u1EA1c] | Folder: [Than-An-Tam-Lac]
3601
+ > - Slogan: [V\xED d\u1EE5: Th\xE2n c\xF3 an, t\xE2m m\u1EDBi l\u1EA1c] | Icon Lucide: [Heart] | M\xE0u: [#10b981]
3602
+ > - Y\xEAu c\u1EA7u: Tu\xE2n th\u1EE7 quy t\u1EAFc c\u1EA5m ti\u1EC1n t\u1ED1 [K\xEAnh], t\u1EA1o posts/README.md v\xE0 \u0111\u0103ng k\xFD v\xE0o CHANNELS_CONFIG trong export_vault_json.py."
3603
+
3604
+ - **Raw Text Transmutation (\`content-voice-adapter\`)**:
3605
+ > "S\u1EED d\u1EE5ng skill content-voice-adapter \u0111\u1EC3 chuy\u1EC3n th\u1EC3 \u0111o\u1EA1n v\u0103n b\u1EA3n th\xF4 d\u01B0\u1EDBi \u0111\xE2y th\xE0nh K\u1ECBch b\u1EA3n Video chu\u1EA9n cho k\xEAnh [T\xEAn K\xEAnh] (Th\u1EC3 lo\u1EA1i: [Ch\u1EEFa l\xE0nh / Truy\u1EC7n ma / D\u01B0\u1EE1ng sinh / Chi\xEAm nghi\u1EC7m...]):
3606
+ > [D\xC1N \u0110O\u1EA0N V\u0102N B\u1EA2N TH\xD4 V\xC0O \u0110\xC2Y]
3607
+ > Y\xEAu c\u1EA7u qua 4 b\u01B0\u1EDBc: (1) L\u1ECDc l\u1EC7ch tone theo ma tr\u1EADn th\u1EC3 lo\u1EA1i (ch\u1EEFa l\xE0nh: l\u1ECDc m\xEA t\xEDn/\u0111\u1ED5 l\u1ED7i; truy\u1EC7n ma: l\u1ECDc m\xE1u me/vi ph\u1EA1m N\u0110 15 t\xEAn ng\u01B0\u1EDDi th\u1EADt/c\u1EE3t nh\u1EA3; d\u01B0\u1EE1ng sinh: l\u1ECDc ph\u1EA3n khoa h\u1ECDc/th\u1EA7n th\xE1nh h\xF3a; chi\xEAm nghi\u1EC7m: l\u1ECDc than th\u1EDF n\u1EA1n nh\xE2n), (2) T\xE1i c\u1EA5u tr\xFAc theo DNA tri\u1EBFt l\xFD v\xE0 \u0111\u1EA1i t\u1EEB nh\xE2n x\u01B0ng c\u1EE7a k\xEAnh, (3) T\u1ED1i \u01B0u \xE2m h\u1ECDc TTS 12-20 t\u1EEB/c\xE2u s\u1EA1ch th\u1EBB ngo\u1EB7c vu\xF4ng, (4) \u0110\xF3ng g\xF3i 6 ph\u1EA7n chu\u1EA9n MTxStudio k\xE8m Storyboard prompt, Caption v\xE0 Disclaimer ph\xE1p l\xFD ph\xF9 h\u1EE3p th\u1EC3 lo\u1EA1i."
3608
+
3609
+ - **Scriptwriting from Scratch (\`content-scripting\`)**:
3610
+ > "S\u1EED d\u1EE5ng skill content-scripting \u0111\u1EC3 vi\u1EBFt K\u1ECBch b\u1EA3n T\u1EADp [S\u1ED1 t\u1EADp]: '[Ti\xEAu \u0111\u1EC1]' cho k\xEAnh [T\xEAn K\xEAnh]:
3611
+ > - Tr\u1EE5 c\u1ED9t: [T\xEAn tr\u1EE5 c\u1ED9t n\u1ED9i dung] | \u0110\u1ECBnh d\u1EA1ng: [Video In-stream 16:9 ho\u1EB7c Reels 9:16]
3612
+ > - Y\xEAu c\u1EA7u \xE2m h\u1ECDc TTS: C\xE2u ng\u1EAFn 12-20 t\u1EEB, ng\u1EAFt nh\u1ECBp d\u1EA5u ph\u1EA9y r\xF5 r\xE0ng, kh\xF4ng \u0111i\u1EC7p \xE2m t\u1EEB l\xE1y, TUY\u1EC6T \u0110\u1ED0I KH\xD4NG ch\xE8n th\u1EBB ngo\u1EB7c vu\xF4ng ([l\u1EA5y h\u01A1i], [th\u1EDF d\xE0i]), b\u1EA3o to\xE0n th\u01A1 ca m\u1ED7i c\xE2u 1 d\xF2ng (\\n), xu\u1EA5t \u0111\u1EA7y \u0111\u1EE7 6 ph\u1EA7n k\xE8m Storyboard v\xE0 Caption Facebook."
3613
+
3614
+ - **AI Visual & Suno BGM Prompts (\`content-prompts\`)**:
3615
+ > "S\u1EED d\u1EE5ng skill content-prompts \u0111\u1EC3 t\u1EA1o b\u1ED9 Prompt Visual v\xE0 \xC2m nh\u1EA1c cho k\xEAnh [T\xEAn K\xEAnh]:
3616
+ > - C\u1EA7n t\u1EA1o: Prompt Avatar 1:1, Cover 16:9, B\u1EA3ng 5 Prompts Storyboard b\xE0i vi\u1EBFt '[T\xEAn b\xE0i vi\u1EBFt]', v\xE0 Prompt Suno AI BGM kh\xF4ng l\u1EDDi."
3617
+
3618
+ - **Legal Compliance & Disclaimer (\`content-compliance\`)**:
3619
+ > "S\u1EED d\u1EE5ng skill content-compliance \u0111\u1EC3 ki\u1EC3m duy\u1EC7t k\u1ECBch b\u1EA3n v\xE0 sinh Disclaimer cho video thu\u1ED9c th\u1EC3 lo\u1EA1i [Truy\u1EC7n Ma / D\u01B0\u1EE1ng Sinh / T\xE2m L\xFD / T\xE0i Ch\xEDnh]:
3620
+ > - Cung c\u1EA5p Disclaimer chu\u1EA9n ph\xE1p l\xFD (Ngh\u1ECB \u0111\u1ECBnh 15/2020/N\u0110-CP) \u0111\u1EB7t \u1EDF ch\xE2n Caption.
3621
+ > - Cung c\u1EA5p Prompt m\xE0n h\xECnh c\u1EA3nh b\xE1o Intro Warning Card (0:00 - 0:04, t\u1EF7 l\u1EC7 16:9)."
3622
+
3623
+ - **Vault Synchronization (\`content-vault-sync\`)**:
3624
+ > "S\u1EED d\u1EE5ng skill content-vault-sync \u0111\u1EC3 \u0111\u1ED3ng b\u1ED9 d\u1EEF li\u1EC7u: Ki\u1EC3m tra t\xEDnh to\xE0n v\u1EB9n c\xE1c k\xEAnh trong Facebook/, ch\u1EA1y export_vault_json.py \u0111\u1EC3 t\xE1i xu\u1EA5t mtxstudio_vault_import.json v\xE0 all_channels_bundle.json, b\xE1o c\xE1o s\u1ED1 l\u01B0\u1EE3ng k\xEAnh, danh m\u1EE5c v\xE0 k\u1ECBch b\u1EA3n \u0111\xE3 \u0111\xF3ng g\xF3i th\xE0nh c\xF4ng."
3625
+
3489
3626
  **Dynamic Documentation Generation**:
3490
3627
  When generating documentation, do NOT simply fill a template. The Agent MUST:
3491
3628
  1. **Create** the \`/documentations\` directory if it does not exist.
@@ -3522,12 +3659,12 @@ Example with multiple skills in one change:
3522
3659
 
3523
3660
  ## Proactive Memory-Aware Development
3524
3661
 
3525
- If \\\`heraspec/skills/project-memory/\\\` exists, the agent MUST proactively use memory to maintain project context. DO NOT wait for the user to prompt you to use memory.
3662
+ If \`heraspec/skills/project-memory/\` exists, the agent MUST proactively use memory to maintain project context. DO NOT wait for the user to prompt you to use memory.
3526
3663
 
3527
3664
  ### CRITICAL RULES FOR AUTOMATIC MEMORY USAGE
3528
- 1. **Always Check Context First**: At the beginning of a complex task or when encountering an unfamiliar codebase area, you MUST autonomously run \\\`heraspec memory context\\\` or \\\`heraspec memory search "keywords"\\\` BEFORE writing any code.
3529
- 2. **Auto-Log via Archive**: You DO NOT need to run \\\`heraspec memory log\\\` manually. Every time you successfully implement a feature and run \\\`heraspec archive <change-name>\\\`, the system will automatically read your proposal and log the memory observation under the hood. Just use \\\`heraspec archive\\\` as normal!
3530
- 3. **Session Summary**: (Optional) When wrapping up a large session, you can run \\\`heraspec memory summarize --request "..." --completed "..."\\\` to compress knowledge, though \\\`archive\\\` already auto-logs completed features.
3665
+ 1. **Always Check Context First**: At the beginning of a complex task or when encountering an unfamiliar codebase area, you MUST autonomously run \`heraspec memory context\` or \`heraspec memory search "keywords"\` BEFORE writing any code.
3666
+ 2. **Auto-Log via Archive**: You DO NOT need to run \`heraspec memory log\` manually. Every time you successfully implement a feature and run \`heraspec archive <change-name>\`, the system will automatically read your proposal and log the memory observation under the hood. Just use \`heraspec archive\` as normal!
3667
+ 3. **Session Summary**: (Optional) When wrapping up a large session, you can run \`heraspec memory summarize --request "..." --completed "..."\` to compress knowledge, though \`archive\` already auto-logs completed features.
3531
3668
 
3532
3669
  ### When to SKIP Memory
3533
3670
  - Simple bug fixes, typo corrections, formatting changes
@@ -3535,10 +3672,10 @@ If \\\`heraspec/skills/project-memory/\\\` exists, the agent MUST proactively us
3535
3672
  - When doing what the agent's built-in context already covers
3536
3673
 
3537
3674
  ### Smart Code Exploration
3538
- If \\\`heraspec/skills/smart-explore/\\\` exists, prefer token-efficient exploration:
3539
- - \\\`heraspec explore outline <file>\\\` \u2192 View structure (~1K tokens vs ~12K full file)
3540
- - \\\`heraspec explore search "<query>" <path>\\\` \u2192 Find symbols across codebase
3541
- - \\\`heraspec explore unfold <file> <symbol>\\\` \u2192 Read just one function
3675
+ If \`heraspec/skills/smart-explore/\` exists, prefer token-efficient exploration:
3676
+ - \`heraspec explore outline <file>\` \u2192 View structure (~1K tokens vs ~12K full file)
3677
+ - \`heraspec explore search "<query>" <path>\` \u2192 Find symbols across codebase
3678
+ - \`heraspec explore unfold <file> <symbol>\` \u2192 Read just one function
3542
3679
  `;
3543
3680
  }
3544
3681
  static getSkillsSection() {
@@ -3659,6 +3796,7 @@ var InitCommand = class {
3659
3796
  await this.updateInstalledSkills(heraspecPath);
3660
3797
  }
3661
3798
  await this.checkAndBootstrapMemory(heraspecPath, resolvedPath, spinner);
3799
+ await this.checkAndBootstrapContentChannel(heraspecPath, resolvedPath, spinner);
3662
3800
  await this.updateRelatedMarkdownFiles(resolvedPath);
3663
3801
  spinner.stop();
3664
3802
  try {
@@ -4199,7 +4337,8 @@ ${section.content.trimEnd()}`);
4199
4337
  "generic-webapp",
4200
4338
  "backend-api",
4201
4339
  "frontend-app",
4202
- "multi-stack"
4340
+ "multi-stack",
4341
+ "content-channel"
4203
4342
  ];
4204
4343
  for (const entry of entries) {
4205
4344
  if (entry === "README.md" || entry === "UI_UX_SKILL_QUICK_REFERENCE.md") continue;
@@ -4293,6 +4432,70 @@ ${section.content.trimEnd()}`);
4293
4432
  }
4294
4433
  spinner.start();
4295
4434
  }
4435
+ /**
4436
+ * Automatically install content-channel skills if project type is content-channel
4437
+ */
4438
+ async checkAndBootstrapContentChannel(heraspecPath, projectPath, spinner) {
4439
+ const configPath = path8.join(heraspecPath, HERASPEC_MARKERS.CONFIG_YAML);
4440
+ const projectMdPath = path8.join(heraspecPath, HERASPEC_MARKERS.PROJECT_MD);
4441
+ let isContentChannel = false;
4442
+ if (await FileSystemUtils.fileExists(configPath)) {
4443
+ const configContent = await FileSystemUtils.readFile(configPath);
4444
+ if (/\bprojectType:\s*["']?content-channel["']?/i.test(configContent)) {
4445
+ isContentChannel = true;
4446
+ }
4447
+ }
4448
+ if (!isContentChannel && await FileSystemUtils.fileExists(projectMdPath)) {
4449
+ const projectContent = await FileSystemUtils.readFile(projectMdPath);
4450
+ if (/##\s*Project Types\s*\n\s*-\s*content-channel\b/i.test(projectContent)) {
4451
+ isContentChannel = true;
4452
+ }
4453
+ }
4454
+ if (!isContentChannel) {
4455
+ const hasFacebook = await FileSystemUtils.fileExists(path8.join(projectPath, "Facebook"));
4456
+ const hasPosts = await FileSystemUtils.fileExists(path8.join(projectPath, "posts"));
4457
+ const hasPrompts = await FileSystemUtils.fileExists(path8.join(projectPath, "prompts"));
4458
+ if (hasFacebook || hasPosts && hasPrompts) {
4459
+ isContentChannel = true;
4460
+ }
4461
+ }
4462
+ if (isContentChannel) {
4463
+ const channelSkills = [
4464
+ "content-strategy",
4465
+ "content-scaffolding",
4466
+ "content-scripting",
4467
+ "content-voice-adapter",
4468
+ "content-prompts",
4469
+ "content-compliance",
4470
+ "content-vault-sync"
4471
+ ];
4472
+ const skillsDir = path8.join(heraspecPath, SKILLS_DIR_NAME);
4473
+ const missingSkills = [];
4474
+ for (const skillName of channelSkills) {
4475
+ const flatPath = path8.join(skillsDir, skillName);
4476
+ const scopedPath = path8.join(skillsDir, "content-channel", skillName);
4477
+ if (!await FileSystemUtils.fileExists(flatPath) && !await FileSystemUtils.fileExists(scopedPath)) {
4478
+ missingSkills.push(skillName);
4479
+ }
4480
+ }
4481
+ if (missingSkills.length > 0) {
4482
+ spinner.stop();
4483
+ console.log(chalk2.cyan(`
4484
+ \u{1F3AC} Detected content-channel project. Installing ${missingSkills.length} channel skill(s)...`));
4485
+ try {
4486
+ const { SkillCommand: SkillCommand2 } = await Promise.resolve().then(() => (init_skill(), skill_exports));
4487
+ const skillCommand = new SkillCommand2();
4488
+ for (const skillName of missingSkills) {
4489
+ await skillCommand.add(skillName, void 0, projectPath);
4490
+ }
4491
+ console.log(chalk2.green(`\u2713 Channel skills suite ready for production.
4492
+ `));
4493
+ } catch (err) {
4494
+ }
4495
+ spinner.start();
4496
+ }
4497
+ }
4498
+ }
4296
4499
  /**
4297
4500
  * Get the knowledge source directory from CLI package
4298
4501
  */
@@ -4745,7 +4948,7 @@ After copying UI/UX skill to your project, see:
4745
4948
  return `<!-- HeraSpec Section -->
4746
4949
  ## HeraSpec Development
4747
4950
 
4748
- This project uses [HeraSpec](https://github.com/your-org/heraspec) for spec-driven development.
4951
+ This project uses [HeraSpec](https://github.com/PolyXGO/HeraSpec) for spec-driven development.
4749
4952
 
4750
4953
  ### Quick Start
4751
4954
 
@@ -4794,7 +4997,7 @@ heraspec skill add unit-test
4794
4997
  heraspec skill show ui-ux
4795
4998
  \`\`\`
4796
4999
 
4797
- For more information, see the [HeraSpec documentation](https://github.com/your-org/heraspec/docs).
5000
+ For more information, see the [HeraSpec documentation](https://github.com/PolyXGO/HeraSpec#readme).
4798
5001
 
4799
5002
  ---
4800
5003
 
@@ -5767,7 +5970,8 @@ var ProjectTypeSchema = z.enum([
5767
5970
  "generic-webapp",
5768
5971
  "backend-api",
5769
5972
  "frontend-app",
5770
- "multi-stack"
5973
+ "multi-stack",
5974
+ "content-channel"
5771
5975
  ]);
5772
5976
  var SpecMetaSchema = z.object({
5773
5977
  projectType: z.union([
@@ -6255,6 +6459,21 @@ var HelperCommand = class {
6255
6459
  console.log(chalk8.white.bold("9. WordPress Plugin Check:\n"));
6256
6460
  console.log(chalk8.gray(' "Use skill plugin-check to check, then resolve *all* issues mentioned for plugin `[TARGET_PLUGIN]`"\n'));
6257
6461
  console.log(chalk8.gray(' "Ensure careful handling and verify that related features still function correctly."\n'));
6462
+ console.log(chalk8.white.bold("10. Content & Multi-Channel Production (content-channel skills):\n"));
6463
+ console.log(chalk8.gray(" # Master Strategy & 30-Day Plan:\n"));
6464
+ console.log(chalk8.cyan(' "S\u1EED d\u1EE5ng skill content-strategy \u0111\u1EC3 l\u1EADp B\u1EA3n K\u1EBF Ho\u1EA1ch 30 Ng\xE0y (plan.md) cho k\xEAnh m\u1EDBi [T\xEAn K\xEAnh]"\n'));
6465
+ console.log(chalk8.gray(" # Scaffolding 2-Level MTxStudio Hierarchy:\n"));
6466
+ console.log(chalk8.cyan(' "S\u1EED d\u1EE5ng skill content-scaffolding \u0111\u1EC3 kh\u1EDFi t\u1EA1o c\u1EA5u tr\xFAc th\u01B0 m\u1EE5c k\xEAnh m\u1EDBi [T\xEAn K\xEAnh]"\n'));
6467
+ console.log(chalk8.gray(" # Transmute Raw Text to Channel DNA:\n"));
6468
+ console.log(chalk8.cyan(' "S\u1EED d\u1EE5ng skill content-voice-adapter \u0111\u1EC3 chuy\u1EC3n th\u1EC3 \u0111o\u1EA1n v\u0103n b\u1EA3n th\xF4 th\xE0nh K\u1ECBch b\u1EA3n Video cho k\xEAnh [T\xEAn K\xEAnh]"\n'));
6469
+ console.log(chalk8.gray(" # TTS-Optimized Scriptwriting (12-20 words/sentence, zero bracket tags):\n"));
6470
+ console.log(chalk8.cyan(' "S\u1EED d\u1EE5ng skill content-scripting \u0111\u1EC3 vi\u1EBFt K\u1ECBch b\u1EA3n T\u1EADp [X] cho k\xEAnh [T\xEAn K\xEAnh]"\n'));
6471
+ console.log(chalk8.gray(" # Visual & Suno BGM Prompts:\n"));
6472
+ console.log(chalk8.cyan(' "S\u1EED d\u1EE5ng skill content-prompts \u0111\u1EC3 t\u1EA1o b\u1ED9 Prompt Visual v\xE0 \xC2m nh\u1EA1c cho k\xEAnh [T\xEAn K\xEAnh]"\n'));
6473
+ console.log(chalk8.gray(" # Legal Compliance & 3-Position Disclaimer (Decree 15/2020/ND-CP):\n"));
6474
+ console.log(chalk8.cyan(' "S\u1EED d\u1EE5ng skill content-compliance \u0111\u1EC3 ki\u1EC3m duy\u1EC7t k\u1ECBch b\u1EA3n v\xE0 sinh Disclaimer cho video"\n'));
6475
+ console.log(chalk8.gray(" # Safe Vault Synchronization to MTxStudio:\n"));
6476
+ console.log(chalk8.cyan(' "S\u1EED d\u1EE5ng skill content-vault-sync \u0111\u1EC3 \u0111\u1ED3ng b\u1ED9 d\u1EEF li\u1EC7u v\xE0 t\xE1i xu\u1EA5t mtxstudio_vault_import.json"\n'));
6258
6477
  console.log("\u2500".repeat(70) + "\n");
6259
6478
  }
6260
6479
  showWorkflow() {
@@ -6320,6 +6539,27 @@ var HelperCommand = class {
6320
6539
  "Safety check: Verify features functionality"
6321
6540
  ],
6322
6541
  prompt: '"Use skill plugin-check to check plugin [target-plugin]"'
6542
+ },
6543
+ {
6544
+ step: "8. Content Production: Daily Scripting (Workflow A)",
6545
+ actions: [
6546
+ "Raw Input \u2794 content-voice-adapter (De-bias & Reframing)",
6547
+ "content-compliance (3-position disclaimer & intro warning card)",
6548
+ "Save to Facebook/[Channel]/posts/{index}_{slug}.md",
6549
+ "content-vault-sync (Export sanitized mtxstudio_vault_import.json)"
6550
+ ],
6551
+ prompt: '"S\u1EED d\u1EE5ng skill content-voice-adapter \u0111\u1EC3 chuy\u1EC3n th\u1EC3 v\u0103n b\u1EA3n th\xF4 cho k\xEAnh [T\xEAn K\xEAnh]"'
6552
+ },
6553
+ {
6554
+ step: "9. Content Production: New Channel Onboarding (Workflow B)",
6555
+ actions: [
6556
+ "Idea \u2794 content-strategy (plan.md, 5 pillars, $100 RPM model)",
6557
+ "content-scaffolding (2-level MTxStudio tree, zero [K\xEAnh] prefix)",
6558
+ "content-prompts (Avatar 1:1, Cover 16:9, Warning Card & Suno BGM)",
6559
+ "content-scripting (Batch episode authoring, 12-20 words/sentence)",
6560
+ "content-vault-sync (Register and package 1-click import JSON)"
6561
+ ],
6562
+ prompt: '"S\u1EED d\u1EE5ng skill content-strategy \u0111\u1EC3 l\u1EADp B\u1EA3n K\u1EBF Ho\u1EA1ch 30 Ng\xE0y cho k\xEAnh m\u1EDBi [T\xEAn K\xEAnh]"'
6323
6563
  }
6324
6564
  ];
6325
6565
  steps.forEach(({ step, actions, prompt }) => {
@@ -6359,7 +6599,13 @@ var HelperCommand = class {
6359
6599
  "Quality & Security Audit: heraspec audit (checks 7 clean architecture and OWASP rules)",
6360
6600
  "Auto-fix Audit Issues: heraspec audit --fix (safely adds missing direct access guards)",
6361
6601
  "Production Packaging: heraspec pack (auto-builds assets & strips dev bloat into release .zip)",
6362
- "Scaffold Clean Architecture: heraspec create <name> --type perfex-module|wordpress-plugin"
6602
+ "Scaffold Clean Architecture: heraspec create <name> --type perfex-module|wordpress-plugin",
6603
+ "Content Channel: Golden Naming Rule - NEVER prefix with [K\xEAnh] or [Channel]; use pure brand names",
6604
+ "Content Channel: MTxStudio 2-level tree strictly maps to _plan, _posts, _prompts, _music, _affiliate",
6605
+ "Content Channel TTS: 12-20 words/sentence, 8-12 words/clause, no adjacent reduplicatives, ZERO artificial bracket tags ([l\u1EA5y h\u01A1i], [th\u1EDF d\xE0i])",
6606
+ 'Content Channel Verse: Preserve poetry newlines (\\n) on each verse line; never collapse with join(" ")',
6607
+ "Content Channel Compliance: 3-position disclaimer (Intro Card 0:00-0:04, Caption footer / Pinned comment, Spoken narration)",
6608
+ "Content Channel Vault: Zero direct SQLite writes; always export sanitized UTF-8 JSON bundles via export_vault_json.py"
6363
6609
  ];
6364
6610
  tips.forEach((tip) => {
6365
6611
  console.log(chalk8.white(` \u2022 ${tip}`));
@@ -8160,12 +8406,19 @@ var CreateCommand = class {
8160
8406
  return;
8161
8407
  }
8162
8408
  const projectType = options.type || "perfex-module";
8163
- const cleanName = name.toLowerCase().replace(/[^a-z0-9_-]/g, "_");
8409
+ const isChannel = projectType === "content-channel";
8410
+ const cleanName = isChannel ? name.replace(/^\[?(Kênh|Channel)\]?\s*[:-]?\s*/i, "").replace(/[^a-zA-Z0-9_-]/g, "-") : name.toLowerCase().replace(/[^a-z0-9_-]/g, "_");
8164
8411
  const pascalName = cleanName.split(/[_-]/).map((word) => word.charAt(0).toUpperCase() + word.slice(1)).join("");
8165
8412
  const upperName = cleanName.toUpperCase().replace(/-/g, "_");
8166
- const friendlyTitle = options.title || pascalName;
8167
- const description = options.description || `${friendlyTitle} component`;
8168
- const targetDir = options.out ? path23.resolve(options.out, cleanName) : path23.resolve(process.cwd(), projectType.includes("perfex") ? path23.join("modules", cleanName) : cleanName);
8413
+ const friendlyTitle = options.title || (isChannel ? cleanName.replace(/-/g, " ") : pascalName);
8414
+ const description = options.description || (isChannel ? `K\xEAnh n\u1ED9i dung \u0111a n\u1EC1n t\u1EA3ng ${friendlyTitle}` : `${friendlyTitle} component`);
8415
+ let defaultSubdir = cleanName;
8416
+ if (projectType.includes("perfex")) {
8417
+ defaultSubdir = path23.join("modules", cleanName);
8418
+ } else if (isChannel) {
8419
+ defaultSubdir = cleanName;
8420
+ }
8421
+ const targetDir = options.out ? path23.resolve(options.out, cleanName) : path23.resolve(process.cwd(), defaultSubdir);
8169
8422
  const spinner = ora13(`Scaffolding ${chalk16.cyan(projectType)} "${cleanName}"...`).start();
8170
8423
  try {
8171
8424
  if (await FileSystemUtils.fileExists(targetDir)) {
@@ -8190,27 +8443,46 @@ var CreateCommand = class {
8190
8443
  friendlyTitle,
8191
8444
  description
8192
8445
  });
8446
+ } else if (projectType === "content-channel") {
8447
+ await this.scaffoldContentChannel(targetDir, {
8448
+ cleanName,
8449
+ pascalName,
8450
+ upperName,
8451
+ friendlyTitle,
8452
+ description
8453
+ });
8193
8454
  } else {
8194
8455
  spinner.fail(`Scaffolding template for "${projectType}" is not yet supported.`);
8195
8456
  process.exitCode = 1;
8196
8457
  return;
8197
8458
  }
8198
- spinner.text = "Initializing HeraSpec and installing skill suite...";
8199
- const initCommand = new InitCommand();
8200
- await initCommand.execute(targetDir);
8201
- const skillCommand = new SkillCommand();
8202
- if (projectType === "perfex-module") {
8203
- await skillCommand.add("perfex-module", void 0, targetDir);
8204
- } else if (projectType === "wordpress-plugin") {
8205
- await skillCommand.add("plugin-standard", "wordpress", targetDir);
8459
+ if (projectType !== "content-channel") {
8460
+ spinner.text = "Initializing HeraSpec and installing skill suite...";
8461
+ const initCommand = new InitCommand();
8462
+ await initCommand.execute(targetDir);
8463
+ const skillCommand = new SkillCommand();
8464
+ if (projectType === "perfex-module") {
8465
+ await skillCommand.add("perfex-module", void 0, targetDir);
8466
+ } else if (projectType === "wordpress-plugin") {
8467
+ await skillCommand.add("plugin-standard", "wordpress", targetDir);
8468
+ }
8206
8469
  }
8207
8470
  spinner.succeed(chalk16.green(`Successfully created ${projectType} "${cleanName}"!`));
8208
8471
  console.log(`
8209
8472
  \u{1F4CD} Location: ${chalk16.gray(targetDir)}`);
8210
8473
  console.log("\n\u{1F680} Next steps:");
8211
8474
  console.log(chalk16.cyan(` cd ${path23.relative(process.cwd(), targetDir) || "."}`));
8212
- console.log(chalk16.gray(" heraspec audit # Run code quality & security checks"));
8213
- console.log(chalk16.gray(" heraspec pack # Package for production release\n"));
8475
+ if (projectType === "content-channel") {
8476
+ console.log(chalk16.gray(" # Write first script with: heraspec skill content-scripting"));
8477
+ const hasExportHere = await FileSystemUtils.fileExists(path23.resolve(process.cwd(), "export_vault_json.py"));
8478
+ const hasExportInFb = await FileSystemUtils.fileExists(path23.resolve(process.cwd(), "Facebook", "export_vault_json.py"));
8479
+ const exportCmd = hasExportHere ? "python export_vault_json.py" : hasExportInFb ? "python Facebook/export_vault_json.py" : "python export_vault_json.py";
8480
+ console.log(chalk16.gray(` # Export vault bundle with: ${exportCmd}
8481
+ `));
8482
+ } else {
8483
+ console.log(chalk16.gray(" heraspec audit # Run code quality & security checks"));
8484
+ console.log(chalk16.gray(" heraspec pack # Package for production release\n"));
8485
+ }
8214
8486
  } catch (error) {
8215
8487
  spinner.fail(`Failed to create project: ${error instanceof Error ? error.message : "Unknown error"}`);
8216
8488
  process.exitCode = 1;
@@ -8593,6 +8865,290 @@ defined('WP_UNINSTALL_PLUGIN') or exit;
8593
8865
  `;
8594
8866
  await FileSystemUtils.writeFile(path23.join(targetDir, "uninstall.php"), uninstallPhp);
8595
8867
  }
8868
+ async scaffoldContentChannel(targetDir, meta) {
8869
+ const { friendlyTitle, description } = meta;
8870
+ const pureBrandName = friendlyTitle.replace(/^\[?(Kênh|Channel)\]?\s*[:-]?\s*/i, "").trim();
8871
+ const dirs = ["posts", "prompts", "affiliate"];
8872
+ for (const d of dirs) {
8873
+ await FileSystemUtils.createDirectory(path23.join(targetDir, d));
8874
+ }
8875
+ const planMd = `# K\u1EBE HO\u1EA0CH PH\xC1T TRI\u1EC2N K\xCANH: ${pureBrandName}
8876
+
8877
+ ## 1. \u0110\u1ECANH V\u1ECA TH\u01AF\u01A0NG HI\u1EC6U & KH\xC1N GI\u1EA2
8878
+ * **T\xEAn k\xEAnh thu\u1EA7n t\xFAy**: ${pureBrandName}
8879
+ * **Slogan**: ${description}
8880
+ * **M\xE0u s\u1EAFc nh\u1EADn di\u1EC7n**: #10b981 | **Icon Lucide**: Sparkles
8881
+ * **Kh\xE1n gi\u1EA3 m\u1EE5c ti\xEAu**: 20 - 45 tu\u1ED5i
8882
+ * **Khung gi\u1EDD \u0111\u0103ng v\xE0ng**: 06:30 s\xE1ng v\xE0 20:30 t\u1ED1i
8883
+
8884
+ ---
8885
+
8886
+ ## 2. MA TR\u1EACN 5 TR\u1EE4 C\u1ED8T N\u1ED8I DUNG
8887
+ 1. **Tr\u1EE5 c\u1ED9t 1 (C\xE2u chuy\u1EC7n c\u1ED1t l\xF5i)**: 30% th\u1EDDi l\u01B0\u1EE3ng - K\u1EC3 chuy\u1EC7n truy\u1EC1n c\u1EA3m h\u1EE9ng, x\xE2y d\u1EF1ng l\xF2ng tin
8888
+ 2. **Tr\u1EE5 c\u1ED9t 2 (Ch\u1EA1m n\u1ED7i \u0111au & Hook th\u1EF1c t\u1EBF)**: 25% th\u1EDDi l\u01B0\u1EE3ng - Video ng\u1EAFn Reels gi\u1EA3i quy\u1EBFt v\u01B0\u1EDBng m\u1EAFc th\u01B0\u1EDDng g\u1EB7p
8889
+ 3. **Tr\u1EE5 c\u1ED9t 3 (Ki\u1EBFn th\u1EE9c & Ch\u1EC9 d\u1EABn th\u1EF1c h\xE0nh)**: 20% th\u1EDDi l\u01B0\u1EE3ng - H\u01B0\u1EDBng d\u1EABn chi ti\u1EBFt, th\u1EF1c t\u1EBF, d\u1EC5 \xE1p d\u1EE5ng
8890
+ 4. **Tr\u1EE5 c\u1ED9t 4 (T\u01B0\u01A1ng t\xE1c & Chia s\u1EBB c\u1ED9ng \u0111\u1ED3ng)**: 15% th\u1EDDi l\u01B0\u1EE3ng - \u0110\u1EB7t c\xE2u h\u1ECFi, th\u1EA3o lu\u1EADn, g\xF3c nh\xECn chi\xEAm nghi\u1EC7m
8891
+ 5. **Tr\u1EE5 c\u1ED9t 5 (Ti\u1EBFp th\u1ECB & S\u1EA3n ph\u1EA9m t\u1EF1 nhi\xEAn)**: 10% th\u1EDDi l\u01B0\u1EE3ng - Gi\u1EDBi thi\u1EC7u s\u1EA3n ph\u1EA9m h\u1EEFu \xEDch, soft-sell
8892
+
8893
+ ---
8894
+
8895
+ ## 3. L\u1ED8 TR\xCCNH 14 NG\xC0Y COLD START (KH\u1EDEI \u0110\u1ED8NG K\xCANH)
8896
+ * **T\u1EF7 l\u1EC7**: 70% Reels (9:16) + 30% Video In-stream (16:9)
8897
+ * **Tu\u1EA7n 1 (L\xE0m \u1EA5m t\u1EC7p kh\xE1n gi\u1EA3)**: 1-2 Reels/ng\xE0y, 1 video d\xE0i m\u1ED7i 2 ng\xE0y
8898
+ * **Tu\u1EA7n 2 (T\u0103ng t\u1ED1c gi\u1EEF ch\xE2n)**: 2 Reels/ng\xE0y + 1 video d\xE0i/ng\xE0y
8899
+
8900
+ ---
8901
+
8902
+ ## 4. MA TR\u1EACN DOANH THU & M\u1EE4C TI\xCAU $100 RPM
8903
+ * M\u1EE5c ti\xEAu ban \u0111\u1EA7u: \u0110\u1EA1t 10.000 ng\u01B0\u1EDDi theo d\xF5i v\xE0 \u0111\u1EE7 \u0111i\u1EC1u ki\u1EC7n ki\u1EBFm ti\u1EC1n In-stream
8904
+ * T\u1EF7 l\u1EC7 RPM k\u1EF3 v\u1ECDng: $0.02 - $0.05 / 1.000 l\u01B0\u1EE3t xem h\u1EE3p l\u1EC7
8905
+ `;
8906
+ await FileSystemUtils.writeFile(path23.join(targetDir, "plan.md"), planMd);
8907
+ const postsReadme = `# DANH S\xC1CH B\xC0I VI\u1EBET & K\u1ECACH B\u1EA2N K\xCANH: ${pureBrandName}
8908
+
8909
+ | Index | Ti\xEAu \u0110\u1EC1 B\xE0i Vi\u1EBFt | Tr\u1EE5 C\u1ED9t | \u0110\u1ECBnh D\u1EA1ng | Tr\u1EA1ng Th\xE1i | Ng\xE0y \u0110\u0103ng |
8910
+ | :--- | :--- | :--- | :--- | :--- | :--- |
8911
+ | 01 | [T\u1EADp 01] Kh\u1EDFi \u0111\u1EA7u h\xE0nh tr\xECnh an tr\xFA | Tr\u1EE5 c\u1ED9t 1 | In-stream 16:9 | S\u1EB5n s\xE0ng | Tu\u1EA7n 1 |
8912
+ | 02 | [T\u1EADp 02] 3 Th\xF3i quen nh\u1ECF m\u1ED7i ng\xE0y | Tr\u1EE5 c\u1ED9t 2 | Reels 9:16 | B\u1EA3n th\u1EA3o | Tu\u1EA7n 1 |
8913
+ `;
8914
+ await FileSystemUtils.writeFile(path23.join(targetDir, "posts", "README.md"), postsReadme);
8915
+ const starterPost = `# T\u1EACP 01: KH\u1EDEI \u0110\u1EA6U H\xC0NH TR\xCCNH T\u0128NH L\u1EB6NG
8916
+
8917
+ - **Tr\u1EE5 c\u1ED9t n\u1ED9i dung:** Tr\u1EE5 c\u1ED9t 1 (C\xE2u chuy\u1EC7n c\u1ED1t l\xF5i & \u0110\u1ECBnh v\u1ECB)
8918
+ - **\u0110\u1ECBnh d\u1EA1ng t\u1ED1i \u01B0u:** Reels / Shorts (9:16) & Video Tuy\u1EC3n T\u1EADp (16:9)
8919
+ - **Th\u1EDDi l\u01B0\u1EE3ng \u01B0\u1EDBc t\xEDnh:** 55 gi\xE2y
8920
+ - **Gi\u1ECDng \u0111\u1ECDc \u0111\u1EC1 xu\u1EA5t:** Nam/N\u1EEF tr\u1EA7m \u1EA5m, nh\u1EA3 ch\u1EEF ch\u1EADm r\xE3i (115 t\u1EEB/ph\xFAt)
8921
+ - **Nh\u1EA1c n\u1EC1n BGM:** Acoustic Guitar m\u1ED9c & Ti\u1EBFng su\u1ED1i reo (-24dB)
8922
+
8923
+ ---
8924
+
8925
+ ## 1. HOOK M\u1EDE \u0110\u1EA6U (3 - 5 GI\xC2Y \u0110\u1EA6U)
8926
+ > "Gi\u1EEFa nh\u1EEFng \u1ED3n \xE0o v\u1ED9i v\xE3 c\u1EE7a ph\u1ED1 th\u1ECB, \u0111\xE3 bao l\xE2u r\u1ED3i b\u1EA1n ch\u01B0a cho t\xE2m m\xECnh m\u1ED9t kho\u1EA3ng l\u1EB7ng b\xECnh y\xEAn?..."
8927
+
8928
+ ---
8929
+
8930
+ ## 2. K\u1ECACH B\u1EA2N THUY\u1EBET MINH & L\u1EDCI THO\u1EA0I CHI TI\u1EBET
8931
+ ### Kh\u1ED5 1: B\u01B0\u1EDBc ch\xE2n t\xECm v\u1EC1 an tr\xFA
8932
+ C\xF3 nh\u1EEFng ng\xE0y m\u1EC7t m\u1ECFi r\xE3 r\u1EDDi,
8933
+ Ch\u1EC9 th\xE8m m\u1ED9t g\xF3c nh\u1ECF th\u1EA3nh th\u01A1i.
8934
+ Ng\u1ED3i b\xEAn \u1EA5m tr\xE0 th\u01A1m ng\xE1t v\u1ECB,
8935
+ Nghe l\xF2ng ph\u1EB3ng l\u1EB7ng t\u1EF1a m\xE2y tr\xF4i.
8936
+
8937
+ ### Kh\u1ED5 2: Bu\xF4ng b\u1ECF mu\u1ED9n phi\u1EC1n
8938
+ H\xEDt v\xE0o m\u1ED9t h\u01A1i th\u1EADt s\xE2u,
8939
+ Th\u1EDF ra nh\u1EEFng nh\u1ECDc nh\u1EB1n ch\u1EA5t ch\u1EE9a.
8940
+ B\xECnh y\xEAn v\u1ED1n ch\u1EB3ng \u1EDF \u0111\xE2u xa,
8941
+ B\xECnh y\xEAn n\u1EB1m ngay trong t\xE2m m\xECnh l\xFAc n\xE0y.
8942
+
8943
+ ---
8944
+
8945
+ ### PH\xC2N C\u1EA2NH VISUAL STORYBOARD
8946
+ | M\u1ED1c th\u1EDDi gian | M\xF4 t\u1EA3 h\xECnh \u1EA3nh & Visual B-roll | Prompt AI (Midjourney / Stable Diffusion) |
8947
+ | :--- | :--- | :--- |
8948
+ | **00:00 - 00:15** | C\u1EADn c\u1EA3nh t\xE1ch tr\xE0 g\u1ED1m m\u1ED9c b\u1ED1c kh\xF3i nh\u1EB9 b\xEAn khung c\u1EEDa s\u1ED5 s\u1EDBm | \`Cinematic close-up of a handmade ceramic tea cup with gentle steam rising on a weathered rustic wooden table by a morning window, soft golden sun rays filtering through bamboo blinds, dust motes in light, tranquil peaceful Zen mood, 8k --ar 16:9\` |
8949
+ | **00:15 - 00:35** | G\xF3c v\u01B0\u1EDDn thi\u1EC1n v\u1EDBi hoa sen tr\u1EAFng v\xE0 l\u1ED1i \u0111i r\u1EA3i s\u1ECFi tr\u1EAFng | \`Peaceful Zen garden with smooth river stones, a blooming white lotus flower in a rustic clay bowl, morning dew drops, gentle water ripples, serene minimalist atmosphere, photorealistic --ar 16:9\` |
8950
+ | **00:35 - 00:55** | B\xF3ng ng\u01B0\u1EDDi ng\u1ED3i thi\u1EC1n t\u0129nh l\u1EB7ng d\u01B0\u1EDBi b\xF3ng c\xE2y xanh m\xE1t | \`Silhouette of a peaceful person sitting in mindful meditation under a large banyan tree on a misty green hill, soft pastel sunrise sky, cinematic wide shot, atmospheric depth, deeply relaxing --ar 16:9\` |
8951
+
8952
+ ---
8953
+
8954
+ ## 4. CAPTION FACEBOOK B\xC0I \u0110\u0102NG
8955
+ Gi\u1EEFa nh\u1EEFng \u1ED3n \xE0o v\u1ED9i v\xE3 c\u1EE7a ph\u1ED1 th\u1ECB, \u0111\xE3 bao l\xE2u r\u1ED3i b\u1EA1n ch\u01B0a cho t\xE2m m\xECnh m\u1ED9t kho\u1EA3ng l\u1EB7ng b\xECnh y\xEAn?...
8956
+
8957
+ H\xEDt m\u1ED9t h\u01A1i th\u1EADt s\xE2u, bu\xF4ng xu\u1ED1ng nh\u1EEFng lo toan c\u1EE7a ng\xE0y d\xE0i. H\xE3y c\xF9ng l\u1EAFng \u0111\u1ECDng t\xE2m h\u1ED3n v\xE0 l\xE0m b\u1EA1n v\u1EDBi ch\xEDnh m\xECnh trong t\u1EEBng ph\xFAt gi\xE2y hi\u1EC7n t\u1EA1i nh\xE9.
8958
+
8959
+ \u{1F48C} L\u01B0u \xFD: Video mang t\xEDnh ch\u1EA5t t\u1EF1 s\u1EF1 chi\xEAm nghi\u1EC7m, lan t\u1ECFa s\u1EF1 t\u0129nh t\xE2m v\xE0 t\xEDch c\u1EF1c cho cu\u1ED9c s\u1ED1ng.
8960
+
8961
+ #${meta.cleanName.replace(/-/g, "")} #GocAnTru #ThienDinh #TinhTam #BinhYenTuThan #SongCham
8962
+
8963
+ ---
8964
+
8965
+ ## 5. S\u1EA2N PH\u1EA8M AFFILIATE G\u1EAEN K\xC8M
8966
+ | T\xEAn S\u1EA3n Ph\u1EA9m | T\u1EA7ng S\u1EA3n Ph\u1EA9m | V\u1ECB Tr\xED \u0110\u1EB7t Link | C\xE2u L\u1ED3ng Gh\xE9p Soft-sell |
8967
+ | :--- | :--- | :--- | :--- |
8968
+ | **Tr\xE0 th\u1EA3o m\u1ED9c hoa c\xFAc s\u1EA5y l\u1EA1nh thanh nhi\u1EC7t d\u01B0\u1EE1ng t\xE2m** | T\u1EA7ng A | Pinned Comment | *"M\u1ED9t t\xE1ch tr\xE0 \u1EA5m th\u01A1m d\u1ECBu v\xE0o m\u1ED7i s\u1EDBm mai s\u1EBD gi\xFAp b\u1EA1n kh\u1EDFi \u0111\u1EA7u ng\xE0y m\u1EDBi trong an l\xE0nh..."* |
8969
+ `;
8970
+ await FileSystemUtils.writeFile(path23.join(targetDir, "posts", "01_Tap_01_Khoi_Dau_Hanh_Trinh.md"), starterPost);
8971
+ const avatarTxt = `=== OPTION 1: LOGO BI\u1EC2U T\u01AF\u1EE2NG K\xCANH ${pureBrandName.toUpperCase()} (KHUY\xCAN D\xD9NG) ===
8972
+ Title: Avatar Logo T\u0129nh T\xE2m & Sen Tr\u1EAFng M\u1ED9c M\u1EA1c
8973
+ Prompt: Minimalist circular Zen logo icon representing ${pureBrandName}, clean aesthetic, gentle warm lighting, high resolution, vector graphic style, centered composition, modern typography --ar 1:1 --v 6.0
8974
+ Gi\u1EA3i ngh\u0129a: Bi\u1EC3u t\u01B0\u1EE3ng mang phong c\xE1ch t\u0129nh l\u1EB7ng, h\xE0i h\xF2a, ph\xF9 h\u1EE3p \u0111\u1EA1i di\u1EC7n cho th\u01B0\u01A1ng hi\u1EC7u k\xEAnh.
8975
+
8976
+ === OPTION 2: B\xC0N TR\xC0 G\u1ED0M & CU\u1ED0N S\u1ED4 T\xC2M T\xCCNH ===
8977
+ Title: Avatar T\xE1ch Tr\xE0 G\u1ED1m M\u1ED9c & N\u1EBFn Th\u01A1m Ban Mai
8978
+ Prompt: Aesthetic still life on a dark rustic wooden veranda, a handcrafted ceramic teacup with gentle rising steam, an open vintage journal with fountain pen, soft warm morning window light, peaceful hygge mood, depth of field --ar 1:1 --v 6.0
8979
+ Gi\u1EA3i ngh\u0129a: H\xECnh \u1EA3nh \u1EA5m c\xFAng, th\u01B0 th\xE1i, g\u1EE3i m\u1EDF kh\xF4ng gian chi\xEAm nghi\u1EC7m.
8980
+ `;
8981
+ await FileSystemUtils.writeFile(path23.join(targetDir, "prompts", "avatar_prompts.txt"), avatarTxt);
8982
+ const coverTxt = `=== OPTION 1: TO\xC0N C\u1EA2NH HI\xCAN NH\xC0 G\u1ED6 B\xCAN R\u1EEANG TR\xDAC (KHUY\xCAN D\xD9NG) ===
8983
+ Title: Cover Hi\xEAn Nh\xE0 An Tr\xFA B\xEAn \u0110\u1ED3i N\xFAi S\u01B0\u01A1ng M\u1EDD
8984
+ Prompt: Wide panoramic cinematic shot of a peaceful wooden sanctuary porch overlooking misty rolling green hills and a gentle bamboo forest at golden dawn, soft ambient morning haze, ample negative space on the left and center for typography, photorealistic, serene atmosphere --ar 16:9 --v 6.0
8985
+ Gi\u1EA3i ngh\u0129a: Khung h\xECnh r\u1ED9ng v\u1EDBi t\u1EF7 l\u1EC7 v\xE0ng, c\xF3 kho\u1EA3ng tr\u1ED1ng tinh t\u1EBF \u0111\u1EC3 \u0111\u1EB7t logo v\xE0 slogan c\u1EE7a k\xEAnh.
8986
+
8987
+ === OPTION 2: D\xD2NG SU\u1ED0I THI\u1EC0N & KHU V\u01AF\u1EDCN \u0110\xC1 R\xCAU PHONG ===
8988
+ Title: Cover D\xF2ng Su\u1ED1i Trong V\u1EAFt V\u01B0\u1EDDn Thi\u1EC1n
8989
+ Prompt: Panoramic landscape of a tranquil Zen rock garden with a crystal clear cascading water stream, mossy boulders, delicate lotus blossoms, golden sunrise light filtering through pine branches, 8k resolution --ar 16:9 --v 6.0
8990
+ Gi\u1EA3i ngh\u0129a: C\u1EA3nh s\u1EAFc thi\xEAn nhi\xEAn thu\u1EA7n khi\u1EBFt mang l\u1EA1i s\u1EF1 m\xE1t l\xE0nh v\xE0 t\u0129nh t\u1EA1i.
8991
+ `;
8992
+ await FileSystemUtils.writeFile(path23.join(targetDir, "prompts", "cover_prompts.txt"), coverTxt);
8993
+ const promptsTxt = `=== PH\xC2N C\u1EA2NH 01: T\xC1CH TR\xC0 B\u1ED0C KH\xD3I B\xCAN HI\xCAN S\u1EDAM ===
8994
+ Title: T\xE1ch Tr\xE0 G\u1ED1m M\u1ED9c B\xEAn Hi\xEAn Nh\xE0 S\u1EDBm
8995
+ Prompt: Cinematic close-up of a handmade ceramic tea cup with gentle steam rising on a weathered rustic wooden table by a morning window, soft golden sun rays filtering through bamboo blinds, dust motes in light, tranquil peaceful Zen mood, 8k --ar 16:9
8996
+
8997
+ === PH\xC2N C\u1EA2NH 02: GI\u1ECCT S\u01AF\u01A0NG \u0110\u1ECCNG TR\xCAN L\xC1 SEN ===
8998
+ Title: Gi\u1ECDt S\u01B0\u01A1ng Mai \u0110\u1ECDng Tr\xEAn C\xE1nh Sen
8999
+ Prompt: Macro shot of sparkling clear water droplets on a broad vibrant green lotus leaf, gentle morning breeze causing ripples, soft morning sunlight, peaceful nature meditation, ultra-sharp detail --ar 16:9
9000
+
9001
+ === PH\xC2N C\u1EA2NH 03: CON \u0110\u01AF\u1EDCNG R\u1EA2I S\u1ECEI V\u01AF\u1EDCN THI\u1EC0N ===
9002
+ Title: L\u1ED1i \u0110i R\u1EA3i S\u1ECFi Tr\u1EAFng D\u01B0\u1EDBi H\xE0ng Tr\xFAc
9003
+ Prompt: Low angle ground shot of a winding white pebble pathway through a lush green bamboo grove, soft morning mist, peaceful stillness, Zen tranquility, cinematic film grain --ar 16:9
9004
+
9005
+ === PH\xC2N C\u1EA2NH 04: NG\u1ECCN N\u1EBEN TH\u01A0M LUNG LINH \u0110\xCAM KHUYA ===
9006
+ Title: Ng\u1ECDn N\u1EBFn Th\u01A1m T\u0129nh L\u1EB7ng Ban \u0110\xEAm
9007
+ Prompt: Intimate macro shot of a scented candle flame gently flickering in a cozy dimly lit room, warm amber glow illuminating open book pages, soft bokeh background, relaxing atmosphere --ar 16:9
9008
+ `;
9009
+ await FileSystemUtils.writeFile(path23.join(targetDir, "prompts", "scene_broll_prompts.txt"), promptsTxt);
9010
+ const sunoTxt = `=== PHONG C\xC1CH 01: GUITAR ACOUSTIC & TI\u1EBENG SU\u1ED0I REO (KHUY\xCAN D\xD9NG) ===
9011
+ Title: Giai \u0110i\u1EC7u Thi\u1EC1n \u0110\u1ECBnh Guitar M\u1ED9c & N\u01B0\u1EDBc Ch\u1EA3y
9012
+ Prompt: Pure instrumental solo acoustic nylon guitar, very slow peaceful tempo 60 bpm, soothing meditative melody, gentle natural flowing stream water ambient sound in background, no drums, no bass, no vocal, intimate warm acoustic recording, peaceful, healing, emotional
9013
+ Style Tags: acoustic guitar, fingerpicking, stream sound, ambient, peaceful, emotional, 60 bpm
9014
+
9015
+ === PHONG C\xC1CH 02: S\xC1O TR\xDAC & TI\u1EBENG CHU\xD4NG GI\xD3 B\xCCNH Y\xCAN ===
9016
+ Title: Kh\xFAc Nh\u1EA1c S\xE1o Tr\xFAc & Chu\xF4ng Gi\xF3 An Tr\xFA
9017
+ Prompt: Traditional bamboo flute shakuhachi and gentle temple wind chimes, slow 55 bpm, serene flowing melody, mountain mist ambience, deeply contemplative, tranquil, healing, no vocals, no beat
9018
+ Style Tags: bamboo flute, wind chime, zen, meditative, peaceful, tranquil, 55 bpm
9019
+ `;
9020
+ await FileSystemUtils.writeFile(path23.join(targetDir, "prompts", "suno_music_prompts.txt"), sunoTxt);
9021
+ const guideTxt = `H\u01AF\u1EDANG D\u1EAAN S\u1EEC D\u1EE4NG TH\u01AF VI\u1EC6N PROMPTS VISUAL & SUNO BGM: ${pureBrandName}
9022
+ 1. Master Prompt: S\u1EED d\u1EE5ng prompt_viet_kich_ban_master.txt \u0111\u1EC3 t\u1EA1o k\u1ECBch b\u1EA3n m\u1EDBi chu\u1EA9n DNA k\xEAnh v\u1EDBi ChatGPT/Claude.
9023
+ 2. Avatar: S\u1EED d\u1EE5ng c\xE1c prompt trong avatar_prompts.txt tr\xEAn Midjourney / Flux v\u1EDBi t\u1EF7 l\u1EC7 --ar 1:1.
9024
+ 3. Cover: S\u1EED d\u1EE5ng cover_prompts.txt v\u1EDBi t\u1EF7 l\u1EC7 --ar 16:9 cho \u1EA3nh b\xECa Fanpage/YouTube.
9025
+ 4. Scene B-roll: D\xF9ng scene_broll_prompts.txt \u0111\u1EC3 t\u1EA1o c\xE1c c\u1EA3nh quay minh h\u1ECDa cho video.
9026
+ 5. BGM: Sao ch\xE9p Prompt trong suno_music_prompts.txt d\xE1n v\xE0o Suno AI (ch\u1EBF \u0111\u1ED9 Custom Mode, t\xEDch ch\u1ECDn Instrumental).
9027
+ `;
9028
+ await FileSystemUtils.writeFile(path23.join(targetDir, "prompts", "huong_dan_su_dung.txt"), guideTxt);
9029
+ const masterPromptTxt = `# C\xC2U L\u1EC6NH MASTER SO\u1EA0N K\u1ECACH B\u1EA2N CHU\u1EA8N DNA: ${pureBrandName.toUpperCase()}
9030
+
9031
+ > \u{1F4A1} **H\u01AF\u1EDANG D\u1EAAN S\u1EEC D\u1EE4NG NHANH:**
9032
+ > 1. B\u1EA5m n\xFAt **"Sao ch\xE9p to\xE0n b\u1ED9"** \u1EDF g\xF3c tr\xEAn b\xEAn ph\u1EA3i (ho\u1EB7c copy kh\u1ED1i l\u1EC7nh b\xEAn d\u01B0\u1EDBi).
9033
+ > 2. M\u1EDF ChatGPT, Claude ho\u1EB7c DeepSeek, d\xE1n to\xE0n b\u1ED9 c\xE2u l\u1EC7nh v\xE0o khung chat.
9034
+ > 3. Thay th\u1EBF \u0111o\u1EA1n \`[D\xC1N TI\xCAU \u0110\u1EC0, \xDD T\u01AF\u1EDENG HO\u1EB6C \u0110O\u1EA0N V\u0102N B\u1EA2N TH\xD4 V\xC0O \u0110\xC2Y]\` b\u1EB1ng \xFD t\u01B0\u1EDFng c\u1EE7a b\u1EA1n.
9035
+ > 4. AI s\u1EBD l\u1EADp t\u1EE9c s\xE1ng t\xE1c k\u1ECBch b\u1EA3n ho\xE0n ch\u1EC9nh theo \u0111\xFAng quy chu\u1EA9n 6 ph\u1EA7n, \u0111\xFAng DNA k\xEAnh v\xE0 s\u1EB5n s\xE0ng n\u1EA1p v\xE0o MTxStudio!
9036
+
9037
+ ---
9038
+
9039
+ \`\`\`text
9040
+ [ROLE & CONTEXT]
9041
+ B\u1EA1n l\xE0 Bi\xEAn k\u1ECBch tr\u01B0\u1EDFng v\xE0 Chuy\xEAn gia \u0111\u1ECBnh h\xECnh phong c\xE1ch cho k\xEAnh: "${pureBrandName}".
9042
+ - Slogan k\xEAnh: "${description}"
9043
+ - Th\u1EC3 lo\u1EA1i & L\u0129nh v\u1EF1c: N\u1ED9i dung s\u1ED1 & Truy\u1EC1n th\xF4ng \u0111a ph\u01B0\u01A1ng ti\u1EC7n
9044
+ - Kh\xE1n gi\u1EA3 m\u1EE5c ti\xEAu: 20 - 45 tu\u1ED5i
9045
+ - Khung gi\u1EDD \u0111\u0103ng v\xE0ng: 06:30 s\xE1ng v\xE0 20:30 t\u1ED1i
9046
+ - M\xE0u s\u1EAFc nh\u1EADn di\u1EC7n: #10b981 | Icon \u0111\u1EA1i di\u1EC7n: Sparkles
9047
+ - Phong c\xE1ch gi\u1ECDng \u0111\u1ECDc: Gi\u1ECDng \u0111\u1ECDc truy\u1EC1n c\u1EA3m, \u1EA5m \xE1p, t\u1ED1c \u0111\u1ED9 115 - 120 t\u1EEB/ph\xFAt; Nh\u1EA1c n\u1EC1n nh\u1EB9 nh\xE0ng (-24dB)
9048
+ - Phong c\xE1ch h\xECnh \u1EA3nh nh\u1EADn di\u1EC7n: Cinematic high quality aesthetic, tranquil atmosphere, golden hour lighting (--ar 16:9)
9049
+
9050
+ [NHI\u1EC6M V\u1EE4]
9051
+ H\xE3y s\xE1ng t\xE1c ho\u1EB7c chuy\u1EC3n th\u1EC3 th\xE0nh m\u1ED9t K\u1ECBch b\u1EA3n Video/Audio ho\xE0n ch\u1EC9nh theo chu\u1EA9n 6 ph\u1EA7n c\u1EE7a MTxStudio cho:
9052
+ Ch\u1EE7 \u0111\u1EC1 / B\xE0i vi\u1EBFt th\xF4:
9053
+ """
9054
+ [D\xC1N TI\xCAU \u0110\u1EC0, \xDD T\u01AF\u1EDENG HO\u1EB6C \u0110O\u1EA0N V\u0102N B\u1EA2N TH\xD4 V\xC0O \u0110\xC2Y]
9055
+ """
9056
+
9057
+ [4 B\u01AF\u1EDAC B\u1EAET BU\u1ED8C KHI X\u1EEC L\xDD]
9058
+ 1. L\u1ECCC L\u1EC6CH TONE (DE-BIASING):
9059
+ - Lo\u1EA1i b\u1ECF tri\u1EC7t \u0111\u1EC3: N\u1ED9i dung ph\u1EA3n c\u1EA3m, tin gi\u1EA3, ti\xEAu c\u1EF1c \u0111\u1ED9c h\u1EA1i, gi\u1EADt g\xE2n c\xE2u view r\u1EBB ti\u1EC1n, vi ph\u1EA1m ti\xEAu chu\u1EA9n c\u1ED9ng \u0111\u1ED3ng.
9060
+ - Gi\u1EEF l\u1EA1i h\u1EA1t m\u1EA7m c\u1EA3m x\xFAc nh\xE2n v\u0103n, \u0111\xFAc k\u1EBFt gi\xE1 tr\u1ECB t\xEDch c\u1EF1c ph\xF9 h\u1EE3p v\u1EDBi t\xF4n ch\u1EC9 k\xEAnh.
9061
+
9062
+ 2. T\xC1I \u0110\u1ECANH H\xCCNH THEO DNA K\xCANH:
9063
+ - Ng\xF4i x\u01B0ng: T\xF4i - B\u1EA1n / Ch\xFAng ta
9064
+ - C\u1EA3m x\xFAc m\u1EE5c ti\xEAu: Truy\u1EC1n c\u1EA3m h\u1EE9ng, k\u1EBFt n\u1ED1i c\u1EA3m x\xFAc, \u0111em l\u1EA1i gi\xE1 tr\u1ECB h\u1EEFu \xEDch v\xE0 b\xECnh y\xEAn t\u1EF1 th\xE2n
9065
+ - Phong c\xE1ch d\u1EABn d\u1EAFt: Ng\u01B0\u1EDDi chia s\u1EBB ch\xE2n th\xE0nh, s\xE2u s\u1EAFc, \u0111\u1ED3ng h\xE0nh c\xF9ng kh\xE1n gi\u1EA3
9066
+
9067
+ 3. T\u1ED0I \u01AFU \xC2M H\u1ECCC GI\u1ECCNG \u0110\u1ECCC AI (TTS ACOUSTICS):
9068
+ - \u0110\u1ED9 d\xE0i c\xE2u: Tuy\u1EC7t \u0111\u1ED1i ng\u1EAFn g\u1ECDn, t\u1EEB 12 \u0111\u1EBFn 20 t\u1EEB/c\xE2u (kh\xF4ng qu\xE1 25 t\u1EEB).
9069
+ - V\u1EBF c\xE2u ng\u1EAFt ph\u1EA9y: 8 \u0111\u1EBFn 12 t\u1EEB. D\xF9ng d\u1EA5u ch\u1EA5m c\xE2u ng\u1EAFt d\u1EE9t kho\xE1t, kh\xF4ng n\u1ED1i c\xE2u d\xE0i l\xEA th\xEA.
9070
+ - Ch\u1ED1ng l\u1EB7p t\u1EEB l\xE1y: Kh\xF4ng x\u1EBFp 2 t\u1EEB l\xE1y li\u1EC1n k\u1EC1; ch\xE8n d\u1EA5u ph\u1EA9y ho\u1EB7c th\u1EBB ngh\u1EC9 tr\u01B0\u1EDBc t\u1EEB l\xE1y c\xF3 thanh \u0111i\u1EC7u tr\u1EAFc.
9071
+ - Th\u1EBB bi\u1EC3u c\u1EA3m MTxStudio: S\u1EED d\u1EE5ng c\xE1c th\u1EBB chu\u1EA9n trong danh m\u1EE5c 42 th\u1EBB \xE2m h\u1ECDc: [l\u1EA5y h\u01A1i], [th\u1EDF d\xE0i], [th\u1EDF ph\xE0o], [c\u01B0\u1EDDi kh\u1EBD], [c\u01B0\u1EDDi nh\u1EB9], [th\xEC th\u1EA7m], [ng\u1EAFt ng\u1EAFn], [ng\u1EAFt d\xE0i], [n\xF3i ch\u1EADm l\u1EA1i].
9072
+ - B\u1EA3o to\xE0n th\u01A1 ca: N\u1EBFu c\xF3 th\u01A1/v\xE8, M\u1ED6I C\xC2U TH\u01A0 B\u1EAET BU\u1ED8C N\u1EB0M TR\xCAN 1 D\xD2NG RI\xCANG (\\n).
9073
+ - Kh\u1EED k\xFD t\u1EF1 l\u1EA1: Kh\xF4ng d\xF9ng en-dash (\u2013) hay em-dash (\u2014), ch\u1EC9 d\xF9ng d\u1EA5u g\u1EA1ch n\u1ED1i (-).
9074
+
9075
+ 4. \u0110\xD3NG G\xD3I 6 PH\u1EA6N CHU\u1EA8N MTxSTUDIO:
9076
+ Xu\u1EA5t b\u1EA3n \u0111\u1ECBnh d\u1EA1ng Markdown v\u1EDBi c\xE1c ti\xEAu \u0111\u1EC1 m\u1EE5c CH\xCDNH X\xC1C sau:
9077
+
9078
+ # T\u1EACP [S\u1ED1 t\u1EADp]: [TI\xCAU \u0110\u1EC0 IN HOA]
9079
+
9080
+ - **Tr\u1EE5 c\u1ED9t n\u1ED9i dung:** [T\xEAn tr\u1EE5 c\u1ED9t theo plan 30 ng\xE0y]
9081
+ - **\u0110\u1ECBnh d\u1EA1ng t\u1ED1i \u01B0u:** [Reels 9:16 / Video In-stream 16:9]
9082
+ - **Th\u1EDDi l\u01B0\u1EE3ng \u01B0\u1EDBc t\xEDnh:** [50 gi\xE2y - 3 ph\xFAt]
9083
+ - **Gi\u1ECDng \u0111\u1ECDc \u0111\u1EC1 xu\u1EA5t:** [Nam/N\u1EEF, t\u1ED1c \u0111\u1ED9 t\u1EEB/ph\xFAt]
9084
+ - **Nh\u1EA1c n\u1EC1n BGM:** [M\xF4 t\u1EA3 nh\u1EA1c c\u1EE5 & \xE2m l\u01B0\u1EE3ng -24dB]
9085
+
9086
+ ---
9087
+
9088
+ ## 1. HOOK M\u1EDE \u0110\u1EA6U (3 - 5 GI\xC2Y \u0110\u1EA6U)
9089
+ > "[C\xE2u m\u1EDF m\xE0n \u0111\xE1nh th\u1EB3ng v\xE0o t\xE2m l\xFD, t\xF2 m\xF2 ho\u1EB7c n\u1ED7i \u0111au]"
9090
+
9091
+ ---
9092
+
9093
+ ## 2. K\u1ECACH B\u1EA2N THUY\u1EBET MINH & L\u1EDCI THO\u1EA0I CHI TI\u1EBET
9094
+ ### Kh\u1ED5 1: [Ti\xEAu \u0111\u1EC1 ph\xE2n \u0111o\u1EA1n]
9095
+ [N\u1ED9i dung audio tho\u1EA1i s\u1EA1ch, c\xE2u ng\u1EAFn 12-20 t\u1EEB, ng\u1EAFt nh\u1ECBp ph\u1EA9y t\u1EF1 nhi\xEAn, ch\xE8n th\u1EBB bi\u1EC3u c\u1EA3m chu\u1EA9n...]
9096
+
9097
+ ### Kh\u1ED5 2: [Ti\xEAu \u0111\u1EC1 ph\xE2n \u0111o\u1EA1n]
9098
+ [...]
9099
+
9100
+ ---
9101
+
9102
+ ### PH\xC2N C\u1EA2NH VISUAL STORYBOARD
9103
+ | M\u1ED1c th\u1EDDi gian | M\xF4 t\u1EA3 h\xECnh \u1EA3nh & Visual B-roll | Prompt AI (Midjourney / Stable Diffusion) |
9104
+ | :--- | :--- | :--- |
9105
+ | **00:00 - 00:15** | [M\xF4 t\u1EA3 ph\xE2n c\u1EA3nh] | \`[Prompt ti\u1EBFng Anh chi ti\u1EBFt, \u0111\xFAng art style c\u1EE7a k\xEAnh, 8k --ar 16:9]\` |
9106
+ | **00:15 - 00:45** | [M\xF4 t\u1EA3 ph\xE2n c\u1EA3nh] | \`[Prompt ti\u1EBFng Anh chi ti\u1EBFt, \u0111\xFAng art style c\u1EE7a k\xEAnh, 8k --ar 16:9]\` |
9107
+
9108
+ ---
9109
+
9110
+ ## 4. CAPTION FACEBOOK B\xC0I \u0110\u0102NG
9111
+ [Caption thu h\xFAt]
9112
+
9113
+ [T\u1EF1 s\u1EF1 ho\u1EB7c t\xF3m t\u1EAFt \xFD ngh\u0129a]
9114
+
9115
+ [C\xE2u h\u1ECFi k\xEAu g\u1ECDi t\u01B0\u01A1ng t\xE1c]
9116
+
9117
+ #${meta.cleanName.replace(/-/g, "")} #MTxStudio
9118
+
9119
+ ---
9120
+
9121
+ ## 5. S\u1EA2N PH\u1EA8M AFFILIATE G\u1EAEN K\xC8M
9122
+ | T\xEAn S\u1EA3n Ph\u1EA9m | T\u1EA7ng S\u1EA3n Ph\u1EA9m | V\u1ECB Tr\xED \u0110\u1EB7t Link | C\xE2u L\u1ED3ng Gh\xE9p Soft-sell |
9123
+ | :--- | :--- | :--- | :--- |
9124
+ | [T\xEAn S\u1EA3n Ph\u1EA9m] | T\u1EA7ng A / T\u1EA7ng B | Pinned Comment | "[C\xE2u l\u1ED3ng gh\xE9p t\u1EF1 nhi\xEAn]" |
9125
+
9126
+ ---
9127
+
9128
+ ## 6. KHUY\u1EBEN C\xC1O PH\xC1P L\xDD & DISCLAIMER
9129
+ N\u1ED9i dung do k\xEAnh ${pureBrandName} s\u1EA3n xu\u1EA5t nh\u1EB1m m\u1EE5c \u0111\xEDch chia s\u1EBB v\xE0 lan t\u1ECFa gi\xE1 tr\u1ECB t\xEDch c\u1EF1c cho cu\u1ED9c s\u1ED1ng.
9130
+ \`\`\`
9131
+ `;
9132
+ await FileSystemUtils.writeFile(path23.join(targetDir, "prompts", "prompt_viet_kich_ban_master.txt"), masterPromptTxt);
9133
+ const affiliateReadme = `# DANH M\u1EE4C S\u1EA2N PH\u1EA8M TI\u1EBEP TH\u1ECA LI\xCAN K\u1EBET (AFFILIATE CATALOG)
9134
+ ## K\xCANH: ${pureBrandName}
9135
+
9136
+ > **Tri\u1EBFt l\xFD b\xE1n h\xE0ng Soft-sell 80/20:**
9137
+ > S\u1EA3n ph\u1EA9m \u0111\u01B0\u1EE3c gi\u1EDBi thi\u1EC7u nh\u01B0 nh\u1EEFng v\u1EADt ph\u1EA9m \u0111\u1ED3ng h\xE0nh c\xF9ng kho\u1EA3nh kh\u1EAFc t\u0129nh t\xE2m, ch\u0103m s\xF3c c\u01A1 th\u1EC3 nh\u1EB9 nh\xE0ng, tuy\u1EC7t \u0111\u1ED1i kh\xF4ng ch\xE8o k\xE9o th\u01B0\u01A1ng m\u1EA1i g\u01B0\u1EE3ng \xE9p.
9138
+
9139
+ ---
9140
+
9141
+ ### NH\xD3M 1: V\u1EACT PH\u1EA8M T\u0128NH T\xC2M & KH\xD4NG GIAN B\xCCNH AN (T\u1EA6NG A)
9142
+
9143
+ | STT | T\xEAn S\u1EA3n Ph\u1EA9m | N\u1EC1n T\u1EA3ng | Kho\u1EA3ng Gi\xE1 | Hoa H\u1ED3ng D\u1EF1 Ki\u1EBFn | V\u1ECB Tr\xED \u0110\u1EB7t Link | C\xE2u M\u1EDF \u0110\u1EA7u Soft-sell (Hook l\u1ED3ng gh\xE9p) |
9144
+ |:--- |:--- |:--- |:--- |:--- |:--- |:--- |
9145
+ | 01 | **N\u1EBFn th\u01A1m s\xE1p \u0111\u1EADu n\xE0nh h\u01B0\u01A1ng g\u1ED7 tr\u1EA7m & qu\u1EBF \u1EA5m** | Shopee / TikTok Shop | 135.000\u0111 - 220.000\u0111 | 15% - 22% | Pinned Comment / Bio Link | *"Th\u1EAFp m\u1ED9t ng\u1ECDn n\u1EBFn h\u01B0\u01A1ng tr\u1EA7m d\u1ECBu nh\u1EB9, \u0111\u1EC3 t\xE2m m\xECnh ch\u1EADm l\u1EA1i sau m\u1ED9t ng\xE0y d\xE0i..."* |
9146
+ | 02 | **Tr\xE0 th\u1EA3o m\u1ED9c hoa c\xFAc s\u1EA5y l\u1EA1nh nguy\xEAn b\xF4ng d\u01B0\u1EE1ng t\xE2m** | Shopee / TikTok Shop | 75.000\u0111 - 145.000\u0111 | 18% - 24% | Pinned Comment | *"M\u1ED9t t\xE1ch tr\xE0 \u1EA5m th\u01A1m d\u1ECBu v\xE0o m\u1ED7i s\u1EDBm mai s\u1EBD gi\xFAp b\u1EA1n kh\u1EDFi \u0111\u1EA7u ng\xE0y m\u1EDBi trong an l\xE0nh..."* |
9147
+ | 03 | **Chu\xF4ng xoay T\xE2y T\u1EA1ng (Singing Bowl) \xE2m thanh ch\u1EEFa l\xE0nh** | Shopee / TikTok Shop | 250.000\u0111 - 450.000\u0111 | 15% - 20% | Bio Link | *"Ti\u1EBFng chu\xF4ng ng\xE2n vang thanh tho\xE1t gi\xFAp gom t\xE2m v\u1EC1 v\u1EDBi hi\u1EC7n t\u1EA1i, tan bi\u1EBFn m\u1ECDi c\u0103ng th\u1EB3ng..."* |
9148
+ `;
9149
+ await FileSystemUtils.writeFile(path23.join(targetDir, "affiliate", "README.md"), affiliateReadme);
9150
+ await FileSystemUtils.writeFile(path23.join(targetDir, "affiliate", "danh_muc_san_pham.md"), affiliateReadme);
9151
+ }
8596
9152
  };
8597
9153
 
8598
9154
  // src/commands/pack.ts
@@ -9185,7 +9741,7 @@ program.command("audit [path]").description("Audit codebase for code quality, se
9185
9741
  process.exit(1);
9186
9742
  }
9187
9743
  });
9188
- program.command("create <name>").description("Scaffold a new module, plugin, or theme with clean architecture standards").option("--type <type>", "Project type (perfex-module, wordpress-plugin, wordpress-theme)", "perfex-module").option("--title <title>", "Friendly display title for the project").option("--description <description>", "Project description").option("--out <dir>", "Target output directory").action(async (name, options) => {
9744
+ program.command("create <name>").description("Scaffold a new module, plugin, theme, or content channel with clean architecture standards").option("--type <type>", "Project type (perfex-module, wordpress-plugin, wordpress-theme, content-channel)", "perfex-module").option("--title <title>", "Friendly display title for the project").option("--description <description>", "Project description").option("--out <dir>", "Target output directory").action(async (name, options) => {
9189
9745
  try {
9190
9746
  const createCommand = new CreateCommand();
9191
9747
  await createCommand.execute(name, options);