This is the PANews creator skill for contributors who need to write, edit, manage, and publish articles on the platform. Use it when the task involves authenticated creator workflows such as validating a session, managing drafts or submissions, uploading images, searching tags, applying for a column, or preparing an article for review.
It is best suited for real PANews publishing operations rather than generic writing help alone. The skill should guide the user through the platform workflow clearly and safely, especially when session validation, submission state, or destructive actions are involved.
Session verification is required before any operation.
If no session is available, guide the user to get PA-User-Session from browser DevTools -> Application -> Cookies.
On a 401 response, stop immediately and tell the user the session has expired and needs to be refreshed.
Common User Phrases
- - "Help me publish this article."
- "Upload this cover image and find tags for my draft."
Capabilities
| Scenario | Trigger intent | Reference |
|---|
| Publish a new article | I want to publish an article / help me submit | workflow-publish |
| Manage my articles |
Status of my submissions / any rejections |
workflow-manage |
| Revise and resubmit | Edit a draft / resubmit a rejected article |
workflow-revise |
| Apply for a column | I don't have a column yet / want to start a column |
workflow-apply-column |
| Upload an image | Upload this cover image / turn this local image into a usable asset URL | Use
upload-image |
| Search tags | Find suitable tags / search PANews tags for this topic | Use
search-tags |
| Polish an article | Help me improve this article / review it |
workflow-polish |
Language
INLINECODE3 accepts standard locale strings (zh, en, zh-TW, en-US, ja-JP, etc.), automatically mapped to the nearest supported language; most read-style commands auto-detect the system locale if omitted.
For create-article, --lang indicates the article content language and is required. Pass the language the article is actually written in; this command does not auto-detect the locale.
General principles
- - On 401, stop immediately and prompt the user to refresh the session
- Require explicit confirmation before any delete operation
- Do not modify the user's article content or opinions unprompted
Execution guards
- - Use more freedom for low-risk tasks such as polishing copy, suggesting improvements, or helping the user prepare content before submission.
- Use strict procedure for high-risk creator actions:
- Before any create, update, delete, submit, or column-application action, validate that a usable
PA-User-Session is available.
- On any 401 response, stop immediately and ask the user to refresh the session before continuing.
- Before deletion, obtain explicit user confirmation for the exact target article.
- When updating an article, change only the fields the user asked to modify.
- Before moving an article to
PENDING, make sure the user intends to submit it for review now.
- Treat image upload and tag search as support steps for PANews publishing workflows, not as unrelated generic utilities.
Scripts
- -
scripts/cli.mjs: unified entrypoint for PANews creator commands
CODEBLOCK0
When unsure about parameters, check with --help first:
CODEBLOCK1
Available commands:
CODEBLOCK2
这是为需要在PANews平台上撰写、编辑、管理和发布文章的贡献者提供的PANews创作者技能。当任务涉及经过身份验证的创作者工作流程(如验证会话、管理草稿或提交内容、上传图片、搜索标签、申请专栏或准备文章以供审核)时,请使用此技能。
该技能最适合实际的PANews发布操作,而非单纯的通用写作辅助。技能应清晰且安全地引导用户完成平台工作流程,尤其是在涉及会话验证、提交状态或破坏性操作时。
任何操作前均需进行会话验证。
如果没有可用会话,请引导用户从浏览器开发者工具 -> 应用程序 -> Cookie 中获取 PA-User-Session。
收到401响应时,立即停止操作并告知用户会话已过期,需要刷新。
常见用户短语
- - 帮我发布这篇文章。
- 上传这张封面图片,并为我的草稿查找标签。
能力范围
我的提交状态 / 是否有被拒稿 |
workflow-manage |
| 修改并重新提交 | 编辑草稿 / 重新提交被拒文章 |
workflow-revise |
| 申请专栏 | 我还没有专栏 / 想开设专栏 |
workflow-apply-column |
| 上传图片 | 上传这张封面图片 / 将本地图片转换为可用的资源链接 | 使用 upload-image |
| 搜索标签 | 查找合适的标签 / 搜索此主题的PANews标签 | 使用 search-tags |
| 润色文章 | 帮我改进这篇文章 / 审阅它 |
workflow-polish |
语言
--lang 接受标准区域设置字符串(zh、en、zh-TW、en-US、ja-JP 等),自动映射到最接近的支持语言;如果省略,大多数读取类命令会自动检测系统区域设置。
对于 create-article,--lang 表示文章内容语言且为必填项。请传入文章实际使用的语言;此命令不会自动检测区域设置。
通用原则
- - 收到401时,立即停止操作并提示用户刷新会话
- 任何删除操作前需获得明确确认
- 未经提示不得修改用户的文章内容或观点
执行保护机制
- - 对于低风险任务(如润色文案、提出改进建议或帮助用户在提交前准备内容)可更灵活处理。
- 对于高风险的创作者操作,使用严格流程:
- 在任何创建、更新、删除、提交或专栏申请操作前,验证是否有可用的 PA-User-Session。
- 收到任何401响应时,立即停止操作并要求用户在继续前刷新会话。
- 删除前,需获得用户对具体目标文章的明确确认。
- 更新文章时,仅修改用户要求更改的字段。
- 将文章移至 PENDING 状态前,确保用户当前确实有意提交审核。
- 将图片上传和标签搜索视为PANews发布工作流程的支持步骤,而非无关的通用工具。
脚本
- - scripts/cli.mjs:PANews创作者命令的统一入口
bash
node {技能目录}/panews-creator/scripts/cli.mjs <命令> [选项]
当不确定参数时,请先使用 --help 检查:
bash
node {技能目录}/panews-creator/scripts/cli.mjs --help
node {技能目录}/panews-creator/scripts/cli.mjs <命令> --help
可用命令:
text
validate-session 验证会话并列出拥有的专栏
list-articles 列出专栏中的文章
create-article 在专栏中创建文章
update-article 更新草稿或已驳回的文章
delete-article 删除草稿或已驳回的文章
upload-image 上传本地图片并返回CDN链接
search-tags 按关键词搜索标签
apply-column 提交专栏申请