Skip to content

uplika/uplika-plugin / skills/naver-drafts

naver-drafts

Verified

List Naver Blog drafts and publish one as-is, or rewrite a published post at the same URL. 임시저장 글.

Naver drafts

Naver Blog drafts (임시저장 글) and edits to published posts. There are three different jobs here; find out which one the person means before calling anything:

The person wantsToolWhat happens
A draft in Naver's draft box published exactly as it is therepublish_naver_draftThe extension opens that draft in Naver's editor and presses publish, so edits made by hand in Naver are kept
Uplika's own copy of a draft it saved with options.naver_blog.draftOnly published insteadupdate_postUplika's text goes out as a new post with its own URL, and the old draft leaves the box
A post that is already published changedupdate_postThe post is rewritten in place, at the same URL

Before anything

  1. Call bridge_status. The Uplika extension in the person's Chrome reads the draft box, reads posts written in Naver's editor and writes the posts. If state is not online, relay userMessage word for word. With a terminal on the same computer, show the wake command for their system and run it only if they say yes; without one, ask them to open Chrome. Listing drafts and reading a post need it online, so wait until the person says Chrome is open.
  2. If any call answers workspace_required, show the workspaces it lists, ask which one, and pass workspaceId from then on.

Publish a draft as it is

  1. Call list_naver_drafts (pass accountId to limit it to one blog). Each draft has its logNo, its title and when it was last saved, newest first. Drafts saved through Uplika and drafts the person saved by hand in Naver both appear.
  2. Show the drafts (title and when each was last saved) and let the person pick one. The list does not show a draft's category, tags or visibility, so do not claim to know them:
    • A draft saved through Uplika with options.naver_blog.draftOnly keeps the category and visibility that post asked for if the person's Uplika extension was 0.7.54 or newer when it was saved, and its tags from 0.7.52. With an older extension, or when the post asked for none, it has the blog's default category and visibility and that post's result warning said what was left off; ask for them and pass them, reading the categories from list_accounts (naverBlog.categories). Anything you do not pass stays as the draft has it. Pass tags only to change them: a list you pass replaces the draft's tags.
    • A draft saved by hand keeps whatever Naver stored with it, which Uplika cannot see. Ask whether to leave those as they are or to set the category, tags or visibility explicitly.
    • A draft left behind by a failed publish is not the finished post. If an earlier failure said "A half-finished Naver draft may have been left", do not publish that draft: send the original post again with retry_post and ask the person to delete the draft in Naver.
  3. Publish only after the person approves. Call publish_naver_draft with the logNo, plus title, categoryId (or category by name), tags or openType only for what they want changed, and wait: true. Do not send content: the text is whatever is in Naver.
  4. If the response carries bridge, the post is queued: relay bridge.userMessage and do not say it was published. If it carries note, pass it on to the person: it warns when the draft has no body text, which is what a failed publish leaves. Otherwise call get_post for the status and the permalink. A draft that Uplika made turns into the same post record instead of a second one.

Publish Uplika's copy instead

A post Uplika saved with options.naver_blog.draftOnly has a Naver target whose externalId starts with draft:. If the person wants Uplika's version of the text rather than what is in Naver now, call update_post on that post with its content (changed or not) after they approve. Pass the Naver options again in full (options.naver_blog.title, options.naver_blog.categoryId or options.naver_blog.category, options.naver_blog.tags, options.naver_blog.openType, and options.naver_blog.form or options.naver_blog.layout), without draftOnly: options you pass replace the stored ones, and a draft has no category. It goes out as a new post and, with a current extension, the old draft is removed from the box. This is not an edit of a published post, so it gets a new URL.

Rewrite a published post

update_post rewrites a published Naver post in place: same URL, same post number.

  1. Take the post's link (or its Uplika id) from the person.
  2. Write the new version, show the person what will change (old lines and new lines), and send only after they approve.
  3. Call update_post with the link or id, the new content and wait: true. Editing a live post is asynchronous: if the wait runs out, read the result with get_post.
    • Written in Naver's editor: the first call answers naver_source_required with the post's current source and its sourceVersion. Make the edit on that source. Blocks already in the post (photos, videos, cards, tables, styled text) are @keep(...) lines, kept exactly as they are: keep a line to keep that block, delete it to remove the block. You cannot edit inside one; to change an existing table's cells, delete its @keep line and write the table again in GFM at the same place. New blocks, a new table included, go anywhere in the usual grammar. Send the edited source as content together with sourceVersion. If it answers naver_source_required again, the post changed on Naver after you read it: start over from the new source.
    • Published through Uplika: fields you leave out keep their current value. Options you pass replace the post's whole options, so either leave them out or pass every Naver setting again.
    • Photos: the media: references in the new body are the post's photo list. A photo the new body no longer places is removed from the post. Pass mediaIds only for photos to add at the end without placing them.
  4. If the Naver editor shows a missing-image error on a post Uplika published, rewriting it with update_post fixes it at the same URL.

When something fails

  • bridge_offline: the extension is not connected, so nothing was listed or read. Relay the message (faq:naver-extension-offline) and try again once Chrome is open.
  • extension_outdated: the extension in that Chrome is too old for this job. The response says the installed and required versions, and Uplika asks that Chrome to update at the same moment. Relay it with faq:extension-not-updating and try again after the person says it updated.
  • naver_form_required: the response lists forms (id, name, when). Show them and let the person pick (options.naver_blog.form), or set options.naver_blog.layout to as-is to keep the body exactly as written.
  • naver_category_required or naver_category_unknown: show the categories from list_accounts and let the person pick.
  • A draft publish that failed with "Naver closed the publish window without opening a new post": sending the same draft again from here is unlikely to help. The person opens that draft in Naver and publishes it there, or you send the original post again (after they approve) and they delete the half-finished draft.
  • naver_rate_limited: Naver capped how much this ID publishes. Do not call again before retryAfterSeconds; the draft is already in Naver.
  • naver_keep_unknown: a @keep id that is not in the post's current source. Use the ids from the source.
  • naver_media_over_limit: the body places more photos or videos than Naver takes (the limit is in list_platforms). Nothing changed; droppedIds says what to take out.
  • post_not_editable: Uplika cannot rewrite this post. The message says why and what to do: relay it. When Naver would not open the post for editing, the person changes it on Naver Blog directly.
  • account_disconnected: hand over to the troubleshoot skill.
  • Anything else: call get_help with the error code and pass its answer and link on.

Tools

  • bridge_status: whether the extension in the person's Chrome is online
  • list_naver_drafts: the drafts in the blog's draft box
  • list_accounts: the blog's categories, for drafts saved without one or with an older extension
  • publish_naver_draft: publish a draft exactly as it is in Naver (after approval)
  • update_post: rewrite a published post at the same URL, or publish Uplika's copy of a draft (after approval)
  • retry_post: send the original post again when a failed publish left a half-finished draft (after approval)
  • get_post: status and permalink after publishing or editing
  • list_platforms: Naver's media limits
  • get_help: the answer for an error code
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 196kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 196kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 196kUpdated Claude CodeCodexVerifiedInstall