feat: add initial skill authoring workspace
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
34
skills/zhihu-write/SKILL.toml
Normal file
34
skills/zhihu-write/SKILL.toml
Normal file
@@ -0,0 +1,34 @@
|
||||
[skill]
|
||||
name = "zhihu-write"
|
||||
description = "Use when the user wants to draft, fill, or publish a Zhihu article through browser actions in the Zhihu editor or creator center."
|
||||
version = "0.1.0"
|
||||
author = "sgclaw"
|
||||
tags = ["zhihu", "browser", "writing"]
|
||||
|
||||
prompts = [
|
||||
"For Zhihu article drafting or publishing inside the SuperRPA browser host, call zhihu-write.prepare_article_editor before any generic browser getText, click, or selector probing.",
|
||||
"If zhihu-write.prepare_article_editor reports editor_ready, call zhihu-write.fill_article_draft with the title, body, and publish_mode arguments instead of generating ad-hoc browser selectors.",
|
||||
"Do not use zhuanlan.zhihu.com inside this BrowserAttached host unless the host policy explicitly allows it. Prefer canonical www.zhihu.com creator routes.",
|
||||
"If the user asked to publish but has not explicitly confirmed publishing in the current conversation, stop and ask for confirmation before any publish click.",
|
||||
"Never generate jQuery-style :contains() selectors. Use the packaged browser scripts before any generic browser probing."
|
||||
]
|
||||
|
||||
[[tools]]
|
||||
name = "prepare_article_editor"
|
||||
description = "Detect whether the current Zhihu page is login-blocked, creator-home, or editor-ready on www.zhihu.com before article drafting or publishing."
|
||||
kind = "browser_script"
|
||||
command = "scripts/prepare_article_editor.js"
|
||||
|
||||
[tools.args]
|
||||
desired_mode = "Requested mode such as draft or publish."
|
||||
|
||||
[[tools]]
|
||||
name = "fill_article_draft"
|
||||
description = "Fill the current Zhihu article editor with title and body, and optionally continue the publish flow when explicit confirmation is already present."
|
||||
kind = "browser_script"
|
||||
command = "scripts/fill_article_draft.js"
|
||||
|
||||
[tools.args]
|
||||
title = "Article title to write into the Zhihu editor."
|
||||
body = "Article body to write into the Zhihu editor."
|
||||
publish_mode = "Use true only when explicit human confirmation to publish is already present in the current conversation."
|
||||
Reference in New Issue
Block a user