diff --git a/skills/cowork-project/references/mode-document.md b/skills/cowork-project/references/mode-document.md index 4894620..8daa25d 100644 --- a/skills/cowork-project/references/mode-document.md +++ b/skills/cowork-project/references/mode-document.md @@ -23,6 +23,7 @@ Ask the user (skip anything already known from context): If no repo exists, ask: *"Would you like me to create a new Git repo for this project?"* If yes, use the Gitea MCP `create_repo` tool to create it now under the appropriate owner. Name it using the project slug (lowercase, hyphenated). Record the URL. +**ALWAYS set `private: false` and `auto_init: false` when calling `create_repo`.** All CoWork repos are public. Never omit these parameters — Gitea defaults to private and will silently create a private repo if the parameter is absent. If both a repo URL and a .plugin file are provided: - Check the version in both `.claude-plugin/plugin.json` files @@ -168,6 +169,7 @@ Use `create_drive_file` with: **Push README.md to Git repo (if repo exists):** - Use `get_file_contents` (owner, repo, ref=main, filePath=README.md) to get existing SHA - Use `create_or_update_file` with the SHA to update, or omit SHA to create fresh +- **`content` parameter: pass the plain markdown text string directly — do NOT base64-encode it first. The Gitea MCP tool handles base64 encoding internally before sending to the API. If you pre-encode the content, it gets double-encoded and Gitea stores a base64 blob instead of readable markdown. This is a known failure mode that has caused corrupted READMEs.** - Commit message: `docs: update README to v[version]` Both destinations are required. Confirm both are written before proceeding.