/colin-shipping:cclsp-fix-diagnosticsfrom colin-shipping
Scans a codebase with the CCLSP MCP and fixes reported LSP diagnostics. Language-agnostic, supports scoping to files, folders, commits, branches, or PRs/MRs.
Ships in colin-shipping. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Scan code with the CCLSP MCP, classify each reported diagnostic as fix-in-place or defer, apply low-risk fixes, and track progress in a per-run checklist file. Resumable across sessions: the checklist (not this skill) is the durable state.
This skill is language-agnostic — it relies on whatever LSP servers CCLSP has configured for the project's file types. The only hard requirement is the CCLSP MCP being available.
Use this skill for requests like:
src/foo/"<file> for errors"Use the CCLSP MCP — load schemas with ToolSearch if they aren't active:
mcp__cclsp__get_workspace_diagnostics — primary, scans a chunk of filesmcp__cclsp__get_diagnostics — single-file follow-up after a fixmcp__cclsp__find_definition, find_references, get_hover — understand
symbols before editingmcp__cclsp__rename_symbol_strict — when a fix requires a renamemcp__cclsp__restart_server — call this after every edit to a file
whose LSP server caches diagnostics; many servers return stale results
until restarted. Pass the affected file extension(s).Prefer CCLSP over grep/Read for symbol navigation.
The user may identify scope using any mix of:
vendor/**, node_modules/**,
target/**, dist/**, build/**, .venv/**, venv/**, __pycache__/**,
.next/**, .nuxt/**, .output/**, coverage/**, generated/gen/**,
language-specific lock dirs). Include them only if the user explicitly
asks.src/** or **/*.ts.HEAD~5..HEAD, origin/main...HEAD, <branch>. Use:
git diff --name-only <range>
filter to file types with an LSP, then scan those paths.gh/glab to resolve the source branch, then
git diff --name-only <target>...<source>.If unclear, ask the user to confirm scope before kicking off a multi-hour
whole-repo sweep. Do NOT ask when the request is unambiguously narrow
("fix diagnostics in foo.ts").
Before chunking, figure out which LSP servers CCLSP will actually use:
mcp__cclsp__get_workspace_diagnostics on a single known file
to confirm the server is responsive.git ls-files | awk -F. '{print $NF}' | sort | uniq -c | sort -rn | head gives a quick extension
histogram. Cross-reference with what CCLSP has configured (try a scan on
one file per extension if unsure).Whole-workspace cclsp calls time out on large codebases (the wall budget is
~120 000 ms, and cold-cache scans are slow). Split work into chunks sized so
each scan returns in under ~120 s. Empirical rule: up to ~1000 files per
chunk is usually safe once the LSP has warmed up; start lower (~300–500)
for the first chunks while indexing.
When the user provides a narrow scope, the "chunk list" may be a single chunk. When the user provides no scope, generate chunks by walking the tree:
src/, lib/, app/,
pkg/, cmd/, internal/). For monorepos, one chunk per package /
workspace.PARTIAL (file cap or time budget),
split it by sub-directory and process each child chunk individually.tests/, test/,
__tests__/, spec/)..phtml, .vue, .tsx, .svelte, .html)
scan after primary source chunks are clean — they often depend on
symbols defined elsewhere.Always skip third-party/generated trees unless the user explicitly opts in (see the default-exclude list above).
Write a per-run checklist file. Default name:
.tmp/cclsp-fix-diagnostics-<scope>-<YYYY-MM-DD>.md, where <scope> is a
slug describing the run (fullsweep, branch-feature-x, PR-1234,
src-foo, etc.). Use .tmp/ because most projects gitignore it; place
the file elsewhere only if the user asks. If .tmp/ is not gitignored in
this repo, prefer the project's existing scratch dir or ask.
The checklist file is state, not instructions — the skill carries the instructions, the checklist carries the per-run findings and progress markers. Structure:
# CCLSP Fix Diagnostics — <scope> — <date>
Scope: <how the user described it, plus resolved file count>
Started: <UTC timestamp>
Languages: <extensions covered by an LSP>
## Chunks
Legend: `[ ]` not started · `[~]` in progress · `[/]` split into sub-chunks · `[x]` done · `[D]` chunk deferred
- [ ] **<chunk-name>** — `<glob or path list>`
- Findings:
## Run log
<append a one-line entry per session: timestamp, chunks touched, errors fixed, errors deferred>
For each finding within a chunk, append a per-error checkbox under the
chunk's Findings: heading:
- [ ] <abs-path>:<line> — [<code>] <message>
Use [x] after fixing, [D] after deferring (with → reason).
For each unchecked chunk in the checklist:
Mark in progress. Flip [ ] to [~] and add started: <UTC ts>.
Load any project skills that match the chunk's path (read the
project's AGENTS.md / CLAUDE.md / skills index if present).
Run diagnostics:
mcp__cclsp__get_workspace_diagnostics
root: <project root>
patterns: ["<chunk-glob>"] # or `paths` for explicit lists
min_severity: error # widen to "warning" only after errors are clean
format: by_file
time_budget_ms: 120000
max_diagnostics: 500
If the call returns PARTIAL (file cap or time budget), split the chunk:
add sub-chunks below the parent in the checklist, mark the parent [/],
and process the sub-chunks individually.
Append findings to the chunk's Findings: section, one [ ] line
per error. Group repeated errors in the same file on one line if it
keeps the list scannable.
For each [ ] finding, fix or defer:
Read or get_hover) before editing.Edit, then restart the LSP for that
extension (mcp__cclsp__restart_server with the relevant
extensions), then re-scan the edited file via
mcp__cclsp__get_diagnostics to confirm the error cleared.[x] (fixed) or [D] → reason (deferred).Close the chunk. Flip [~] to [x] with done: <UTC ts> once
every finding is [x] or [D]. If the chunk is clean, write
Findings: clean (<N> files) and close it the same way.
Commit per logical group. After 1–3 chunks of fixes, create a focused
commit (e.g. chore: fix LSP-reported diagnostics in <area>). Do NOT
push unless the user asks.
After every chunk is [x] or [D], append a final summary entry to the
checklist's Run log (timestamp, total fixed, total deferred, any
behavioral questions flagged). Show the user the list of modified files
and the deferred findings so they can decide on follow-ups.
Fix in place when the change is mechanical and self-contained:
self vs. this, etc.).null where
undefined is expected and the surrounding code already uses
undefined).Defer ([D]) when:
When unsure, defer with a reason rather than guess. The user can
sweep the [D] items afterwards.
LSP servers are strict in places where a language or framework is permissive. Common patterns across languages:
__call, __getattr__,
method_missing, proxy objects, ORMs that synthesize methods. The
LSP can't see these; don't "fix" them by adding stubs.@type/@property style
hints rather than rewriting the runtime behavior.When a finding is a confirmed false positive: prefer an in-code
annotation that suppresses it locally (e.g. @phpstan-ignore,
// eslint-disable-next-line, # type: ignore, // @ts-expect-error)
over a .cclsp global suppression — annotations stay close to the
code they describe and don't hide future regressions elsewhere.
The checklist file is the single source of truth for in-flight state:
## Discovered chunks heading at the bottom and process it like any
other.[~] chunks first,
then resume from the next [ ].git status — confirm the working tree is in the expected state. If
unrelated changes are staged, stop and ask the user.Findings sections — if any chunk is [~],
resume that one first.restart_server clears the in-memory cache but does NOT lose the
on-disk index for servers that persist one, so restarts are cheap.
Restart after every edit before re-verifying — otherwise the LSP
may return stale diagnostics.**/*.ts) hit the file cap and need splitting.tsc --noEmit,
cargo check, go build ./...) before the first scan — this
pre-populates caches and dependency resolution.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
Other plugins' skills for the same job
npx claudepluginhub colinmollenhour/dotfiles --plugin colin-shipping34 skills in this plugin
/clickup-task-authoringAuthor a ClickUp task from a conversation, plan, review, incident, or spec as CUFM via cup task-sync. Covers the source-fidelity ledger, the house voice for task copy (plain verbs, declarative mood, paragraphs over lists, 5% length budget), rich description structure (banners, toggles, mermaid, tldraw, tables), open-decision blocks (question, AI Recommendation, two alternatives), title conventions, workspace Value Stream / Requested By / Bug-type rules, and the post-write audit. Use when creating or updating ClickUp task content (file a bug, write a ticket, turn this into a task). Load the clickup skill from `cup skill` for CUFM syntax and task-sync flags. Workspace IDs come from `cup` or a project ClickUp skill. Formerly clickup-tasks./cli-designDesign, implement, or review CLI UX: args, flags, help, output, errors, config, interactivity, and distribution./colin-commit-and-pushCommit, push, and open/update a Github PR or GitLab MR (unless otherwise specified)/colin-critiqueMulti-model spec critique — surfaces inconsistencies, gaps, naming issues, and inferior design/colin-feature-exportCreate an implementation guide for a feature in this repo so you can port it to another repo/colin-finalize-specAugment the current plan with thorough software development planning to create a thorough spec.