Skip to content

feat: enhance SkillsCommand - #15

Merged
AxiosLeo merged 6 commits into
mainfrom
fix/skills-pnpm
Jul 29, 2026
Merged

feat: enhance SkillsCommand#15
AxiosLeo merged 6 commits into
mainfrom
fix/skills-pnpm

Conversation

@AxiosLeo

@AxiosLeo AxiosLeo commented Jul 29, 2026

Copy link
Copy Markdown
Owner

Note

Low Risk
CLI-only changes around skills installation and optional dev dependency adds; behavior is covered by extensive unit tests and does not touch runtime app logic.

Overview
skills no longer hard-fails when @axiosleo/koapp is missing locally: it copies from the CLI runner’s bundled assets by default and only offers to add the dependency when --add-dep / -a is set.

Adds src/cli/pkg.js so installs pick the right package manager (npm, pnpm, yarn, bun), workspace root vs member package, and shell command (pnpm add -w, Yarn Classic -W, etc.). Local package lookup uses require.resolve plus an upward node_modules walk instead of a fixed cwd/node_modules path. Missing dependency, declined install, or failed install all fall back to runner assets instead of aborting; prompts and hints use the detected install dir and command.

tests/skills.tests.js exercises PM detection, install targets, command building, and package resolution across monorepo edge cases (stray lockfiles, config-only pnpm-workspace.yaml, Yarn Berry vs Classic).

Reviewed by Cursor Bugbot for commit 185f04b. Bugbot is set up for automated code reviews on this repo. Configure here.

…ncy installation options, including new add-dep flag for automatic dependency addition
Comment thread commands/skills.js Outdated
AxiosLeo added 2 commits July 29, 2026 10:52
…ng infinite loop with a controlled search mechanism
…killsCommand for improved dependency installation logic and add nearest package.json resolution
Comment thread src/cli/pkg.js
…anager detection logic to support nested projects and workspaces
Comment thread src/cli/pkg.js Outdated
…c for Yarn, including major version handling and workspace flag adjustments

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit cb658b4. Configure here.

Comment thread src/cli/pkg.js Outdated
…t and improve nested project detection in pnpm-workspace.yaml
@AxiosLeo
AxiosLeo merged commit ffc9940 into main Jul 29, 2026
11 checks passed
@AxiosLeo
AxiosLeo deleted the fix/skills-pnpm branch July 29, 2026 06:07
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