Package release audit

From udecode/kitcn · View interactive version

Package release audit is an AI agent skill from the GitHub repository udecode/kitcn. Audit newer npm package releases against kitcn. Use when checking whether a newer dependency version unlocks kitcn improvements, compatibility work, CLI/agent workflows, or cleanup of local package-specific hacks. Reads package changelogs, GitHub releases, upstream diffs, and local kitcn usage befor

How to use this skill

Skill file

Package Release Audit

Handle $ARGUMENTS.

Goal: find newer releases for a named package, extract work kitcn can actually

use, then hand one concrete implementation slice to the Build playbook

(.agents/playbooks/build.md), which lands it through

node .agents/pstack/land.mjs.

Rules

problem.

leverageable improvement.

fixes share the same seam.

vanity PR.

1. Establish Package, Current, And Target Versions

Extract the package name from $ARGUMENTS. If the package name is ambiguous,

stop and ask for the exact npm package name.

Find the currently pinned package version:

rg -n '"<package-name>":' package.json packages/**/package.json example/package.json

Find the latest published version and package metadata:

npm view <package-name> version repository homepage dist-tags --json

If $ARGUMENTS names a target version, use it as the upper bound. Otherwise use

the latest npm version.

Record:

2. Read Changelogs And Release Notes

Prefer official sources in this order:

  1. package repository changelog files
  2. GitHub releases
  3. package docs/blog release pages from npm metadata
  4. npm package metadata only when no richer source exists

Read the repository changelog through gh, not browser scraping, when a GitHub

repo is available:

gh api \
  -H "Accept: application/vnd.github.raw" \
  repos/<owner>/<repo>/contents/CHANGELOG.md

If that path is missing, discover likely changelog paths:

gh api repos/<owner>/<repo>/git/trees/HEAD?recursive=1 \
  --jq '.tree[].path | select(test("(^|/)(CHANGELOG|RELEASES|HISTORY|UPGRADING|MIGRATION|MIGRATIONS)\\\\.(md|mdx|txt)$"; "i"))'

Read GitHub releases:

gh release list --repo <owner>/<repo> --limit 20
gh release view <tag-or-version> --repo <owner>/<repo>

Extract only the sections in range. Reconcile disagreements:

3. Read The Upstream Diff With `gh`

Use a local upstream clone for navigation, creating it only if missing:

test -d ../<repo-name>/.git || gh repo clone <owner>/<repo> ../<repo-name>
git -C ../<repo-name> fetch origin main --tags

Find refs for the current and target versions. Prefer tags if they exist:

git -C ../<repo-name> tag -l "*<version>*" | sort
git -C ../<repo-name> log --all --oneline -- '*package.json' '*CHANGELOG*'

If tags are unclear, inspect version-bump commits in the package's

package.json or changelog and use the commit before/after each version bump.

Read the compare through gh:

gh api \
  repos/<owner>/<repo>/compare/<base-ref>...<target-ref> \
  --jq '.files[] | select(.filename | test("package|src|cli|server|client|auth|plugin|adapter|schema|migration|agent|mcp|codegen|docs|CHANGELOG"; "i")) | {filename,status,patch}'

If the compare is too large, narrow locally after proving the refs:

git -C ../<repo-name> diff <base-ref>..<target-ref> -- \
  . ':!**/node_modules/**' ':!**/dist/**' ':!**/build/**'

4. Search Kitcn For Leverage

Search for local package integration points and hacks:

rg -n "<package-name>|<package-import>|<package-domain-term>|TODO|workaround|hack|temporary|shim|compat|adapter|plugin|peer|version" \
  packages www .agents docs test tooling

Also search institutional notes before proposing work:

rg -i --files-with-matches "<package-name>|<package-domain-term>|upgrade|compat|agent|cli|bootstrap|adapter|plugin|peer|version" docs/solutions

Read relevant hits, especially notes about:

5. Classify Opportunities

For each release item, classify it:

platform feature kitcn can expose.

machine-readable, MCP, CLI, or automation flows.

prompt handling, wrapper, patch, or doc warning.

skills.

For every non-no-op, include:

Bias toward agentic and cleanup; kitcn exists to make dependencies sharper

for humans and agents, not to mirror every upstream bullet.

6. Choose One PR Slice

Pick the highest-leverage slice using this order:

  1. compatibility breakage
  2. delete dirty hack made obsolete upstream
  3. agentic CLI/tooling unlock
  4. product feature kitcn can expose cleanly
  5. docs or skill-only update

If the winning slice touches published package code, the build must update

the active changeset and run bun --cwd packages/kitcn build.

If it touches scaffold templates, the build must run bun run fixtures:sync

and bun run fixtures:check.

7. Hand Off To The Build Playbook

Run the slice as "go" through the Build playbook

(.agents/playbooks/build.md) with a brief in this exact shape:

Implement this package release opportunity.

Package: <package-name>
Current version/range: <version>
Target version: <version>

Opportunity: <one-sentence selected slice>
Class: <feature | compatibility | agentic | cleanup | docs>

Evidence:
- Changelog/release notes: <short citation or summary>
- Upstream diff: <refs and files>
- Kitcn evidence: <local files and docs/solutions notes>

Implementation:
- <specific files or seams to inspect first>
- <expected code/doc/test shape>

Acceptance:
- <tests/checks>
- <package build if packages/kitcn changes>
- <fixtures commands if scaffold output changes>
- land through `node .agents/pstack/land.mjs` after verification

Do not preserve obsolete package workarounds if the upstream release removes
the need for them. Hard cut the hack.

Then follow the Build playbook until land.mjs pushes the slice to main from

the owner's clone or opens its PR from a contributor's, or a real blocker is

proven.

Output

Before the handoff, keep the audit terse:

Package: <package-name>
Current: <version>
Target: <version>

| Class | Opportunity | Evidence | Decision |
| --- | --- | --- | --- |
| cleanup | ... | ... | selected |

Handing to Build: <selected slice>

After the build lands, use the Build playbook's hand-back.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.