ai newsDo., 29. Okt.
Eilmeldung[AINews] Gemini 4 Carbon tops leaderboards, launches for cyber defenders

How I built PromptCraft AI: turning rough ideas into ready-to-use prompts

A web app that takes a one-line idea, works out what it means and what is missing, and writes four different, detailed prompts for it, each scored for quality. Classical NLP does the understanding, any LLM you choose does the writing, and an offline engine takes over when there is no API key. Try i

dev.toDonnerstag 05:29 · 29.10.1 Min. Lesezeit
Bild: dev.to

Posted on Oct 29 • Originally published at niranjand.in

A web app that takes a one-line idea, works out what it means and what is missing, and writes four different, detailed prompts for it, each scored for quality. Classical NLP does the understanding, any LLM you choose does the writing, and an offline engine takes over when there is no API key.

Most people ask an AI tool for something in one vague line, like "make an e-commerce website", and get a generic answer back. The details that make a prompt useful (platform, scope, stack, design, constraints) are missing, and people don't know what they left out.

Understand first, then write. spaCy and a TF-IDF and logistic-regression intent classifier, backed by keyword rules, work out intent, domain and platform, and separate what you said from what is missing. Missing details are stated as assumptions, not quietly invented.

Four genuinely different strategies, not four rewordings: a lean MVP, a full production build, a design-focused version and an AI-enhanced one, with a diversity check that rejects near-duplicates.

Quality is a number, not a feeling. Every prompt is validated and scored on clarity, completeness, specificity, consistency, intent preservation, actionability and diversity.

Works with any model: Gemini, OpenAI, Claude, Groq, OpenRouter, Ollama or any OpenAI-compatible API, with keys kept on the server. With no key at all, an offline template engine still writes all four prompts.

Refine by talking. "Make the second prompt more detailed and use PostgreSQL" changes only that card, with a word-level compare of versions and one-click restore.

Next.js, TypeScript, Tailwind CSS, FastAPI, Python, spaCy, scikit-learn, SQLAlchemy

Quelle: dev.to (dev.to). Original öffnen