मुख्य सामग्री पर जाएँ
Skillpedia
सामान्य कोडिंग28k · #9942

wox-plugin-creator

यह क्या करती है

यह स्किल डेवलपर्स को Wox लॉन्चर के लिए प्लगइन बनाने में मदद करती है। Wox एक खोज और लॉन्च टूल है। यह उन लोगों के लिए है जो Wox में अपने कमांड या फ़ीचर जोड़ना चाहते हैं।

कब इस्तेमाल करें

  • ✓जब आप Wox लॉन्चर के लिए नया प्लगइन बनाना चाहते हैं।
  • ✓जब आपको प्लगइन की सेटिंग्स, hotkeys या खोज परिणामों में मदद चाहिए।
  • ✓जब आप प्लगइन को पैक करना चाहते हैं ताकि उसे साझा या लोकली इंस्टॉल कर सकें।

Skill का लिंक

https://github.com/Wox-launcher/Wox/blob/master/.agents/skills/wox-plugin-creator/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/Wox-launcher/Wox/blob/master/.agents/skills/wox-plugin-creator/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“मेरे फ़ोल्डर के नोट्स खोजने वाला Wox प्लगइन बनाने में मेरी मदद कीजिए।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

आपका एजेंट आपकी चुनी भाषा में शुरुआती प्रोजेक्ट बनाता है, फिर प्लगइन का विवरण, सेटिंग्स और फ़ीचर लिखने में मदद करता है, और उसे पैक करता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Wox Plugin Creator

Quick Start

  • Scaffold a Node.js plugin (clones template repo):
    • python3 scripts/scaffold_wox_plugin.py --type nodejs --output-dir ./MyPlugin --name "My Plugin" --trigger-keywords my
  • Scaffold a Python plugin (clones template repo):
    • python3 scripts/scaffold_wox_plugin.py --type python --output-dir ./MyPlugin --name "My Plugin" --trigger-keywords my
  • Scaffold a single-file SDK plugin (uses local templates; plugin-id auto-generated; writes one file into the live user plugin directory so a running Wox instance can load it immediately). Omit --output-dir; default is ~/.wox/wox-user/plugins/single-file/ (Windows: %USERPROFILE%\.wox\wox-user\plugins\single-file\):
    • Auto-detect this machine: python3 scripts/scaffold_wox_plugin.py --type singlefile --name "Weather" --trigger-keywords weather
    • Explicit Node.js: python3 scripts/scaffold_wox_plugin.py --type singlefile-nodejs --name "Weather" --trigger-keywords weather
    • Explicit Python: python3 scripts/scaffold_wox_plugin.py --type singlefile-python --name "Weather" --trigger-keywords weather

Choose a plugin type

  • Single-file SDK plugin: one .py or CommonJS .js file with full Public API, loaded into the existing Python/Node runtime host. No extra process per query. Create and edit only ~/.wox/wox-user/plugins/single-file/Wox.Plugin.<Name>.js (or .py); Wox watches that directory and reloads on save. Requires Wox 2.4.2+; header MinWoxVersion must be "2.4.2".
  • SDK plugin (.wox): multi-file package with dependencies, resources, TypeScript, and plugin.json.

Node.js first version must stay CommonJS (module.exports.plugin) and must not import @wox-launcher/wox-plugin.

Choose a runtime language

Honor an explicit Python or Node.js request from the user, including a .py or .js output filename.

When the user does not specify a language, detect this machine before scaffolding. Do not default to Python.

  1. Run python3 scripts/detect_local_runtime.py (use python if python3 is missing). It prints nodejs, python, or none.
  2. If that script cannot run, check the floors yourself: node --version for Node.js 20+, and python3 --version for Python 3.10+. On Windows also try py -3 --version and python --version.
  3. Decision:
    • Only one runtime meets the floor → use that runtime
    • Both meet the floor → use Node.js
    • Neither meets the floor → ask the user which language they want
  4. Map the choice to --type: singlefile-nodejs / singlefile-python, or nodejs / python. --type singlefile applies the same detection inside the scaffold.

Workflow

1) Scaffold plugin files

  • Use scripts/scaffold_wox_plugin.py for nodejs, python, singlefile, singlefile-python, or singlefile-nodejs.
  • Pass --name and --trigger-keywords for every runtime. The scaffold exits without them. --output-dir is required for packaged SDK plugins; omit it for single-file SDK plugins so the file lands in ~/.wox/wox-user/plugins/single-file/.
  • For Node.js and Python packages, the scaffold clones the official template repos and replaces placeholders like {{.ID}}, {{.Name}}, {{.Description}}, {{.TriggerKeywordsJSON}}, {{.Author}}.
  • Before starting work in a new SDK plugin project, run make init in the project root when the project has not been initialized yet.
  • Single-file SDK plugins are single-file host-loaded plugins. Prefer filenames like Wox.Plugin.<Name>.js or Wox.Plugin.<Name>.py.
  • Single-file SDK destination: create and implement the plugin as one file in ~/.wox/wox-user/plugins/single-file/ (Windows: %USERPROFILE%\.wox\wox-user\plugins\single-file\). That directory is what a running Wox instance loads; saving reloads after about 500ms, so the user can query the trigger keyword immediately. Omit --output-dir when using the scaffold, or write the file there directly from assets/single_file_plugin_templates/. Do not also create a copy under the current repository (plugins/, workspace root, or a new folder). Pass --output-dir only when the user asks for a different path.
  • Do not put companion files (*.test.js, README, extra modules) in the live directory. Wox loads every .js and .py there as a plugin.
  • Single-file SDK plugins must set header MinWoxVersion to "2.4.2". The scaffold applies this default when --min-wox-version is omitted. Do not lower it; Wox 2.4.2 is the first release that can load this plu
अक्सर पूछे जाने वाले सवाल

मैं कौन सी भाषाएँ इस्तेमाल कर सकता हूँ?

स्किल Node.js और Python को सपोर्ट करती है, और दोनों में एक-फ़ाइल प्लगइन भी।

एक-फ़ाइल प्लगइन क्या है?

यह एक स्क्रिप्ट फ़ाइल है जो मौजूदा Wox रनटाइम के अंदर चलती है, इसलिए हर खोज के लिए अलग प्रक्रिया शुरू नहीं होती।

क्या यह स्किल प्लगइन को स्टोर में जमा करती है?

नहीं। यह बिल्डिंग और पैकेजिंग पर केंद्रित है, और स्टोर में जमा करना एक अलग स्किल में आता है।

जानकारी

लेखक का मूल विवरण

Create, scaffold, implement, design logos for, and package Wox plugins (nodejs, python, singlefile-python, singlefile-nodejs). Use for plugin metadata, settings, i18n, APIs, refinements, hotkeys, structured queries, Plugin Tools, and local packaging. For official store submission or listing checks, prefer wox-plugin-submit2store.

repo: Wox-launcher/Wox

लोकप्रियता

GitHub स्टार
28k
रैंकिंग में स्थान
#9942
लाइसेंस
GPL-3.0
अपडेट की गई
1/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

मिलती-जुलती skills