iblameandrew/local-deepthink/qdad
Claude Code and agent skill by iblameandrew/local-deepthink
- community
Checking that the SKILL.md file is still in the repository.
Run Qualitative Diffusion App Designer (QDAD) — a qualitative re-implementation of diffusion for app design. Turns a vague Midjourney-style product prompt into a concrete, buildable agentic coding prompt via an N×N noun×verb feature grid, high-temperature noise induction, iterative critic reverse diffusion, and final synthesis. Use when designing a new app, expanding a vague product idea, or generating a high-quality build brief for Grok-Build / Cursor / Claude Artifacts. Triggers: /qdad, /app-slot-machine, /qualitative-diffusion, "diffuse this app", "slot machine this idea", "turn this vibe into a build prompt", Midjourney-style app prompt → coding prompt.
Install
npx vskill@latest install iblameandrew/local-deepthink/qdadSKILL.md
/qdad — Qualitative Diffusion App Designer
Use Qualitative Diffusion (QDAD) when you need to turn a vague aesthetic or product vibe into a concrete, buildable app specification — the same job Midjourney does for images, but the latent is language and the decode target is an agentic coding prompt.
This skill is portable. You do not need the open-deepthink HTTP server. Same algorithm as App Slot Machine Mode (deepthink/qdad/).
How to execute (build the script on the fly — mandatory)
Do not point the user at a pre-installed CLI path. You write the runner into the workspace, then run it with parsed parameters.
Protocol (every /qdad invoke)
- Parse the user message → Midjourney-style
prompt+ optional
N=…, steps=…, temperature flags, or --debug.
- Materialize the runner:
- Create
.skill-runs/in the workspace root if missing. - Read skill sibling
run_template.py(next to thisSKILL.md). If missing,
write Appendix A from the end of this skill.
- Write source to `.skill-runs/run_qdad.py` (overwrite).
- Execute:
Debug / no API cost:
- Deliver stdout (
# App Build Prompt) as the primary answer. - Handoff — only implement the app after the user approves.
The script auto-discovers deepthink (walk parents / OPEN_DEEPTHINK_ROOT). Engine: deepthink.qdad.run_qdad_pipeline (foundation → grid → noise → denoise → synth).
CLI parameters
| Flag | Param | Default | |
|---|---|---|---|
--prompt | user intent | required | |
--n | grid size N | 4 | |
--temperature-scale | forward noise T | 1.3 | |
--denoising-steps | reverse rounds | 3 | |
--noun-verb-temperature | foundation T | 0.6 | |
--provider / --api-key / --model | LLM | openrouter + env | |
--debug | mock LLM | off | |
--out | JSON dump | optional |
If you cannot write/run Python, fall back to the manual QDAD procedure below. Prefer materializing and running the script.
Technique analysis (read this; it is the algorithm)
What classical diffusion does
- Start from noise in a continuous latent.
- Iteratively denoise toward the data manifold (score matching / reverse SDE).
- Decode to pixels (or tokens).
What Qualitative Diffusion does
| Classical object | Qualitative analogue | |
|---|---|---|
| Continuous latent vector | Feature text at a grid cell | |
| Coordinate basis of latent space | Nouns (rows) × verbs (columns) — orthogonal language basis | |
| Gaussian noise at high σ | High-temperature LLM generation (“wild, imperfect, slightly hallucinatedâ€) | |
| Denoiser / score network | CriticAgent with the same noun×verb signature (reverse diffusion in language) | |
| Decode network | Synthesizer → structured App Build Prompt | |
| Vague caption → image | Vague Midjourney-style app intent → buildable coding prompt |
Why this is not “just brainstorm featuresâ€
- Basis structure — Features are not free-floating ideas. Each sits at a
forced intersection noun_i × verb_j. That is the qualitative analogue of a tensor product / coordinate system: diversity is systematic, not random.
- Forward then reverse — Noise induction explores; critics project back
toward intent + implementability. One-shot ideation skips the reverse process.
- Signature-locked critics — Critic (i,j) shares the exact signature of
FeatureAgent (i,j). Denoising cannot “edit away†the basis; it cleans along that direction (score matching in one local chart of feature space).
- Temperature as σ — GUI/params map: high Temperature Scale ≈ more
qualitative noise; more Denoising Steps ≈ longer reverse chain.
- Decode is separate — Synthesis is not “pick the best cell.†It *merges,
prioritizes, and architectures* the clean matrix into one shippable brief.
Philosophy (strict — do not dilute)
- Language is the computational medium (not numbers, not embeddings you
manipulate by hand).
- Nouns and verbs act as orthogonal basis directions.
- High temperature = controlled qualitative noise.
- Critic agents = qualitative reverse diffusion / score matching.
- The whole process turns a vague aesthetic prompt into a concrete, buildable
app specification the same way Midjourney turns a vague prompt into an image.
When to invoke (and when not)
Invoke when:
- User has a vibe / Midjourney-style app idea (“cozy night writing app…â€)
- You need a full app build brief, not a single function
- Product surface is under-specified (features, UX, NFRs all fuzzy)
- User says
/qdad, “diffuse thisâ€, “slot machineâ€, “turn this into a build promptâ€
Do not invoke when:
- Task is a local bugfix or a single clear feature already specified
- User asked for an immediate small code edit only
/qnnis more appropriate (stuck debug strategy map, not app design)
If the user invokes /qdad explicitly, always run the full procedure.
Usage
Examples:
/qdad a cozy productivity app for writers who work at night, soft dark mode, gentle notifications, offline-first/qdad N=3 steps=2 — minimal habit tracker that feels like a garden/qdad expand this into a full build prompt: marketplace for local makers/qdad(uses the last vague product idea in the conversation)
Parameters (optional; parse from user text or defaults)
| Param | Default | Range | Role | |
|---|---|---|---|---|
| N (grid size) | 4 | 2–8 | N×N feature agents | |
| Temperature Scale (noise T) | 1.3 | 0.7–1.8 | Forward diffusion only | |
| Denoising Steps | 3 | 1–6 | Reverse diffusion rounds | |
| Noun/Verb Temperature | 0.6 | 0.3–1.0 | Foundation basis generation |
Budget: agents per noise/denoise round = N². Total heavy LLM calls ≈ 1 (foundation) + N² (noise) + Steps×N² (critics) + 1 (synth). Prefer N=3, steps=2 when cost-sensitive; N=4–5, steps=3 for rich apps.
Announce params before running:
Step 0 — Capture the Intent Brief
Write a short brief (do not solve the product yet):
| Field | Content | |
|---|---|---|
| User prompt | Raw Midjourney-style intent (verbatim) | |
| Users / jobs | Who and what outcome (infer lightly if missing) | |
| Constraints | Platform, offline, privacy, stack prefs (if any) | |
| Aesthetic | Mood, visual language, interaction feel | |
| Non-goals | What this is not (if stated or obvious) | |
| Params | N, noise T, steps, noun/verb T |
If attachments/repo context exist, note paths that should ground features. Present the brief compactly, then proceed unless the user corrects it.
Step 1 — Phase 0: Foundation (qualitative basis)
Generate exactly N distinct nouns and exactly N distinct verbs.
Basis rules
- Nouns = object / substance / place / affordance axes (rows)
- Verbs = action / process / transformation axes (columns)
- Concrete enough to ground features; mutually distinct; span the *aesthetic
space* of the intent (not just synonyms of “app†/ “userâ€)
- Prefer evocative, implementable words over pure abstractions
Prompt skeleton (foundation)
Use noun_verb_temperature if the host supports temperature; otherwise ask for slightly more diverse / surprising basis words when N is small.
Log: nouns = […], verbs = […].
Hard fail: fewer than N unique items, or all generic (“dataâ€, “manageâ€, “systemâ€).
Step 2 — Phase 1: Agent grid construction
For each i in 0..N-1, j in 0..N-1:
Permanent assignment. No reassignment later. Log a compact grid:
Step 3 — Phase 2: Noise induction (forward diffusion)
In parallel (or sequential if no sub-agents), for every cell (i,j):
FeatureAgent system prompt
Use noise temperature (Temperature Scale) for these calls.
Collect noisy_features[i][j].
Do not polish yet. Noise is a feature of the algorithm.
Step 4 — Phase 3: Iterative qualitative denoising
For step = 1 .. Denoising_Steps:
In parallel, for every cell (i,j), spawn CriticAgent_{i}_{j} with the exact same noun+verb signature:
Use a cooler temperature than noise (≈ 0.5 × noise_T, clamped to ~0.3–1.0).
Replace features[i][j] with the critic output after each full parallel round.
Optional: keep snapshots step_1, step_2, … for transparency.
After the final step: clean_features = features.
Step 5 — Phase 4: Synthesis (decode)
One Synthesizer agent receives:
- Original user prompt
- Nouns, verbs
- Full clean N×N matrix (each cell labeled with noun×verb)
Required output format (exact)
Synthesizer rules
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/qdad/SKILL.md
Popularity
- Repository stars
- 150
- Repository forks
- 21
- 7-day trend score
- 25
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/iblameandrew/local-deepthink/qdad)