Skip to content

fix(opencode): skip dependency directories during skill discovery (#51278) - #93

Open
kvnloo wants to merge 1 commit into
devfrom
fix/51278-skill-discovery-ignore
Open

kvnloo wants to merge 1 commit into
devfrom
fix/51278-skill-discovery-ignore

Conversation

@kvnloo

@kvnloo kvnloo commented Sep 26, 2026

Copy link
Copy Markdown
Owner

Summary

Fork tip leaf of anomalyco#51278 onto dev.

Skill discovery skips node_modules / .git / dist / .cache and dedupes realpath-aliased skill roots so cold-start scans stay bounded.

Linked

Proof (fail→pass)

cd packages/opencode
bun test test/util/glob.test.ts test/skill/skill.test.ts -t "does not descend into ignored|skips dependency"
# NEGATIVE (base product + tip tests): 0 pass / 2 fail
# GREEN: 2 pass / 0 fail
# RESTORE: 0 pass / 2 fail

Policy

github_writes_origin=0 — kvnloo fork only. Codex promote parked.

Ports anomalyco#51278 onto fork dev. Skill scan ignores
node_modules/.git/dist/.cache and dedupes skill roots via realpath.
@github-actions

Copy link
Copy Markdown

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions

Copy link
Copy Markdown

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • PR description is missing required template sections. Please use the PR template.

Please edit this PR description to address the above within 2 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

@kvnloo kvnloo added the keep pr-janitor: never auto-close label Oct 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

keep pr-janitor: never auto-close needs:issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant