Skip to content

feat(skills): install the clickup-tickets skill for ClickUp ticket work - #6

Merged
demy00 merged 4 commits into
feature/lavish-read-list-formatfrom
feature/fm-clickup-install-c1
Oct 1, 2026
Merged

demy00 merged 4 commits into
feature/lavish-read-list-formatfrom
feature/fm-clickup-install-c1

Conversation

@demy00

@demy00 demy00 commented Sep 30, 2026 •

Copy link
Copy Markdown
Owner

Intent

Erik created https://github.com/szobonyaerik/firstmate-clickup so the team can work together and stay in sync: a ClickUp integration so firstmate can see ClickUp tasks and interact with ClickUp. Install it with a PR into our firstmate repo. Workspaces: only the team one Erik uses; a personal workspace is not needed now and will be set up later. Projects: only OwnDivision and Theovya, but everything related to those. npm is fine for installing the tool. Start it now, before the firstmate upstream catch-up and the Lavish fix have landed.

What Changed

  • Adds the clickup-tickets internal skill, copied from szobonyaerik/firstmate-clickup@8994f1e. It lets firstmate read and update ClickUp tickets through the pinned cup CLI (@krodak/clickup-cli 1.46.1). It covers workspace and profile rules, the status map, and limits on team-workspace writes.
  • Adds a trigger in AGENTS.md section 13 that loads the skill only in homes that have config/clickup.json. The skill loads the first time ClickUp work comes up, never at session start, so startup stays offline. The private config/clickup.json is added to .gitignore, documented in docs/configuration.md and the AGENTS.md layout, and classified in docs/documentation-audiences.json.
  • Brings in the in-flight feature/fm-upstream-sync branch (upstream kunchenguid/firstmate catch-up) and the feature/lavish-read-list-format fix (Lavish results in list shape are read so queued comments are not lost). This branch also updates tests/fm-fleet-ledger.test.sh to use the fork's feature/<task-id> worker branch naming.

🤖 Generated with Claude Code

Risk Assessment

✅ Low: The ClickUp change is small and additive (one internal skill, docs, config ignore, trigger entries), and the merge moved it correctly into the new trigger-index and home-layout skills; the only open question is whether the branch should carry the merged upstream and Lavish branches.

Testing

Checks run: - The targeted doc-audience, gitignore and harness-reference tests. - The doc-audience checker. - An end-to-end check: the pinned npm cup 1.46.1 installs and provides every subcommand the skill uses. - config/clickup.json stays gitignored. - The installed skill matches the add-on except for the intended frontmatter and trigger changes. - Re-running the add-on installer against a temporary copy of the fork. Everything passed. The only note is informational: re-running the installer reverts the fork's SKILL.md frontmatter tweaks. No UI is involved, so the evidence is CLI transcripts.

Evidence: cup npm install + gitignore transcript

Source: cup npm install + gitignore transcript

$ git check-ignore -v config/clickup.json
.gitignore:13:config/	config/clickup.json

$ echo {} > config/clickup.json && git status --porcelain -- config/
(empty = not tracked)

$ npm view @krodak/[email protected] name version bin
name = '@krodak/clickup-cli'
version = '1.46.1'
bin = { cup: 'dist/index.js' }

$ npx -y @krodak/[email protected] --version
1.46.1

$ npx -y @krodak/[email protected] --help | head -30
Usage: cup [options] [command]

ClickUp CLI for AI agents

Options:
  -V, --version                                 output the version number
  -p, --profile <name>                          Use a specific profile
  -h, --help                                    display help for command

Commands:
  init [options]                                Set up cup (interactive). Use --token and --team for non-interactive/agent setup
  auth [options]                                Validate API token and show current user
  tasks [options]                               List tasks assigned to you by default. Use --all to search across all assignees.
  task [options] <taskId>                       Get task details
  update [options] <taskId>                     Update a task
  create [options]                              Create a new task
  export                                        Export tasks and docs to a local archive (lossless JSON + rendered markdown)
  sprint [options]                              List my tasks in the current active sprint (auto-detected)
  sprints [options]                             List all sprints in sprint folders
  subtasks [options] <taskId>                   List subtasks of a task or initiative
  comment [options] <taskId>                    Post a comment on a task
  comments [options] <taskId>                   List comments on a task
  comment-edit [options] <commentId>            Edit an existing comment
  comment-delete [options] [commentId]          Delete a comment by ID, or use --task with --mine to find and delete your comment
  replies [options] <commentId>                 List threaded replies on a comment
  reply [options] <commentId>                   Reply to a comment
  activity [options] <taskId>                   Show task details and comments combined
  time-in-status [options] <taskId>             Show how long a task has been in each status
  lists [options] <spaceId>                     List all lists in a space (including lists inside folders)
  spaces [options]                              List spaces in your workspace
