Skip to content

feat(desktop): add curated image/audio/browser skills and bundle sharp#270

Merged
alchemistklk merged 3 commits intomainfrom
feat/curated-skills-image-gen
Mar 19, 2026
Merged

feat(desktop): add curated image/audio/browser skills and bundle sharp#270
alchemistklk merged 3 commits intomainfrom
feat/curated-skills-image-gen

Conversation

@alchemistklk
Copy link
Copy Markdown
Contributor

Summary

  • nano-banana-one-shop: Static bundled skill with all 3 Gemini image models (--model nano-banana / nano-banana-pro / nano-banana-2) in one Node.js script
  • New curated skills from ClawHub: liblib-ai-gen (image gen), listenhub-ai (audio/music), wechat-article-search (WeChat articles), agent-browser (browser automation)
  • Bundle sharp: Added as desktop dependency, staged into bundled-node-modules/ via extraResources, exposed to skill scripts via NODE_PATH through new buildSkillNodePath() helper
  • Remove runtime npm install: generate-image.js no longer tries npm install sharp at runtime — fails closed if not bundled (packaging error, not user error)

Test plan

  • pnpm typecheck passes
  • tests/desktop/runtime-manifests.test.ts passes (3 tests for buildSkillNodePath)
  • pnpm desktop:start — verify nano-banana-one-shop appears in bundled skills
  • Run node .../nano-banana-one-shop/scripts/generate-image.js --prompt "test" --filename test.png — verify sharp loads via NODE_PATH
  • pnpm desktop:dist:mac:unsigned — verify packaged app includes bundled-node-modules/sharp

🤖 Generated with Claude Code

- Add nano-banana-one-shop as static bundled skill with all 3 Gemini
  image models (3.1 Flash, 3 Pro, 2.5 Flash) via --model flag
- Add curated skills: liblib-ai-gen, listenhub-ai, wechat-article-search,
  agent-browser from ClawHub
- Bundle sharp as desktop dependency with NODE_PATH exposure to skill
  scripts via buildSkillNodePath() helper
- Remove runtime npm install fallback from generate-image.js — fail
  closed if sharp is not bundled
@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Mar 19, 2026

Deploying nexu-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 838cbb6
Status: ✅  Deploy successful!
Preview URL: https://e8552d38.nexu-docs.pages.dev
Branch Preview URL: https://feat-curated-skills-image-ge.nexu-docs.pages.dev

View logs

Prevents lint formatting failures in CI. The hook runs biome check
--write on staged .ts/.tsx/.js/.jsx/.json files and re-stages them.
Auto-installed via the prepare script on pnpm install.
@alchemistklk
Copy link
Copy Markdown
Contributor Author

/cr

@slack-code-review-channel
Copy link
Copy Markdown

✅ CR topic created in Feishu topic group Refly CR.

@alchemistklk alchemistklk merged commit fff581d into main Mar 19, 2026
11 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.

2 participants