FixWeb

// 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 துண்டுகள் சேர்கின்றன:

  • Finding — title, description, evidence, remediation, CWE — report உடன் ஏற்கெனவே loaded.
  • உங்கள் codebase இன் framework — scan இன் discovery.tech-fingerprint findings இலிருந்து detect செய்யப்படும் (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 ஐ இவற்றிற்கு காட்டுகிறோம்:

  • Next.js, React, Vue, Nuxt, Svelte (frontend)
  • Express, Fastify (Node.js backend)
  • Django, Flask (Python)
  • Ruby on Rails
  • Laravel (PHP)
  • ASP.NET Core (திட்டமிடப்பட்டது; இன்று generic க்கு fallback)

Framework detection best-effort. __NEXT_DATA__ tags, __NUXT__, hash cookies (laravel_session), X-Powered-By headers, மற்றும் சில signals ஐ sniff செய்கிறோம். நீங்கள் custom framework இயக்கினால், 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 நேரத்தில், ஒவ்வொரு click க்கும் codebase context உடன் prompt ஐ refine செய்ய Anthropic API ஐ call செய்வதை பரிசீலித்தோம். ஆனால் செய்யவில்லை, ஏனெனில்:

  • User paste செய்கிற agent க்கு codebase context ஏற்கெனவே உள்ளது — அவர்கள் Cursor / Claude Desktop ஐ repo open நிலையில் பயன்படுத்துகிறார்கள்.
  • ஒவ்வொரு (check × framework) templating, per-click cost இல்லாமல் மதிப்பின் ~80% ஐ cover செய்கிறது.
  • பயனர்கள் விரும்பினால் “என் codebase க்காக AI மூலம் refine செய்” opt-in பின்னர் API ஐ fire செய்யலாம். இன்று இல்லை.
AI improvement prompts — Docs · FixWeb