Skip to content

feat(cli): add claude code skill#1903

Merged
caio-pizzol merged 1 commit intomainfrom
caio/sd-1715-add-claude-code-skill-via-vercel-skills
Feb 1, 2026
Merged

feat(cli): add claude code skill#1903
caio-pizzol merged 1 commit intomainfrom
caio/sd-1715-add-claude-code-skill-via-vercel-skills

Conversation

@caio-pizzol
Copy link
Copy Markdown
Contributor

No description provided.

@linear
Copy link
Copy Markdown

linear Bot commented Feb 1, 2026

@caio-pizzol caio-pizzol force-pushed the caio/sd-1715-add-claude-code-skill-via-vercel-skills branch from c635a82 to b0cac7b Compare February 1, 2026 21:39
@caio-pizzol caio-pizzol merged commit e55ce56 into main Feb 1, 2026
4 of 5 checks passed
@caio-pizzol caio-pizzol deleted the caio/sd-1715-add-claude-code-skill-via-vercel-skills branch February 1, 2026 21:39
@chatgpt-codex-connector
Copy link
Copy Markdown

💡 Codex Review

export function replaceInDocument(doc: DocumentEditor, find: string, replaceWith: string): number {
// Search for all matches
const matches = searchDocument(doc, find);
if (matches.length === 0) return 0;
// Sort matches by position descending (replace from end to start to avoid position shifts)
const sortedMatches = [...matches].sort((a, b) => b.from - a.from);
// Replace each match using editor chain
for (const match of sortedMatches) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(doc.editor.chain() as any).setTextSelection({ from: match.from, to: match.to }).insertContent(replaceWith).run();

P1 Badge Avoid replacing multi-range search matches as a single span

The CLI’s replace uses from/to from editor.commands.search and replaces that entire span in one selection. However search can return multi-range matches (e.g., cross‑paragraph or transparent nodes) where ranges are non‑contiguous in the document (see packages/super-editor/src/extensions/search/search.js where ranges are built and stored). Collapsing each match to a single {from,to} span will delete any intervening content that wasn’t part of the match (bookmarks/comments/transparent nodes), corrupting documents on those inputs. Consider using the search command’s ranges or a dedicated replace command that respects them.

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented Feb 1, 2026

🎉 This PR is included in version 1.11.0-next.5 🎉

The release is available on:

Your semantic-release bot 📦🚀

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented Feb 1, 2026

🎉 This PR is included in version 1.1.0-next.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented Feb 2, 2026

🎉 This PR is included in version 0.1.0-next.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

superdoc-bot Bot pushed a commit that referenced this pull request Feb 2, 2026
# [0.1.0](cli-v0.0.0...cli-v0.1.0) (2026-02-02)

### Bug Fixes

* cli package public ([7dad84d](7dad84d))
* cli skill uses latest ([b74d9ba](b74d9ba))
* **cli:** document -h flag in help text ([020c4a0](020c4a0))
* **cli:** document -h flag in help text ([68fa42f](68fa42f))
* **cli:** move bundled deps to devDependencies ([6a362ed](6a362ed))
* **cli:** remove bundled deps from package.json ([f90d4af](f90d4af))
* console log ([4b64109](4b64109))

### Features

* **cli:** add claude code skill ([#1903](#1903)) ([e55ce56](e55ce56))
* new cli app ([#1902](#1902)) ([0c6aeb0](0c6aeb0))
@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented Feb 2, 2026

🎉 This PR is included in version 0.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

superdoc-bot Bot pushed a commit that referenced this pull request Feb 3, 2026
# [1.1.0](template-builder-v1.0.0...template-builder-v1.1.0) (2026-02-03)

### Bug Fixes

* cli package public ([7dad84d](7dad84d))
* cli skill uses latest ([b74d9ba](b74d9ba))
* **cli:** document -h flag in help text ([020c4a0](020c4a0))
* **cli:** document -h flag in help text ([68fa42f](68fa42f))
* **cli:** move bundled deps to devDependencies ([6a362ed](6a362ed))
* **cli:** remove bundled deps from package.json ([f90d4af](f90d4af))
* console log ([4b64109](4b64109))
* paragraph autospacing calculation (SD-1653) ([#1877](#1877)) ([b7dec3c](b7dec3c))

### Features

* add esign package to monorepo ([#1895](#1895)) ([532e2b5](532e2b5))
* **cli:** add claude code skill ([#1903](#1903)) ([e55ce56](e55ce56))
* new cli app ([#1902](#1902)) ([0c6aeb0](0c6aeb0))
* **template-builder:** add cspNonce support ([#1911](#1911)) ([5b7b34e](5b7b34e))
@superdoc-bot
Copy link
Copy Markdown
Contributor

superdoc-bot Bot commented Feb 3, 2026

🎉 This PR is included in version 1.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

harbournick pushed a commit that referenced this pull request Feb 6, 2026
# [1.11.0](v1.10.0...v1.11.0) (2026-02-06)

### Bug Fixes

* cli package public ([7dad84d](7dad84d))
* cli skill uses latest ([b74d9ba](b74d9ba))
* **cli:** document -h flag in help text ([020c4a0](020c4a0))
* **cli:** document -h flag in help text ([68fa42f](68fa42f))
* **cli:** move bundled deps to devDependencies ([6a362ed](6a362ed))
* **cli:** remove bundled deps from package.json ([f90d4af](f90d4af))
* console log ([4b64109](4b64109))
* document dropdown resets ([#1883](#1883)) ([b552d2e](b552d2e))
* lock file ([1edf741](1edf741))
* make Ctrl-a select all content, and fix select all when there are tables in doc ([#1886](#1886)) ([c87c1ab](c87c1ab))
* package lock ([11f47fa](11f47fa))
* paragraph autospacing calculation (SD-1653) ([#1877](#1877)) ([b7dec3c](b7dec3c))
* run color overwrite in applyInlineRunProperties (SD-1585) ([#1885](#1885)) ([6051dd4](6051dd4))
* selection across pages with drag ([#1884](#1884)) ([bb44999](bb44999))
* **super-converter:** handle ECMA-376 percentage strings in table widths (SD-1633) ([#1844](#1844)) ([fb9fd52](fb9fd52))
* **super-converter:** return transparent instead of blue for shapes ([#1854](#1854)) ([6ac29d7](6ac29d7)), closes [#5b9bd5](https://github.com/superdoc-dev/superdoc/issues/5b9bd5)

### Features

* add esign package to monorepo ([#1895](#1895)) ([532e2b5](532e2b5))
* add template-builder package to monorepo ([#1888](#1888)) ([0aec624](0aec624))
* **cli:** add claude code skill ([#1903](#1903)) ([e55ce56](e55ce56))
* new cli app ([#1902](#1902)) ([0c6aeb0](0c6aeb0))
* **template-builder:** add cspNonce support ([#1911](#1911)) ([5b7b34e](5b7b34e))
* **vscode-ext:** sync from main ([47c50f7](47c50f7))
* **vscode-ext:** sync from main ([226bcf1](226bcf1))
* **vscode-ext:** sync from main ([eced1f3](eced1f3))
* **vscode-ext:** sync from main ([36b48a6](36b48a6))
* **vscode-ext:** sync from main ([cdc00df](cdc00df))
@harbournick
Copy link
Copy Markdown
Collaborator

🎉 This PR is included in superdoc v1.11.0

The release is available on GitHub release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants