Skip to content

🐛 missing_sibling errors when Claude skill scripts are pre-existing or shared between skills #628

Closed

Description

@esnible

Describe the bug

mocactl promote expects skill scripts to be in its own directory. I tried this on a project where the skills were a mix of human and Claude written skills. Skills can refer to scripts in the repo, and Claude will even create scripts outside of the skill if it thinks multiple skills could use them.

Steps To Reproduce

  1. git clone [email protected]:esnible/esnible.github.io.git
  2. mocactl promote esnible.github.io.git

Expected Behavior

Search the repo more broadly for scripts, and report success for any skills that Claude Code can use.

Rossoctl Version

dev

Additional Context

No response

Activity

  1. cwiklik commented on Nov 3, 2026

    @cwiklik
    Contributor

    I reproduced this and the warnings are correct — but the message was misdescribing them, which is why they looked wrong. PR #685 fixes the wording.

    I rebuilt your layout locally (12 skills under .claude/skills/, plus the scripts/ directory at the repo root) and ran the real check against it. It produces exactly 4 findings:

    skill reference
    detect-missing-figures scripts/build.sh
    detect-missing-tables scripts/build.sh
    fix-ocr scripts/build.sh
    restore-lists scripts/fix_list_starts.rb

    All four point at files that live at the repository root, not inside a skill. A config bundle carries each skill's own directory and nothing else, so those files do not travel — a promoted turn that runs scripts/build.sh would fail on a read miss. The files being present in your checkout is exactly what made the message misleading: it said "is not in its directory", which sounds like you put the file in the wrong place, when the real statement is that it will not be in the bundle.

    New message:

    skill 'fix-ocr' references 'scripts/build.sh', which is not included in the bundle
      — only files under the skill's own directory travel
    

    On the requested behavior — searching the whole repo and reporting success — I'd push back: that would silence a warning for a turn that still fails remotely, trading a confusing local warning for a silent run-time failure. The actionable fix for these four is to move or copy the scripts into the skills that use them (or inline the commands), so they actually ship.

    Worth noting for the other two cases in the issue: references into .claude/skills/shared/ and across sibling skills do not warn today — the ownership rule filters them before they become findings. The repo-root scripts/ case is the only thing firing here.

    And since this is a warn, not an error, it never blocked your promotion — promote only refuses on errors.

  2. added 2 commits that reference this issue on Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions