Skip to content

fix(skills): align dev skill source discovery with stable Homebrew layout#61

Merged
drpedapati merged 1 commit intomainfrom
fix/dev-skill-source-alignment
Feb 23, 2026
Merged

fix(skills): align dev skill source discovery with stable Homebrew layout#61
drpedapati merged 1 commit intomainfrom
fix/dev-skill-source-alignment

Conversation

@drpedapati
Copy link
Owner

Summary:\n- align builtin skill source discovery with stable and dev Homebrew layouts\n- resolve builtin skills directory from executable share paths\n- update install-builtin and list-builtin to use the same resolver\n- add tests for stable and dev formula paths\n\nValidation:\n- go test ./cmd/picoclaw\n- reproduced current dev bug on data1\n- verified patched binary installs all 15 baseline skills

@cloudflare-workers-and-pages
Copy link

Deploying sciclaw with  Cloudflare Pages  Cloudflare Pages

Latest commit: d5c6bec
Status: ✅  Deploy successful!
Preview URL: https://5138c4ed.sciclaw.pages.dev
Branch Preview URL: https://fix-dev-skill-source-alignme.sciclaw.pages.dev

View logs

@drpedapati drpedapati merged commit 9c6da17 into main Feb 23, 2026
3 of 4 checks passed
@drpedapati drpedapati deleted the fix/dev-skill-source-alignment branch February 23, 2026 02:59
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d5c6bec9b5

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".


func skillsInstallBuiltinCmd(workspace string) {
builtinSkillsDir := "./picoclaw/skills"
builtinSkillsDir := resolveBuiltinSkillsDir(workspace)

Choose a reason for hiding this comment

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

P1 Badge Exclude workspace skills when resolving builtin source

skillsInstallBuiltinCmd now trusts resolveBuiltinSkillsDir(workspace), which currently scans baselineSkillSourceDirs where <cwd>/skills is the highest-priority candidate; when the command is run from the workspace root, this resolves to the same workspace/skills tree being written. In that case copyDirectory(builtinPath, workspacePath) is invoked with identical source/destination, and copyDirectory opens destination files with O_TRUNC, so existing SKILL.md content can be truncated during the self-copy. Please ensure builtin resolution excludes workspace/cwd skill directories (or guard against src == dst) before copying.

Useful? React with 👍 / 👎.

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