agentleFS
rcdelfinrcdelfin/agentkit/skills/operations/clickup-tweak-workflow/SKILL.md

clickup-tweak-workflow

Skill2 starsChanged 3 months agoMITView on GitHub

Use when fixing or building a ClickUp card ID (e.g. GYMED-100) end-to-end, including branch, verification, and MR review.

  • Reads credentials

The file

Show its rules and text

We split this skill into the rules it gives an agent

20 rules. About 0 are common, 13 are distinctive, and 7 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈13

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 7

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Very specific:

    Prefer the MCP server: when connected — clickup_search_tasks, clickup_task_comments, and clickup_manage_task are richer than the REST …

    line 38
  2. Distinctive:

    If credentials are unavailable, stop and ask the user — never guess card content.

    line 52
  3. Distinctive:

    Use when the user gives a ClickUp task ID and wants the card implemented end to end in a GitLab-backed repo.

    line 56
  4. Very specific:

    If a bugfix turns out to need design work (behavior change, multiple approaches), give it the systems-thinking pass too.

    line 107
  5. Very specific:

    Route & plan: If blocking decisions remain, stop and ask to clarify or split the card.

    line 110
  6. Distinctive:

    Do not open a merge request on your own: Only create the MR — targeting the base from step 2 — when the user explicitly asks.

    line 131
  7. Very specific:

    Check for ai_code_review after the MR exists: If the pipeline exists, wait for it using glab ci list (filter by branch ref) or glab mr …

    line 134
  8. Distinctive:

    If no matching pipeline exists, record that the AI review gate is not configured and do not poll indefinitely.

    line 136
  9. Very specific:

    Work through every unresolved review thread: run mr-review, which owns local fixes, verification, replies, and resolution.

    line 140
  10. Distinctive:

    Record resolution when authorized: After verified shipping and review, add a concise resolution comment and update the card status through …

    line 144
  11. Distinctive:

    Never assume branch base, branch type, or MR creation is authorized.

    line 154
  12. Distinctive:

    Do not start unclaimed work or duplicate an already claimed card.

    line 155
  13. Distinctive:

    Do not pre-slice unresolved decisions into speculative implementation tasks.

    line 156
  14. Distinctive:

    Do not write planning metadata directly into rebuild-only wiki pages.

    line 157
  15. Distinctive:

    Do not mark a card complete without resolution evidence or authorized closure.

    line 158
  16. Distinctive:

    Do not skip root-cause investigation for hotfixes because urgency increases the cost of a wrong patch.

    line 159
  17. Distinctive:

    Do not push unverified code or resolve review threads before fixes are pushed.

    line 161
  18. Very specific:

    Do not assume ai_code_review exists.

    line 162
  19. Distinctive:

    Do not load every domain skill.

    line 164
  20. Very specific:

    Do not use scrutinize as a substitute for tests or post-MR mr-review.

    line 165

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

ClickUp Tweak Workflow

Take a ClickUp-tracked card end-to-end — bug fix or new feature. Maps to the standard flow: Understand → Route → Plan → Implement → Verify → Ship. This skill orchestrates: clickup (fetch the card), local-wiki (persist it locally), investigate / systems-thinking (understand — type- dependent), skill-orchestration (route the domain skills the change needs), tweak (plan when non-trivial), scrutinize (sanity-check risky plans / changes), git-actions (branch / commit / push / MR), and mr-review (drive the review-thread fix loop).

Scope: any implementable ClickUp card — defect, feature, or hotfix. Understand path depends on type: Bugfix / Hotfix → investigate (root cause; a ticket names a symptom, not the bug); Feature → systems-thinking (state ownership, feedback loops, blast radius).

Prerequisites — ClickUp Credentials

Credentials live in ~/.agents/.env or the process environment. The scripts read CLICKUP_API_KEY (canonical), optional CLICKUP_API_TOKEN, and CLICKUP_TEAM_ID from inherited env first, then ~/.agents/.env. Do not print or expose secret values.

VarUsed byFallback if env missing
CLICKUP_API_KEY (canonical)MCP server and REST scripts~/.agents/.env
CLICKUP_API_TOKEN (optional)REST scripts; legacy alias for KEY~/.agents/.env
CLICKUP_TEAM_IDboth — custom-ID resolution5747865

Prefer the MCP server when connected — clickup_search_tasks, clickup_task_comments, and clickup_manage_task are richer than the REST scripts. If it is unavailable, use the REST scripts; they read the same credentials from ~/.agents/.env.

Verify before starting

[ -n "$CLICKUP_API_TOKEN" ] && echo "env TOKEN ok" || echo "env TOKEN MISSING"
[ -n "$CLICKUP_API_KEY"   ] && echo "env KEY ok"   || echo "env KEY MISSING"
# Live test (scripts read env first):
python3 ~/.agents/skills/operations/clickup/scripts/show_task.py GYMED-793 --meta

If credentials are unavailable, stop and ask the user — never guess card content.

When to Use

Use when the user gives a ClickUp task ID and wants the card implemented end to end in a GitLab-backed repo. Do not use for non-ClickUp work, review-only tasks, cards the user only wants summarized, or non-GitLab repos unless the workflow stops after local verification.

