Skip to content

About

Great Skill for molt

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

Repository files navigation

molt-framework-skill

A Claude Code plugin with one skill, using-molt-framework, for projects that build HTML with molt-framework (Rust).

It is what an agent should check before reading the crate's source: which APIs exist in the version the project has, the behaviours that surprise, and a symptom-to-fix table. It works offline.

Install

/plugin marketplace add micheltlutz/molt-framework-skill
/plugin install molt-framework@molt

The marketplace is called molt; the plugin is called molt-framework. Without a GitHub SSH key, set CLAUDE_CODE_PLUGIN_PREFER_HTTPS=1 so installs from inside a session clone over HTTPS.

What it does

The skill triggers when a project depends on molt-framework, or when Rust code builds HTML with Molt. It tells the agent to:

  1. read the installed version from Cargo.lock;
  2. look the API up in a table with one column per version, instead of searching the source for something that does not exist yet;
  3. apply the rules that hold in every version (escape once, imports, the position of .text(), name shadowing);
  4. use a recipe for what Molt 1.x lacks, and the new API on 2.x;
  5. verify by asserting on the rendered string before saying it is done.

Two reference pages are bundled (references/capabilities.md, references/pitfalls.md). They are snapshots of the Molt repository's docs/ pages, stamped with the commit they came from. From the Molt version that ships those pages in the published crate, the skill sends the agent to the crate's own copy in ~/.cargo/registry/src/*/molt-framework-<version>/.

Layout

.claude-plugin/marketplace.json            the marketplace ("molt")
plugins/molt-framework/
  .claude-plugin/plugin.json               the plugin
  README.md, LICENSE, PRIVACY.md, icon.png required or read by the directory listing
  skills/using-molt-framework/
    SKILL.md
    references/capabilities.md             snapshot of Molt's docs/capabilities.md
    references/pitfalls.md                 snapshot of Molt's docs/pitfalls.md
scripts/sync-references.sh                 refreshes the two snapshots
docs/retrieval-checks.md                   questions and expected answers used to test the skill

Working on it

Try it without installing:

claude --plugin-dir plugins/molt-framework

Validate both manifests:

claude plugin validate .
claude plugin validate plugins/molt-framework

Refresh the bundled pages from the Molt repository (needs gh, logged in):

bash scripts/sync-references.sh            # from `develop`
bash scripts/sync-references.sh <git-ref>  # from a tag or a commit

After syncing, re-run the checks in docs/retrieval-checks.md, and re-read SKILL.md: it names the Molt versions in prose ("published 1.x", "unreleased 2.0") and those sentences need a hand edit when a release is cut.

Releasing

  1. Update CHANGELOG.md.
  2. Raise version in plugins/molt-framework/.claude-plugin/plugin.json. It is declared only there: marketplace.json has no version, because the manifest's value wins and a second copy can only drift. Without a new version, installed copies are not updated.
  3. claude plugin validate --strict . and claude plugin validate --strict plugins/molt-framework.
  4. Commit and push, then tag with claude plugin tag plugins/molt-framework --push (it creates molt-framework--v<version>).

People update with claude plugin update molt-framework@molt.

The directory submission (claude.ai/directory/manage) follows the main branch with plugins/molt-framework as the plugin path, so a push is also how a new version reaches it.

Installed a personal copy before?

If ~/.claude/skills/using-molt-framework/ exists, remove it after installing the plugin, or the skill is listed twice.

License

MIT. See LICENSE.

About

Great Skill for molt

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages