[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6FNX18G8C1XBB2XWVR758EK":3,"skill-same:01M6FNX18G8C1XBB2XWVR758EK":65},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":34,"linkOnly":35,"markdownContent":36,"markdownBody":37,"frontMatter":38,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":14,"repositoryHtmlUrl":47,"repositoryHomepageUrl":6,"ownerHtmlUrl":48,"ownerBlogUrl":6,"ownerDescription":49,"updatedAt":50,"install":51,"resources":64},"01M6FNX18G8C1XBB2XWVR758EK","pilulafeed",null,"Executes the PilulaFeed automated publishing pipeline in chat-driven mode. Claude acts as the LLM layer for all agents. No external API needed. Invokes with `\u002Fpilulafeed --spec \u003Cfile>`.","jonnathan-ls\u002Fai-context-kit","jonnathan-ls","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F35238611?v=4","01M6CR7BBBBDZKFY506MTDWAQX","Jonnathan Lacerda Santos","01M6CR7BFT2HX3DCBVJ6226T37",0,"MIT","https:\u002F\u002Fgithub.com\u002Fjonnathan-ls\u002Fai-context-kit\u002Fblob\u002Fmain\u002Fskills\u002Fpilulafeed\u002FSKILL.md",[],[5,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33],"directory","spec","code","file","pipeline","Tools","api","Bash","read","write","publishing","chat","as","driven","with","2026-11-10 10:12:30",false,"---\nversion: 1.0.0\nname: pilulafeed\ndescription: Executes the PilulaFeed automated publishing pipeline in chat-driven mode. Claude acts as the LLM layer for all agents. No external API needed. Invokes with `\u002Fpilulafeed --spec \u003Cfile>`.\nlicense: MIT\ncompatibility: requires Read, Write, Bash tools; executes in pilulafeed-pipeline directory\nmetadata:\n  author: Claude Code\n  version: \"1.0\"\n  generatedBy: \"1.0\"\n---\n\n# PilulaFeed Chat-Driven Pipeline Runner\n\n## Overview\n\nYou are the orchestrator for the PilulaFeed publishing pipeline. Instead of making external LLM API calls,\nyou execute the entire pipeline here in the chat using your reasoning capabilities. Each stage produces\nJSON artifacts that feed into the next stage. You maintain a structured execution log as you go.\n\n**Project directory:** `~\u002Fprojects\u002Fto-do\u002Fpilulafeed-pipeline\u002F`\n\n## Input\n\nUser provides:\n```\n\u002Fpilulafeed --spec openspec\u002Fminha-ideia.openspec.yaml\n```\n\nYour task: Read the `.openspec` file, execute all 10 stages, and produce complete output artifacts.\n\n## Execution Flow\n\n### Stage 1: Spec Parsing & Hash Generation\n\n**Action:**\n1. Read the `.openspec` YAML file from the path provided\n2. Validate it has required fields: `topic`, `category`, `format`, `tone`, `target_duration_sec`, `a_b_hooks`, `dry_run`\n3. Generate `spec_hash` as SHA-256 of the canonicalized YAML content\n4. Create output directory structure:\n   - `output\u002F\u003Cspec_hash>\u002F`\n   - `logs\u002F\u003Cspec_hash>\u002F`\n\n**Output artifact:** Internal state. Log the hash.\n\n---\n\n### Stage 2: Curation Agent\n\n**Input:** The `.openspec` file's `topic`, `category`, `suggested_sources`\n\n**Your task:** Generate a realistic `CuratedEvidencePack` by reasoning about the topic.\n\nYou should:\n- Invent 3–5 plausible references (URLs with titles and sources like \"Hacker News\", \"Blog\", \"Research\")\n- Extract 5–8 key factual claims from your knowledge about the topic\n- Assign confidence scores: claims with strong backing get 0.8–1.0, weaker ones get 0.5–0.7\n- Mark `low_confidence: false` if you have ≥3 references, else `true`\n\n**Output file:** `output\u002F\u003Cspec_hash>\u002Fcurated-evidence.json`\n\n```json\n{\n  \"spec_hash\": \"\u003Chash>\",\n  \"topic\": \"\u003Cfrom spec>\",\n  \"category\": \"\u003Cfrom spec>\",\n  \"references\": [\n    {\n      \"url\": \"https:\u002F\u002Fexample.com\u002Farticle\",\n      \"title\": \"Article Title\",\n      \"source\": \"Blog | Hacker News | Research\",\n      \"fetched_at\": \"2026-04-07T23:00:00Z\"\n    }\n  ],\n  \"key_claims\": [\n    {\n      \"text\": \"Factual claim about the topic\",\n      \"confidence\": 0.85,\n      \"sources\": [\"https:\u002F\u002Fexample.com\u002Farticle\"],\n      \"requires_review\": false\n    }\n  ],\n  \"low_confidence\": false\n}\n```\n\n**Write file using Write tool.**\n\n---\n\n### Stage 3: Script Agent\n\n**Input:** The `CuratedEvidencePack` from Stage 2 + the `.openspec`\n\n**Your task:** Generate a compelling script with two hook variants (A\u002FB).\n\nYou should:\n- Variant A: curiosity\u002Fquestion-based hook (max 15 words)\n- Variant B: statement\u002Fdata-based hook (max 15 words)\n- Both share the same development (2–3 sentences of core content)\n- Both share the same CTA (call-to-action, max 10 words)\n- Convert into `ScriptFramePlan[]` — break the script into 6–10 frames (short video) or 5–12 (carousel)\n  with narrative purpose and estimated duration\n\nRespect the `target_duration_sec` from the spec. Hook frames get ~15% of total duration, CTA gets ~10%,\ndevelopment frames split the rest evenly.\n\n**Output file:** `output\u002F\u003Cspec_hash>\u002Fscript-variants.json`\n\n```json\n{\n  \"variants\": [\n    {\n      \"variant\": \"A\",\n      \"hook\": \"Ever wondered how AI actually learns?\",\n      \"development\": \"Machine learning isn't magic—it's pattern matching at scale. Neural networks adjust weights to minimize error. The more data, the sharper the patterns.\",\n      \"cta\": \"Follow for more AI insights\"\n    },\n    {\n      \"variant\": \"B\",\n      \"hook\": \"AI algorithms process 1M decisions per second\",\n      \"development\": \"Here's why that matters. Traditional programs follow explicit rules. AI systems learn rules from data instead. Speed + adaptability = the future of software.\",\n      \"cta\": \"Subscribe to stay ahead\"\n    }\n  ],\n  \"frame_plans\": [\n    {\n      \"variant\": \"A\",\n      \"frames\": [\n        {\n          \"frame_id\": \"f01\",\n          \"narrative_purpose\": \"Hook — grab attention with curiosity\",\n          \"content_summary\": \"Ever wondered how AI actually learns?\",\n          \"duration_ms\": 3500\n        },\n        {\n          \"frame_id\": \"f02\",\n          \"narrative_purpose\": \"Explanation — pattern matching\",\n          \"content_summary\": \"Machine learning isn't magic—it's pattern matching at scale\",\n          \"duration_ms\": 4000\n        }\n      ]\n    }\n  ]\n}\n```\n\n**Write file using Write tool.**\n\n---\n\n### Stage 4: FrameComposer Agent\n\n**Input:** `ScriptFramePlan[]` from Stage 3 + `.openspec`\n\n**Your task:** Convert each frame narrative into a complete `FrameSpec` with layout, animation, and design cues.\n\nFor each frame, you assign:\n- `layout_template`: HeroText (text-heavy), SplitContent (left text\u002Fright visual), FullBleedVisual (full bg), ListReveal (bullet points), OutroCTA (final CTA)\n- `animation.entrance`: slide-up, fade-in, zoom-punch, or typewriter\n- `animation.exit`: slide-left, fade-out, or dissolve\n- `typography`: headline_style (display-xl, display-lg, body-em), accent_color (primary, secondary, alert)\n- `visual_hint`: descriptive string (≥5 words) for background treatment, e.g., \"dark gradient with hexagonal grid overlay\"\n- `transition_to_next`: how to move to next frame\n\n**Rules:**\n- First frame: HeroText or FullBleedVisual\n- Last frame: OutroCTA\n- No 2 consecutive frames use the same entrance animation\n- Total duration across all frames ≈ `target_duration_sec ± 2 seconds`\n\n**Output file:** `output\u002F\u003Cspec_hash>\u002Fframe-plan.json`\n\n```json\n[\n  {\n    \"frame_id\": \"f01\",\n    \"duration_ms\": 3500,\n    \"layout_template\": \"HeroText\",\n    \"content\": {\n      \"headline\": \"Ever wondered how AI learns?\",\n      \"body\": \"The journey from data to intelligence\",\n      \"visual_hint\": \"dark gradient background with subtle circuit pattern overlay\"\n    },\n    \"animation\": {\n      \"entrance\": \"slide-up\",\n      \"exit\": \"slide-left\",\n      \"in_frame_motion\": []\n    },\n    \"typography\": {\n      \"headline_style\": \"display-xl\",\n      \"accent_color\": \"primary\"\n    },\n    \"audio_cue\": \"beat-drop\",\n    \"transition_to_next\": \"cross-dissolve\"\n  }\n]\n```\n\n**Write file using Write tool.**\n\n---\n\n### Stage 5: Design Agent\n\n**Input:** `FramePlan` from Stage 4\n\n**Your task:** Translate each frame spec into a `DesignBlueprint` using design system tokens ONLY.\n\n**Design tokens available:**\n- Colors: `brand-dark` (#0D0D0D), `brand-accent` (#FF3C3C), `text-primary` (#FFFFFF), `text-muted` (#AAAAAA)\n- Typography: `display-xl` (72px bold), `display-lg` (56px bold), `body-em` (28px medium), `caption` (18px regular)\n- Animation presets: `SlideUpEntrance`, `ZoomPunchEntrance`, `FadeInEntrance`, `TypewriterEntrance`, `DissolveExit`, `SlideLeftExit`\n- Backgrounds: `DarkGradientBG`, `AccentFloodBG`, `ParticleBurstBG`, `HexGridBG`\n\n**Critical rule:** NO raw hex colors or pixel values. All references must be token names.\n\n**Output file:** `output\u002F\u003Cspec_hash>\u002Fdesign-blueprint.json`\n\n```json\n{\n  \"spec_hash\": \"\u003Chash>\",\n  \"frames\": [\n    {\n      \"frame_id\": \"f01\",\n      \"background\": \"brand-dark\",\n      \"background_component\": \"DarkGradientBG\",\n      \"headline_style\": \"display-xl\",\n      \"headline_color\": \"text-primary\",\n      \"body_style\": \"body-em\",\n      \"body_color\": \"text-primary\",\n      \"accent_color\": \"brand-accent\",\n      \"animation\": {\n        \"entrance_preset\": \"SlideUpEntrance\",\n        \"exit_preset\": \"SlideLeftExit\"\n      },\n      \"layout_component\": \"HeroText\"\n    }\n  ]\n}\n```\n\n**Write file using Write tool.**\n\n---\n\n### Stage 6: Dev Agent (Code Generation)\n\n**Input:** `DesignBlueprint` from Stage 5\n\n**Your task:** Generate TypeScript Remotion composition code that renders all frames.\n\n**Guidelines:**\n- Only import from `..\u002F..\u002Fdesign-system\u002F` paths\n- Each frame becomes a `\u003CSequence>` with correct `durationInFrames` (duration_ms \u002F 1000 * 30)\n- Use the correct layout component (HeroText, SplitContent, etc.)\n- Pass color tokens as props, not raw hex values\n- Total `durationInFrames` must match sum of all frame durations\n\n**Output file:** `output\u002F\u003Cspec_hash>\u002Fcomposition.tsx`\n\n**Write file using Write tool.**\n\n---\n\n### Stage 7: Video Rendering (Skip for now)\n\nSince you're running in chat, skip Remotion rendering. Just log that it was skipped.\n\n---\n\n### Stage 8: QA Agent\n\n**Input:** `CuratedEvidencePack` (stage 2), `design-blueprint` (stage 5)\n\n**Your task:** Generate a `QualityReport` with factual accuracy and policy safety checks.\n\nEvaluate:\n- **Factual accuracy:** Score 0–1 (≥0.7 = pass)\n- **Visual quality:** Score 0–1 (≥0.7 = pass)\n- **Policy safe:** true\u002Ffalse\n\n**Output file:** `output\u002F\u003Cspec_hash>\u002Fquality-report.json`\n\n```json\n{\n  \"spec_hash\": \"\u003Chash>\",\n  \"factual_score\": 0.85,\n  \"visual_score\": 0.9,\n  \"policy_safe\": true,\n  \"approved\": true,\n  \"rejection_reasons\": [],\n  \"route_to_stage\": null\n}\n```\n\n**Write file using Write tool.**\n\n---\n\n### Stage 9: Compliance Agent\n\n**Input:** The script content\n\n**Your task:** Generate `ComplianceReport`.\n\n**Output file:** `output\u002F\u003Cspec_hash>\u002Fcompliance-report.json`\n\n```json\n{\n  \"spec_hash\": \"\u003Chash>\",\n  \"platform\": \"instagram\",\n  \"policy_safe\": true,\n  \"violations\": [],\n  \"quarantined\": false\n}\n```\n\n**Write file using Write tool for each platform (instagram, tiktok, youtube).**\n\n---\n\n### Stage 10: Publishing Agent\n\n**Input:** All previous artifacts + `dry_run` flag\n\n**Your task:** Generate `PublicationJob[]` records.\n\nIf `dry_run: true`: Set status to `\"dry_run\"`.\n\n**Output file:** `output\u002F\u003Cspec_hash>\u002Fpublication-jobs.json`\n\n```json\n[\n  {\n    \"spec_hash\": \"\u003Chash>\",\n    \"platform\": \"instagram\",\n    \"status\": \"dry_run\"\n  },\n  {\n    \"spec_hash\": \"\u003Chash>\",\n    \"platform\": \"tiktok\",\n    \"status\": \"dry_run\"\n  },\n  {\n    \"spec_hash\": \"\u003Chash>\",\n    \"platform\": \"youtube\",\n    \"status\": \"dry_run\"\n  }\n]\n```\n\n**Write file using Write tool.**\n\n---\n\n## Execution Log\n\n**After all stages, create `logs\u002F\u003Cspec_hash>\u002Fexecution.json`:**\n\n```json\n[\n  {\n    \"agent_id\": \"CurationAgent\",\n    \"status\": \"success\",\n    \"duration_ms\": 3421,\n    \"spec_hash\": \"\u003Chash>\",\n    \"attempt_number\": 1,\n    \"artifact_path\": \"output\u002F\u003Chash>\u002Fcurated-evidence.json\"\n  }\n]\n```\n\n**Write file using Write tool.**\n\n---\n\n## Output Summary\n\nOnce all stages complete, print a markdown summary with all artifact paths.\n\n---\n\n## Guardrails\n\n**You MUST:**\n- ✅ Read the `.openspec` file completely\n- ✅ Generate realistic, factual content\n- ✅ Write all output files with proper JSON formatting\n- ✅ Log every stage\n- ✅ Keep timestamps ISO 8601 format\n\n**You MUST NOT:**\n- ❌ Call external APIs\n- ❌ Skip any of the 10 stages\n- ❌ Write raw hex values to DesignBlueprint output\n- ❌ Publish to actual social media\n","# PilulaFeed Chat-Driven Pipeline Runner\n\n## Overview\n\nYou are the orchestrator for the PilulaFeed publishing pipeline. Instead of making external LLM API calls,\nyou execute the entire pipeline here in the chat using your reasoning capabilities. Each stage produces\nJSON artifacts that feed into the next stage. You maintain a structured execution log as you go.\n\n**Project directory:** `~\u002Fprojects\u002Fto-do\u002Fpilulafeed-pipeline\u002F`\n\n## Input\n\nUser provides:\n```\n\u002Fpilulafeed --spec openspec\u002Fminha-ideia.openspec.yaml\n```\n\nYour task: Read the `.openspec` file, execute all 10 stages, and produce complete output artifacts.\n\n## Execution Flow\n\n### Stage 1: Spec Parsing & Hash Generation\n\n**Action:**\n1. Read the `.openspec` YAML file from the path provided\n2. Validate it has required fields: `topic`, `category`, `format`, `tone`, `target_duration_sec`, `a_b_hooks`, `dry_run`\n3. Generate `spec_hash` as SHA-256 of the canonicalized YAML content\n4. Create output directory structure:\n   - `output\u002F\u003Cspec_hash>\u002F`\n   - `logs\u002F\u003Cspec_hash>\u002F`\n\n**Output artifact:** Internal state. Log the hash.\n\n---\n\n### Stage 2: Curation Agent\n\n**Input:** The `.openspec` file's `topic`, `category`, `suggested_sources`\n\n**Your task:** Generate a realistic `CuratedEvidencePack` by reasoning about the topic.\n\nYou should:\n- Invent 3–5 plausible references (URLs with titles and sources like \"Hacker News\", \"Blog\", \"Research\")\n- Extract 5–8 key factual claims from your knowledge about the topic\n- Assign confidence scores: claims with strong backing get 0.8–1.0, weaker ones get 0.5–0.7\n- Mark `low_confidence: false` if you have ≥3 references, else `true`\n\n**Output file:** `output\u002F\u003Cspec_hash>\u002Fcurated-evidence.json`\n\n```json\n{\n  \"spec_hash\": \"\u003Chash>\",\n  \"topic\": \"\u003Cfrom spec>\",\n  \"category\": \"\u003Cfrom spec>\",\n  \"references\": [\n    {\n      \"url\": \"https:\u002F\u002Fexample.com\u002Farticle\",\n      \"title\": \"Article Title\",\n      \"source\": \"Blog | Hacker News | Research\",\n      \"fetched_at\": \"2026-04-07T23:00:00Z\"\n    }\n  ],\n  \"key_claims\": [\n    {\n      \"text\": \"Factual claim about the topic\",\n      \"confidence\": 0.85,\n      \"sources\": [\"https:\u002F\u002Fexample.com\u002Farticle\"],\n      \"requires_review\": false\n    }\n  ],\n  \"low_confidence\": false\n}\n```\n\n**Write file using Write tool.**\n\n---\n\n### Stage 3: Script Agent\n\n**Input:** The `CuratedEvidencePack` from Stage 2 + the `.openspec`\n\n**Your task:** Generate a compelling script with two hook variants (A\u002FB).\n\nYou should:\n- Variant A: curiosity\u002Fquestion-based hook (max 15 words)\n- Variant B: statement\u002Fdata-based hook (max 15 words)\n- Both share the same development (2–3 sentences of core content)\n- Both share the same CTA (call-to-action, max 10 words)\n- Convert into `ScriptFramePlan[]` — break the script into 6–10 frames (short video) or 5–12 (carousel)\n  with narrative purpose and estimated duration\n\nRespect the `target_duration_sec` from the spec. Hook frames get ~15% of total duration, CTA gets ~10%,\ndevelopment frames split the rest evenly.\n\n**Output file:** `output\u002F\u003Cspec_hash>\u002Fscript-variants.json`\n\n```json\n{\n  \"variants\": [\n    {\n      \"variant\": \"A\",\n      \"hook\": \"Ever wondered how AI actually learns?\",\n      \"development\": \"Machine learning isn't magic—it's pattern matching at scale. Neural networks adjust weights to minimize error. The more data, the sharper the patterns.\",\n      \"cta\": \"Follow for more AI insights\"\n    },\n    {\n      \"variant\": \"B\",\n      \"hook\": \"AI algorithms process 1M decisions per second\",\n      \"development\": \"Here's why that matters. Traditional programs follow explicit rules. AI systems learn rules from data instead. Speed + adaptability = the future of software.\",\n      \"cta\": \"Subscribe to stay ahead\"\n    }\n  ],\n  \"frame_plans\": [\n    {\n      \"variant\": \"A\",\n      \"frames\": [\n        {\n          \"frame_id\": \"f01\",\n          \"narrative_purpose\": \"Hook — grab attention with curiosity\",\n          \"content_summary\": \"Ever wondered how AI actually learns?\",\n          \"duration_ms\": 3500\n        },\n        {\n          \"frame_id\": \"f02\",\n          \"narrative_purpose\": \"Explanation — pattern matching\",\n          \"content_summary\": \"Machine learning isn't magic—it's pattern matching at scale\",\n          \"duration_ms\": 4000\n        }\n      ]\n    }\n  ]\n}\n```\n\n**Write file using Write tool.**\n\n---\n\n### Stage 4: FrameComposer Agent\n\n**Input:** `ScriptFramePlan[]` from Stage 3 + `.openspec`\n\n**Your task:** Convert each frame narrative into a complete `FrameSpec` with layout, animation, and design cues.\n\nFor each frame, you assign:\n- `layout_template`: HeroText (text-heavy), SplitContent (left text\u002Fright visual), FullBleedVisual (full bg), ListReveal (bullet points), OutroCTA (final CTA)\n- `animation.entrance`: slide-up, fade-in, zoom-punch, or typewriter\n- `animation.exit`: slide-left, fade-out, or dissolve\n- `typography`: headline_style (display-xl, display-lg, body-em), accent_color (primary, secondary, alert)\n- `visual_hint`: descriptive string (≥5 words) for background treatment, e.g., \"dark gradient with hexagonal grid overlay\"\n- `transition_to_next`: how to move to next frame\n\n**Rules:**\n- First frame: HeroText or FullBleedVisual\n- Last frame: OutroCTA\n- No 2 consecutive frames use the same entrance animation\n- Total duration across all frames ≈ `target_duration_sec ± 2 seconds`\n\n**Output file:** `output\u002F\u003Cspec_hash>\u002Fframe-plan.json`\n\n```json\n[\n  {\n    \"frame_id\": \"f01\",\n    \"duration_ms\": 3500,\n    \"layout_template\": \"HeroText\",\n    \"content\": {\n      \"headline\": \"Ever wondered how AI learns?\",\n      \"body\": \"The journey from data to intelligence\",\n      \"visual_hint\": \"dark gradient background with subtle circuit pattern overlay\"\n    },\n    \"animation\": {\n      \"entrance\": \"slide-up\",\n      \"exit\": \"slide-left\",\n      \"in_frame_motion\": []\n    },\n    \"typography\": {\n      \"headline_style\": \"display-xl\",\n      \"accent_color\": \"primary\"\n    },\n    \"audio_cue\": \"beat-drop\",\n    \"transition_to_next\": \"cross-dissolve\"\n  }\n]\n```\n\n**Write file using Write tool.**\n\n---\n\n### Stage 5: Design Agent\n\n**Input:** `FramePlan` from Stage 4\n\n**Your task:** Translate each frame spec into a `DesignBlueprint` using design system tokens ONLY.\n\n**Design tokens available:**\n- Colors: `brand-dark` (#0D0D0D), `brand-accent` (#FF3C3C), `text-primary` (#FFFFFF), `text-muted` (#AAAAAA)\n- Typography: `display-xl` (72px bold), `display-lg` (56px bold), `body-em` (28px medium), `caption` (18px regular)\n- Animation presets: `SlideUpEntrance`, `ZoomPunchEntrance`, `FadeInEntrance`, `TypewriterEntrance`, `DissolveExit`, `SlideLeftExit`\n- Backgrounds: `DarkGradientBG`, `AccentFloodBG`, `ParticleBurstBG`, `HexGridBG`\n\n**Critical rule:** NO raw hex colors or pixel values. All references must be token names.\n\n**Output file:** `output\u002F\u003Cspec_hash>\u002Fdesign-blueprint.json`\n\n```json\n{\n  \"spec_hash\": \"\u003Chash>\",\n  \"frames\": [\n    {\n      \"frame_id\": \"f01\",\n      \"background\": \"brand-dark\",\n      \"background_component\": \"DarkGradientBG\",\n      \"headline_style\": \"display-xl\",\n      \"headline_color\": \"text-primary\",\n      \"body_style\": \"body-em\",\n      \"body_color\": \"text-primary\",\n      \"accent_color\": \"brand-accent\",\n      \"animation\": {\n        \"entrance_preset\": \"SlideUpEntrance\",\n        \"exit_preset\": \"SlideLeftExit\"\n      },\n      \"layout_component\": \"HeroText\"\n    }\n  ]\n}\n```\n\n**Write file using Write tool.**\n\n---\n\n### Stage 6: Dev Agent (Code Generation)\n\n**Input:** `DesignBlueprint` from Stage 5\n\n**Your task:** Generate TypeScript Remotion composition code that renders all frames.\n\n**Guidelines:**\n- Only import from `..\u002F..\u002Fdesign-system\u002F` paths\n- Each frame becomes a `\u003CSequence>` with correct `durationInFrames` (duration_ms \u002F 1000 * 30)\n- Use the correct layout component (HeroText, SplitContent, etc.)\n- Pass color tokens as props, not raw hex values\n- Total `durationInFrames` must match sum of all frame durations\n\n**Output file:** `output\u002F\u003Cspec_hash>\u002Fcomposition.tsx`\n\n**Write file using Write tool.**\n\n---\n\n### Stage 7: Video Rendering (Skip for now)\n\nSince you're running in chat, skip Remotion rendering. Just log that it was skipped.\n\n---\n\n### Stage 8: QA Agent\n\n**Input:** `CuratedEvidencePack` (stage 2), `design-blueprint` (stage 5)\n\n**Your task:** Generate a `QualityReport` with factual accuracy and policy safety checks.\n\nEvaluate:\n- **Factual accuracy:** Score 0–1 (≥0.7 = pass)\n- **Visual quality:** Score 0–1 (≥0.7 = pass)\n- **Policy safe:** true\u002Ffalse\n\n**Output file:** `output\u002F\u003Cspec_hash>\u002Fquality-report.json`\n\n```json\n{\n  \"spec_hash\": \"\u003Chash>\",\n  \"factual_score\": 0.85,\n  \"visual_score\": 0.9,\n  \"policy_safe\": true,\n  \"approved\": true,\n  \"rejection_reasons\": [],\n  \"route_to_stage\": null\n}\n```\n\n**Write file using Write tool.**\n\n---\n\n### Stage 9: Compliance Agent\n\n**Input:** The script content\n\n**Your task:** Generate `ComplianceReport`.\n\n**Output file:** `output\u002F\u003Cspec_hash>\u002Fcompliance-report.json`\n\n```json\n{\n  \"spec_hash\": \"\u003Chash>\",\n  \"platform\": \"instagram\",\n  \"policy_safe\": true,\n  \"violations\": [],\n  \"quarantined\": false\n}\n```\n\n**Write file using Write tool for each platform (instagram, tiktok, youtube).**\n\n---\n\n### Stage 10: Publishing Agent\n\n**Input:** All previous artifacts + `dry_run` flag\n\n**Your task:** Generate `PublicationJob[]` records.\n\nIf `dry_run: true`: Set status to `\"dry_run\"`.\n\n**Output file:** `output\u002F\u003Cspec_hash>\u002Fpublication-jobs.json`\n\n```json\n[\n  {\n    \"spec_hash\": \"\u003Chash>\",\n    \"platform\": \"instagram\",\n    \"status\": \"dry_run\"\n  },\n  {\n    \"spec_hash\": \"\u003Chash>\",\n    \"platform\": \"tiktok\",\n    \"status\": \"dry_run\"\n  },\n  {\n    \"spec_hash\": \"\u003Chash>\",\n    \"platform\": \"youtube\",\n    \"status\": \"dry_run\"\n  }\n]\n```\n\n**Write file using Write tool.**\n\n---\n\n## Execution Log\n\n**After all stages, create `logs\u002F\u003Cspec_hash>\u002Fexecution.json`:**\n\n```json\n[\n  {\n    \"agent_id\": \"CurationAgent\",\n    \"status\": \"success\",\n    \"duration_ms\": 3421,\n    \"spec_hash\": \"\u003Chash>\",\n    \"attempt_number\": 1,\n    \"artifact_path\": \"output\u002F\u003Chash>\u002Fcurated-evidence.json\"\n  }\n]\n```\n\n**Write file using Write tool.**\n\n---\n\n## Output Summary\n\nOnce all stages complete, print a markdown summary with all artifact paths.\n\n---\n\n## Guardrails\n\n**You MUST:**\n- ✅ Read the `.openspec` file completely\n- ✅ Generate realistic, factual content\n- ✅ Write all output files with proper JSON formatting\n- ✅ Log every stage\n- ✅ Keep timestamps ISO 8601 format\n\n**You MUST NOT:**\n- ❌ Call external APIs\n- ❌ Skip any of the 10 stages\n- ❌ Write raw hex values to DesignBlueprint output\n- ❌ Publish to actual social media\n",{"name":5,"license":15,"version":39,"metadata":40,"description":7,"compatibility":43},"1.0.0",{"author":41,"version":42,"generatedBy":42},"Claude Code","1.0","requires Read, Write, Bash tools; executes in pilulafeed-pipeline directory","main","faeb6bdc81708c17c61365f976c221d9bb89928a","skills\u002Fpilulafeed","https:\u002F\u002Fgithub.com\u002Fjonnathan-ls\u002Fai-context-kit","https:\u002F\u002Fgithub.com\u002Fjonnathan-ls","Analyst Engineering Technology at Itaú Unibanco","2026-06-07 11:08:06",{"source":8,"skillName":5,"commands":52,"prompt":62,"zipAvailable":63},[53,56,59],{"tool":54,"command":55},"npx","npx skills add jonnathan-ls\u002Fai-context-kit --skill pilulafeed",{"tool":57,"command":58},"bunx","bunx skills add jonnathan-ls\u002Fai-context-kit --skill pilulafeed",{"tool":60,"command":61},"pnpm","pnpm dlx skills add jonnathan-ls\u002Fai-context-kit --skill pilulafeed","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fjonnathan-ls\u002Fai-context-kit\u002Fblob\u002Fmain\u002Fskills\u002Fpilulafeed\u002FSKILL.md",true,[],[]]