Conversation
Pass `-g` to `npx skills add` so InsForge agent skills and find-skills land in the user-level skills store (~/.agents/skills/, with per-agent symlinks into ~/.claude/skills/, ~/.codex/skills/, etc.) instead of inside the project directory. This matches how gstack and other agent toolchains ship their skills: the skills themselves are project-agnostic and have no per-project state, so one install per machine is enough. The only thing `link` still writes to the project is `./.insforge/project.json` (project_id, api_key, oss_host). Side benefit: cwd no longer matters for the install, so the install-before-mkdir ordering bug in the --template flow is also moot. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
WalkthroughVersion bump to 0.1.53 paired with modifications to Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@src/lib/skills.ts`:
- Around line 73-74: The retry/recovery shell commands used in the execAsync
calls that install skills globally are missing the -g flag in their fallback
suggestions; update the recovery/echo strings that accompany the execAsync
invocations (the same command string used in the initial install, e.g., the npx
skills add insforge/agent-skills ... invocation passed to execAsync) so every
recovery or retry example includes -g to match global mode (search for execAsync
calls in src/lib/skills.ts that reference "npx skills add insforge/agent-skills"
and ensure the echoed/recovery commands on the fallback paths include the -g
flag).
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: d7294884-907a-4df8-83ac-21f9200c7931
⛔ Files ignored due to path filters (1)
package-lock.jsonis excluded by!**/package-lock.json
📒 Files selected for processing (2)
package.jsonsrc/lib/skills.ts
| if (!json) clack.log.info('Installing InsForge agent skills (global)...'); | ||
| await execAsync('npx skills add insforge/agent-skills -g -y -a antigravity -a augment -a claude-code -a cline -a codex -a cursor -a gemini-cli -a github-copilot -a kilo -a qoder -a qwen-code -a roo -a trae -a windsurf', { |
There was a problem hiding this comment.
Keep retry guidance consistent with global mode.
Line 74 and Line 89 install globally, but the recovery commands in Line 82 and Line 97 omit -g. That can send users back to local installs.
Suggested fix
- clack.log.info('Run `npx skills add insforge/agent-skills` once resolved to see the full output.');
+ clack.log.info('Run `npx skills add insforge/agent-skills -g` once resolved to see the full output.');
...
- clack.log.info('Run `npx skills add https://github.com/vercel-labs/skills --skill find-skills` once resolved.');
+ clack.log.info('Run `npx skills add https://github.com/vercel-labs/skills --skill find-skills -g` once resolved.');Also applies to: 82-83, 88-89, 97-98
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@src/lib/skills.ts` around lines 73 - 74, The retry/recovery shell commands
used in the execAsync calls that install skills globally are missing the -g flag
in their fallback suggestions; update the recovery/echo strings that accompany
the execAsync invocations (the same command string used in the initial install,
e.g., the npx skills add insforge/agent-skills ... invocation passed to
execAsync) so every recovery or retry example includes -g to match global mode
(search for execAsync calls in src/lib/skills.ts that reference "npx skills add
insforge/agent-skills" and ensure the echoed/recovery commands on the fallback
paths include the -g flag).
Summary
-gto bothnpx skills addinvocations ininstallSkills()so InsForge agent skills and find-skills install to the user-level skills store (~/.agents/skills/, with per-agent symlinks into~/.claude/skills/,~/.codex/skills/, etc.) instead of project-local.cwdno longer matters for the install, which makes the install-before-mkdir ordering issue in the--templateflow moot (supersedes fix(link): install agent skills before creating template subdir #70 in spirit).What still lives in the project
Only
./.insforge/project.json(project_id, appkey, api_key, oss_host). OAuth credentials at~/.insforge/credentials.jsonwere already global and are untouched.Test plan
npm run build— greennpm run lint— greennpx vitest run— 69 pass, 13 skippeddist/index.jscontains the-gflagnpx skills add insforge/agent-skills -g -y -a …(full agent list) in a fresh empty temp dir:.claude/,.codex/,.insforge/etc. created)~/.agents/skills/{insforge, insforge-cli, insforge-debug, insforge-integrations}with symlinks under~/.claude/skills/~/.insforge/credentials.jsonmtime unchangedinsforge linkend-to-end against a project after merge🤖 Generated with Claude Code
Summary by CodeRabbit
Chores
Improvements