본문으로 건너뛰기
cccskills
무료GitHub에 공개

kandev-canvas-authoring

Author a Kandev task canvas as a self-contained web application.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

kdlbs/kandev스타 1,020(GitHub 1,020 + cccskills 0)

실행 점수 미검증

설치 방법 보기

포함된 파일(11)

  • SKILL.md6.8 KB
  • references/browser-api.md13.1 KB
  • references/data-and-state.md670 B
  • references/events-and-recovery.md611 B
  • references/manifest.md4.3 KB
  • references/security.md982 B
  • references/ui-patterns.md1.2 KB
  • scaffold/appearance.js3.6 KB
  • scaffold/index.html704 B
  • scaffold/script.js518 B
  • scaffold/styles.css1.2 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Kandev canvas authoring

Use one read_canvas_authoring_skill_kandev call without path when you need the authoring contract. That response is the complete core bundle. It includes this workflow, the manifest and browser protocol summary, appearance rules, the minimal scaffold, and the exact supporting-file inventory. Do not read the core bundle again during the same authoring task.

Required workflow

  1. Call create_canvas_kandev with a short title and an application summary. It creates an inactive task canvas and returns its source directory, manifest scaffold, initial permission policy, and exact scaffold inventory.
  2. Use native file tools in that returned directory. The initial files are manifest.yaml, index.html, appearance.js, script.js, and styles.css. Replace or extend them in the same directory.
  3. Keep every source path relative to the returned directory. Do not write outside it. Bundle executable dependencies. Node, a package manager, and a network build step are not available at runtime.
  4. Run local checks, then call publish_canvas_kandev with the returned canvas ID and source path. Read validation diagnostics and correct rejected source before publishing again.

The first valid release of a new owner-authorized task canvas uses the returned initial permission policy. It can activate without a second approval for its declared supported permissions. Kandev data access is limited to the current workspace, while the canvas remains placed in its creating task. Imported packages and later permission increases need human review. Promotion changes workspace navigation. Do not add a trust flag to the manifest, and do not request permissions outside the policy.

Core application contract

  • Include <meta name="viewport" content="width=device-width, initial-scale=1">.
  • Use relative ./_kandev/v1 paths for Kandev data, state, actions, and events.
  • Treat Kandev domain data as the source of truth. Derive filters and summaries in memory instead of storing a second copy of domain records.
  • Store only small application-specific shared values in instance state. Keep temporary input in memory and use conditional revisions for writes.
  • The canvas runs in a trusted same-origin iframe. Treat its source as trusted user-session code: it can use same-origin browser storage and cookies and can access the host DOM. It has the viewing user's ordinary API authority.
  • Keep Kandev protocol requests relative and do not copy capability URLs or tokens into source, URLs, query strings, logs, or client state. Same-origin cookies do not replace capability validation or the grants on protocol routes.
  • Render loading, empty, error, and retry states. Keep destructive actions explicit and explain their result.
  • Use accessible labels, keyboard operation, visible focus, and touch targets.

Kandev injects a reserved startup bootstrap into the entry document before authored scripts. It reports early document errors and checks the relative context route after document load. The host reveals the frame only after a versioned acknowledgement for the current attempt. A missing acknowledgement or context failure becomes recoverable after 15 seconds. Keep the entry valid HTML and render loading, empty, error, and retry states in the app.

Minimal manifest

Use the returned manifest_scaffold as the starting point. New manifests use api_version: 2, one lowercase web-app key, a package-relative entry, and at least one task-canvas or workspace-canvas placement. Declare only the api_read, api_write, events, state, and network_origins permissions that the application needs. The owner-authorized first release can receive only its declared supported permissions, with Kandev data limited to the current workspace. The entry and all relative assets must be in the published package.

Browser protocol summary

Resolve all routes from the application document with ./_kandev/v1. Use context, the paginated data routes, state/{key} with If-Match, and the bounded events stream as documented by the optional references. Events are hints that invalidate a read. Refetch authoritative data after an event, reconnect with Last-Event-ID, and perform a full refetch after runtime.resync_required.

Appearance protocol

The host may send the public presentation-only message kandev.web_app.appearance with version: 1, mode: light|dark, and exactly these color tokens: background, foreground, card, cardForeground, muted, mutedForeground, border, primary, primaryForeground, accent, accentForeground, destructive, destructiveForeground, and ring. Accept it only when event.source === window.parent, the type and version match, the keys are exact, and each serialized color is bounded. Map the tokens to the same-name kebab-case CSS variables. Keep light and dark fallbacks so the app remains usable before the first message. The message has no identity, capability, data, storage, navigation, or action fields.

The generated appearance.js implements this listener. It is optional, but copy its pattern when replacing the scaffold.

Read a supporting reference only when its topic is needed:

  • references/browser-api.md for detailed browser routes and errors.
  • references/manifest.md for the full manifest shape and validation rules.
  • references/data-and-state.md for domain data and instance state.
  • references/events-and-recovery.md for events, reconnect, and retries.
  • references/security.md for same-origin trust and source safety rules.
  • references/ui-patterns.md for responsive and accessible UI patterns.

Distribution checklist

When the user asks for a portable canvas, keep the distribution boundary separate from authoring and runtime state:

  1. Add distribution.schema_version: 1, distribution.kind: canvas, a license, and source_mode: static or source_mode: project.
  2. Keep README.md, the manifest, the application entry, and every local asset in the package. Use project mode only when the retained project is complete and bounded below distribution/source/.
  3. Publish a valid release before offering a bundle or source download. The host prepares both archives from that immutable release and does not include screenshots.
  4. Add screenshots later as ordered previews objects in a registry entry. The first preview is the cover, canvas entries require one to eight images, and plugin entries may omit images.

The authoring tools do not create repositories, releases, registry entries, or pull requests. Report those manual follow-up steps to the user. Do not claim that a local archive or build is published until the Kandev release flow confirms it.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

acp-debug

무료

Debug an ACP agent CLI by spawning it, speaking raw JSON-RPC, and capturing every frame to a JSONL file. Use when the user asks to probe an agent's capabilities, compare agents, test a prompt against an agent, inspect raw ACP wire frames, or investigate why an agent fails to initialize.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

kdlbs/kandev1천2026년 10월 26일 업데이트

Add a new third-party integration (Jira/Linear-style) — per-workspace credentials, 90s auth-health poller, settings page, link/import buttons. Use when scaffolding a new external service integration.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

kdlbs/kandev1천2026년 10월 26일 업데이트

Delete local branches whose remote has been deleted ([gone]), including their worktrees. Use for branch cleanup after merging PRs.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

kdlbs/kandev1천2026년 10월 26일 업데이트

Review changed code for quality, security, and architecture compliance. Use only when the user explicitly requests local review or a PR finding requires it.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

kdlbs/kandev1천2026년 10월 26일 업데이트

commit

무료

Stage and commit changes using Conventional Commits. Use when there are dirty/staged files to commit, the user says "commit", or before pushing a PR.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

kdlbs/kandev1천2026년 10월 26일 업데이트

Curate the right project context before coding or debugging. Use when starting a new session, switching areas of the codebase, output quality is drifting, a task spans backend/frontend/docs, or external instructions need to be reconciled with Kandev conventions.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

kdlbs/kandev1천2026년 10월 26일 업데이트

kdlbs의 스킬 모두 보기

이 스킬의 문제 신고