Audit Start logo

Audit Start

Community
RickyTong1
audit-start

创建审计会话并自动恢复历史上下文。当用户开始新任务、说"帮我做X"、"分析Y"、"修改Z"、"开始工作"等,或当你检测到当前没有活跃的审计会话时,主动使用此 Skill。即使用户没有显式说 /start,只要涉及数据处理、代码修改、分析决策、文档编写,都应建议或自动启动审计会话。

Overview

PublisherRickyTong1
Repositoryaudit-harness
Skill nameaudit-start
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 Start 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-start
  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-start .claude/skills/audit-start
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Audit Start 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 Start 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 Start 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.

/start — 审计会话启动 + Context 恢复

触发方式

/start "任务描述"

为什么需要 /start

每次工作都应该在审计会话中进行。没有会话意味着:

  • hooks 产出的审计数据归入自动创建的 auto_ session,缺少任务描述
  • /end 无法做完整性检查
  • 日报中的任务总览缺少描述

/start 的成本极低(创建一个目录 + 一个 JSON 文件),收益是让所有后续操作都有上下文。

执行步骤

1. 创建审计会话

bash
# 1. 生成 session_id
SESSION_ID="adhoc_$(date +%Y%m%d_%H%M)"

# 2. 创建目录
mkdir -p .claude/runs/${SESSION_ID}

# 3. 写入 session.json
cat > .claude/runs/${SESSION_ID}/session.json << EOF
{
    "session_id": "${SESSION_ID}",
    "task": "用户提供的任务描述",
    "start_time": "ISO 8601",
    "status": "in_progress",
    "expected_record_types": []
}
EOF

# 4. 写入 .current_session(Stop hook 依赖此文件确定归档目标)
echo "${SESSION_ID}" > .claude/runs/.current_session

⚠️ 第 4 步是关键:.current_session 文件是 /start 和 Stop hook 之间的握手协议。 Stop hook 读取此文件来确定 audit_buffer 归档到哪个 session 目录。 如果不写这个文件,Stop hook 会创建一个 auto_ session,与 /start 的 session 脱节。

2. Context 恢复(如果 .claude/runs/ 目录存在历史数据)

按以下优先级加载:

Level 0 — 索引摘要:

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

Level 2 — 用户修正(最重要):

  • 在最近的 audit_trail.jsonl 和 audit_blocks.jsonl 中搜索 user_correction
  • 这些记录必须最先恢复——丢了会重犯错误

Level 1 — 任务状态:

  • 读取最新的 .claude/runs/daily/*_daily.md(如果存在)
    • §四 异常告警:有没有未解决的问题?
    • §六 昨日待办:有没有未完成的任务?
    • §七 明日待办:今天该优先做什么?
  • 读取最新的 .claude/runs/daily/*_morning_review.md(如果存在)

检查未完成会话:

  • 扫描 .claude/runs/adhoc_*/session.json,找 status: "in_progress" 的会话
  • 如果有,提示用户是否继续上次未完成的任务(如果继续,复用旧 session_id 而非创建新的)

3. 输出上下文恢复摘要

审计会话已创建: adhoc_20260320_1400
任务: {用户的任务描述}

上下文恢复摘要(基于 .claude/runs/ 审计记录):

最近活动:
  - {最近 3 条完成的任务}

⚠️ 用户修正记录(必须遵守):
  - {所有 user_correction 记录}

待解决问题:
  - {未关闭的异常/告警}

今日推荐优先级:
  - {morning_review 中的推荐}

预期 Record 类型:
  [数据] / [变更] / [对话] — 根据任务描述预判

所有后续 [AUDIT] 块请使用 batch_id = {session_id}

4. 注意事项

  • 如果 .claude/runs/ 目录不存在,自动创建,跳过 context 恢复
  • 如果没有历史审计数据,正常启动,不报错
  • session_id 在整个会话期间保持不变,所有 [AUDIT] 块共享此 id
  • 如果已有活跃 session(.current_session 文件存在且对应 session 状态为 in_progress),提示用户是否要结束旧 session 再创建新的

Frequently asked questions

What does the Audit Start AI skill do?

创建审计会话并自动恢复历史上下文。当用户开始新任务、说"帮我做X"、"分析Y"、"修改Z"、"开始工作"等,或当你检测到当前没有活跃的审计会话时,主动使用此 Skill。即使用户没有显式说 /start,只要涉及数据处理、代码修改、分析决策、文档编写,都应建议或自动启动审计会话。

Why use Audit Start on TypingMind?

Because you install it once and use it with any model. Audit Start 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 Start in TypingMind?

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

Which AI models can use Audit Start?

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 Start?

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

Is the Audit Start 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 👇