Skip to content

feat(skills): Add aggregated instrument-* skills with example_paths and metadata support#87

Draft
skoob13 wants to merge 3 commits intomainfrom
feat/twig-skills
Draft

feat(skills): Add aggregated instrument-* skills with example_paths and metadata support#87
skoob13 wants to merge 3 commits intomainfrom
feat/twig-skills

Conversation

@skoob13
Copy link

@skoob13 skoob13 commented Feb 19, 2026

Problem

Agent consumers (like Twig) need bundled skills that contain all platform variants in a single package, rather than picking one per-platform skill. We also need these aggregated skills to include example project code as references, and to carry metadata (like consumer: agent) through to the manifest.

Changes

  • Aggregated instrument-* skills: Added four new skill groups (instrument-integration, instrument-feature-flags, instrument-llm-analytics, instrument-logs) with type: docs-only configs and dedicated description templates. Each bundles all platform docs into a single skill.
  • example_paths support: New config field that lists multiple example projects. Group-level and variant-level paths are merged. Each example is processed into an EXAMPLE-{dirName}.md reference file, listed after docs in the skill body.
  • metadata passthrough: Group and variant-level metadata fields are merged and flow through to SKILL.md frontmatter and the manifest. Used to tag consumer: agent on aggregated skills.
  • Manifest metadata: build.js now includes skill metadata in the generated manifest when present.
  • Tests: Added tests for _examplePaths (group passthrough, variant merge, empty default) and _metadata (group passthrough, variant override, empty default).

How did you test this code?

  • npx vitest run scripts/lib/tests/skill-group-expander.test.js — all 10 tests pass
  • pnpm build — builds all 59 skills successfully
  • Verified instrument-integration-all.zip contains 30 EXAMPLE-*.md files listed after docs in SKILL.md

@github-actions
Copy link

🧙 Wizard CI

Run the Wizard CI and test your changes against wizard-workbench example apps by replying with a GitHub comment using one of the following commands:

Test all apps:

  • /wizard-ci all

Test all apps in a directory:

  • /wizard-ci android
  • /wizard-ci angular
  • /wizard-ci astro
  • /wizard-ci django
  • /wizard-ci fastapi
  • /wizard-ci flask
  • /wizard-ci laravel
  • /wizard-ci next-js
  • /wizard-ci nuxt
  • /wizard-ci react-native
  • /wizard-ci react-router
  • /wizard-ci sveltekit
  • /wizard-ci swift
  • /wizard-ci tanstack-router
  • /wizard-ci tanstack-start
  • /wizard-ci vue

Test an individual app:

  • /wizard-ci android/Jetchat
  • /wizard-ci angular/angular-saas
  • /wizard-ci astro/astro-hybrid-marketing
Show more apps
  • /wizard-ci astro/astro-ssr-docs
  • /wizard-ci astro/astro-static-marketing
  • /wizard-ci astro/astro-view-transitions-marketing
  • /wizard-ci django/django3-saas
  • /wizard-ci fastapi/fastapi3-ai-saas
  • /wizard-ci flask/flask3-social-media
  • /wizard-ci laravel/laravel12-saas
  • /wizard-ci next-js/15-app-router-saas
  • /wizard-ci next-js/15-app-router-todo
  • /wizard-ci next-js/15-pages-router-saas
  • /wizard-ci next-js/15-pages-router-todo
  • /wizard-ci nuxt/movies-nuxt-3-6
  • /wizard-ci nuxt/movies-nuxt-4
  • /wizard-ci react-native/expo-react-native-hacker-news
  • /wizard-ci react-native/react-native-saas
  • /wizard-ci react-router/react-router-v7-project
  • /wizard-ci react-router/rrv7-starter
  • /wizard-ci react-router/saas-template
  • /wizard-ci react-router/shopper
  • /wizard-ci sveltekit/CMSaasStarter
  • /wizard-ci swift/hackers-ios
  • /wizard-ci tanstack-router/tanstack-router-code-based-saas
  • /wizard-ci tanstack-router/tanstack-router-file-based-saas
  • /wizard-ci tanstack-start/tanstack-start-saas
  • /wizard-ci vue/movies

Results will be posted here when complete.

@skoob13 skoob13 marked this pull request as draft February 19, 2026 17:25
@skoob13 skoob13 requested a review from a team February 19, 2026 17:25
@edwinyjlim
Copy link
Member

Nest your skill directories under twig

transformation config/ 
    skills/
        twig/
            instrumentation-feature-flags/
            instrumentation-logs/
            instrumentation-llm-analytics/
            instrumentation-integration/

const baseDescription = group.description || null;
const baseSharedDocs = group.shared_docs || [];
const baseMetadata = group.metadata || {};
const baseExamplePaths = group.example_paths || [];
Copy link
Member

Choose a reason for hiding this comment

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

@skoob13 we have an existing example_path field at the skill variant level. I think including multiple examples makes total sense! but now we have multiple code paths for resolving example_path and example_paths in the spec

would you mind updating the repo to standardize on a single example_paths field that accepts either a string or an array at both the skills group level and individual variant level? We can then normalize everything to an internal _examplePaths array with a single function

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

Comments