AI scores task complexity from 1-10 automatically🧠

Offen
#664 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 3 Tagen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
38/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Bereich
ai, frontend, full-stack

Rechercherichtung

Start with client/src/components/Task/TaskModal.jsx, the named entry point, and read how it handles task form state and actions. The issue proposes sending the title and description to Claude and displaying a score with a reason; verify how API calls and credentials are handled in this project before implementing. Done means users can request and view the result, with the request working safely and errors handled.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

enhancement good first issue

🧠 AI scores task complexity from 1-10 automatically

File: client/src/components/Task/TaskModal.jsx

No way to know how hard a task is
before starting 💀 fr!!

Fix: call Claude API on title + description:
const [complexity, setComplexity] = useState(null)

const analyzeComplexity = async () => {
setAnalyzing(true)
const res = await fetch(
'https://api.anthropic.com/v1/messages', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
model: 'claude-sonnet-4-6',
max_tokens: 100,
messages: [{
role: 'user',
content: Rate complexity 1-10 for this dev task: "${form.title}". Description: "${form.description}". Reply ONLY with JSON: {"score": 7, "reason": "one line"}
}]
})
})
const data = await res.json()
const result = JSON.parse(data.content[0].text)
setComplexity(result)
setAnalyzing(false)
}

{complexity && (

= 7 ? 'text-red-400' : complexity.score >= 4 ? 'text-yellow-400' : 'text-green-400'}`}> {complexity.score}/10

{complexity.reason}

)}

<button onClick={analyzeComplexity}
disabled={!form.title || analyzing}
className="text-xs text-purple-400
hover:text-purple-300 transition">
{analyzing ? '⏳ Analyzing...' : '🧠 Score complexity'}

Vorherrschende Sprache
JavaScript
Sterne
39
Forks
105
Ø Merge
2 T. 10 Std.
Gemergte PRs (30 T.)
22

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus anoopcodehack/DevBoard

Alle Issues in anoopcodehack/DevBoard

Ähnliche Issues

Weitere Issues zu JavaScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.