Skip to content

Conversation

@thoroc
Copy link
Contributor

@thoroc thoroc commented Jan 31, 2026

Summary

Complete skill injection system with BM25 probabilistic ranking for smart pattern matching.

Changes

  • Complete skill injection system with BM25 probabilistic ranking
  • Markdown parsing and validation for skill files
  • Pattern matching with regex and intent detection
  • Structured skill format with frontmatter support
  • Independent package - no internal dependencies
  • Comprehensive test coverage

BM25 Features

  • Tokenization and TF-IDF scoring
  • Probabilistic document ranking
  • Top-k skill selection
  • Pattern matching with escape regex utilities

Dependencies

Blocks

Testing

  • Tests pass: bunx nx test opencode-skills
  • Test coverage: bunx nx run opencode-skills:test:coverage
  • Type-check passes: bunx nx type-check opencode-skills

- Complete skill injection system with BM25 probabilistic ranking
- Markdown parsing and validation for skill files
- Pattern matching with regex and intent detection
- Structured skill format with frontmatter support
- Independent package - no internal dependencies
- Required by: opencode-core-plugin

This package provides the foundation for smart skill injection and
context-aware prompt enhancement.
@github-actions
Copy link

⚠️ Large PR Warning

This PR is quite large with:

  • 69 changed files
  • 6096 added lines
  • 0 deleted lines

Consider breaking it down into smaller, focused PRs for easier review.

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