Evidence: Skill cup subcommands vs pinned cup 1.46.1

Source: Skill cup subcommands vs pinned cup 1.46.1

Subcommands referenced by clickup-tickets SKILL.md vs cup 1.46.1 --help:
  ok      activity
  ok      archive
  ok      assigned
  ok      auth
  ok      bulk
  ok      checklist
  ok      comment
  ok      comments
  ok      config
  ok      create
  ok      delete
  ok      folder-delete
  ok      inbox
  ok      list-delete
  ok      profile
  ok      search
  ok      space-delete
  ok      tag
  ok      task
  ok      tasks
  ok      update
Evidence: Installed SKILL.md vs upstream add-on diff

Source: Installed SKILL.md vs upstream add-on diff

$ diff <upstream firstmate-clickup skill/clickup-tickets/SKILL.md> .agents/skills/clickup-tickets/SKILL.md
3c3,6
< description: Rules for managing the owner's ClickUp tickets through the pinned `cup` CLI. Use at session start, for any ClickUp read or write, when filing new project work, when a task changes state (started, PR ready, decision needed, failed, merged, cancelled), and when the owner asks what is on their plate.
---
> description: Rules for managing the owner's ClickUp tickets through the pinned `cup` CLI. Use the first time ClickUp work comes up in a session (never at session start), for any ClickUp read or write, when filing new project work, when a task changes state (started, PR ready, decision needed, failed, merged, cancelled), and when the owner asks what is on their plate.
> user-invocable: false
> metadata:
>   internal: true
diff exit=1
Evidence: Add-on installer re-run against this branch

Source: Add-on installer re-run against this branch

$ (fork root) install.sh <addon>   # stub cup on PATH reports 1.46.1
skill: /tmp/nm-cu.dEDP/fork/.agents/skills/clickup-tickets/SKILL.md
config: created /tmp/nm-cu.dEDP/fork/config/clickup.json from the example (fill it in)
cup: 1.46.1 already installed

Remaining manual steps (see docs/SETUP.md in the add-on checkout):
  1. Create one cup profile per workspace:  cup profile add <name>
     (it prompts for the token; do not paste a token on a command line)
  2. Fill in config/clickup.json (owner id, profiles, project map, life list).
  3. Commit .agents/skills/clickup-tickets/ and .gitignore to your fork.
  4. Smoke check (read-only): cup profile list; cup -p <profile> auth; cup -p <profile> assigned

$ git status --porcelain
 M .agents/skills/clickup-tickets/SKILL.md

$ git diff
diff --git a/.agents/skills/clickup-tickets/SKILL.md b/.agents/skills/clickup-tickets/SKILL.md
index 691f259..8dc2a6c 100644
--- a/.agents/skills/clickup-tickets/SKILL.md
+++ b/.agents/skills/clickup-tickets/SKILL.md
@@ -1,9 +1,6 @@
 ---
 name: clickup-tickets
-description: Rules for managing the owner's ClickUp tickets through the pinned `cup` CLI. Use the first time ClickUp work comes up in a session (never at session start), for any ClickUp read or write, when filing new project work, when a task changes state (started, PR ready, decision needed, failed, merged, cancelled), and when the owner asks what is on their plate.
-user-invocable: false
-metadata:
-  internal: true
+description: Rules for managing the owner's ClickUp tickets through the pinned `cup` CLI. Use at session start, for any ClickUp read or write, when filing new project work, when a task changes state (started, PR ready, decision needed, failed, merged, cancelled), and when the owner asks what is on their plate.
 ---
 
 # ClickUp tickets

$ bash tests/fm-documentation-audiences.test.sh (after re-install)
ok - documentation inventory classifies every maintained prose surface exactly once
ok - classification, setup routing, and maintained-prose scope fail safely
ok - required documentation owner pointers cannot silently disappear
ok - local links resolve while dates, versions, commands, and incident prose remain semantically reviewed
exit=
$ bin/fm-doc-audience-check.sh
fm-doc-audience-check: ok surfaces=118 local_links=708
- Outcome: ⚠️ 1 info across 1 run (1m49s)

