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
create page
- Path:
skills/create-page/SKILL.md - Purpose: create a new page project and publish
update page
- Path:
skills/update-page/SKILL.md - Purpose: update an existing page project and republish
create management page
- Path:
skills/create-management-page/SKILL.md - Purpose: create or update the current read-only management page that lists user's pages
create template
- Path:
skills/create-template/SKILL.md - Purpose: create a reusable template folder
update template
- Path:
skills/update-template/SKILL.md - Purpose: update an existing template structure/style/interaction/docs
Routing Priority (Conflict Resolution)
Apply this priority order when intent is mixed:
- Management-page intent ("管理页", "后台页", "列出我所有页面", "pages dashboard", "admin/read-only page list") ->
create management page - Explicit
page-id/pageId/ "update existing page" signal ->update page - Existing local project intent (
.pages/<name>, "基于旧页面", "沿用现有页面") ->update page - Template-only intent (create/update template) ->
create templateorupdate template - Otherwise default to creating a new page ->
create page
Keyword Hints
- 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__,__PAGE_TITLE__,__PAGE_SUBTITLE__,__GENERATED_AT__,__EXPIRES_AT__. - Do not fabricate
pageIdfor updates. - Use API default
https://api.clawpage.aiunless user overrides. - For newly created pages, default publish policy is private + 3h TTL (
pagecoderequired,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