Community寫作與編輯github.com

ssauma/ai-safe-driver

AI agent drift detection and recovery for Claude Code and OpenAI Codex—stop repeated tool-call, instruction-following, and output-format failures with permission-gated handovers.

ai-safe-driver 是什麼?

ai-safe-driver is a Claude Code agent skill that aI agent drift detection and recovery for Claude Code and OpenAI Codex—stop repeated tool-call, instruction-following, and output-format failures with permission-gated handovers.

相容平台Claude CodeCodex CLI~Cursor
npx skills add ssauma/ai-safe-driver

Installed? Explore more 寫作與編輯 skills: steipete/notion, affaan-m/seo, affaan-m/brand-voice · View all 6 →

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

AI Safe Driver

This file is a low-token router. Do not diagnose from a hook label alone.

Hook-triggered recovery

A local hook may add bounded recovery context after an observable repeated-correction sequence or an explicit health or repeated-tool diagnosis request. Treat it as a reason to inspect evidence, not as proof of drift and not as a final dashboard percentage.

Confirm one observable condition in the visible conversation:

  • the same failure twice, including a correction or broken repair promise;
  • an explicit drift check or conversation-health check; or
  • an explicit request to diagnose a repeated tool failure; or
  • an explicit compaction question or new-session question.

If confirmed, read and follow the recovery procedure. Do not read the recovery procedure unless a condition is confirmed. If the evidence does not show repetition and there is no explicit check, continue without escalating.

Anger, profanity, capitalization, punctuation, or repeated characters alone never raises the drift label. Hook state is not permission to retry a tool, write a file, create or arm a handover, compact, or clear.

Black-comedy mnemonic, not a trigger: if the same problem is getting you yelled at again, do not argue that it feels unfair—check the evidence and recover.

Permission route

Diagnosis is read-only. File writes, handover arming, compaction, and context reset require explicit runtime approval.

When recovery evidence makes a continuity handover relevant, you may read the bundled handover procedure without mutation approval: handover procedure. Reading the procedure is not approval to write or arm anything. Follow its separate approval gates for the handover and local-exclude writes, then for the exact compact or clear action. Countersteering remains discussion-only and never authorizes either gate.

相關技能

steipete/notion

Notion CLI/API for pages, Markdown content, data sources, files, comments, search, Workers, and raw API calls.

community

affaan-m/seo

Audit, plan, and implement SEO improvements across technical SEO, on-page optimization, structured data, Core Web Vitals, and content strategy. Use when the user wants better search visibility, SEO remediation, schema markup, sitemap/robots work, or keyword mapping.

community

affaan-m/brand-voice

Build a source-derived writing style profile from real posts, essays, launch notes, docs, or site copy, then reuse that profile across content, outreach, and social workflows. Use when the user wants voice consistency without generic AI writing tropes.

community

affaan-m/crosspost

Multi-platform content distribution across X, LinkedIn, Threads, and Bluesky. Adapts content per platform using content-engine patterns. Never posts identical content cross-platform. Use when the user wants to distribute content across social platforms.

community

affaan-m/x-api

X/Twitter API integration for posting tweets, threads, reading timelines, search, and analytics. Covers OAuth auth patterns, rate limits, and platform-native content posting. Use when the user wants to interact with X programmatically.

community

affaan-m/content-engine

Create platform-native content systems for X, LinkedIn, TikTok, YouTube, newsletters, and repurposed multi-platform campaigns. Use when the user wants social posts, threads, scripts, content calendars, or one source asset adapted cleanly across platforms.

community