/agentkit-clickup:clickup-task-lifecyclefrom agentkit-clickup
Task-first workflow and lifecycle hygiene for teams tracking work in ClickUp: every piece of work runs against a task, statuses stay current on every touch, branches and PRs reference the task without relying on auto-close, and tasks close with a verification note. Applies only in repositories configured with agentkit.clickup.* git config, so it stays inert everywhere else. Triggers: starting tracked work in a ClickUp-backed repo, updating task status, sprint planning, linking a branch or PR to a task, closing a task.
Ships in agentkit-clickup. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This skill encodes generic practice only. Org specifics — workspace, list, assignee, status names — come from per-repo git config, never from this file.
git config --get agentkit.clickup.list
Unset means this repository is not tracked in ClickUp. Stop — this skill does not apply. Say nothing about ClickUp and fall through to whatever tracker the repo actually uses. A machine that works across several clients will have ClickUp config in some repos and a forge tracker in others; the config decides, never the installed skill.
git config --get agentkit.clickup.list # default list id for new tasks (also the scope gate)
git config --get agentkit.clickup.workspace # workspace id (the v2 API calls it team_id)
git config --get agentkit.clickup.assignee # default assignee user id
git config --get agentkit.clickup.done-status # status name meaning verified-done, e.g. "closed"
If a key is unset the first time it's needed, ask once and offer to persist it with
git config agentkit.clickup.<key> <value>. Never hardcode an id into a script or doc.
The API token lives in CLICKUP_TOKEN, sourced from the operator's secret store. It must
never be written into the repository, a shell history line, a task body, or a PR.
Status names are per-space and operator-defined. Discover them from the list rather than
assuming — c.lists:get(list_id).statuses returns the space's actual set.
| When | Typical status |
|---|---|
| Filed, awaiting triage | to do |
| Triaged and accepted, not started | to do |
| Actively being worked (human or agent) | in progress |
| PR open or merged, awaiting verification | in review |
| Verified in the target environment | complete |
| Rejected or superseded | closed |
Map these to the workspace's real names once and persist the done state in
agentkit.clickup.done-status.
Prefer the assay.clickup module over raw curl — it centralises auth, pagination, and
error handling, and it is not subject to the MCP call cap described below.
local clickup = require("assay.clickup")
local c = clickup.client() -- reads CLICKUP_TOKEN
-- Create a task idempotently: reruns return the existing task instead of duplicating.
local task = clickup.ensure_task(c, list_id, {
name = "Fix token refresh race",
description = "…",
assignees = { assignee_id },
})
-- Move status
c.tasks:update(task.id, { status = "in progress" })
-- Close with a note, in that order
c.comments:create(task.id, "Root cause: … Fix: … PR: …")
c.tasks:update(task.id, { status = done_status })
-- Every task in a sprint list, following pagination to the end
local all = clickup.all_tasks(c, list_id)
-- Record a KPI on a custom field
c.fields:set(task.id, field_id, 42)
Discover ids top-down when the config does not already carry them:
local team = clickup.resolve_team(c) -- errors if the token sees several
local spaces = c.spaces:list(team.id)
local folders = c.folders:list(spaces[1].id) -- Sprint Folders live here
local lists = c.lists:list(folders[1].id) -- each sprint is a List
Authorization raw — no Bearer prefix. Personal pk_ tokens
are rejected when prefixed, which is the opposite of nearly every other API.page, capped at 100 tasks, and the envelope flags the end
with last_page. There is no cursor. A loop that stops on an empty page instead of
on last_page will truncate silently when a page is exactly full.statuses[]=, not comma-joined./team/{id}/goal to list, /goal/{id} for one — and the
single-goal path is not nested under the team./v3/workspaces/{id}/docs.
Everything else is v2, where "team" means what the UI calls a Workspace.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub developerinlondon/agentkit --plugin agentkit-clickup