Все сценарии

Разработка

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