CODE · 3.0 KB
scripts/write-real-structure-prompt.mjs
Workspace snapshot · 08/31 23:51
import { mkdir, readFile, writeFile } from "node:fs/promises";
import { buildLpPrompt } from "../src/runtime-prompt.js";
const sourcePath = "G:\\.shortcut-targets-by-id\\10IH5s3bklKx5G7i1KYHfrLexzizpkHT9\\my-virtual-team\\projects\\pengin\\AI支援サービス\\AIコンサル\\02_制作会社向け_Claude導入伴走支援.md";
const sourceText = (await readFile(sourcePath, "utf8"))
.replace(/## 巻末\. お問い合わせ[\s\S]*?(?=\n---\n)/u, "")
.replace(/## 制作メモ(社内用[\s\S]*$/u, "")
.replace(/[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,}/giu, "[連絡先は公開前確認]");
const answers = {
goal: "demo", service: "従業員5〜50名の制作会社向けに、優秀ディレクターの定型業務と判断基準をClaudeのSKILL・専門エージェントへ移管する3か月の導入伴走支援",
category: "service", industry: "web", role: "owner", companySize: "small",
problem: "優秀ディレクターが既存案件で埋まり、新規案件と若手教育の両方が止まる",
differentiator: "PENGIN自身の制作現場で稼働する業態別SKILL、Figma・Notion・Drive・Chatwork連携、3か月の業務移植",
traffic: ["sales", "partner", "search"], proof: ["numbers", "cases", "process", "screen"], price: "plans",
priceAmount: "1部門: 初期80万円+月15万円 / 3部門: 初期200万円+月30万円 / 全社: 初期400万円〜+月50万円〜",
evidenceDetails: "資料記載値は公開前に最新値を再照合。WF初稿2週間→3日、議事録90分→15分など",
formFields: "会社名,お名前,メールアドレス,現在の課題,相談希望日時", formEndpoint: "", privacyUrl: "https://pengi-n.co.jp/privacy-policy/",
formSuccess: "受付後1営業日以内に、制作会社のAI化可能性を整理する60分相談の日程をご連絡します。",
formalCompanyName: "株式会社PENGIN", formalServiceName: "制作会社専用 Claude導入・伴走支援",
brandAssets: "PENGINロゴ、コーポレートカラー、権利確認済みの実際の制作画面",
compliance: "効果数値は公開前確認。AI導入効果・利益改善を保証しない", forbiddenClaims: "唯一、必ず、確実に、誰でも同じ品質、効果保証",
excludedAudience: "運用責任者を置けない企業", competition: "汎用生成AI、AI研修会社、業務コンサル、RPA導入支援",
conversionDefinition: "60分無料相談フォームの送信完了", toneIntent: "credible"
};
const prompt = buildLpPrompt({ name: "制作会社専用 Claude導入・伴走支援", answers, sourceText, sourceConfirmationNotes: { 実績数値: "公開前照合", 料金: "仮説値" } });
const output = new URL("../output/real-e2e-v2/", import.meta.url);
await mkdir(output, { recursive: true });
await writeFile(new URL("structure-prompt.txt", output), prompt, "utf8");
await writeFile(new URL("project.json", output), JSON.stringify({ name: "制作会社専用 Claude導入・伴走支援", answers }, null, 2), "utf8");
console.log(new URL("structure-prompt.txt", output).pathname);