FixVibe

// docs / ai fix prompts

AI சரிசெய் prompts

ஒவ்வொரு finding க்கும் remediation கீழே Copy fix prompt பட்டன் இருக்கும். அதை click செய்து Claude / Cursor / Copilot இல் paste செய்யுங்கள்; உங்கள் codebase framework இல் அந்த vuln க்கான canonical fix recipe ஐ agent பெறும் — எங்களிடமிருந்து Claude API call இல்லை.

இது எப்படி வேலை செய்கிறது

Click செய்யும்போது இரண்டு data துண்டுகள் சேர்கின்றன:

  • The finding — the issue summary, affected surface, remediation guidance, and safe evidence needed to help your coding agent fix it.
  • Your app context — FixVibe uses scan context when available to choose a framework-aware remediation shape, and falls back to a generic recipe when it cannot infer enough context.

Fix prompts are rendered server-side from FixVibe remediation guidance. They are designed for copy-paste use in Cursor, Claude Desktop, Copilot, or another coding agent without exposing the internal prompt registry in the browser.

Prompt எப்படி இருக்கும்

Fix the "Reflected XSS in /search?q=" vulnerability at /search.

Issue: Query parameter q is rendered into the response body without
escaping; an attacker can inject <script> via crafted URLs.

Codebase context: Next.js.

Recommended fix:
In Next.js, render user-supplied values through JSX ({value}) so React's
automatic escaping kicks in. For server components rendering rich HTML,
sanitize with DOMPurify (server-side via JSDOM) before output.

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 security 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: CWE-79 — see https://cwe.mitre.org/data/definitions/79.html

ஆதரிக்கப்படும் 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 fallback guidance

Framework context is best-effort. If FixVibe cannot infer enough safely from the scan, the prompt asks your coding agent to inspect the repository before applying the fix.

உங்கள் AI agent இலிருந்து பயன்படுத்தவும்

நீங்கள் MCP server ஐ wire செய்திருந்தால், அதே prompt slash command ஆக expose செய்யப்படும். Claude Desktop இலிருந்து:

/fixvibe-fix finding_id=550e8400-e29b-41d4-a716-446655440000

The server looks up the finding, applies available scan context, renders the remediation prompt, and injects it into your conversation as the user message. No third-party LLM API call is made by FixVibe for this templated prompt.

ஒவ்வொரு click க்கும் Claude ஐ ஏன் hit செய்யவில்லை

Launch நேரத்தில், ஒவ்வொரு click க்கும் codebase context உடன் prompt ஐ refine செய்ய Anthropic API ஐ call செய்வதை பரிசீலித்தோம். ஆனால் செய்யவில்லை, ஏனெனில்:

  • User paste செய்கிற agent க்கு codebase context ஏற்கெனவே உள்ளது — அவர்கள் Cursor / Claude Desktop ஐ repo open நிலையில் பயன்படுத்துகிறார்கள்.
  • Server-side templating covers the common remediation paths without any per-click model call.
  • பயனர்கள் விரும்பினால் “என் codebase க்காக AI மூலம் refine செய்” opt-in பின்னர் API ஐ fire செய்யலாம். இன்று இல்லை.
AI சரிசெய் prompts — Docs · FixVibe