[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79H4CD1X1SEYD1B014RVPTG":3,"skill-same:01M79H4CD1X1SEYD1B014RVPTG":58},{"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":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":38,"commitSha":39,"skillDirectory":40,"forksCount":14,"repositoryHtmlUrl":41,"repositoryHomepageUrl":6,"ownerHtmlUrl":42,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":43,"install":44,"resources":57},"01M79H4CD1X1SEYD1B014RVPTG","editorial-agent",null,"Published Article Editorial Agent — fires autonomously after every successful publish from the SEOArticleAgent pipeline. Reads the KV HTML, drives Composio's BROWSER_TOOL to load + scroll + screenshot the live catsluvus.com page, Kimi-audits body text AND screenshots vs a per-category editorial benchmark (default: NYT Wirecutter's best-automatic-cat-litter-box roundup), writes an EditorialReport JSON to `editorial-report:\u003CkvKey>` KV key, and when actionable findings exist rewrites the HTML (preserving all affiliate links and product-pick blocks) + writes back to KV — catsluvus.com reads KV so this is a republish. No human trigger — the skill is wired into the publish success block and runs via `ctx.waitUntil` so it does not block the next-keyword loop.","techfundoffice\u002Fcats-seo-aiagent-staging","techfundoffice","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F126924774?v=4","01M79H21RC6Q3Z0J8CJF93G9QS","Tech Fund Office","01M79H21SG98NFMESB2ADDWZER",0,"MIT","https:\u002F\u002Fgithub.com\u002Ftechfundoffice\u002Fcats-seo-aiagent-staging\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Feditorial-agent\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: editorial-agent\ndescription: >\n  Published Article Editorial Agent — fires autonomously after every\n  successful publish from the SEOArticleAgent pipeline. Reads the KV\n  HTML, drives Composio's BROWSER_TOOL to load + scroll + screenshot\n  the live catsluvus.com page, Kimi-audits body text AND screenshots\n  vs a per-category editorial benchmark (default: NYT Wirecutter's\n  best-automatic-cat-litter-box roundup), writes an EditorialReport\n  JSON to `editorial-report:\u003CkvKey>` KV key, and when actionable\n  findings exist rewrites the HTML (preserving all affiliate links\n  and product-pick blocks) + writes back to KV — catsluvus.com reads\n  KV so this is a republish. No human trigger — the skill is wired\n  into the publish success block and runs via `ctx.waitUntil` so it\n  does not block the next-keyword loop.\nmetadata:\n  author: cats-seo-aiagent\n  version: \"2.0\"\ntriggers:\n  - editorial audit\n  - published article review\n  - post-publish audit\n  - wireframe comparison\n  - editorial-agent\n  - rewrite-and-republish\nincludes:\n  - src\u002Fpipeline\u002Feditorial-agent.ts\n  - src\u002Fpipeline\u002Fwireframe-ingest.ts\n  - src\u002Fserver.ts\n---\n\n# Changelog\n\n- v2.1: A\u002FB split-test ready. The rewrite step now writes to `${kvKey}-b` (variant B) instead of overwriting the original. Variant A (the original `kvKey`) stays live at catsluvus.com. A separate downstream split-tester agent compares A vs B on SEO\u002Fquality\u002Ftraffic metrics and swaps the winner into the live slot — the Editorial Agent never touches the live article directly. `EditorialReport.variantBKey` exposes the B-variant KV key for the split-tester.\n- v2.0: Reference URL is now ingested as an abstract WIREFRAME (pattern types, methodology shape, evaluation criteria, structural presence flags) via `FIRECRAWL_EXTRACT` + DataForSEO on-page summary. Raw HTML\u002Fmarkdown persist in R2 for provenance only; prompts never see source prose. Enforces no-prices Amazon Associates compliance (regex reject + hard prompt rule). Cached 7d in KV, indexed in DO SQLite `wireframe_documents` \u002F `wireframe_chunks`.\n- v1.0: Initial URL-as-string prompt injection.\n\n---\n\n# Published Article Editorial Agent\n\nAutonomous post-publish editorial loop. Runs AFTER a keyword lands on\n`status='completed'` and the `Published:` log line fires (see\n`src\u002Fserver.ts`, inside the `result.success` block right after\n`articlesGenerated++`). Uses the Cloudflare Agents SDK `ctx.waitUntil`\nto keep the pipeline loop unblocked while the 4-step audit runs\n~1–3 min per article.\n\n## 4 steps\n\n1. **Read + text audit.** `envBindings.ARTICLES_KV.get(kvKey)` → strip\n   HTML → Kimi JSON-audit the body vs the reference URL. Returns\n   `missingSections`, `weaknessesVsReference`, `factualRisks`,\n   `toneIssues` arrays.\n\n2. **Browser screenshots.** Calls `executeComposioTool(\n\"BROWSER_TOOL_CREATE_TASK\", { startUrl, task })` asking the agent\n   to load, scroll, full-page screenshot, return rendered text. Polls\n   `BROWSER_TOOL_WATCH_TASK` every 5 s up to 3 min. Extracts\n   screenshot URLs from the nested output.\n\n3. **Visual audit + merged report.** Kimi JSON-audits screenshot URLs\n   plus the reference URL → `layoutIssues`, `densityIssues`,\n   `ctaIssues`. Merges with step-1 into `EditorialReport`, writes to\n   KV `editorial-report:\u003CkvKey>` with 14-day TTL.\n\n4. **Apply fixes + republish.** If `applyFix=true` (default) and\n   `actionableFixes > 0`, Kimi rewrites the article HTML preserving\n   every `\u003Ca>`, `\u003Cimg>`, and top-pick block; length gate at 80% of\n   original; writes revised HTML back to `ARTICLES_KV[kvKey]` →\n   live on catsluvus.com via the existing KV-backed render path.\n\n## Per-category reference URLs\n\n`pickEditorialReferenceUrl(categorySlug)` in `src\u002Fserver.ts` maps\ncategory slugs to NYT Wirecutter URLs (`litter-boxes`,\n`water-fountains`). Fallback default:\n`https:\u002F\u002Fwww.nytimes.com\u002Fwirecutter\u002Freviews\u002Fbest-automatic-cat-litter-box\u002F`.\n\nAdd a new category → reference URL mapping by editing the\n`EDITORIAL_REFERENCE_URLS` object in `src\u002Fserver.ts`.\n\n## Activity surface\n\nEvery step logs to the activity feed under role `editorialAgent`\n(offset 20 in `activityLogSheetColumns.ts`, column AV on the Google\nSheet mirror). The dashboard's `EditorialAgentPanel` (a scrollable\n360 px `\u003Cdetails>` block in `src\u002Fapp.tsx`) streams these live and\nmirrors the Repo Agent \u002F Coding Agent panel layout.\n\n## Admin debug endpoints\n\n`POST \u002Fapi\u002Fadmin\u002Feditorial-review` with `{ kvKey, referenceUrl?,\napplyFix? }` forces a run against any already-published kvKey —\nused for debugging or re-auditing without waiting for a fresh\npublish. `GET \u002Fapi\u002Fadmin\u002Feditorial-report\u002F\u003CkvKey>` returns the\nlatest persisted `EditorialReport` JSON.\n\n## Guardrails\n\n- The rewrite step refuses output shorter than 80% of the original\n  (prevents truncation regressions).\n- Rewrite also must contain at least one of `\u003Carticle|\u003Csection|\u003Cdiv|\u003Cp|\u003Ch[1-6]` to survive an HTML sanity check.\n- On any step failure the original KV value is left untouched.\n- Dedup\u002Fretry lives upstream: the publish block only fires the\n  Editorial Agent when `result.kvKey` is defined, so skipped-publish\n  (`seoScore=0 && wordCount=0`) rows never trigger.\n\n## Related skills\n\n- `design-audit` — visual QC run BEFORE publish (Step 11.5), uses\n  Cloudflare Browser Rendering + Claude vision. The Editorial\n  Agent is its post-publish counterpart: broader scope (text +\n  visuals + rewrite + republish) with longer wall-clock budget.\n- `cloudflare-browser-rendering` — alternative screenshot path we\n  use inside the Worker; Editorial Agent delegates to Composio\n  instead so the browser session gets a residential IP + proper\n  JS-heavy rendering that our first-party Browser Rendering\n  occasionally can't complete within DO CPU limits.\n","# Changelog\n\n- v2.1: A\u002FB split-test ready. The rewrite step now writes to `${kvKey}-b` (variant B) instead of overwriting the original. Variant A (the original `kvKey`) stays live at catsluvus.com. A separate downstream split-tester agent compares A vs B on SEO\u002Fquality\u002Ftraffic metrics and swaps the winner into the live slot — the Editorial Agent never touches the live article directly. `EditorialReport.variantBKey` exposes the B-variant KV key for the split-tester.\n- v2.0: Reference URL is now ingested as an abstract WIREFRAME (pattern types, methodology shape, evaluation criteria, structural presence flags) via `FIRECRAWL_EXTRACT` + DataForSEO on-page summary. Raw HTML\u002Fmarkdown persist in R2 for provenance only; prompts never see source prose. Enforces no-prices Amazon Associates compliance (regex reject + hard prompt rule). Cached 7d in KV, indexed in DO SQLite `wireframe_documents` \u002F `wireframe_chunks`.\n- v1.0: Initial URL-as-string prompt injection.\n\n---\n\n# Published Article Editorial Agent\n\nAutonomous post-publish editorial loop. Runs AFTER a keyword lands on\n`status='completed'` and the `Published:` log line fires (see\n`src\u002Fserver.ts`, inside the `result.success` block right after\n`articlesGenerated++`). Uses the Cloudflare Agents SDK `ctx.waitUntil`\nto keep the pipeline loop unblocked while the 4-step audit runs\n~1–3 min per article.\n\n## 4 steps\n\n1. **Read + text audit.** `envBindings.ARTICLES_KV.get(kvKey)` → strip\n   HTML → Kimi JSON-audit the body vs the reference URL. Returns\n   `missingSections`, `weaknessesVsReference`, `factualRisks`,\n   `toneIssues` arrays.\n\n2. **Browser screenshots.** Calls `executeComposioTool(\n\"BROWSER_TOOL_CREATE_TASK\", { startUrl, task })` asking the agent\n   to load, scroll, full-page screenshot, return rendered text. Polls\n   `BROWSER_TOOL_WATCH_TASK` every 5 s up to 3 min. Extracts\n   screenshot URLs from the nested output.\n\n3. **Visual audit + merged report.** Kimi JSON-audits screenshot URLs\n   plus the reference URL → `layoutIssues`, `densityIssues`,\n   `ctaIssues`. Merges with step-1 into `EditorialReport`, writes to\n   KV `editorial-report:\u003CkvKey>` with 14-day TTL.\n\n4. **Apply fixes + republish.** If `applyFix=true` (default) and\n   `actionableFixes > 0`, Kimi rewrites the article HTML preserving\n   every `\u003Ca>`, `\u003Cimg>`, and top-pick block; length gate at 80% of\n   original; writes revised HTML back to `ARTICLES_KV[kvKey]` →\n   live on catsluvus.com via the existing KV-backed render path.\n\n## Per-category reference URLs\n\n`pickEditorialReferenceUrl(categorySlug)` in `src\u002Fserver.ts` maps\ncategory slugs to NYT Wirecutter URLs (`litter-boxes`,\n`water-fountains`). Fallback default:\n`https:\u002F\u002Fwww.nytimes.com\u002Fwirecutter\u002Freviews\u002Fbest-automatic-cat-litter-box\u002F`.\n\nAdd a new category → reference URL mapping by editing the\n`EDITORIAL_REFERENCE_URLS` object in `src\u002Fserver.ts`.\n\n## Activity surface\n\nEvery step logs to the activity feed under role `editorialAgent`\n(offset 20 in `activityLogSheetColumns.ts`, column AV on the Google\nSheet mirror). The dashboard's `EditorialAgentPanel` (a scrollable\n360 px `\u003Cdetails>` block in `src\u002Fapp.tsx`) streams these live and\nmirrors the Repo Agent \u002F Coding Agent panel layout.\n\n## Admin debug endpoints\n\n`POST \u002Fapi\u002Fadmin\u002Feditorial-review` with `{ kvKey, referenceUrl?,\napplyFix? }` forces a run against any already-published kvKey —\nused for debugging or re-auditing without waiting for a fresh\npublish. `GET \u002Fapi\u002Fadmin\u002Feditorial-report\u002F\u003CkvKey>` returns the\nlatest persisted `EditorialReport` JSON.\n\n## Guardrails\n\n- The rewrite step refuses output shorter than 80% of the original\n  (prevents truncation regressions).\n- Rewrite also must contain at least one of `\u003Carticle|\u003Csection|\u003Cdiv|\u003Cp|\u003Ch[1-6]` to survive an HTML sanity check.\n- On any step failure the original KV value is left untouched.\n- Dedup\u002Fretry lives upstream: the publish block only fires the\n  Editorial Agent when `result.kvKey` is defined, so skipped-publish\n  (`seoScore=0 && wordCount=0`) rows never trigger.\n\n## Related skills\n\n- `design-audit` — visual QC run BEFORE publish (Step 11.5), uses\n  Cloudflare Browser Rendering + Claude vision. The Editorial\n  Agent is its post-publish counterpart: broader scope (text +\n  visuals + rewrite + republish) with longer wall-clock budget.\n- `cloudflare-browser-rendering` — alternative screenshot path we\n  use inside the Worker; Editorial Agent delegates to Composio\n  instead so the browser session gets a residential IP + proper\n  JS-heavy rendering that our first-party Browser Rendering\n  occasionally can't complete within DO CPU limits.\n",{"name":5,"includes":24,"metadata":28,"triggers":31,"description":37},[25,26,27],"src\u002Fpipeline\u002Feditorial-agent.ts","src\u002Fpipeline\u002Fwireframe-ingest.ts","src\u002Fserver.ts",{"author":29,"version":30},"cats-seo-aiagent","2.0",[32,33,34,35,5,36],"editorial audit","published article review","post-publish audit","wireframe comparison","rewrite-and-republish","Published Article Editorial Agent — fires autonomously after every successful publish from the SEOArticleAgent pipeline. Reads the KV HTML, drives Composio's BROWSER_TOOL to load + scroll + screenshot the live catsluvus.com page, Kimi-audits body text AND screenshots vs a per-category editorial benchmark (default: NYT Wirecutter's best-automatic-cat-litter-box roundup), writes an EditorialReport JSON to `editorial-report:\u003CkvKey>` KV key, and when actionable findings exist rewrites the HTML (preserving all affiliate links and product-pick blocks) + writes back to KV — catsluvus.com reads KV so this is a republish. No human trigger — the skill is wired into the publish success block and runs via `ctx.waitUntil` so it does not block the next-keyword loop.\n","main","fbc41f295d57d2444b6ca14ba9a8aa29f3e1e03a",".claude\u002Fskills\u002Feditorial-agent","https:\u002F\u002Fgithub.com\u002Ftechfundoffice\u002Fcats-seo-aiagent-staging","https:\u002F\u002Fgithub.com\u002Ftechfundoffice","2026-09-25 00:35:15",{"source":8,"skillName":5,"commands":45,"prompt":55,"zipAvailable":56},[46,49,52],{"tool":47,"command":48},"npx","npx skills add techfundoffice\u002Fcats-seo-aiagent-staging --skill editorial-agent",{"tool":50,"command":51},"bunx","bunx skills add techfundoffice\u002Fcats-seo-aiagent-staging --skill editorial-agent",{"tool":53,"command":54},"pnpm","pnpm dlx skills add techfundoffice\u002Fcats-seo-aiagent-staging --skill editorial-agent","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Ftechfundoffice\u002Fcats-seo-aiagent-staging\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Feditorial-agent\u002FSKILL.md",true,[],[59,66,73,80,87,94],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M79H683G6C3HEH7NEDFC9XBT","web-html","HTML5: semantic markup, ARIA\u002FWCAG accessibility, forms, Web Components, Shadow DOM, SEO","https:\u002F\u002Fgithub.com\u002Ftechfundoffice\u002Fcats-seo-aiagent-staging\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fweb-html\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M79H5YA5HAYBHHXXHP4G7ZWW","seo-optimizer","This skill should be used when analyzing HTML\u002FCSS websites for SEO optimization, fixing SEO issues, generating SEO reports, or implementing SEO best practices. Use when the user requests SEO audits, optimization, meta tag improvements, schema markup implementation, sitemap generation, or general search engine optimization tasks.","https:\u002F\u002Fgithub.com\u002Ftechfundoffice\u002Fcats-seo-aiagent-staging\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fseo-optimizer\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M79H5PG74T9DYY87XNAMKV2Q","review-skill","Review and improve AI agent skills (SKILL.md files) against best practices from the Agent Skills specification and Anthropic's authoring guidelines. Scores skills on 10 quality dimensions, identifies specific issues, and rewrites problem areas. Use when creating, editing, auditing, or improving agent skills. Triggers on: review skill, improve skill, audit SKILL.md, check skill quality, skill best practices, optimize skill description.","https:\u002F\u002Fgithub.com\u002Ftechfundoffice\u002Fcats-seo-aiagent-staging\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Freview-skill\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M79H5EWWDSXDAAF6QQPN6SNE","prompt-engineer","Expert in designing effective prompts for LLM-powered applications. Masters prompt structure, context management, output formatting, and prompt evaluation. Use when: prompt engineering, system prompt, few-shot, chain of thought, prompt design.","https:\u002F\u002Fgithub.com\u002Ftechfundoffice\u002Fcats-seo-aiagent-staging\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fprompt-engineer\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M79H5B20E94XXTCY2P8C64EN","product-pick-blurb","Editorial template for \"Our Top Picks\" product blurbs on catsluvus.com articles. Use when tuning the writer prompt that emits pickReasons, when explaining why every blurb ends with \"Why we like this pick:\", or when auditing published articles for blurb consistency.","https:\u002F\u002Fgithub.com\u002Ftechfundoffice\u002Fcats-seo-aiagent-staging\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fproduct-pick-blurb\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":98,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":19},"01M79H51B12TSYTE95BT4ZQ2ZC","meta-tags-optimizer","This skill should be used when the user asks to \"optimize title tag\", \"write meta description\", \"improve CTR\", \"Open Graph tags\", \"social media preview\", \"my title tag needs work\", \"low click-through rate\", \"fix my meta tags\", or \"OG tags not showing\". Creates and optimizes meta tags including title tags, meta descriptions, Open Graph tags, and Twitter cards for maximum click-through rates and social sharing engagement. For a broader on-page audit, see on-page-seo-auditor. For structured data markup, see schema-markup-generator.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Ftechfundoffice\u002Fcats-seo-aiagent-staging\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fmeta-tags-optimizer\u002FSKILL.md",[],[]]