maintenance
Skill0 starsChanged 6 months agoApache-2.0View on GitHub
Investigate, adopt, and verify dependency updates — with special handling for `@cyanheads/mcp-ts-core`. Captures what changed, understands why, cross-references against the codebase, adopts framework improvements, syncs project skills, and runs final checks. Supports two entry modes: run the full flow end-to-end, or review updates you already applied.
- Reads credentials
15 other projects use a version of this.
Adopted by
Most recently taken up by
- bekalpaslan/promptlinetheir own version, first seen Nov 8, 2026
- anatolykoptev/piter-writer-packtheir own version, first seen Nov 8, 2026
- everruns/yoloptheir own version, first seen Nov 2, 2026
- JPeetz/agent-skillstheir own version, first seen Nov 1, 2026
- everruns/everrunstheir own version, first seen Oct 31, 2026
- erikdarlingdata/PerformanceMonitortheir own version, first seen Oct 25, 2026
Used with
Projects with it also use recall and release.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
termdockSkillrecall
Retrieves cross-session memories about past decisions, lessons, and patterns. Use when user asks about prior work, past decisions, or mentions a feature. Triggers include check memory, what did we decide, how did we solve.
Also in 3 projects that use this
MicrosoftSkillrelease
Use ONLY when the user explicitly asks to cut/publish a Huabu desktop release or tag a version. Performs an outward action — bumps the version in apps/desktop/package.json, commits + annotated-tags vX.Y.Z, and pushes the branch + tag. That tag push auto-builds the macOS/Windows installers and publishes a GitHub Release. Provides `status`, `bump`, `tag-push`, and a one-command `run` (bump → tag-push).
Also in 3 projects that use this
Other versions15 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 15
- Chachamaru127/claude-code-harness★ 3.2ksame name
- erikdarlingdata/PerformanceMonitor★ 526same name
- pipecat-ai/gradient-bang★ 420same name
- hyperlist/feishu-multi-agent★ 273same name
- erikdarlingdata/PerformanceStudio★ 245same name
- everruns/everruns★ 66same name
- everruns/yolop★ 18same name
- JPeetz/agent-skills★ 14same name
- bekalpaslan/promptline★ 11same name
- tomo3141592653/ayumu-oss★ 9same name
5 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository31 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- add-app-toolSkill
- add-promptSkill
- add-resourceSkill
- add-serviceSkill
- add-testSkill
- add-toolSkill
- api-authSkill
- api-canvasSkill
- api-configSkill
- api-contextSkill
- api-errorsSkill
- api-linterSkill
- api-mirrorSkill
- api-servicesSkill
- api-telemetrySkill
- api-testingSkill
- api-utilsSkill
- api-workersSkill
- code-simplifierSkill
- design-mcp-serverSkill
- field-testSkill
- git-wrapupSkill
- polish-docs-metaSkill
- release-and-publishSkill
- report-issue-frameworkSkill
- report-issue-localSkill
- security-passSkill
- setupSkill
- tool-defs-analysisSkill
The file
We split this skill into the rules it gives an agent
11 rules. 0 are common, 4 are distinctive, and 7 are very specific to this project.
0
Common
Most of the 11 edited versions we read keep these.
4
Distinctive
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
- Very specific: line 14
After running bun update --latest yourself and wanting to review the impact (Mode B — typical)
- Very specific: line 51
Do not redo this investigation inline — the changelog skill handles tag-format detection, monorepo patterns, and fallbacks.
- Very specific: line 66
If the per-version directory isn't present (pre-0.5.5 releases, or downstream package that hasn't adopted the convention), fall back to the …
- Very specific: line 103
If missing in project skills/, copy the full directory
- Very specific: line 104
If present, compare metadata.version — replace if the package version is newer
- Distinctive: line 105
If the local version is equal or newer, skip (local override)
- Very specific: line 106
Leave skills in skills/ that lack metadata.audience: external untouched — they're server-specific or sourced elsewhere, not …
- Distinctive: line 128
If no agent directory exists, skip Phase B — the project hasn't opted in to per-agent skill copies.
- Distinctive: line 191
If you find yourself writing the left-column phrasing in Step 8's "Open decisions", stop and adopt it instead.
- Very specific: line 195
Read the changelog findings from Step 3, assess impact against actual call sites in src/.
- Distinctive: line 198
If the library added a feature the server could use, note it but don't refactor speculatively.
“Common” is measured: kept by at least 6 in 10 of the 11 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
When to Use
- After running
bun update --latestyourself and wanting to review the impact (Mode B — typical) - To run the whole flow end-to-end — outdated check → update → investigate → adopt → verify (Mode A)
- Periodically, to check for skill drift from the package
Entry Modes
| Mode | Starting Point | First Step |
| A — Full flow | Lockfile is current; want to update | Step 1 |
| B — Post-update review | User already ran bun update --latest + bun run rebuild + bun run test | Skip to Step 3 with the update output or a bun.lock diff |
Both modes converge at Step 3 and end at Step 8.
Steps
1. Survey what's outdated (Mode A only)
bun run devcheck --only outdatedWraps bun outdated with the project's devcheck.config.json allowlist applied, so intentionally-pinned packages don't surface as actionable. Plain bun outdated works too if you want the unfiltered view.
Note: bun update --latest crosses semver majors; bun update alone respects ranges. Use --latest unless a package is intentionally pinned.
2. Apply the update (Mode A only)
bun update --latestCapture the ↑ package old → new lines from stdout — these feed Step 3. Alternatively, diff bun.lock to surface version deltas after the fact.
3. Investigate changelogs
Invoke the changelog skill with the captured list of updated packages. It resolves each repo, fetches release notes (or CHANGELOG entries) between old and new versions, and cross-references changes against actual imports in src/. Output per package: what changed, impact on this project, action items.
Do not redo this investigation inline — the changelog skill handles tag-format detection, monorepo patterns, and fallbacks. If the skill cannot resolve a package (private repo, no tags, no CHANGELOG), note it in Step 8 under "Open decisions" and proceed.
4. Framework review (@cyanheads/mcp-ts-core)
Skill-version paradox. If node_modules/@cyanheads/mcp-ts-core/skills/maintenance/SKILL.md's version exceeds the one running, run Step 5 Phase A first and re-invoke maintenance — otherwise feature-adoption rows added in the new version silently don't surface. After Phase A, confirm the running skill version matches the package before continuing. If the session still has the old skill loaded, exit and restart.
If @cyanheads/mcp-ts-core was updated, do a deeper pass beyond what the changelog skill covers. The framework ships a directory-based changelog grouped by minor series (.x semver-wildcard convention) — one file per released version at node_modules/@cyanheads/mcp-ts-core/changelog/<major.minor>.x/<version>.md. Read only the files between old and new rather than scanning a monolithic file.
Example — 0.5.2 → 0.5.4 means reading two new version files:
node_modules/@cyanheads/mcp-ts-core/changelog/0.5.x/0.5.3.mdnode_modules/@cyanheads/mcp-ts-core/changelog/0.5.x/0.5.4.md
Cross-series updates span multiple directories — e.g., 0.4.1 → 0.5.2 reads 0.5.x/0.5.0.md, 0.5.x/0.5.1.md, 0.5.x/0.5.2.md. Enumerate the series directories under node_modules/@cyanheads/mcp-ts-core/changelog/ to find the relevant files.
If the per-version directory isn't present (pre-0.5.5 releases, or downstream package that hasn't adopted the convention), fall back to the monolithic rollup at node_modules/@cyanheads/mcp-ts-core/CHANGELOG.md and extract the relevant sections manually.
Scan specifically for:
| Area | Adoption Check |
New /errors surface — factories, typed contracts (errors[] + ctx.fail), httpErrorFromResponse | Replace ad-hoc new McpError(...) with factories; declare errors: [...] on tools that surface domain-specific failure modes; route declared throws through ctx.fail(reason, …) so the conformance lint is happy |
| Existing factory choice — semantic audit | Beyond factory-vs-new McpError: audit each throw factory(...) against intent. invalidParams (-32602) is for malformed JSON-RPC params (wrong-shape post-Zod is rare); semantic post-shape validation should use validationError (-32007). notFound for missing entities, conflict for state collisions, unauthorized vs forbidden for unauth vs scope-denied. Wrong codes degrade mcp_error_classified_code observability and break client retry logic — fix during this pass even if not adopting contracts yet. |
New utilities in /utils | Identify any that supersede local helper code |
| New context capabilities | Added ctx.* methods worth adopting |
| Provider/service APIs | Updates to OpenRouterProvider, SpeechService, GraphService, etc. |
| Deprecations | Migrate now, before the next breaking release |
| Config changes | New env vars, renamed keys, changed defaults |
| Linter rules | New definition-lint rules that may now flag existing tools/resources |
| New or materially-changed skills | Note new skills or workflow changes (renamed steps, new checklist items) worth surfacing at end-of-run. Don't auto-invoke — some skills (e.g. security-pass) are user-triggered. The per-version changelog entries (e.g. 0.6.14 calling out skills/security-pass/ (v1.0)) name what changed. |
| New template-scaffolded files | Compare templates/ in the package against the project root. Files that init would create for a new project but don't exist in this project are adoption candidates — create them with project-specific values (version, name, description, env vars from server.json). Examples: manifest.json, .mcpbignore, .codex-plugin/, .claude-plugin/. Skip files the project has intentionally opted out of (documented in CLAUDE.md/AGENTS.md or a code comment). |
Changelog agent-notes | Read agent-notes frontmatter from each new per-version changelog file — these carry release-specific adoption instructions for downstream consumers (new files to create, fields to populate, one-time migration steps). Apply them alongside other adoption work in Step 6. |
Cross-reference each finding against the server's code. Collect adoption opportunities for Step 6.
Template review. The framework also ships templates/CLAUDE.md and templates/AGENTS.md as scaffolding for consumer agent protocol files. The consumer's CLAUDE.md/AGENTS.md was copied at init time and has since diverged (local customizations, echo replacements, server-specific sections). Read the upstream template fresh at node_modules/@cyanheads/mcp-ts-core/templates/CLAUDE.md.
Read the upstream template end-to-end, mentally comparing against the current CLAUDE.md/AGENTS.md. Apply framework-authored updates directly — new skill references in the skills table, new entries in the "What's Next?" section, updated convention callouts, clarified patterns. These are factual updates, not taste decisions; the consumer's agent protocol file is meant to track the framework's. Only surface a decision when a template change conflicts with a section the consumer has intentionally customized — a section is "intentionally customized" when it contains server-specific domain context, bespoke checklists, or content that doesn't originate from the template. In that case, note the conflict and ask.
5. Sync project skills and scripts
Skills flow in two hops: package → project skills/ → agent directories. Framework scripts flow in one: package → project scripts/. Both drift silently unless resynced.
Phase A — Package → Project skills/
- Package —
node_modules/@cyanheads/mcp-ts-core/skills/(canonical source) - Project —
skills/at project root (working copy; may contain local overrides or server-specific skills)
Procedure:
- List all skill directories in
node_modules/@cyanheads/mcp-ts-core/skills/ - For each skill with
metadata.audience: externalin itsSKILL.mdfrontmatter:- If missing in project
skills/, copy the full directory - If present, compare
metadata.version— replace if the package version is newer - If the local version is equal or newer, skip (local override)
- If missing in project
- Leave skills in
skills/that lackmetadata.audience: externaluntouched — they're server-specific or sourced elsewhere, not framework-managed. - Prune framework skills deleted upstream. A skill in
skills/that carriesmetadata.audience: externalbut is absent from the package was removed upstream (e.g.migrate-mcp-ts-template, removed in 0.9.12) and lingers because sync was previously add/update-only. Delete it fromskills/(and from the agent mirrors in Phase B). Theaudience: externalmarker is the provenance: it scopes the prune to framework-managed skills, so a server's own skills — which never carry it — are never touched. Before deleting, scan the skill for local edits worth keeping; if any exist, reconcile or surface them rather than discarding silently.
Skill diffs are adoption signal, not just sync output. After replacing files in skills/, run git diff skills/ to read what changed. Updated skill bodies describe new patterns, refined workflows, or new conventions — apply them to the codebase in Step 6 the same way you'd apply a framework API addition. The file copy is the trigger, not the work. The work is what the updated skill now says to do.
Phase B — Project skills/ → Agent directories
The setup skill instructs consumers to copy skills/* into their agent's skill directory at init time. Those copies go stale unless re-synced. Detect which agent directories exist and propagate:
| Agent | Directory |
| Claude Code | .claude/skills/ |
| Generic / shared | .agents/skills/ |
| Codex | .codex/skills/ |
| Cursor | .cursor/skills/ |
| Windsurf | .windsurf/skills/ |
For each agent directory that exists:
- For every directory in project
skills/, copy it into the agent dir (overwrite on match, add if missing) - Do not delete skills in the agent dir that aren't in project
skills/— they may be general-purpose skills sourced elsewhere (e.g.,code-security,cloudflare,changelog). Exception: a framework skill pruned in Phase A step 4 — delete that same-named directory from each agent dir too. Match by the specific name you just removed, never by a blanket "absent fromskills/" sweep (which would catch the externally-sourced skills above).
If no agent directory exists, skip Phase B — the project hasn't opted in to per-agent skill copies.
Phase C — Package framework files → Project
Two categories of framework-authored files ship into consumer projects and drift silently as the framework updates them. Both follow the same hash-compare-and-overwrite mechanic.
Scripts — init scaffolds a fixed set that underpin bun run build, bun run devcheck, bun run lint:mcp, bun run tree, and the changelog build. Iterate the package's shipped scripts directory:
for src in node_modules/@cyanheads/mcp-ts-core/scripts/*.ts; do
s=$(basename "$src")
dst="scripts/$s"
if [ ! -f "$dst" ]; then
cp "$src" "$dst"
echo "added: $s"
elif ! cmp -s "$src" "$dst"; then
cp "$src" "$dst"
echo "updated: $s"
fi
doneScripts in scripts/ that aren't present in the package directory are project-specific (custom deploy, codegen, etc.) — leave them alone. The package's files: field gates what ships into node_modules/.../scripts/, so enumerating that directory is the canonical "shipped scripts" set.
Pristine reference files — files explicitly documented as "never edit, rename, or move." The framework keeps the authoritative copy under templates/; the consumer's copy must track upstream as the format evolves (new frontmatter fields, section reorderings, etc.). Fixed src→dst mapping:
| Source (in package) | Destination (in project) |
templates/changelog/template.md | changelog/template.md |
Apply the same compare-and-overwrite logic. Add new entries here only when a template is explicitly documented as pristine in the framework's CLAUDE.md/AGENTS.md or its own header.
If the consumer customized a framework script or pristine reference (against guidance), the overwrite discards those changes. After the sync runs, diff scripts/ and the affected template paths to surface replacements — review before committing. If a specific local customization needs to be preserved, revert that file using your git tools.
Report which skills were added/updated in Phase A (with version deltas), which agent directories were refreshed in Phase B, and which scripts and pristine reference files were resynced in Phase C. The user needs to know what new guidance and tooling is now in play.
6. Adopt changes in the codebase
Apply the findings from Steps 3 and 4. Framework changes and third-party library changes have different adoption defaults — the asymmetry is deliberate.
Framework changes (@cyanheads/mcp-ts-core) — auto-adopt every applicable site, in this pass.
The consumer opted into the framework; its templates, skills, scripts, linter rules, conventions, and new APIs that supersede local code are authoritative. Adopt them now — not as a follow-up.
- Synced skill content from Phase A —
git diff skills/for every skill that was updated. Each updated body is new framework guidance; apply it to matching surfaces in this server. Examples:add-toolgains a section on output formatting → audit existing tool definitions against that section;api-errorsdocuments a new contract pattern → adopt across error surfaces;security-passadds a new check → run it against the surface. Skill updates aren't metadata. - Breaking changes — fix call sites. Not optional.
- Deprecations — migrate now, while context is fresh.
- New linter rules — if the rule now flags existing code, fix the code; don't silence the rule.
- New utilities that supersede local code — swap them in. The point of the framework is to centralize. This applies even when the local helper has richer messages or branch handling — port the domain detail onto the framework path; don't leave the local helper as-is. (E.g.,
httpErrorFromResponsereplacing a project-localthrowForStatus: keep the per-route message map, but route it through the framework utility.) - New conventions (template changes, new config keys, renamed env vars) — adopt and update
.env.example, server config schema,server.json, and README if user-facing. - New patterns that match existing surfaces — refactor every matching site in this pass. Examples: typed error contracts (
errors[]+ctx.fail) on tools that already throw domain-specific failures; factory adoption (notFound(),validationError(), …) replacing ad-hocnew McpError(...); new logging/observability hooks supplanting bespoke logging. If the framework added a pattern that fits N tools/services, do all N — partial adoption fragments the surface and rots faster. - New framework features that don't match existing use cases — skip. These are for future features, not retroactive refactors. "Don't match" means the surface doesn't exist in this server (e.g., a new Speech API in a non-speech server) — not "I'd have to touch a few files."
Hard rule — invalid framework deferrals.
| ❌ Not a valid reason to defer | ✅ Valid reason to defer |
| "Larger change than fits this pass" | Code-commented or CLAUDE.md/AGENTS.md-documented local override that intentionally diverges from the framework convention |
| "Marginal benefit / leaving as-is" | Breaking change with multiple migration paths that need user input |
| "Per-tool refactor — worth doing as a focused follow-up" | Feature genuinely doesn't apply (the surface doesn't exist in this server) |
| "Existing helper has rich domain messages we'd lose" | — (port the messages onto the framework path) |
| "Skill was synced, the file change is the adoption" | — (the file copy is the trigger; the adoption is applying the new guidance to the code) |
If you find yourself writing the left-column phrasing in Step 8's "Open decisions", stop and adopt it instead. Cost/benefit reasoning belongs to third-party changes only.
Third-party library changes — default cost/benefit.
- Read the changelog findings from Step 3, assess impact against actual call sites in
src/. - Adopt when the change is a clear win (performance, correctness, removed deprecation warning, smaller surface).
- Skip when marginal — a new convenience API isn't a reason to touch working code.
- If the library added a feature the server could use, note it but don't refactor speculatively.
7. Rebuild and verify
bun run rebuild
bun run devcheck
bun run testrebuild (clean + build) catches API surface and type-alignment issues that devcheck alone may miss — module resolution, path aliases, post-build processing. devcheck includes bun audit and bun outdated, so no separate audit step is needed.
In Mode B, the user already ran rebuild + test before invoking this skill, but run them again here — Step 6 made code changes that need re-verification.
Fix anything that fails. Re-run until clean.
Transitive advisory triage. If bun audit (inside devcheck) reports a vulnerability in a transitive dep, run bun run audit:refresh before treating it as real. Bun's bun update is sticky on transitive resolutions — it keeps lockfile entries even when a parent's range allows a newer patched version. audit:refresh deletes bun.lock, reinstalls, and re-audits; if the advisory disappears, it was a stale-lockfile false positive (commit the refreshed lockfile). If it survives, it's real — patch via package.json overrides or nudge upstream.
8. Summary
Present a concise numbered summary to the user:
- Updated packages — short list with version deltas (N total)
- Breaking changes handled — call sites fixed
- Features adopted — new framework APIs now in use
- Skills synced — added/updated with versions (Phase A) and agent directories refreshed (Phase B)
- New/changed skills available — skills that appeared in Phase A for the first time or had materially-changed step sequences. Frame as "consider running when the time is right" rather than immediate actions; the user decides when to invoke them.
- Open decisions — genuinely ambiguous items only. Valid: breaking changes with multiple migration paths needing user input, framework changes that conflict with a code-commented or
CLAUDE.md/AGENTS.md-documented local override, third-party adoptions where cost/benefit is close. Not valid: framework adoptions deferred for scope, effort, or marginal-benefit reasoning — those were already adopted in Step 6 and belong under "Features adopted." If this section is empty, that's the expected outcome of a clean framework upgrade. - Status — rebuild / devcheck / test results
Checklist
- Update applied (
bun update --latest) — Mode A, or already done by user — Mode B - Skill-version paradox checked — if package maintenance skill version > running version, Phase A run first and skill re-invoked
changelogskill invoked for each updated package- Framework CHANGELOG reviewed if
@cyanheads/mcp-ts-corewas updated - Framework
CLAUDE.md/AGENTS.mdtemplate reviewed; applicable updates applied or conflicts surfaced - Step 6 complete — all applicable framework adoption sites updated; third-party adoption decisions recorded
- Project
skills/synced from package (Phase A), with a change report - Agent skill directories (
.claude/skills/,.agents/skills/, etc.) refreshed from projectskills/(Phase B) - Framework
scripts/and pristine reference files resynced from package via content-hash compare (Phase C), with a change report; diffs reviewed before committing bun run rebuildsucceeds (re-run after Step 6, even in Mode B)bun run devcheckpasses (includes audit + outdated)bun run testpasses- Numbered summary presented to user
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
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.

