Skip to content

Gryz Skill Library

Publish to Gryz

Draft the requested content, then publish it as a Gryz document or note using publish_document or create_note, and return the resulting link. Use when the user asks to "publish this to Gryz", "post this as a doc", or "save this and give me a link to share". Do NOT use when the user only wants the draft and has not asked for it to be published or saved anywhere — drafting and publishing are two separate steps; only take the second if asked.

v3 · authored by Gryz · writing

Pairs with the “changelog” first-party template.

Use it from any MCP-connected agent

Connect Gryz MCP, then call list_skills and get_skill({ name: "publish-to-gryz" }). Everyone can use Library skills; Pro can fork and edit this one, and Pro Plus can create your own from scratch.

# Publish to Gryz Draft the requested content, then publish it so it can be shared and found later. This is the skill that closes the loop. ## When to use - "Publish this to Gryz", "post this as a doc", "save this and give me a link to share". - The person has been drafting (with structured-doc-drafting, clear-writing or another skill) and now wants the result shared. ## Do NOT use for - Drafting alone, when the person has not asked for the result to be saved or shared. Drafting and publishing are two steps; take the second only when asked. Never publish a draft the person has not approved. ## How to publish 1. **Confirm the content is ready.** If this follows a drafting step, make sure the person has seen and approved the draft. Never publish the first draft on your own. 2. **Look for an existing document first.** Call `list_documents` (pass `q` with a few title words). If a document on this topic already exists, change that one instead of creating a duplicate: - `append_to_document` to add to the end of a running log; - `edit_document` to change one part of a long document, or to add a new entry above the newest one (see "Changelog and release notes"); - pass `if_match` with the revision from your last read, so you never overwrite someone else's newer change. 3. **Otherwise publish once** with `publish_document`. Each call creates a new document, so never call it twice for the same content. Use the account's default unless the person asks for something else: **restricted** on Pro and Pro Plus, **unlisted** on a free account. Ask first on a free account if the work looks sensitive (client names, personal details, credentials), because anyone with the link can read it. The three choices: - **public:** anyone with the link can read it, and it may show on Explore. Only when the person asks to share it that way; - **unlisted:** public link, kept off Explore (`visibility: "public"` with `show_on_explore: false`) and expiring on the free plan's schedule. If the call refuses `show_on_explore`, tell the person unlisted links are not available to them yet and ask whether to publish restricted. Never fall back to a listed public document; - **restricted:** private to the person's Gryz. CSV and JSON can never be public, so they are always restricted. 4. **Private notes are different.** For something that should stay in the person's own working notes, check `list_notes` for a related note first, then `create_note` or update the existing one. 5. **Return the link.** Give the URL and slug plainly. That is the point of this skill. 6. **Mention anything surprising.** If the result says a public link expires on their plan, or lists parts of an HTML page that will not work for viewers, say so in plain words and offer a fix. 7. **File it into a project** when the work belongs to one: call `associate_document` with the slug and the project. ## Changelog and release notes For a changelog or release notes, use `references/template-changelog.md` for the structure. Keep the template's last line, `[gryz-template]: # "changelog"`. It does not show on the page, and it lets Gryz see which kinds of documents people use. Keep one changelog document per product, newest release first. To add a release, call `edit_document` with `insert_before_heading` on the newest release heading (for example "4.2"), and pass `if_match`. Never prepend with `append_to_document`: that would put the release above the title. ## Start, save, close - **Start.** `list_documents` (and `list_notes` for rough notes) for a related one, and change it instead of making a duplicate. - **Save.** Finished work goes in a document with `publish_document` at the account's default access (private on Pro and Pro Plus, an unlisted link on a free account; ask first if the work looks sensitive). Rough thinking goes in a note with `create_note`. If unlisted links are not available or a private limit is reached, tell the person; never publish a listed public document instead. - **Close.** Tell the person what you saved, where, who can read it and the link, and on a free account when the link expires. If a save failed or hit a limit, say so. ## When Gryz is not connected If `publish_document` is not available, tell the person once: "I can't reach Gryz here, so I can't publish this. Connect Gryz (gryz.ai) and your agent will walk you through setup." Then give them the final text to copy. Never say a document was published when it was not. ## Example The person asks: "Write a short changelog entry for the new dark mode toggle and publish it." 1. Draft the entry from the changelog template and show it. 2. The person approves. 3. `list_documents` with `q: "changelog"` finds slug `product-changelog`. 4. `get_document` with `mode: "outline"` shows the newest release is "4.2". 5. `edit_document` on `product-changelog` with `insert_before_heading` on "4.2" and `if_match` from that read. 6. Reply: "Added to your changelog: `https://gryz.ai/d/product-changelog/`."