كل حالات الاستخدام

الهندسة

Map the legacy repo before the agent edits a line

Agents love to skim old repos — that is where the guesses hide.

مشاركة

نقطة الألم

klöss (@kloss_xyz) shared a paste-before-you-edit prompt for Opus, Astra, or Grok Bot on legacy code: map the codebase, trace what the task will touch, flag dead code and hidden side effects, and make no edits until you approve the map. Not affiliated with xAI.

ماذا تثبّت أو تنشئ

Paste his quoted prompt as the first message before any edit session. Approve the map, then allow edits.

الروبوتات

  • Legacy coder

    Maps first. Edits only after you approve the map.

الإضافات

  • GitHub

    اختياري

الروتينات

  • لا شيء في التشغيل الأول. راقب تنفيذًا يدويًا واحدًا أولًا.

النص التوجيهي

Map before edit (author-quoted)

Quoted from @kloss_xyz — as published. Do not invent a second system prompt.

Before we change anything, map this entire codebase. Trace every piece of code this task and session will touch, what depends on it, and what breaks if it changes. Flag any dead code, hidden side effects, and literally anything you're guessing about that's not proven by code reads and specific lines. No code edits until I approve the map manually.

التشغيل الأول

  1. 1Read https://x.com/kloss_xyz/status/2109747284044824692 (credit @kloss_xyz).
  2. 2Open the legacy repo with your coding bot.
  3. 3Paste his map prompt as the first message — before any edit.
  4. 4Review the map: dependencies, break risks, guesses vs proven lines.
  5. 5Approve the map, then allow the bot to edit.

حاجز الموافقة

Do not merge or deploy without your yes after the map.

ما الذي تعدّله

Steal the map-then-approve gate. No code edits until the map is proven.

المصدر

klöss @kloss_xyz · المنشور الأصلي

غير تابع لـ xAI. لم نكتب هذا النص التوجيهي. تبقى شروط القوالب التابعة لطرف ثالث سارية.

تصفح القوالب

تصفح مخططات الفرق

حزمة Pro

تريد الإعداد الكامل، لا الفكرة فقط؟

تمنحك حزم Pro وصف الوظيفة والنصوص التوجيهية والجداول والمزالق لحالات الاستخدام الشائعة.

اطلع على Pro