원클릭으로
cohub-works-share
Publish files, directory sites, or sandbox ports as public Cohub Works and return shareable Work URLs.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Publish files, directory sites, or sandbox ports as public Cohub Works and return shareable Work URLs.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Work with Cohub spaces, chats, files, saves, labels, search, tasks, scheduled prompts, and cross-space run.
Generate or transform images, video, and music with Cohub multimodal models via `cohub generate`. Use when the user asks to create, edit, restyle, animate, or remove backgrounds from media, or generate songs.
Publish files from the runtime to the public share directory and return direct public URLs.
| name | cohub-works-share |
| description | Publish files, directory sites, or sandbox ports as public Cohub Works and return shareable Work URLs. |
Use this skill when a user wants a public link for a file, site, demo, or live preview from a Cohub Space.
Cohub Works publish as public pages:
/:ownerUsername/:spaceSlug/w/:workSlug
3000 or 5173A published Work needs:
Use the current Space by default:
space_id="${COHUB_SPACE_ID:-}"
When the target Space is unclear, ask for the Space.
Choose one target:
--file <path> for an .html or .htm file--dir <path> for a directory containing index.html--port 3000 or --port 5173 for a running previewUse a short, stable Work slug:
demoreportdashboardlanding-pageKeep an existing slug when updating a Work. Ask before changing a user-provided slug.
Default to public. Use --visibility space when the Work should be visible only to people with Space access.
Start with empty scopes. Add the smallest permission set needed for the Work.
Direct Work scopes:
space.viewsession.viewfile.viewtaskrun.viewViewer-grant scopes:
session.prompt.readonlysession.prompt.fullaccessgeneration.createuser.space.listuser.session.listuser.usage.readPublish creates the Work or updates an existing Work with the same slug:
cohub -s "$space_id" works publish "$work_slug" --file "$file" --json
cohub -s "$space_id" works publish "$work_slug" --dir "$dir" --json
cohub -s "$space_id" works publish "$work_slug" --port "$port" --json
Use --visibility public or --visibility space when needed. Use --hide-cohub-bar for immersive pages when requested.
For an existing Work that only needs a fresh version from its current target:
cohub works publish-version "$work_id" --json
After publish or publish-version, read the Work by ID:
cohub works get "$work_id" --json
Return publicUrl, falling back to content.url when needed.
If publishing reports missing public identity, check the Space and current user:
cohub spaces get "$space_id" --json
cohub auth whoami --json
If the current user is the Space owner, use user-provided or user-confirmed values to set the public identity:
cohub profile update --username "$owner_username" --json
cohub spaces update "$space_id" --slug "$space_slug" --json
Return the public URL.