Notes

Stacked for sequential merge: #5 (upstream catch-up) -> #4 (Lavish fix) -> #6 (this PR); the base is feature/lavish-read-list-format, so the diff is the ClickUp change only.

Add-on commit installed from: szobonyaerik/firstmate-clickup@8994f1e3ed9ae85f84c169811c70dcdaf092acfc.
@krodak/clickup-cli 1.46.1 was installed globally with npm; no cup profile, token, or ClickUp data was created, and no real ClickUp ids are committed.

Deviation from the add-on text

  • Only the SKILL.md frontmatter description differs from the add-on: "Use at session start" became "Use the first time ClickUp work comes up in a session (never at session start)". Skill descriptions are the always-loaded trigger index after the upstream catch-up, so the verbatim text would load the skill and its live ClickUp read at startup. The rules body is verbatim, plus user-invocable: false and metadata.internal: true frontmatter.

Conflicts between the add-on rules and AGENTS.md (rule text left verbatim, accepted as-is)

  • "Spawn a Haiku helper" for bulk reads and the change-detection look is a Claude-specific native subagent, outside the section 4 dispatch path (fm-spawn, verified harnesses, dispatch profiles); non-Claude primaries have no Haiku.
  • Asking the owner "ticket or local only?" on every new firstmate-filed work adds an owner prompt beyond the ones AGENTS.md section 9 allows (review, approval, merge, design pick).
  • The skill's "one look at session start" is a live network read outside bin/fm-session-start.sh and its deferred network stage (section 3); this PR loads the skill the first time ClickUp work comes up in a session instead, never at session start.
  • "Every ticket assigned to the owner is in scope" is broader than the requested scope (only OwnDivision and Theovya); only the private config project map narrows what gets mapped.
  • "Tell the owner" in a secondmate home must go through the parent channel (section 9); the rules do not say so.

Upstream suggestions for the add-on

  • Scope-filter support: let the skill limit assigned reads and change detection to the projects mapped in config/clickup.json, so tickets from other team projects are not surfaced.
  • Move the change-detection look and the description's "Use at session start" off session start (first ClickUp use instead), matching this repo's description change.

Noticed

  • This Claude environment has a claude.ai ClickUp MCP connector attached, which the skill forbids using.
  • config/clickup.example.json seeds personal and life entries not wanted yet; the local config/clickup.json should hold only the team profile and the OwnDivision and Theovya projects.
  • cup lives in the active nvm Node's global prefix; switching Node versions hides it.
  • .gitignore already ignored config/, so the installer's config/clickup.json line is redundant but kept so re-running the installer is a no-op.

Skills used: firstmate-coding-guidelines, no-mistakes.

Pipeline

Updates from git push no-mistakes

✅ **intent** - passed

✅ No issues found.

✅ **Rebase** - passed

✅ No issues found.

⚠️ **Review** - 1 warning
  • ⚠️ AGENTS.md:1 - The intent says "Start it now, before the firstmate upstream catch-up and the Lavish fix have landed". That means the ClickUp install should not wait for those two branches. But merge f042672 pulls origin/feature/lavish-read-list-format, which already contains origin/feature/fm-upstream-sync, into this branch. As a result, the diff from 89e1459 to 3dbd8d8 has 350 files and about 54k added lines. The ClickUp work itself is only 5 small commits (the skill, a .gitignore line, the trigger entry, the config docs, and the audience entry). The resulting PR would ship the upstream catch-up and the Lavish fix with it, and could not merge on its own. The merge was probably done to resolve the AGENTS.md trigger-index move: the upstream sync moved skill triggers into the agent-skill-trigger-index skill and the layout into the operational-home-layout skill. Confirm the captain wants this PR stacked on those branches. The alternative is to rebase the ClickUp commits onto main as an independent PR.