Steps

  1. Ingest the card into the local wiki. Persist the ClickUp card before writing any code, so the context survives. Hand off to local-wiki (it locates the wiki — prefers docs/wiki/ — and obeys the wiki's own AGENTS.md). It fetches the card via clickup — prefer the MCP server's clickup_search_tasks / clickup_task_comments when connected; otherwise the REST scripts (show_task.py <ID>, show_comments.py <ID>) read creds from inherited env or ~/.agents/.env (see Prerequisites). Either way it writes the append-only raw corpus + rebuilds the topic page per the wiki's governance. If the card does not define a safe destination, stop and ask for clarification. For non-trivial cards, carry the destination (one-sentence done condition), boundary, and blocking unknowns into the tweak proposal/specs at step 4. If planning is blocked, append them to the card or a wiki location allowed by its AGENTS.md. For trivial cards, use a governed append-only note or card comment; never hand-edit rebuild-only wiki pages.
  2. Claim, classify & branch. Confirm card ownership before coding. If the card is unassigned, claim it through the approved tracker update operation when authorized; otherwise stop and ask. If assigned to someone else, stop and coordinate rather than duplicate work. Then classify the card, pick the prefix

    • base, and branch off the base the user confirms — never assume. Use git-actions.
    SignalTypePrefixSuggested base
    Urgent prod breakage — "hotfix", "urgent", critical priority on a defectHotfixhotfix/main
    Something broken — "bug", "fix", "error", a Bug task type/tagBugfixbugfix/develop
    New capability or behavior change — "add", "implement", "enhance", a Feature/Story typeFeaturefeature/develop

    Branch name: {prefix}/{CUSTOM_ID}-{short-title} (e.g. bugfix/TUKS-490-login-null-crash, feature/RT-812-invite-external-users).

    Trivial card? One-line fix, no logic — skip steps 3–4; jump to step 5 (implement & verify).

  3. Understand — type-dependent.

    • Bugfix / Hotfix → investigate: root-cause the defect before touching code (4 phases: investigate → analyze → hypothesize → implement). For a hotfix, keep it tight — root cause first, even under time pressure.
    • Feature → systems-thinking: map state ownership, feedback loops, and blast radius before changing anything; a feature is usually a cross-boundary / architecture change.

    If a bugfix turns out to need design work (behavior change, multiple approaches), give it the systems-thinking pass too.

  4. Route & plan. If blocking decisions remain, stop and ask to clarify or split the card. If the card exceeds one session but its destination is clear, require a tweak plan and explicit handoff checkpoint in its tasks or handoff note; do not claim completion or create speculative implementation scope.

    • Route → hand off to skill-orchestration to discover and load the smallest set of domain skills the actual change needs (e.g. laravel-conventions, api-endpoint-development, nuxt-*, pest-testing — whatever the code / language / framework touched calls for). Don't guess; let it match from the catalog.
    • Plan when needed → if the change is non-trivial, plan it with tweak (proposal → specs → design → tasks) before implementing.
    • Scrutinize when needed → after planning and before implementation, run scrutinize for cross-boundary, risky, public-contract, security, multiple-approach, or explicitly requested sanity-check work. Skip it for trivial one-file fixes and routine docs/config changes.
  5. Implement, then verify. Build the change on the branch, then verify before any push or MR — run the project's tests / typecheck / lint (the strongest applicable evidence). Don't push unverified code.
  6. Do not open a merge request on your own. Only create the MR — targeting the base from step 2 — when the user explicitly asks.
  7. Check for ai_code_review after the MR exists. If the pipeline exists, wait for it using glab ci list (filter by branch ref) or glab mr view <iid>. If no matching pipeline exists, record that the AI review gate is not configured and do not poll indefinitely; inspect available CI/review status instead.
  8. Work through every unresolved review thread: run mr-review, which owns local fixes, verification, replies, and resolution. Never resolve first. Repeat after each push until no resolvable threads remain.
  9. Record resolution when authorized. After verified shipping and review, add a concise resolution comment and update the card status through the approved tracker operation. If closure is not authorized or shipping is pending, record that explicitly instead of marking the card complete.

Pitfalls

  • Keep one token var: CLICKUP_API_KEY is canonical; REST scripts accept CLICKUP_API_TOKEN as a legacy alias. Keep credentials in ~/.agents/.env and never print their values.
  • Never assume branch base, branch type, or MR creation is authorized.
  • Do not start unclaimed work or duplicate an already claimed card.
  • Do not pre-slice unresolved decisions into speculative implementation tasks.
  • Do not write planning metadata directly into rebuild-only wiki pages.
  • Do not mark a card complete without resolution evidence or authorized closure.
  • Do not skip root-cause investigation for hotfixes because urgency increases the cost of a wrong patch.
  • Do not push unverified code or resolve review threads before fixes are pushed.
  • Do not assume ai_code_review exists; record a missing gate instead of polling forever.
  • Do not load every domain skill; route only skills required by touched code.
  • Do not use scrutinize as a substitute for tests or post-MR mr-review.

Verification

  • Card and comments persisted in the governed local wiki.
  • Destination, boundary, and blocking unknowns recorded.
  • Card ownership, type, branch name, and base confirmed before branching.
  • Required domain skills routed; non-trivial work planned with tweak.
  • Large work has a plan and explicit handoff checkpoint, or is complete in-session.
  • Risky/non-trivial plan or change scrutinized, or skip was justified.
  • Tests, typecheck, lint, or strongest applicable checks pass.
  • MR created only when explicitly requested.
  • When present, AI review completed; otherwise missing gate recorded.
  • Every resolvable review thread fixed or explained, replied to, and resolved.
  • Resolution comment/status recorded, or closure explicitly pending authorization.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.