Skip to content

chore: stop shipping agent skills in the comark package - #569

Merged
farnabaz merged 1 commit into
mainfrom
chore/drop-package-skills
Nov 6, 2026
Merged

farnabaz merged 1 commit into
mainfrom
chore/drop-package-skills

Conversation

@atinux

@atinux atinux commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Written by an AI agent on behalf of @atinux. @atinux has not reviewed it yet.

comark ships a copy of docs/skills in its npm package (9 files, about 93 kB). Agents don't load skills from node_modules by themselves, and the README and the Installation page tell people to run npx skills add https://comark.dev, which serves docs/skills straight from the docs site. Since #562 the copy also runs in every comark build with rm/cp, which CodeRabbit noted breaks on Windows.

Changes

  • Remove skills from comark's files. build and prepack go back to plain tsc.
  • Remove the root skills symlink and its .gitignore entry. The symlink pointed at the gitignored packages/comark/skills, so it was already broken on GitHub.
  • Bundle snapshot: comark back to 422k (167 files).
  • AGENTS.md: the release section says skills are served from comark.dev.

Verification

  • pnpm prepack && pnpm vitest run bundle: 2 tests pass.
  • npm pack --dry-run --json in packages/comark (scripts enabled): 167 entries, none under skills/.
  • https://comark.dev/.well-known/skills/index.json lists the comark skill, so npx skills add https://comark.dev is unaffected.

Merging this before the release PR (#564) means 0.9.0 ships without skills/.

ELI5

The comark package carried a copy of instructions for AI coding assistants that those assistants don't read from there. They already get them from the website, so the copy goes away and the package gets smaller.

Summary by CodeRabbit

  • Distribution
    • Agent skills are now served from comark.dev and are no longer included in the published npm package.
    • The published package is smaller, with the bundle changing from 515 KB (176 files) to 422 KB (167 files).

Coding agents install the skill from comark.dev (npx skills add https://comark.dev),
which serves docs/skills directly.

Amp-Thread-ID: https://ampcode.com/threads/T-01a1ac63-4516-75b8-8175-f71fb7ac610b
@atinux
atinux requested a review from farnabaz as a code owner November 5, 2026 21:01
@coldtea-pr-lens

Copy link
Copy Markdown

Note

The title starts with chore:, so PR Lens left this pull request undrawn. Comment @pr-lens draw to draw it

github.comment.notice: false in .github/pr-lens.yml turns this note off

@vercel

vercel Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
comark Ready Ready Preview Nov 5, 2026 9:04pm UTC
comark-binding Ready Ready Preview Nov 5, 2026 9:04pm UTC
comark-json-render Ready Ready Preview Nov 5, 2026 9:04pm UTC
comark-nextjs Ready Ready Preview Nov 5, 2026 9:04pm UTC
comark-nuxt Ready Ready Preview Nov 5, 2026 9:04pm UTC
comark-svelte Ready Ready Preview Nov 5, 2026 9:04pm UTC
comark-sveltekit Ready Ready Preview Nov 5, 2026 9:04pm UTC
comark-twoslash Ready Ready Preview Nov 5, 2026 9:04pm UTC
comark-vue Ready Ready Preview Nov 5, 2026 9:04pm UTC

@coderabbitai

coderabbitai Bot commented Nov 5, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The comark package no longer includes or copies agent skills. The release instructions state that skills are served from comark.dev and are not shipped in npm packages. The bundle test snapshot reflects the smaller package.

Changes: Comark package contents

Layer / File(s) Summary
Package contents and validation
packages/comark/package.json, .gitignore, skills, AGENTS.md, test/bundle.test.ts
The published files list and build scripts no longer include or copy skills. The release instructions state that skills are served from comark.dev and are not shipped in npm packages. The skills ignore entry is removed, and the bundle snapshot changes to 422k (167 files).

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Other

Possibly related PRs

  • comarkdown/comark#562: Adds the skill-copy steps that this PR removes, and changes the same release instructions and bundle snapshot.
  • comarkdown/comark#559: Also changes the expected packed comark output, so the bundle snapshot may need to account for both changes.

Suggested reviewers: arashsheyda

Merge Risk: Minimal · up to 2c7e4

Skills will no longer ship in the npm package; no merge-blocking issue is identified.

Pre-merge checks: Passed 5

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "chore: stop shipping agent skills in the comark package" matches the main change. The PR removes the skills directory from the comark npm package, drops the root skills symlink and its .git…
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "chore: stop shipping agent skills in the comark package" matches the main change. The PR removes the skills directory from the comark npm package, drops the root skills symlink and its .gitignore entry, and reverts the build and prepack scripts so they no longer copy docs/skills. The title is specific, concise, and uses a conventional commit prefix.

Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 1 files. (2 skipped: 2 unsupported.)

Finishing Touches

Generate docstrings

  • Commit to this branch
  • Create a new PR
Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 936805a3-9702-4bd4-ada8-2d8640a37090
Commits

Reviewing files that changed from the base of the PR and between 439c6f0 and 2c7e498.

Files selected for processing: 5

  • .gitignore
  • AGENTS.md
  • packages/comark/package.json
  • skills
  • test/bundle.test.ts
Files with no reviewable changes: 2

  • skills
  • .gitignore

Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review.

@pkg-pr-new

pkg-pr-new Bot commented Nov 5, 2026

Copy link
Copy Markdown

Open in StackBlitz

comark

npm i https://pkg.pr.new/comark@569

@comark/angular

npm i https://pkg.pr.new/@comark/angular@569

@comark/ansi

npm i https://pkg.pr.new/@comark/ansi@569

@comark/html

npm i https://pkg.pr.new/@comark/html@569

@comark/nuxt

npm i https://pkg.pr.new/@comark/nuxt@569

@comark/react

npm i https://pkg.pr.new/@comark/react@569

@comark/svelte

npm i https://pkg.pr.new/@comark/svelte@569

@comark/vue

npm i https://pkg.pr.new/@comark/vue@569

commit: 2c7e498

@codspeed

codspeed Bot commented Nov 5, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

1 warning

⚠️ 3 benchmarks are dominated by system calls

System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.

Learn more about system calls

See affected benchmarks

✅ 43 untouched benchmarks


Comparing chore/drop-package-skills (2c7e498) with main (439c6f0)

Open in CodSpeed

@farnabaz farnabaz left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Thanks

@farnabaz
farnabaz merged commit 0953373 into main Nov 6, 2026
17 checks passed
@farnabaz
farnabaz deleted the chore/drop-package-skills branch November 6, 2026 01:01
@github-actions github-actions Bot mentioned this pull request Nov 6, 2026

This branch was successfully deployed

8 active deployments
Preview – comark-nuxt — 2c7e4983 Deployed Nov 5, 2026 by vercel[bot]
Preview – comark-sveltekit — 2c7e4983 Deployed Nov 5, 2026 by vercel[bot]
Preview – comark-json-render — 2c7e4983 Deployed Nov 5, 2026 by vercel[bot]
Preview – comark-vue — 2c7e4983 Deployed Nov 5, 2026 by vercel[bot]
Preview – comark-twoslash — 2c7e4983 Deployed Nov 5, 2026 by vercel[bot]
Preview – comark-nextjs — 2c7e4983 Deployed Nov 5, 2026 by vercel[bot]
Preview – comark-binding — 2c7e4983 Deployed Nov 5, 2026 by vercel[bot]
Preview – comark-svelte — 2c7e4983 Deployed Nov 5, 2026 by vercel[bot]
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.

2 participants