𝗛𝗼𝘄 𝗜 𝗨𝘀𝗲 𝗤𝘄𝗲𝗻 𝗖𝗼𝗱𝗲 𝘁𝗼 𝗕𝘂𝗶𝗹𝗱 𝗔𝗰𝗵𝘂
I build Achu, a desktop app for screenshot beautification, using Qwen Code.
Most people fail with AI coding because they let the conversation grow too large. The model loses context and starts hallucinating. I avoid this by using a strict workflow and specific slash commands.
Here is my daily process:
Setup and Context
- I start every session with /init. This gives the AI a map of my folder structure.
- I manually write a project onboarding doc. I tell the AI about my tech stack, Electron constraints, and business rules.
- This upfront work prevents endless back-and-forth later.
Spec-Driven Planning
- I never ask for code immediately. I use /plan first.
- I describe a feature and ask the AI to propose an approach.
- I iterate on the plan 2 or 3 times until the spec is perfect.
- Good implementation starts with a solid plan, not a vague prompt.
Managing Subagents
- I use subagents for tasks that can run in parallel.
- I have a dedicated testing subagent for Vitest and Electron patterns.
- I use "Fork Subagents" to run multiple investigations at once without tripling my token costs.
Context Hygiene
- I treat context like limited memory.
- I use /summary to create a checkpoint after big tasks.
- I use /compress to shrink the chat history when the window gets full.
- If the AI drifts from my architecture twice, I use /clear to start fresh. It is cheaper to restart than to fix a broken session.
Pro Tips for Accuracy
- Stop using documentation URLs. Docs are often outdated.
- Instead, point the AI directly at the source code using the @ symbol.
- Example: @./node_modules/library/src. This gives the AI ground-truth facts.
- I use /remember to save architectural decisions like "Always use Electron contextBridge."
- I use /btw for quick questions. This allows me to ask for clarification without breaking the main conversation flow.
The discipline of using these commands makes the difference between a toy and a tool. Spend 20 minutes planning to save 3 hours of debugging.
Source: https://dev.to/qainsights/how-i-use-qwen-code-slash-commands-to-build-achu-app-5cm9
Optional learning community: https://t.me/GyaanSetuAi