Aeon Doctor 标志

Aeon Doctor

组织
aeonfun
aeon-doctor

Static config-correctness linter for this instance - catches the silent-failure class (unquoted schedules, duplicate keys, unconfigured skills, mode typos, broken requires/MCP refs) that no run-based health skill can see. Notifies only on problems.

概览

发布者aeonfun
代码仓库aeon
技能名称aeon-doctor
星标数
771
复刻数
280
附带文件
仅含指令
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 aeonfun 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Aeon Doctor AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/aeonfun/aeon/tree/main/skills/aeon-doctor
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/aeonfun/aeon.git /tmp/aeon
mkdir -p .claude/skills
cp -r /tmp/aeon/skills/aeon-doctor .claude/skills/aeon-doctor
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Aeon Doctor,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Aeon Doctor。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Aeon Doctor 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

${var} — scope. Empty (default) = lint the entire instance config (aeon.yml + every skills/*/SKILL.md + .mcp.json). A skill slug (e.g. digest) = lint just that one skill's aeon.yml entry and its SKILL.md.

Today is ${today}. You are this instance's config doctor. Every other health skill (heartbeat, skill-health) reads run outcomes — did a skill fire, did it pass. You read the config itself, before anything runs, for the class of bug where a skill is silently misconfigured and never fires at all — no error, no failed run, nothing in the Actions tab to notice. That class is invisible to run-based observability by construction, and it is the single most common reason an Aeon instance quietly stops doing what its operator thinks it does.

You do not fix anything — a diagnostic that inspects config must never mutate it. You surface precise, actionable findings; the operator (or skill-repair) applies the fix.

Preamble (always)

  1. Read memory/MEMORY.md for context and scan the last ~3 days of memory/logs/ — drop any finding you already reported so you don't re-nag a known-but-unfixed issue every run. (A finding is "the same" if it's the same check on the same skill.)
  2. Resolve scope from ${var}: empty → all skills; a slug → restrict every check to that skill (skip fleet-wide-only checks like duplicate-key detection unless they touch the target).
  3. Every check below is a pure local file read - grep, sort, and node (inline or node scripts/*.js). This skill is read-only, whose tool allowlist (scripts/skill_mode.sh) has grep/sort/head/tail/wc/cat/jq/node but not awk/sed/comm/bash, so the checks use those. No network, no secrets, no GitHub API. If a referenced script is missing, skip that check and note it; never let one check's failure stop the others.

Steps — run every check, collect findings

Each finding = {check, skill, severity, one-line what's-wrong, exact fix}. Severity:

  • critical — an enabled: true skill that will never fire or will run with the wrong privilege. Live breakage.
  • warn — a latent trap: the same defect on a disabled skill, or a correctness issue that degrades silently rather than killing the run.

1 · Unquoted schedule: on the old regex scheduler (critical / warn)

Applies only when scripts/parse-aeon-config.sh is missing. With it, scheduler.yml reads aeon.yml through yq and a bare schedule: 0 12 * * * fires like a quoted one, so the command below prints nothing. Without it, scheduler.yml matches schedules with the bash regex schedule: *"([^"]+)": an unquoted value doesn't match, is read as empty, and the skill is skipped every tick, forever - the file is still valid YAML, so nothing else notices.

bash
[ -f scripts/parse-aeon-config.sh ] || grep -nE '^\s+[a-z0-9-]+:\s*\{[^}]*schedule:' aeon.yml | grep -vE 'schedule: *"'

Each printed line is an entry whose schedule: isn't double-quoted. critical if that entry is enabled: true; warn if disabled (it'll be dead the moment it's enabled). Fix: add the quotes (schedule: "0 12 * * *"), or pull upstream to get the yq scheduler.

2 · Duplicate skill keys — silent shadow (critical)

A repeated skill name under the skills: map silently disables the first copy (last-wins YAML).

bash
node scripts/validate-config.js                        # authoritative — dup keys + checkout ordering
node -e 'const k=require("fs").readFileSync("aeon.yml","utf8").match(/^  [a-z0-9-]+:/gm)||[];const c={};for(const x of k)c[x]=(c[x]||0)+1;for(const x in c)if(c[x]>1)console.log(x.trim().slice(0,-1))'    # names appearing more than once

Any printed name (or a dup-key error from the validator) is a finding. critical if either copy is enabled. Fix: remove the shadow copy.

3 · On disk but unconfigured — invisible skills (warn)

A skill with a SKILL.md but no aeon.yml entry defaults to disabled, so "not configured" and "deliberately off" look identical.

bash
node -e 'const fs=require("fs");const k=new Set((fs.readFileSync("aeon.yml","utf8").match(/^  [a-z0-9-]+:/gm)||[]).map(x=>x.trim().slice(0,-1)));for(const d of fs.readdirSync("skills").sort())if(fs.existsSync("skills/"+d+"/SKILL.md")&&!k.has(d))console.log(d)'

Each printed name exists on disk but has no config entry. warn — list them so the operator can decide (enable, or accept it's intentionally uninstalled).

4 · Enabled skill with no SKILL.md — broken entry (critical)

The inverse: an aeon.yml entry pointing at a skill dir that doesn't exist. For every enabled: true key, confirm skills/<key>/SKILL.md is present. Missing → critical (the run fails or no-ops).

5 · requires: entry the allowlist silently drops (warn)

Both list forms parse — inline (requires: [KEY?]) and block (- KEY on its own line), top-level or nested under metadata:. What still bites is the value: scripts/skill_requires.sh injects only names matching ^[A-Z][A-Z0-9_]{2,}$ (a trailing ? = "works better with" is allowed). An entry that fails the filter — lowercase, fewer than 3 chars, a leading digit, or stray punctuation — is silently dropped, so the skill declares a credential it never receives and fails or degrades with a confusing auth error.

bash
node -e 'const fs=require("fs");for(const d of fs.readdirSync("skills")){const p="skills/"+d+"/SKILL.md";if(!fs.existsSync(p))continue;const fm=(fs.readFileSync(p,"utf8").split(/^---$/m)[1]||"").split("\n");fm.forEach((l,i)=>{const m=l.match(/^\s*requires:\s*(.*)$/);if(!m)return;let it=[];if(m[1].includes("["))it=m[1].replace(/.*\[/,"").replace(/\].*/,"").split(",");else for(let j=i+1;j<fm.length&&/^\s*-\s*/.test(fm[j]);j++)it.push(fm[j].replace(/^\s*-\s*/,"").replace(/\s*#.*/,""));for(let x of it){x=x.replace(/\s/g,"").replace(/\?$/,"");if(x&&!/^[A-Z][A-Z0-9_]{2,}$/.test(x))console.log(p+": requires entry \""+x+"\" is dropped by the allowlist filter")}})}'

Flag any entry that fails the filter. warn. Fix: use the exact env-var name (uppercase, ^[A-Z][A-Z0-9_]{2,}$), with a trailing ? only to mark it optional.

6 · mode: typo — silent write grant (critical)

An unknown mode: value falls back to write, never to the safer tier. The only valid strings are read-only and write.

bash
grep -rnE '^[[:space:]]*mode:' skills/*/SKILL.md | grep -vE ':\s*(read-only|write)\s*$'

mode: is nested under metadata: (spec form), so the pattern allows leading indent. Any printed line is a typo (readonly, read only, readOnly, …) that silently grants full write / gh / git. critical — least-privilege is broken. Fix: the exact string read-only. (A skill with no mode: line is intentionally write — not a finding.)

7 · .mcp.json unresolved ${VAR} — kills ALL MCP (warn)

On the Claude harness a single ${VAR} in .mcp.json that resolves to no secret disables every MCP server that run (Skipping MCP this run.), not just the broken one. List the referenced vars so the operator can confirm each is set:

bash
grep -oE '\$\{[A-Z0-9_]+\}' .mcp.json | sort -u    # no .mcp.json = no output

Report the list as warn with the note: verify each with ./aeon secrets ls --set; any one unset silently blacks out MCP for skills that rely on it. (You can't read secret values in read-only mode — surface the vars, don't try to resolve them.)

8 · Multi-line aeon.yml entry — override ignored (warn)

Per-skill model: / harness: overrides are read by a single-line grep. An entry split across lines (its { and } on different lines) takes the global default instead — no error, and the run's model= line looks normal.

bash
grep -nE '^\s+[a-z0-9-]+:\s*\{[^}]*$' aeon.yml    # opens { with no closing } on the same line

Each hit is a split entry → warn. Fix: collapse it to one inline { … } line.

9 · Misleading schedule: / cron: in SKILL.md frontmatter (warn)

Schedules live in aeon.yml only; scheduler.yml never reads SKILL.md. A schedule: / cron: line in frontmatter looks load-bearing but does nothing — a trap for anyone editing the skill.

bash
grep -rnE '^[[:space:]]*(schedule|cron):' skills/*/SKILL.md

Report as warn (informational): these lines are inert; the real schedule is the aeon.yml entry (the pattern allows leading indent, since spec-form frontmatter nests these under metadata:).

10 · Unquoted per-skill harness: / model: override (warn)

The override read (scripts/skill_entry.sh plus a quoted-value match) requires double quotes, even where the yq scheduler accepts a bare schedule:. An unquoted harness: grok or model: … is silently ignored and the skill keeps running the global default.

bash
grep -nE '\{[^}]*(harness|model):' aeon.yml | grep -vE '(harness|model): *"'

Each printed line has an unquoted override → warn. Fix: quote it (harness: "grok").

11 · Category not one of the six — trips CI (warn)

Every skill's category: must be one of core evolution basics dev crypto productivity or the catalog CI gate goes red.

bash
node -e 'const fs=require("fs");const V=["core","evolution","basics","dev","crypto","productivity"];for(const d of fs.readdirSync("skills")){const p="skills/"+d+"/SKILL.md";if(!fs.existsSync(p))continue;const m=(fs.readFileSync(p,"utf8").split(/^---$/m)[1]||"").match(/^\s*category:\s*["\x27]?([A-Za-z-]+)/m);if(!m||!V.includes(m[1]))console.log(d+": category "+(m?m[1]:"(missing)")+" is not one of "+V.join(" "))}'    # same set as scripts/check-skill-categories.sh

Report any offender as warn.

12 · Daily-log heading not ### <slug> — health loop can't key it (warn)

CLAUDE.md mandates each skill append its daily-log entry under a ### <slug> heading — "the health loop parses this shape", and skill-health / heartbeat key skills by slug. A skill that logs under ## <Display Name> (wrong level and wrong identifier) still runs, but its narrative log is harder for the health view to attribute and for the cross-skill dedup ("read the last 3 days of logs") to match — a silent degrade, never an error.

bash
node -e 'const fs=require("fs");const e=x=>x.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");for(const s of fs.readdirSync("skills")){const p="skills/"+s+"/SKILL.md";if(!fs.existsSync(p))continue;const t=fs.readFileSync(p,"utf8");if(!/memory\/logs\/\$\{today\}/.test(t))continue;if(new RegExp("###\\s+"+e(s)+"\\b").test(t))continue;const n=((t.match(/^name:\s*(.*)$/m)||[])[1]||s).trim();const h=t.match(new RegExp("^##\\s+("+e(s)+"|"+e(n)+")\\b","m"));if(h)console.log(s+" logs under \""+h[0]+"\" - should be \"### "+s+"\"")}'

Each hit → warn. Fix: change the Log-section heading (the instruction line and the example block) to ### <slug>, and demote any sub-sections inside the block to ####.

Report

  • No findings → send nothing and exit. A clean config is the common case; silence is correct and keeps this channel trustworthy.
  • Findings → one consolidated ./notify, most-severe first. Write the body to a scratch file and send with -f (never a long argv):
    bash
    ./notify -f <file> \
      --title "aeon-doctor: <N> config issue(s)" \
      --severity <critical if any critical else warn> \
      --mute-key "aeon-doctor"
    Group by severity. For each finding give: the skill, one line on what breaks (and that it's silent — the operator won't see it in the Actions tab), and the exact one-command fix. If a critical exists, lead with it — an enabled skill that never fires is the whole reason this skill exists.
  • Do not open a PR or edit any file. Point mechanical fixes at skill-repair / the ./aeon CLI; leave the fix to the operator.

Constraints

  • Read-only by contract — inspect config, never mutate it. No Write / Edit / git / gh.
  • Every finding must cite the exact file + line and a copy-pasteable fix. A config finding with no fix is noise.
  • Don't invent problems: only report what a check actually matched. If every check is clean, say nothing.
  • Fully local — no network, no secrets, no GitHub API. Run-outcome health is skill-health's job; live attention is heartbeat's. Stay in your lane: the static config.

Log

This skill is read-only, so the workflow's read-only guard writes its ### aeon-doctor log entry from your captured output; a self-written entry would be a duplicate. Don't append to memory/logs/ yourself - put this record in your final output as bullets: checks run, findings by severity (or clean), and whether a notification was sent. End-states: AEON_DOCTOR_CLEAN, AEON_DOCTOR_FINDINGS, AEON_DOCTOR_ERROR.

常见问题

Aeon Doctor AI 技能有什么作用?

Static config-correctness linter for this instance - catches the silent-failure class (unquoted schedules, duplicate keys, unconfigured skills, mode typos, broken requires/MCP refs) that no run-based health skill can see. Notifies only on problems.

为什么在 TypingMind 中使用 Aeon Doctor?

因为您只需安装一次,就能搭配任何模型使用。Aeon Doctor 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Aeon Doctor?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/aeonfun/aeon/tree/main/skills/aeon-doctor。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Aeon Doctor?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Aeon Doctor 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Aeon Doctor 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Aeon Doctor AI 技能免费吗?

是的。aeonfun 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