> ## Documentation Index
> Fetch the complete documentation index at: https://docs.devinenterprise.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Einen Produktions-Hotfix in ein Playbook überführen

export const UseCaseHero = ({title, description, prompt, category, features, devinUrl, agent, intent, playbookId, type}) => {
  const encodedPrompt = encodeURIComponent(prompt || '');
  const tag = 'docs-use-case-gallery';
  const utm = 'utm_source=docs&utm_medium=use-case-gallery&utm_campaign=hero-cta';
  const agentParams = (agent ? '&agent=' + agent : '') + (intent ? '&intent=' + intent : '') + (playbookId ? '&playbookId=' + playbookId : '');
  const devinHref = type === 'schedule' ? 'https://app.devin.ai/settings/schedules/create?' + utm + agentParams + (prompt ? '&prompt=' + encodedPrompt : '') : type === 'review' ? 'https://app.devin.ai/review?' + utm : agent === 'ada' ? 'https://app.devin.ai/search?' + utm + '&noSubmit=true' + (prompt ? '&prompt=' + encodedPrompt : '') : devinUrl ? devinUrl.includes('?') ? devinUrl + '&' + utm + agentParams : devinUrl + '?' + utm + agentParams : prompt ? 'https://app.devin.ai/?tags=' + tag + '&' + utm + agentParams + '&prompt=' + encodedPrompt : 'https://app.devin.ai/?' + utm + agentParams;
  const buttonLabel = type === 'schedule' ? 'Schedule in Devin ↗' : type === 'review' ? 'Set Up Devin Review ↗' : agent === 'advanced' ? 'Try in Devin ↗' : agent === 'dana' ? 'Try in Dana ↗' : agent === 'ada' ? 'Try in Ask Devin ↗' : 'Try in Devin ↗';
  const featureList = features ? features.split(',').map(f => f.trim()) : [];
  return <div className="uc-hero">
      <div className="uc-hero-inner">
        <div className="uc-hero-left">
          <h1 className="uc-hero-title">{title}</h1>
          <p className="uc-hero-desc">{description}</p>
          <div>
            <a href={devinHref} target="_blank" rel="noopener noreferrer" className="try-in-devin-btn">
              {buttonLabel}
            </a>
          </div>
        </div>
        <div className="uc-hero-meta">
          <div className="uc-meta-item">
            <span className="uc-meta-label">Author</span>
            <span className="uc-meta-value">Cognition</span>
          </div>
          <div className="uc-meta-item">
            <span className="uc-meta-label">Category</span>
            <span className="uc-meta-value">{category}</span>
          </div>
          {featureList.length > 0 && <div className="uc-meta-item">
              <span className="uc-meta-label">Features</span>
              <span className="uc-meta-value">{featureList.join(', ')}</span>
            </div>}
        </div>
      </div>
    </div>;
};

export const PromptBlock = ({children, type, agent, intent, playbookId}) => {
  var utm = 'utm_source=docs&utm_medium=use-case-gallery&utm_campaign=prompt-block';
  var tag = 'docs-use-case-gallery';
  var agentParams = (agent ? '&agent=' + agent : '') + (intent ? '&intent=' + intent : '') + (playbookId ? '&playbookId=' + playbookId : '');
  var label = type === 'schedule' ? 'Schedule in Devin' : type === 'playbook' ? 'Create Playbook' : type === 'knowledge' ? 'Add to Knowledge' : agent === 'advanced' ? 'Try in Devin' : agent === 'dana' ? 'Try in Dana' : agent === 'ada' ? 'Try in Ask Devin' : 'Try in Devin';
  var buildUrl = function (text) {
    var encoded = encodeURIComponent(text);
    if (type === 'schedule') return 'https://app.devin.ai/settings/schedules/create?' + utm + agentParams + '&prompt=' + encoded;
    if (type === 'playbook') return 'https://app.devin.ai/settings/playbooks/create?' + utm + '&body=' + encoded;
    if (type === 'knowledge') return 'https://app.devin.ai/knowledge?' + utm + '&body=' + encoded;
    if (agent === 'ada') return 'https://app.devin.ai/search?' + utm + '&noSubmit=true&prompt=' + encoded;
    return 'https://app.devin.ai/?tags=' + tag + '&' + utm + agentParams + '&prompt=' + encoded;
  };
  const ref = React.useRef(null);
  const [href, setHref] = React.useState('#');
  React.useEffect(() => {
    if (!ref.current) return;
    var codeEl = ref.current.querySelector('pre code');
    if (codeEl) {
      var text = codeEl.textContent.trim();
      if (text) setHref(buildUrl(text));
    }
    var header = ref.current.querySelector('[data-component-part="code-block-header"]');
    if (header && !header.querySelector('.prompt-block-devin-link')) {
      var link = document.createElement('a');
      link.href = href;
      link.target = '_blank';
      link.rel = 'noopener noreferrer';
      link.className = 'prompt-block-devin-link';
      link.style.cssText = 'display:inline-flex;align-items:center;gap:6px;text-decoration:none;color:#fff;font-size:11px;font-weight:500;padding:4px 10px;border-radius:6px;white-space:nowrap;background:#317CFF;transition:background 0.2s;margin-left:8px;';
      link.innerHTML = '<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"/><polyline points="15 3 21 3 21 9"/><line x1="10" y1="14" x2="21" y2="3"/></svg> ' + label;
      link.onmouseenter = function () {
        link.style.background = '#2968D9';
      };
      link.onmouseleave = function () {
        link.style.background = '#317CFF';
      };
      header.appendChild(link);
    }
    var existingLink = ref.current.querySelector('.prompt-block-devin-link');
    if (existingLink && href !== '#') existingLink.href = href;
  });
  return <div className="prompt-block" ref={ref}>{children}</div>;
};

