Audit Recover logo

Audit Recover

Community
RickyTong1
audit-recover

从审计记录恢复丢失的 Context。当你无法回忆前期讨论内容、不确定当前任务进度、要提出可能已被用户否定的方案、或用户说"你之前说的是什么"、"回忆一下"、"我们之前讨论了什么"时使用。更重要的是:当你感觉自己的回答变得笼统、缺少具体数字和文件名时,应主动触发此 Skill,而不是凭印象继续工作。

Overview

PublisherRickyTong1
Repositoryaudit-harness
Skill nameaudit-recover
Stars
467
Forks
3
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by RickyTong1 on GitHub. Read the source before you install it.

Installation

Install the Audit Recover AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/RickyTong1/audit-harness/tree/main/skills/audit-recover
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/RickyTong1/audit-harness.git /tmp/audit-harness
mkdir -p .claude/skills
cp -r /tmp/audit-harness/skills/audit-recover .claude/skills/audit-recover
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Audit Recover in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Audit Recover on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Audit Recover is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

/recover — Context 恢复

触发方式

/recover              # 恢复当前 session 的 context
/recover full         # 恢复当前 session + 最近 3 天的完整 context
/recover {session_id} # 恢复指定 session 的 context

核心原则

不确定就查审计记录,不要凭印象工作。

这不是一个"可选的辅助工具"——当 context 丢失时,/recover 是唯一可靠的恢复手段。 凭印象工作会导致重犯已被用户否定的错误,这比不工作更糟糕。

何时触发

用户手动触发

用户说"你刚才说的什么来着"、"回忆一下之前的讨论"等。

Claude 主动触发(更重要)

信号判断方式
无法回忆会话前期的具体内容用户引用了"之前讨论的",但你找不到对应内容
不确定当前任务做到哪一步了要继续工作但不知道上次停在哪
要提出的方案可能已被用户否定不确定某个判断是否被纠正过
回答变得笼统,缺少具体细节无法说出具体的数字、文件名、结论

执行步骤

分级加载

按以下优先级渐进加载,避免一次性占满 context:

Level 0 — 索引摘要(~200 tokens)

读取 .claude/runs/index.json → 最近 5 条 entry 的 id + task + status

Level 1 — 任务状态(~500 tokens)

读取 .claude/runs/.current_session → 获取当前 session_id
读取 .claude/runs/{session_id}/session.json → task + start_time
读取 .claude/runs/{session_id}/audit_trail.jsonl → 最后 3 条记录的 action + output
→ "当前做到哪了"

Level 2 — 用户修正 + 决策上下文(~1,000 tokens)⚠️ 最重要

在 .claude/runs/ 下所有 audit_trail.jsonl 中搜索 "user_correction"
搜索所有 conclusions 字段
读取最新 .claude/runs/daily/ 下的日报 §四异常 + §六待办
→ "用户否定了什么、得出了什么结论、有什么未解决的问题"

Level 3 — 完整上下文(~3,000 tokens,仅在 /recover full 时加载)

完整的 audit_trail.jsonl
完整的 audit_pending.jsonl(如果还有未归档的)

输出恢复报告

=== Context 恢复报告 ===
来源: .claude/runs/{session_id}/
恢复级别: Level 2

当前任务: {session.task}
任务状态: {最后一个 audit 记录的 output}

⚠️ 用户修正记录(必须遵守):
  1. [时间] 原始判断: "..."
     修正: "..."
     原则: ...

关键结论:
  - ...

未解决问题:
  - ...

⚠️ 以上内容从审计记录恢复,不是从记忆中回忆的。

注意事项

  • 恢复的 user_correction 记录具有最高优先级——后续工作中不得违反
  • 如果恢复后发现当前想法与 user_correction 矛盾,必须修正想法
  • 恢复报告应简洁,避免把整个审计记录复制到 context
  • 优先恢复"为什么"和"不要做什么",而非"做了什么"

Frequently asked questions

What does the Audit Recover AI skill do?

从审计记录恢复丢失的 Context。当你无法回忆前期讨论内容、不确定当前任务进度、要提出可能已被用户否定的方案、或用户说"你之前说的是什么"、"回忆一下"、"我们之前讨论了什么"时使用。更重要的是:当你感觉自己的回答变得笼统、缺少具体数字和文件名时,应主动触发此 Skill,而不是凭印象继续工作。

Why use Audit Recover on TypingMind?

Because you install it once and use it with any model. Audit Recover is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Audit Recover in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/RickyTong1/audit-harness/tree/main/skills/audit-recover. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Audit Recover?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Audit Recover?

As many as you like. As long as a model supports skills, you can use Audit Recover with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Audit Recover AI skill free?

Yes. It is published on GitHub by RickyTong1 under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