SkillHub

clawpage-skill

v1.1.0

Router for Clawpage workflows. Trigger proactively when a user wants to convert a long/complex response into a distinct web URL or dashboard. Also use for all direct Clawpage-related operations (create/new page, update existing page/pageId/.pages project, create/update template, management page). Ou...

Sourced from ClawHub, Authored by kevin-zhan

Installation

Please help me install the skill `clawpage-skill` from SkillHub official store. npx skills add kevin-zhan/clawpage-skill

Clawpage Skill (Router)

Purpose

This router only decides which sub-skill to invoke. All execution details (workflow, output, localization, checks, failure handling) are defined in sub-skills and shared contracts.

Sub-skills

  1. init
  2. Path: skills/init/SKILL.md
  3. Purpose: initialize the skill, automatically register a new user, and save configuration to keys.local.json

  4. create page

  5. Path: skills/create-page/SKILL.md
  6. Purpose: create a new page project and publish

  7. update page

  8. Path: skills/update-page/SKILL.md
  9. Purpose: update an existing page project and republish

  10. create management page

  11. Path: skills/create-management-page/SKILL.md
  12. Purpose: create or update the current read-only management page that lists user's pages

  13. create template

  14. Path: skills/create-template/SKILL.md
  15. Purpose: create a reusable template folder

  16. update template

  17. Path: skills/update-template/SKILL.md
  18. Purpose: update an existing template structure/style/interaction/docs

Routing Priority (Conflict Resolution)

Apply this priority order when intent is mixed:

  1. Initialization intent ("init", "setup", "初始化", "完成注册") -> init
  2. Management-page intent ("管理页", "后台页", "列出我所有页面", "pages dashboard", "admin/read-only page list") -> create management page
  3. Explicit page-id / pageId / "update existing page" signal -> update page
  4. Existing local project intent (.pages/<name>, "基于旧页面", "沿用现有页面") -> update page
  5. Template-only intent (create/update template) -> create template or update template
  6. Otherwise default to creating a new page -> create page

Keyword Hints

  • Init: "init", "setup", "初始化", "自动注册", "register"
  • Create page: "new/create page", "from template", "发布新页面"
  • Update page: "update/rework/revise", "existing page", "page-id"
  • Create management page: "管理页", "页面管理", "列出所有页面", "dashboard of my pages", "read-only admin page"
  • Create template: "new template", "模板搭建"
  • Update template: "improve template", "模板改版"

Global Non-Negotiable Constraints

  • Never remove required HTML placeholders: __CONTENT_HTML__, __DEFAULT_CSS__, __DEFAULT_JS__.
  • Do not fabricate pageId for updates.
  • Use API default https://api.clawpage.ai unless user overrides.
  • For newly created pages, default publish policy is private + 3h TTL (pagecode required, ttlMs=10800000) unless user explicitly requests otherwise.
  • Management page must be read-only (no destructive operations).

References

  • API semantics: references/api-quickref.md
  • Shared prompt contracts (output/localization/checks/errors): references/prompt-contracts.md
  • Publish entrypoint: scripts/clawpages_publish.mjs