Qwen Studio
Qwen Studio is an official platform from Qwen that empowers both everyday users and developers with unified access to Qwen’s series of open-source and proprietary models. It offers comprehensive functionality spanning chatbots, image and video understanding, image generation and editing, document processing, tool utilization, voice and video chat, and artifacts.
Here’s a highly effective, ready-to-copy prompt you can feed into any AI (including me) to generate a production-ready Obsidian plugin scaffold and development guide:
📝 Prompt to Use
Act as an expert Obsidian plugin developer. I want to build a new Obsidian plugin from scratch. Please provide:
- Step-by-step project setup using TypeScript and [esbuild/Rollup]
- Complete minimal file structure with ready-to-copy code for:
- main.ts
- manifest.json
- package.json
- styles.css (if needed)
- tsconfig.json & esbuild/rollup config
- A minimal but fully functional Plugin class that:
- Extends the official
Pluginclass - Registers a command
- Shows a notice on load
- Includes a basic settings modal with at least one toggle/string option
- Extends the official
- Exact terminal commands to install dependencies, run in dev mode, build for release, and hot-reload
- Step-by-step instructions to safely test the plugin in Obsidian (local plugin folder)
- Best practices for:
- Using the Obsidian API correctly
- Handling errors & vault changes
- Preparing for community release (manifest requirements, versioning, security)
My plugin should: describe your specific feature, e.g., "add a command that inserts a formatted daily quote from a local JSON file and caches it in .obsidian/plugins/my-plugin/data.json"
Assume I have Node.js v18+ installed and basic TypeScript knowledge. Follow Obsidian's current plugin guidelines, reference the official obsidian-plugin-sample repo structure, and ensure all code uses the latest stable Obsidian API types. Do not use deprecated methods or outdated manifest fields.
🔍 Why This Prompt Works
- Explicit tech stack: Forces the AI to use TypeScript + modern bundler (Obsidian officially recommends esbuild for new plugins)
- File-by-file output: Prevents vague or fragmented responses
- Settings + command + lifecycle: Covers 90% of what every plugin needs upfront
- Local testing workflow: Saves hours of debugging deployment issues
- Community-ready guidance: Includes manifest rules, versioning, and security notes required for official publishing
- Placeholder for your feature: Makes it easy to customize without rewriting the prompt
💡 Pro Tips for AI-Assisted Obsidian Plugin Dev
- Iterate: Generate the scaffold first, then ask follow-ups like:
"How do I listen for file modifications in the vault?""Show me how to add a ribbon icon that triggers my command""How do I properly useAppandPluginlifecycle methods without memory leaks?"
- Always verify API calls: Obsidian's API is stable but occasionally deprecates methods. Cross-check with the official
obsidiantypes repo. - Use the official sample as ground truth: obsidianmd/obsidian-plugin-sample is the gold standard. Ask the AI to align with it.
- Never trust AI-generated
manifest.jsonblindly: Double-checkid,version,minAppVersion, andauthorfields. Obsidian rejects plugins with invalid manifests. - Hot-reload isn't native: You'll need
obsidian-plugin-devor manual reload (Ctrl/Cmd + Rin Obsidian). Ask the AI for a reliable dev workflow.
🛠️ Quick Start (If You Want to Skip the AI)
Run this in your terminal to scaffold an official template:
1. npm create obsidian-plugin@latest my-plugin
2. cd my-plugin
3. npm install
4. npm run dev
Then drop the generated folder into .obsidian/plugins/ in your vault and enable it in Settings → Community Plugins.
Let me know what your plugin should do, and I’ll generate the exact code, manifest, and dev commands tailored to your use case.