⚠️ **Test** - 1 info
  • ℹ️ .agents/skills/clickup-tickets/SKILL.md:3 - Re-running the add-on's install.sh, as the captain would do when syncing with Erik's repo, overwrites SKILL.md with the upstream copy. That brings back 'Use at session start' in the description and drops user-invocable: false / metadata.internal: true. The doc-audience checks still pass afterwards. The AGENTS.md / trigger-index entry, which is what actually decides when the skill loads, is unaffected. The .gitignore line was kept so a re-run leaves no changes, but a re-run still changes this file. Transcript: installer-rerun.txt. Consider upstreaming the frontmatter change to firstmate-clickup.
  • bash tests/fm-documentation-audiences.test.sh
  • bash tests/fm-gitignore-config.test.sh
  • bash tests/fm-harness-adapter-references.test.sh
  • bash bin/fm-doc-audience-check.sh
  • git check-ignore -v config/clickup.json plus creating a throwaway config/clickup.json and confirming git status --porcelain stays clean
  • npm view @krodak/[email protected] and npx -y @krodak/[email protected] --version/--help (pinned cup installs via npm and runs)
  • Checked every cup &lt;subcommand&gt; mentioned in SKILL.md against the pinned CLI's --help (all 21 exist)
  • Diffed the installed SKILL.md against the upstream szobonyaerik/firstmate-clickup skill/clickup-tickets/SKILL.md
  • Ran the add-on install.sh against a temporary copy of this branch (stub cup on PATH, no global npm install), then re-ran the doc-audience test and check
✅ **Document** - passed

✅ No issues found.

✅ **Lint** - passed

✅ No issues found.

✅ **Push** - passed

✅ No issues found.

Install the clickup-tickets skill from the firstmate-clickup add-on
(szobonyaerik/firstmate-clickup@8994f1e)
so firstmate can read and update ClickUp tickets through the pinned cup CLI.

- Copy the skill verbatim, adding only user-invocable: false and
  metadata.internal: true to match sibling internal skills.
- Register its load trigger in AGENTS.md section 13, gated on
  config/clickup.json being present.
- Document the private config/clickup.json in docs/configuration.md and the
  AGENTS.md section 2 layout, and classify the skill in the documentation
  audience inventory.
- Keep the installer's config/clickup.json .gitignore line so re-running the
  installer stays a no-op.

Add-on commit installed from: szobonyaerik/firstmate-clickup@8994f1e
cup: @krodak/clickup-cli 1.46.1 installed globally with npm (nvm node v22.22.3 prefix); `cup --version` -> 1.46.1. No profile created.

Conflicts between the add-on rules and AGENTS.md (rules left unchanged):
- "Spawn a Haiku helper" for bulk reads and the session-start look is a model-specific native subagent, outside AGENTS.md section 4 dispatch (fm-spawn, verified harnesses, dispatch profiles); non-Claude primaries have no Haiku.
- "Ask the owner 'ticket or local only?'" on every new firstmate-filed work adds an owner question where AGENTS.md section 9 asks only for review, approval, merge, or design pick.
- The one ClickUp look at session start is a network read outside bin/fm-session-start.sh and its deferred network stage (section 3).
- "Every ticket assigned to the owner is in scope" is broader than the requested scope (only OwnDivision and Theovya); only the config project map narrows it.
- "Tell the owner" in a secondmate home must go through the parent channel (section 9); the rules do not say so.

Noticed:
- This Claude environment has a claude.ai ClickUp MCP connector attached, which the skill forbids using.
- config/clickup.example.json seeds personal and life entries not wanted yet; the local config/clickup.json must be trimmed to the team profile and the OwnDivision/Theovya projects.
- cup lives in the active nvm Node's global prefix; switching Node versions hides it.
- .gitignore already ignored config/, so the installer's config/clickup.json line is redundant but kept so re-running the installer is a no-op.

Skills used: firstmate-coding-guidelines.
… into feature/fm-clickup-install-c1

# Conflicts:
#	AGENTS.md
…n start

