Skip to content

feat(prepare): install Maizzle skill into .claude/skills on prepare - #1815

Merged
cossssmin merged 1 commit into
masterfrom
feat/install-skill-on-prepare
Jul 31, 2026
Merged

feat(prepare): install Maizzle skill into .claude/skills on prepare#1815
cossssmin merged 1 commit into
masterfrom
feat/install-skill-on-prepare

Conversation

@cossssmin

@cossssmin cossssmin commented Jul 31, 2026

Copy link
Copy Markdown
Member

What

Makes the bundled Maizzle skill available to Claude Code automatically after install.

  • Add skills to the package files array so skills/maizzle ships in node_modules/@maizzle/framework/.
  • In prepare (the starter's postinstall step), copy skills/maizzle<project>/.claude/skills/maizzle.

Why

Claude Code auto-discovers project-level .claude/skills/ (and ~/.claude/skills/) but never scans node_modules/. So shipping the skill in the package alone is necessary but not discoverable. Copying it into the project's .claude/skills/ during prepare makes it:

  • Auto-discovered — it lives where Claude Code scans.
  • Version-synced — refreshed on every npm i/upgrade via postinstall: maizzle prepare, instead of frozen at scaffold time in the starter.

rm-then-cp prunes files removed upstream; cpSync creates the .claude/skills/ parents. Source is resolved from the package via import.meta.url and guarded with existsSync, so it's a no-op when the skill isn't present.

Test

  • npm pack --dry-run confirms skills/maizzle/** is in the tarball.
  • Verified the copy end-to-end against a temp project cwd (creates parents, prunes stale files, idempotent).

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features

    • Automatically installs the bundled Maizzle skill into the project’s Claude skills directory during preparation.
    • Replaces any existing copy to ensure the latest skill version is available.
    • Reports successful skill installation when available.
  • Chores

    • The published package now includes the bundled skills directory.

Ship the bundled skill (add "skills" to package files) and copy
skills/maizzle into <project>/.claude/skills/maizzle during prepare.

Claude Code auto-discovers project-level .claude/skills/ but never scans
node_modules, so shipping the skill alone is not discoverable. Running
the copy from prepare (the postinstall step) makes it both discoverable
and version-synced, refreshed on every install/upgrade. rm-then-copy
prunes files removed upstream.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jul 31, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: ac74f2e0-3bed-4e83-bcb0-add0eaa2b050

📥 Commits

Reviewing files that changed from the base of the PR and between 4ec2755 and 7b5fb63.

📒 Files selected for processing (2)
  • package.json
  • src/prepare.ts

📝 Walkthrough

Walkthrough

The package now publishes the skills directory. The prepare function copies the bundled Maizzle skill to .claude/skills/maizzle after type generation and reports the installation path.

Changes

Bundled skill installation

Layer / File(s) Summary
Publish and install the bundled skill
package.json, src/prepare.ts
The package publishes skills. The prepare function locates the bundled skill, replaces the project copy when present, and reports successful installation.

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

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: installing the Maizzle skill into .claude/skills during prepare.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/install-skill-on-prepare

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

Comment @coderabbitai help to get the list of available commands.

@cossssmin
cossssmin merged commit ada4383 into master Jul 31, 2026
6 checks passed
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.

1 participant