FixVibe

// docs / ai fix prompts

AI 수정 프롬프트

모든 발견 항목에는 수정 방법 아래에 «수정 프롬프트 복사» 버튼이 있습니다. 클릭하고 Claude / Cursor / Copilot에 붙여넣으면 에이전트가 코드베이스 프레임워크에서 해당 취약점에 대한 표준 수정 레시피를 받습니다 — 우리 측에서 Claude API를 호출하지 않습니다.

작동 방식

클릭하면 두 가지 데이터가 결합됩니다.

  • 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.

프롬프트 예시

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

지원 framework

다음에 대해 framework-specific snippet을 제공합니다.

  • 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 에이전트에서 사용

MCP 서버를 연결했다면 같은 prompt가 slash command로 노출됩니다. 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.

클릭마다 Claude를 호출하지 않는 이유

출시 전에는 클릭할 때마다 Anthropic API를 호출해 코드베이스 context로 prompt를 다듬는 방안을 고려했습니다. 하지 않은 이유는 다음과 같습니다.

  • 사용자가 붙여넣는 agent는 이미 코드베이스 context를 가지고 있습니다. repo를 연 Cursor / Claude Desktop을 쓰고 있기 때문입니다.
  • Server-side templating covers the common remediation paths without any per-click model call.
  • 사용자가 원한다면 나중에 “내 코드베이스용으로 AI로 다듬기” opt-in이 API를 호출할 수 있습니다. 현재는 호출하지 않습니다.
AI 수정 프롬프트 — Docs · FixVibe