// 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.
यह कैसे काम करता है
Click पर data के दो हिस्से combine होते हैं:
- 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.
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समर्थित ढाँचे
हम इनके लिए framework-specific snippets दिखाते हैं:
- Next.js, रिएक्ट, व्यू, नेक्स्ट, स्वेल्ट (फ्रंटएंड)
- एक्सप्रेस, फास्टिफाइ (नोड.जेएस बैकएंड)
- जैंगो, फ्लास्क (पायथन)
- रूबी ऑन रेल्स
- लारवेल (PHP)
- ASP.NET कोर फ़ॉलबैक मार्गदर्शन
फ्रेमवर्क संदर्भ सर्वोत्तम प्रयास है। यदि FixVibe स्कैन से पर्याप्त सुरक्षित रूप से अनुमान नहीं लगा सकता है, तो प्रॉम्प्ट आपके कोडिंग एजेंट को फिक्स लागू करने से पहले रिपॉजिटरी का निरीक्षण करने के लिए कहता है।
इसे अपने AI agent से इस्तेमाल करें
अगर आपने MCP server wire किया है, तो वही prompt slash command के रूप में exposed है। Claude Desktop से:
/fixvibe-fix finding_id=550e8400-e29b-41d4-a716-446655440000
सर्वर खोज को देखता है, उपलब्ध स्कैन संदर्भ लागू करता है, सुधार संकेत प्रस्तुत करता है, और इसे उपयोगकर्ता संदेश के रूप में आपकी बातचीत में शामिल करता है। इस टेम्पलेट प्रॉम्प्ट के लिए FixVibe द्वारा कोई तृतीय-पक्ष LLM API कॉल नहीं की जाती है।
हम हर click पर Claude क्यों नहीं hit करते
Launch पर हमने सोचा था कि हर click के लिए Anthropic API call करके codebase context से prompt refine करें। हमने ऐसा नहीं किया, क्योंकि:
- जिस agent में user paste करता है उसके पास पहले से codebase context होता है — वे Cursor / Claude Desktop में repo open रखकर काम कर रहे होते हैं।
- सर्वर-साइड टेम्प्लेटिंग बिना किसी प्रति-क्लिक मॉडल कॉल के सामान्य सुधार पथों को कवर करता है।
- “मेरे codebase के लिए AI से refine करें” opt-in बाद में API fire कर सकता है अगर users चाहें। आज, नहीं।
