cf-cowork-setup
Skill30 starsChanged 6 months agoMITView on GitHub
One-shot setup that wires ContentForge for team usage in Anthropic Cowork — verifies the Cowork sandbox environment, checks a Google Drive MCP is connected, creates the canonical Drive folder layout (_brands/, _runs/), and persists the team's routing config so .docx outputs, brand profiles, and checkpoints land in shared Drive instead of the ephemeral sandbox. Triggers on \"/contentforge:cf-cowork-setup\", \"set up ContentForge in Cowork\", \"our files aren't landing in Drive\", \"wire outputs to our shared Drive\", \"first-time Cowork install\". Runs scripts/plugin-metadata.py for environment detection, writes config via scripts/drive-sync-state.py, and can chain into /contentforge:brand-setup with --brand. Setup only — it does not migrate existing local brands and changes nothing in local Claude Code.
1 other project uses a version of this.
Adopted by
Most recently taken up by
- teachskillofskills-ai/ContentForge-techshuword for word, first seen May 24, 2026
Other versions1 project uses a version of this.
Word for word · 1
- teachskillofskills-ai/ContentForge-techshu★ 1100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository22 other files it gives its agents.
- AGENTS.mdAGENTS.md
- batch-processSkill
- cf-add-integrationSkill
- cf-aeo-checkSkill
- cf-analyticsSkill
- cf-auditSkill
- cf-briefSkill
- cf-calendarSkill
- cf-connectSkill
- cf-environmentSkill
- cf-helpSkill
- cf-integrationsSkill
- cf-publishSkill
- cf-social-adaptSkill
- cf-style-guideSkill
- cf-switch-backendSkill
- cf-templateSkill
- cf-translateSkill
- cf-variantsSkill
- cf-video-scriptSkill
- contentforgeSkill
- content-refreshSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 5 are distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 36
Don't run the rest of this skill.
- Distinctive: line 52
If NO Drive MCP is found: stop the wizard with a clear message:
- Very specific: line 65
Default folder name: ContentForge (under "My Drive" or wherever the user prefers).
- Distinctive: line 67
Use the Drive MCP to:
- Very specific: line 69
Search for a top-level folder named ContentForge (or the user's --drive-root)
- Distinctive: line 70
If it exists, confirm the user wants to use it.
- Distinctive: line 71
If it doesn't exist, create it.
- Very specific: line 86
Don't create empty brand subfolders yet — those are auto-created by the output-manager agent during the first content run for that brand.
- Very specific: line 90
Multi-team isolation: ask the user "what's your team's Drive root folder name?" (default: ContentForge).
- Very specific: line 148
If --brand <name> was passed, automatically launch /contentforge:brand-setup "<name>" after the summary.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
/contentforge:cf-cowork-setup
The one-time setup that makes ContentForge usable in Cowork by a team. Wires up the Cowork → Drive routing so generated .docx files, brand profiles, and run records actually persist somewhere the team can reach.
Why this skill exists
Cowork is the most user-friendly Anthropic surface for non-CLI users — marketers, content teams, agency staff. The natural team workflow is "everyone uses Cowork; outputs live in our shared Google Drive". But ContentForge's filesystem layer was originally designed for local Claude Code (writes to ~/Documents/ContentForge/ on the host). In Cowork that path is the Linux sandbox — gone at session end, invisible to the team.
v3.12.9 fixed this with environment-aware routing: when Cowork is detected AND a Drive MCP is configured, the output-manager agent uploads to Drive instead. This skill is the one-shot setup that ensures both conditions are true before you start producing real content.
Behavior
Step 1 — Verify Cowork environment
python scripts/plugin-metadata.py --section environmentParse the JSON. Four branches:
environment == "cowork-sandbox" — Proceed to Step 2.
environment == "linux-sandbox-uncertain" — Detection found only weak signals (e.g., a container marker plus a Docker-style username), not a confirmed Cowork session marker. Tell the user: "Sandbox detection was uncertain — proceeding with Cowork setup to be safe. If this isn't actually Cowork, the Drive-MCP check in the next step will make that clear (no Drive MCP will be found) and you can skip the rest." Then proceed to Step 2 exactly as the cowork-sandbox branch does.
environment == "claude-code-windows" / "-mac" / "-linux" — Tell the user:
"You're running in local Claude Code, not Cowork. The Cowork-specific Drive routing isn't needed here — your files will land in
~/Documents/ContentForge/<brand>/on your host as designed. If you ALSO want Drive backups for team sharing, run/contentforge:brand-setupand pick the Google Sheets + Drive backend."
Don't run the rest of this skill.
environment == "unknown" — Show the indicators from the JSON and ask the user where they're running, then proceed assuming Cowork (since unknown-from-Cowork is most likely).
Step 2 — Verify a Drive MCP is connected
Scan your available tools for any Google Drive MCP. Common signatures:
mcp__<id>__create_file,mcp__<id>__read_file_content,mcp__<id>__search_files,mcp__<id>__list_folder_items— Anthropic-platform Drive integration (Settings → Integrations → Google Drive in Cowork)mcp__pipedream-google-drive__*— Pipedream aggregatormcp__composio-google-drive__*— Composiomcp__zapier-google-drive__*— Zapier- Any tool whose name combines "drive" with "create" / "upload" / "search"
If a Drive MCP is found: confirm to the user which one ("Found: Anthropic platform Google Drive integration. I'll use this.") and proceed to Step 3.
If NO Drive MCP is found: stop the wizard with a clear message:
"Cowork-mode ContentForge needs a Google Drive integration before it can save files anywhere your team can reach. Easiest setup (60 seconds):
- In Cowork, click your profile menu → Settings → Integrations
- Find Google Drive in the list → click Connect
- Sign in with the Google account that owns your team's shared Drive
- Come back here and re-run
/contentforge:cf-cowork-setupAlternative for teams that prefer Pipedream / Composio / Zapier: add the relevant connector via
/contentforge:cf-add-integrationand re-run."
Step 3 — Verify or create the canonical Drive folder
Default folder name: ContentForge (under "My Drive" or wherever the user prefers). If --drive-root <name> was passed, use that instead.
Use the Drive MCP to:
- Search for a top-level folder named
ContentForge(or the user's--drive-root) - If it exists, confirm the user wants to use it. Show its URL.
- If it doesn't exist, create it. Show the URL of the new folder.
Then create the subfolder skeleton:
ContentForge/
├── _brands/ <-- brand-profile JSONs persist here per brand
├── _runs/ <-- per-run checkpoints (resume across sessions)
└── (brand folders created on first content run)
└── <brand name>/
└── <content type>/
└── <YYYY-MM>/
└── <slug>.docxDon't create empty brand subfolders yet — those are auto-created by the output-manager agent during the first content run for that brand. Just _brands/ and _runs/ need to exist.
Step 4 — Store the Drive root reference + team namespace (v3.12.10)
Multi-team isolation: ask the user "what's your team's Drive root folder name?" (default: ContentForge). Different teams use different folder names → automatic namespace isolation. Examples:
- Solo / small team:
ContentForge(default) - Agency named "ACME":
ACME ContentForge - Two distinct teams sharing one Drive: each picks their own name
Then write the config via the canonical script (NOT a hand-written JSON file — use the script so the format stays in sync with the rest of the toolchain):
python scripts/drive-sync-state.py --action write-config --data '{
"environment": "cowork-sandbox",
"drive_root_folder_name": "<team folder name chosen>",
"drive_root_folder_id": "<id from Step 3>",
"drive_root_folder_url": "<webViewLink from Step 3>",
"drive_mcp_tool_prefix": "<prefix detected in Step 2, e.g. mcp__abc123__>"
}'The script writes to ~/.claude-marketing/_cowork-config.json and adds a configured_at timestamp automatically.
Future Cowork sessions: every ContentForge operation (brand-setup, create-content, resume, etc.) reads this config first. If it exists AND the Drive folder still exists, all I/O routes to that root. If a different team picked a different folder name, their config lives at the same path but points elsewhere — no collision.
To verify it was written correctly:
python scripts/drive-sync-state.py --action read-configStep 5 — Set the user's expectations
Show a clean summary:
ContentForge is now wired for Cowork team usage:
Environment: Cowork sandbox (Linux)
Drive integration: <name>
Output root in Drive: My Drive/<folder name> (link)
Config saved at: ~/.claude-marketing/_cowork-config.json
What this means in practice:
- /contentforge:create-content -> final .docx lands in
Drive/<folder>/{brand}/{content_type}/{YYYY-MM}/{slug}.docx
- /contentforge:brand-setup -> brand profile JSON lands in
Drive/<folder>/{brand}/Brand-Guidelines/{Brand}-brand-profile.json
(persists across sessions; this is the layout
`drive-uploader.py --action verify-structure` checks, alongside the
Guardrails/ and Reference-Content/ subfolders)
- /contentforge:resume -> checkpoint files in
Drive/<folder>/_runs/{run-id}/ (works across sessions / browser tabs)
- Your team accesses everything via Google Drive directly -- no
Cowork-specific paths to remember.
Next step:
/contentforge:brand-setup "Your Brand Name"Step 6 — Optional: kick off a brand setup
If --brand <name> was passed, automatically launch /contentforge:brand-setup "<name>" after the summary. This makes the very first run "one command, fully set up."
What this skill does NOT do
- It does not change ContentForge's behavior in local Claude Code (where host filesystem is fine).
- It does not migrate existing local-mode brands to Drive. To do that after the fact: re-run
/contentforge:brand-setup "<brand>"in Cowork after this skill finishes. - It does not create a service-account JSON. Cowork-mode uses the MCP path exclusively (simpler, no Google Cloud setup).
- It does not check whether your Drive has enough space. (Cowork-typical content runs produce 50KB-2MB per .docx, so this is rarely a concern, but flag it if you hit a quota error during a real run.)
See also
/contentforge:cf-environment— runtime capability matrix (use to confirm Cowork+Drive is detected after setup)/contentforge:brand-setup— actual brand setup (now Drive-default in Cowork)scripts/plugin-metadata.py --section environment— the underlying probe- README "Cross-platform compatibility" section — canonical doc for which surface to use
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

