Skip to content

feat/use skill includes excludes 319 - #323

Merged
mrwogu merged 4 commits into
mainfrom
feat/use-skill-includes-excludes-319
Jul 23, 2026
Merged

feat/use skill includes excludes 319#323
mrwogu merged 4 commits into
mainfrom
feat/use-skill-includes-excludes-319

Conversation

@mrwogu

@mrwogu mrwogu commented Jul 23, 2026

Copy link
Copy Markdown
Owner
  • feat(resolver): support includes/excludes skill filters in @use
  • docs: add version+params syntax and playground skill filtering example
  • test(compiler): add skill filtering smoke tests

mrwogu added 3 commits July 24, 2026 00:20
Add includes/excludes reserved parameters to @use directives for
filtering individual skills from directory and remote repo imports.
Mirrors the existing only/exclude block-level filters but operates
on the @skills block ObjectContent properties.

- Extend extractReservedParams to strip includes/excludes params
- Add filterSkillsBlock in resolver and browser-compiler
- Extend PS021 validator for mutual exclusion and type checks
- Document skill filtering in language reference

Closes #319
Document that version pinning must come before filter params in @use:
@use github.com/owner/repo@2.10.0(includes: [skill1])

Add 'Skill Filtering' example to playground ExampleGallery showing
includes/excludes with a local skill library. Update badge detection
to recognize includes:/excludes: patterns.
Full pipeline smoke tests (parser -> resolver -> validator -> formatter)
for includes/excludes skill filters:
- includes: only specified skills appear in compiled output
- excludes: excluded skills absent from output
- no filter: all skills present (backward compat)
- combined with only block filter
- reserved params do not leak to template interpolation
@mrwogu
mrwogu force-pushed the feat/use-skill-includes-excludes-319 branch from 7fb61c1 to b96d1a2 Compare July 23, 2026 22:20
@codecov

codecov Bot commented Jul 23, 2026

Copy link
Copy Markdown

Bundle Report

Changes will increase total bundle size by 3.23kB (0.19%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
promptscript-cli 1.68MB 3.23kB (0.19%) ⬆️

Affected Assets, Files, and Routes:

view changes for bundle: promptscript-cli

Assets Changed:

Asset Name Size Change Total Size Change (%)
index.js 3.23kB 1.5MB 0.22%

@codecov

codecov Bot commented Jul 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Remove unreachable no-filter guard (caller already gates on
includes || excludes). Add test for includes filter on source
without @skills block to cover the no-skills-block early return.
@mrwogu
mrwogu merged commit 885f562 into main Jul 23, 2026
15 checks passed
@mrwogu
mrwogu deleted the feat/use-skill-includes-excludes-319 branch July 23, 2026 22:42
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