<UseCaseHero title="Einen Hotfix in der Produktion in ein Playbook verwandeln" description="Extrahieren Sie die genauen Schritte aus einer erfolgreichen Incident-Response-Session, damit Ihr Team den Fix jedes Mal wiederholen kann." prompt="Die Memory-Leak-Session letzten Dienstag war ein Musterbeispiel – Devin hat das Leak im Connection-Pool identifiziert, den Fix angewendet, in Staging verifiziert und mit null Downtime deployed: [session link]. Extrahieren Sie daraus ein wiederverwendbares Hotfix-Playbook, damit On-Call-Engineers denselben Prozess für zukünftige Speicherprobleme befolgen können." category="Devin-Optimierung" features="Fortgeschritten, Playbooks" agent="advanced" intent="create" />

<div className="uc-detail-wrapper">
  <Tip>Möchten Sie dies nicht manuell einrichten? Fügen Sie einen Link zu dieser Seite in eine Devin-Session ein und bitten Sie Devin, alles für Sie einzurichten.</Tip>

  <Steps>
    <Step title="Die relevante Incident-Session identifizieren">
      Nachdem ein Incident in Produktion behoben wurde, haben Sie ein Devin-Session-Transkript, das jeden Diagnoseschritt, jeden ausgeführten Befehl und jede unter Druck getroffene Entscheidung erfasst hat. Dieses Transkript ist das Rohmaterial für ein Playbook, das Ihr On-Call-Team beim nächsten Mal wiederverwenden kann.

      Nicht jede Incident-Session eignet sich als Playbook. Suchen Sie nach Sessions, in denen Devin einer klaren, wiederholbaren Methodik gefolgt ist – der Art von Incident, der in Ihrem Team regelmäßig vorkommt:

      * **Memory Leaks** – Quelle identifiziert, Fix angewendet, Heap-Nutzung nach dem Deployment verifiziert
      * **Connection-Pool-Erschöpfung** – Ursache bis zur Root Cause nachverfolgt, Pool-Einstellungen optimiert, Monitoring hinzugefügt
      * **Kaskadierende Timeouts** – fehlerhaften Upstream isoliert, Circuit Breaker hinzugefügt, Recovery validiert
    </Step>

    <Step title="Das Playbook erstellen">
      Öffnen Sie die [Devin-Startseite](https://app.devin.ai/?utm_source=docs\&utm_medium=use-case-gallery) und starten Sie eine neue Session. Beschreiben Sie die Session, die Sie in ein Playbook umwandeln möchten.

      Fügen Sie den Link zur Incident-Session ein und beschreiben Sie, was das Playbook erfassen soll. Seien Sie konkret beim **Scope of Generalization** – das Playbook soll für die *Klasse* von Incidents funktionieren, nicht nur für den einen Dienst, der ausgefallen ist.

      <PromptBlock agent="advanced" intent="create">
        ```txt Create hotfix playbook from incident session theme={null}
        This session diagnosed and fixed a memory leak in our payments service
        caused by unclosed database connections:
        https://app.devin.ai/sessions/abc123

        Create a reusable hotfix playbook for memory-leak incidents that any
        on-call engineer can attach to a new session. It should:
        - Generalize the diagnostic steps (not payments-specific)
        - Include the heap profiling approach from the session
        - Capture how it validated the fix in staging before deploying
        - Keep the rollback procedure in case the fix makes things worse
        - Add a step for posting a summary to the #incidents Slack channel
        ```
      </PromptBlock>

      Wenn Sie mehrere gelöste Incidents desselben Typs haben (z. B. zwei verschiedene Memory-Leak-Sessions), fügen Sie sie alle hinzu. Devin erkennt gemeinsame Muster über Sessions hinweg und erzeugt ein robusteres [Playbook](/de/product-guides/creating-playbooks).
    </Step>

    <Step title="Beim nächsten Incident testen">
      Der eigentliche Test ist, ob das Playbook bei einer *anderen* Instanz derselben Incident-Klasse funktioniert. Wenn das nächste Speicherproblem auftritt, starten Sie eine neue Devin-Session, hängen Sie das Playbook an und richten Sie es auf den betroffenen Dienst.

      <PromptBlock>
        ```txt Diagnose memory leak in the notifications service theme={null}
        Use the attached hotfix playbook to investigate and fix a memory leak
        in the notifications service. OOM kills started at 03:12 UTC.
        The service is at src/services/notifications/.
        ```
      </PromptBlock>

      Wenn die Session den Incident sauber löst, generalisiert Ihr Playbook gut. Wenn es Schwierigkeiten gibt – vielleicht ist das Leak-Muster anders oder der Dienst nutzt einen anderen Datenbanktreiber – geben Sie diese Session erneut an Devin weiter und bitten Sie ihn, das Playbook zu verbessern. Siehe [Fix a Flaky DB Migration Playbook](/de/use-cases/gallery/improve-playbook-from-sessions) für diesen Workflow.
    </Step>
  </Steps>
</div>
