// docs / ai fix prompts
AI improvement prompts
Every finding has a Copy prompt button beneath the remediation. Click it, paste into Claude / Cursor / Copilot, and the agent gets the canonical improvement recipe for that website-quality issue — no Claude API call from us.
ഇത് പ്രവർത്തിക്കുന്ന വിധം
Click ചെയ്യുമ്പോൾ dataയുടെ രണ്ട് ഭാഗങ്ങൾ combine ചെയ്യും:
- Finding — title, description, evidence, remediation, CWE — report-ോടൊപ്പം ഇതിനകം loaded.
- നിങ്ങളുടെ codebase framework — scan-ന്റെ
discovery.tech-fingerprintfindings-ൽ നിന്ന് detected (Next.js, React, Vue, Django, Express, Rails, Laravel, Flask). Framework detect ചെയ്യാത്തപ്പോൾ generic recipe-ലേക്ക് fallback ചെയ്യും (agent prompt തുടർന്ന് repo state-ൽ നിന്ന് അത് detect ചെയ്യാൻ LLM-നോട് ചോദിക്കും).
Templates live in lib/scanner/fix-prompts.ts. The registry has check-specific guidance for crawlability, search presentation, semantic content, structured data, media, performance, accessibility, forms, mobile/i18n, runtime, owner journeys, and repo-quality issues. For everything else, the existing remediation field on the finding becomes the generic recipe.
Prompt കാണുന്നതെങ്ങനെ
Fix the "Hero image is lazy-loaded and missing dimensions" finding on /pricing. Issue: The largest above-the-fold image is marked loading="lazy" and has no explicit width/height. That can delay LCP and create layout shift. Codebase context: Next.js. Recommended fix: Use next/image or the existing image component with explicit width/height, responsive sizes, meaningful alt text, and priority/fetchPriority for the first major visual on the page. Constraints: - Don't break existing tests; run the test suite after the change. - Match the codebase's existing style and lint config. - Add a brief comment explaining the performance reasoning only where the fix would otherwise look arbitrary. - If the fix needs a new dependency, install it via the project's package manager (npm / pnpm / pip / bundle / composer). Reference: Core Web Vitals / Largest Contentful Paint guidance.
പിന്തുണയുള്ള frameworks
ഇവയ്ക്കായി ഞങ്ങൾ framework-specific snippets surface ചെയ്യുന്നു:
- Next.js, React, Vue, Nuxt, Svelte (frontend)
- Express, Fastify (Node.js backend)
- Django, Flask (Python)
- Ruby on Rails
- Laravel (PHP)
- ASP.NET Core (planned, fallback to generic today)
Framework detection best-effort ആണ്. ഞങ്ങൾ __NEXT_DATA__ tags, __NUXT__, hash cookies (laravel_session), X-Powered-By headers, മറ്റുചില signals എന്നിവ sniff ചെയ്യും. നിങ്ങൾ custom framework run ചെയ്യുന്നുണ്ടെങ്കിൽ, prompt generic recipe-ലേക്ക് fallback ചെയ്യും, agent നിങ്ങളുടെ package.json-ൽ നിന്ന് അത് മനസ്സിലാക്കും.
നിങ്ങളുടെ AI agent-ൽ നിന്ന് ഉപയോഗിക്കുക
നിങ്ങൾ MCP server wire ചെയ്തിട്ടുണ്ടെങ്കിൽ, അതേ prompt slash command ആയി expose ചെയ്യും. Claude Desktop-ൽ നിന്ന്:
/fixweb-fix finding_id=550e8400-e29b-41d4-a716-446655440000
The renderer looks up the finding, detects the framework from the parent scan when available, renders the templated prompt, and injects it into your conversation as the user message. No round-trip to our Claude API; templates are pure and free.
ഓരോ click-നും Claude hit ചെയ്യാത്തത് എന്തിന്
Launch സമയത്ത്, codebase context ഉപയോഗിച്ച് prompt refine ചെയ്യാൻ ഓരോ click-നും Anthropic API call ചെയ്യുന്നത് ഞങ്ങൾ പരിഗണിച്ചു. ചെയ്തത് ഇല്ല, കാരണം:
- User paste ചെയ്യുന്ന agent-ന് codebase context ഇതിനകം ഉണ്ട് — അവർ repo open ചെയ്ത Cursor / Claude Desktop ഉപയോഗിക്കുന്നു.
- Per-(check × framework) templating per-click cost ഇല്ലാതെ value-യുടെ ~80% cover ചെയ്യുന്നു.
- Users ആഗ്രഹിച്ചാൽ “Refine with AI for my codebase” opt-in പിന്നീട് API fire ചെയ്യാം. ഇന്ന് ഇല്ല.
