Skip to content

Code-review fixes: fail-fast env install + harden skill-linking - #36

Merged
cursor[bot] merged 1 commit into
mainfrom
prax/skills-review-fixes-d142
Aug 27, 2026
Merged

Code-review fixes: fail-fast env install + harden skill-linking#36
cursor[bot] merged 1 commit into
mainfrom
prax/skills-review-fixes-d142

Conversation

@praxstack

Copy link
Copy Markdown
Owner

📋 Description

Addresses feedback from a code review of the merged environment/skills work (PRs #34, #35). No Critical issues were found; this fixes the one Important item plus targeted hardening.

  • .cursor/environment.json: chain the install with && (npm ci && bash scripts/link-agent-skills.sh) so a failing npm ci short-circuits instead of running the link step unconditionally (fail-fast).
  • scripts/link-agent-skills.sh: if a pre-existing real (non-symlink) directory occupies a target, remove it before ln -sfn so a link is never nested inside it. Also corrected the header comment to match the actual install-step wiring.

🔄 Type of Change

  • 🐛 Bug fix (non-breaking change that fixes an issue)

✅ Validation

  • bash -n scripts/link-agent-skills.sh → OK
  • .cursor/environment.json valid; install = "npm ci && bash scripts/link-agent-skills.sh"
  • Hardening test: pre-existing real dir at target is replaced by a symlink; idempotent across runs
  • npm run lint → 0 errors; npm test → 55/55

📝 Additional Notes

Deferred minor items from the review (latent, no current impact; noted for future): multi-line YAML frontmatter parsing in gen-skills-index.js, a .claude/.agents tree-parity assertion, and multi-collision basename handling in install-agent-skills.sh.

Open in Web Open in Cursor 

Addresses code-review feedback:
- .cursor/environment.json: chain install with '&&' so a failing 'npm ci'
  short-circuits instead of running the link step unconditionally.
- scripts/link-agent-skills.sh: replace a pre-existing real (non-symlink)
  directory at the target before linking, so ln never nests a link inside it.
- Correct the header comment to match the actual install-step wiring.

Co-authored-by: Prax Lannister <praxstack@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Aug 27, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

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.

@cursor
cursor Bot merged commit 44bc558 into main Aug 27, 2026
5 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.

2 participants