Code-review fixes: fail-fast env install + harden skill-linking - #36
Merged
Conversation
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>
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: trueThanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📋 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 failingnpm cishort-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 beforeln -sfnso a link is never nested inside it. Also corrected the header comment to match the actualinstall-step wiring.🔄 Type of Change
✅ Validation
bash -n scripts/link-agent-skills.sh→ OK.cursor/environment.jsonvalid;install = "npm ci && bash scripts/link-agent-skills.sh"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/.agentstree-parity assertion, and multi-collision basename handling ininstall-agent-skills.sh.