Skill descriptions are now the always-loaded trigger index, so the add-on's
verbatim "Use at session start" would load the skill and its live ClickUp
read at startup. Change only the frontmatter description to match the
trigger-index entry; the rules body stays verbatim. The same change is
suggested upstream to the firstmate-clickup add-on.
@demy00
demy00 changed the base branch from main to feature/lavish-read-list-format September 30, 2026 21:06
@demy00 demy00 changed the title feat(skills): add the clickup-tickets skill for ClickUp task management feat(skills): install the clickup-tickets skill for ClickUp ticket work Sep 30, 2026
@demy00
demy00 merged commit 09efd59 into feature/lavish-read-list-format Oct 1, 2026
demy00 added a commit that referenced this pull request Oct 1, 2026
Land the Lavish fix (#4) and the ClickUp skill (#6) on main
demy00 added a commit that referenced this pull request Oct 16, 2026
## Conflict resolutions

The trial merge listed 13 conflicted files; the actual merge also conflicts in `tests/fm-procevent.test.sh` (14 total).

| File | Fork origin | Resolution |
| --- | --- | --- |
| `.agents/skills/agent-skill-trigger-index/SKILL.md` | 09efd59 (#6, clickup-tickets) | Fork's `clickup-tickets` trigger line re-added to upstream's list unchanged. |
| `AGENTS.md` | 3843b2c (#8, skill selection); 89e1459 (#3, `feature/` prefix) | Fork's `fm-skill-select.sh --apply` line and the `feature/` default wording re-applied on upstream's new section 7 text (upstream added `--base-branch` and self-repo consent lines next to it; both kept). |
| `README.md` | 89e1459 (#3), via earlier fork syncs | Default ship-branch prefix wording stays `feature/` in upstream's rewritten bullet. |
| `bin/fm-captain-hold.sh` | 999f9d8 (#1, done-archive evidence) | Fork's done-archive lookup re-applied unchanged on upstream's version. |
| `bin/fm-dod-lib.sh` | 89e1459 (#3), 16cc4bd | Upstream's new base-branch/forge/consent code kept; its two `fm/$id` defaults now call `fm_task_branch` and the lib sources `fm-task-branch-lib.sh`, as the fork did before. |
| `bin/fm-procevent-lavish.sh` | 826e32b, 79d101b, d0ac8f4, cbfb295 (#7) | True clash, decided by the captain (option A) - see below. |
| `bin/fm-spawn.sh` | 89e1459 (#3), 16cc4bd, b7edc11, 153f4e2, de04c2d | Fork's `feature/` branch naming and legacy-brief branch binding re-applied unchanged on upstream's version. |
| `bin/fm-timeout-lib.sh` | 9e8b923 (bash without `BASHPID`) | Upstream fixed the same macOS bash 3.2 bug independently (5838f10, kunchenguid#6028, perl watchdog takes the pre-exec parent). Took upstream's code; the fork's regression test for it is kept and passes on upstream's fix. |
| `docs/architecture.md` | 89e1459 (#3) | `feature/` default and the `fm-task-branch-lib.sh` ownership line re-applied. |
| `tests/fm-brief.test.sh` | 89e1459 (#3), via earlier fork syncs | Expected branch names stay `feature/<id>` in upstream's updated cases. |
| `tests/fm-calm-pi-extension.test.sh` | bc3f178 (#10), 1757302 (#8 CI fix) | Upstream fixed the `/reload` geometry flake its own way (`wait_for_geometry_reload` on a durable status row), so the fork's `pipe-pane` version is dropped. Kept the fork's lookup-counting export renderer, the report-based Chrome hang attempt check, and the `tuiMode: regular` settings pin next to upstream's `--tui-mode regular` flag. |
| `tests/fm-procevent.test.sh` | #7 | Both test sets kept; see the Lavish decision. |
| `tests/fm-review-diff.test.sh` | 89e1459 (#3) | Fork's two unrecorded-`feature/` branch cases re-added; case letters shifted after upstream's new cases. |
| `tests/fm-timeout-lib.test.sh` | 9e8b923 | Fork's no-`BASHPID` test kept on top of upstream's tests. |

## Decision: Lavish list-form parser (captain chose option A)

Both sides fixed the same bug: Lavish emits queued feedback as a TOON list (not a table) when items carry nested content, and the adapter read it as an empty, complete result.

- Fork (#7): one parser that flattens and presents every nested field (table-cell `target:`, `attachments:`, other `fields:`, message uid/selector/text), adds `unpresented_items:`, and refuses `complete: yes` when nested content cannot be parsed.
- Upstream (fc8972c, kunchenguid#5404): one parser that skips nested targets and attachments; its tests assert nested content is absent from `read`. It also adds stricter refusals (unrecognized header keeps its declared count and counts as malformed; `answers`/`reconciles` exit 3 when not fully accounted for), and 228b27d renames the message count to `captain_message_count`.

Options:

- **A (chosen):** keep the fork's presenting parser, port upstream's strictness onto it (declared count + malformed on an unrecognized header, `answers`/`reconciles` exit 3, `captain_message_count`), keep both test sets, and adapt upstream's three "absent" assertions to check nested content appears only under its own labelled section and never replaces the item's own text.
  Cost: this region will likely conflict again on the next upstream sync.
- **B:** take upstream's parser and tests wholesale and drop the fork's nested presentation.
  Cost: Lavish reads lose table-cell location, text-selection range, and image attachment paths.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant