Skip to content

docs(skill): point agents and the core package to the bundler plugin - #106

Merged
Hebilicious merged 7 commits into
mainfrom
docs/unplugin-discovery
Nov 23, 2026
Merged

Hebilicious merged 7 commits into
mainfrom
docs/unplugin-discovery

Conversation

@Hebilicious

@Hebilicious Hebilicious commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

An agent in an Astro project did not use the bundler plugin, because it concluded that none exists. The plugin is the separate package @hebilicious/cssforge-unplugin. The cssforge skill, the docs agent guide, the core package metadata and cssforge --help do not name it, so an agent that follows them only finds the CLI.

What changes

  • skills/cssforge/references/bundler-plugin.md (new): a self-contained reference for the plugin. It says when to offer it and when the CLI stays the right choice (no dev server or build, files needed before the build, non-CSS formats, JSR, no bundler). It gives the install command, the entry points, the virtual:cssforge.css import, the client types reference and the options. The skill can be distributed without the README, so the reference does not point to it.

  • skills/cssforge/SKILL.md: a new step, "Choose how tokens are generated". The CLI works everywhere; the plugin is an option when the project has a supported build.

  • skills/cssforge/references/docs-index.md: routes build-time generation to the new reference.

  • packages/docs/agents.md: a Bundler plugin entry under Distribution, as an option next to the CLI.

  • packages/cssforge: --help names @hebilicious/cssforge-unplugin, so a reader who only has the core package finds the plugin. The package also gets npm keywords (cssforge, design-tokens, css-variables). Patch changeset included.

  • The skill no longer refers to the README, which is not distributed with it:

    • docs-index.md maps each task to a reference of the skill.
    • token-patterns.md gains what only the README had: the default fluid step labels, the pow reference paths, and a Variable names section (theme names, variantNameOnly, atRule/selector), checked against tests/colors.test.ts.
    • troubleshooting.md, source-schema-map.md and cli-reference.md point to those references.
    • Steps 4 and 5 of SKILL.md and troubleshooting.md no longer describe this repository's example setup (node ../../packages/cssforge/dist/cli.js, moon run <project>:cssforge-build-local). They use the installed cssforge executable (check, build) and the project's own task runner.
    • Source paths point to the installed package (node_modules/@hebilicious/cssforge/src/, which the package publishes) instead of packages/cssforge/src/ of this repository.
  • README.md: the fluid spacing reference example is spacing_fluid.base@xs, as tests/spacing.test.ts resolves it, not spacing_fluid-base@xs. The package copy is regenerated with cssforge:readme-update.

  • AGENTS.md: a new section, "Skill, agent guide and package metadata". User-facing changes update the skill and the agent guide; the skill is self-contained (no README or repository paths); integration choices are offered as options; skill facts are checked against code or tests; package metadata describes only its own package.

Verification

  • New test cli - help points to the bundler plugin package (in tests/cli-entry.test.ts) failed before the help change and passes after it.
  • moon run cssforge:test cssforge:typecheck cssforge:format cssforge:lint cssforge:catalog-check cssforge:readme-check docs:build all pass on the last commit.

@changeset-bot

changeset-bot Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: e0d0063

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@hebilicious/cssforge Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
cssforge e14b20b Commit Preview URL

Branch Preview URL
Nov 23 2026, 02:00 PM

@Hebilicious
Hebilicious merged commit 4dc9728 into main Nov 23, 2026
3 checks passed
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