FixVibe

// docs / ai fix prompts

AI 수정 프롬프트

Code and configuration findings have a Copy coding-agent prompt button beneath the remediation. DNS, provider-console, secret-rotation, and manual-review findings show operator steps instead, because an IDE agent cannot change those settings for you. No Claude API call is made by FixVibe.

작동 방식

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

  • The finding — 코딩 에이전트가 문제를 해결하는 데 필요한 문제 요약, 영향을 받는 표면, 해결 지침 및 안전한 증거입니다.
  • Your app context — FixVibe은 가능한 경우 스캔 컨텍스트를 사용하여 프레임워크 인식 수정 형태를 선택하고, 충분한 컨텍스트를 유추할 수 없는 경우 일반 방법으로 대체합니다.

Coding-agent prompts and operator steps are rendered server-side from FixVibe remediation guidance. They are designed for copy-paste use in Cursor, Claude Desktop, Copilot, or the relevant provider console 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)
  • 루비 온 레일즈
  • Laravel(PHP)
  • ASP.NET 핵심 대체 지침

프레임워크 컨텍스트는 최선의 노력입니다. FixVibe이 스캔에서 충분히 안전하게 추론할 수 없는 경우 코딩 에이전트에게 수정 사항을 적용하기 전에 저장소를 검사하라는 메시지가 표시됩니다.

AI 에이전트에서 사용

MCP 서버를 연결했다면 같은 prompt가 slash command로 노출됩니다. Claude Desktop에서:

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

서버는 결과를 조회하고, 사용 가능한 스캔 컨텍스트를 적용하고, 수정 프롬프트를 렌더링하고, 이를 대화에 사용자 메시지로 삽입합니다. 이 템플릿 프롬프트에 대해 FixVibe은 제3자 LLM API 전화를 걸지 않습니다.

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

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

  • 사용자가 붙여넣는 agent는 이미 코드베이스 context를 가지고 있습니다. repo를 연 Cursor / Claude Desktop을 쓰고 있기 때문입니다.
  • 서버 측 템플릿은 클릭별 모델 호출 없이 일반적인 수정 경로를 다룹니다.
  • 사용자가 원한다면 나중에 “내 코드베이스용으로 AI로 다듬기” opt-in이 API를 호출할 수 있습니다. 현재는 호출하지 않습니다.
AI 수정 프롬프트 — Docs · FixVibe