clark-work
Use when you (a Clark agent) must read or update the customer's work in Clark Work, or create projects/tasks. Covers picking up tasks the customer put on the To Do board and creating your own projects and tasks.
- License 许可
- MIT
- 所属仓库
- S3YED/appie-kit
- 最近更新
- 2026-08-27
- Stars
- ★ 14
- Forks
- 3
01 前言 Front Matter
- name
- clark-work
- description
- Use when you (a Clark agent) must read or update the customer's work in Clark Work, or create projects/tasks. Covers picking up tasks the customer put on the To Do board and creating your own projects and tasks.
03 SKILL.md 正文
Clark Work (agent lane)
The customer's tasks live in Clark Work on the dashboard (dash.getclark.app). As the customer's own agent you can read your customer's work, move tasks through their statuses, comment on them, and create your own projects and tasks there.
Identity and endpoint (never hardcode)
Your box already carries its own credentials. Source them instead of copying secrets:
CLARK="${CLARK:-$HOME/.clark}"
. "$CLARK/heartbeat.env" # provides APPIE_ID, APPIE_SECRET, APPIE_HEARTBEAT_URL
DASH="${APPIE_HEARTBEAT_URL%/api/appie/heartbeat}" # the dashboard origin
Call every action as POST $DASH/api/agent/work with two headers:
-H "X-Appie-Id: $APPIE_ID" -H "X-Appie-Secret: $APPIE_SECRET"
and a JSON body that describes the action. Never send a userId or
agentReference in the body. The dashboard derives your customer from your box
identity. A box can only ever touch its own customer's workspace, so these
calls are safe by construction.
Actions
list_work — read all projects + tasks
curl -s -X POST "$DASH/api/agent/work" \
-H "X-Appie-Id: $APPIE_ID" -H "X-Appie-Secret: $APPIE_SECRET" \
-H "Content-Type: application/json" \
-d '{"action":"list_work"}'
Returns { workspace, projects, items }. Each item has id, projectId,
title, description, status, priority, dueAt, createdAt, updatedAt.
create_project — start a new project
curl -s -X POST "$DASH/api/agent/work" \
-H "X-Appie-Id: $APPIE_ID" -H "X-Appie-Secret: $APPIE_SECRET" \
-H "Content-Type: application/json" \
-d '{"action":"create_project","name":"Q3 campaign","description":"optional"}'
Returns { project } with its id.
create_item — add a task to an existing project
curl -s -X POST "$DASH/api/agent/work" \
-H "X-Appie-Id: $APPIE_ID" -H "X-Appie-Secret: $APPIE_SECRET" \
-H "Content-Type: application/json" \
-d '{"action":"create_item","projectId":"<project-id>","title":"Draft newsletter","description":"optional","priority":"medium","status":"todo"}'
Statuses: backlog, todo, in_progress, in_review, done, cancelled.
Priorities: none, low, medium, high, urgent.
update_item_status — move a task forward
curl -s -X POST "$DASH/api/agent/work" \
-H "X-Appie-Id: $APPIE_ID" -H "X-Appie-Secret: $APPIE_SECRET" \
-H "Content-Type: application/json" \
-d '{"action":"update_item_status","itemId":"<item-id>","status":"done"}'
add_comment — leave a note on a task
curl -s -X POST "$DASH/api/agent/work" \
-H "X-Appie-Id: $APPIE_ID" -H "X-Appie-Secret: $APPIE_SECRET" \
-H "Content-Type: application/json" \
-d '{"action":"add_comment","itemId":"<item-id>","body":"Handled. Closing."}'
Routine management (optional)
POST $DASH/api/agent/routines with the same headers and body
{"action":"list_routines"} (or create_routine with title/instructions/
cronExpr/timezone, or toggle_routine with routineId/isActive).
The two workflows
A. Customer put a task on the board, you execute it.
list_workand look for items withstatus: "todo"(orbacklog) in your customer's workspace.- Claim it:
update_item_statustoin_progress. - Read
titleanddescription, do the work. - Finish:
update_item_statustodone(orin_reviewif it needs review), andadd_commentsummarising what you did.
B. You create your own work.
create_project(or reuse an existing project fromlist_work).create_iteminside that project as you break the work down.- Progress each item through
update_item_statusas you go.
Pitfalls
- Always derive
DASHfromAPPIE_HEARTBEAT_URLat runtime; never hardcode the domain or any secret in the skill. - If
list_workreturns 404workspace-not-found, the customer has no Work workspace yet. Create one bycreate_project. - Never log request bodies from these calls; they are tenant data.
- A 401 means the box credential is wrong or stale; re-run the heartbeat setup, do not bypass auth.
04 同仓库更多 Skills
ai-music
AI music generation and audio tools: HeartMuLa lyrics-to-music generation, songwriting craft (+ Suno prompts), and audio spectrogram/feature visualization.
agentic-webdesign-design-system-ingestion
Use v0 Design Systems 2.0, Bolt Design System Agents, or Lovable to generate production UI from a client's real design system components — not generic Tailwind. Use when building a client website where brand consistency matters.
agentic-webdesign-agent-elements
Use 21st.dev Agent Elements — 25 shadcn/ui components purpose-built for AI agent UIs. Tool cards (Bash, Edit, Search, Plan, Subagent, MCP), chat, input, streaming. Open source, shadcn-registry install, no runtime lock-in.
vercel-deployment
Deploy static sites and frontends to Vercel — handles both CLI and REST API paths, including the CLI token sanitization workaround.
software-quality-workflows
Umbrella workflow for TDD, debugging, code simplification, spikes, pre-commit review, and debugger-assisted investigation.
react-component-refactoring
Safely refactor large React components into smaller, maintainable pieces using proven patterns