Agent Skillsaeonfun/aeon › Aeon Doctor

Aeon Doctor

GitHub

Aeon Doctor 是实例配置静态检查工具,用于在运行前捕获导致技能静默失效的配置错误(如未引用的调度、重复键、拼写错误等)。它仅报告问题而不修改配置,通过本地文件读取识别关键和警告级缺陷,确保配置正确性。

skills/aeon-doctor/SKILL.md aeonfun/aeon

触发场景

需要检查 Aeon 实例配置正确性时 排查技能未执行且无报错的静默故障时 部署新技能或修改 aeon.yml 后验证配置时

安装

npx skills add aeonfun/aeon --skill Aeon Doctor -g -y
更多选项

不安装直接使用

npx skills use aeonfun/aeon@Aeon Doctor

指定 Agent (Claude Code)

npx skills add aeonfun/aeon --skill Aeon Doctor -a claude-code -g -y

安装 repo 全部 skill

npx skills add aeonfun/aeon --all -g -y

预览 repo 内 skill

npx skills add aeonfun/aeon --list

SKILL.md

Frontmatter
{
    "var": "",
    "mode": "read-only",
    "name": "Aeon Doctor",
    "tags": [
        "meta",
        "health"
    ],
    "type": "Skill",
    "category": "evolution",
    "requires": [],
    "description": "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."
}

${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 readgrep, comm, node scripts/*.js, bash scripts/*.sh. 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: — the #1 silent killer (critical / warn)

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.

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 * * *".

2 · Duplicate skill keys — silent shadow (critical)

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

node scripts/validate-config.js                        # authoritative — dup keys + checkout ordering
grep -oE '^  [a-z0-9-]+:' aeon.yml | sort | uniq -d    # names appearing more than once

Any name from uniq -d (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.

comm -23 <(ls skills/*/SKILL.md | cut -d/ -f2 | sort) \
         <(grep -oE '^  [a-z0-9-]+:' aeon.yml | tr -d ' :' | sort)

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: as a block list — injects nothing (warn)

requires: parses an inline array only. requires: [KEY?] works; a YAML block list (- KEY on the next line) silently injects no keys, so the skill runs without the credentials it declares and fails or degrades with a confusing auth error.

for f in skills/*/SKILL.md; do awk '/^requires:/ && $0 !~ /\[/ {print FILENAME": block-style requires: (injects nothing)"}' "$f"; done

Flag any SKILL.md whose requires: isn't a same-line [...]. warn. Fix: collapse to requires: [KEY, KEY2?].

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.

grep -rn '^mode:' skills/*/SKILL.md | grep -vE ':\s*(read-only|write)\s*$'

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:

[ -f .mcp.json ] && grep -oE '\$\{[A-Z0-9_]+\}' .mcp.json | sort -u

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.

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.

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

Report as warn (informational): these lines are inert; the real schedule is the aeon.yml entry.

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

Same quoting rule as schedule: — the override grep requires double quotes. An unquoted harness: grok or model: … is silently ignored and the skill keeps running the global default.

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.

[ -x scripts/check-skill-categories.sh ] && bash 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.

for f in skills/*/SKILL.md; do
  s=$(basename "$(dirname "$f")"); grep -qE 'memory/logs/\$\{today\}' "$f" || continue   # only log-writers
  grep -qE '###[[:space:]]+'"$s"'\b' "$f" && continue                                     # compliant
  name=$(awk -F': *' '/^name:/{print $2; exit}' "$f" | sed 's/ *$//')
  hit=$(grep -oE '^##[[:space:]]+('"$s"'|'"${name:-$s}"')\b' "$f" | head -1)
  [ -n "$hit" ] && echo "$s logs under '$hit' — should be '### $s'"
done

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):
    ./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

Append to memory/logs/${today}.md under a ### aeon-doctor heading (the health loop parses this shape), 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.

版本历史

  • ed82d8a 当前 2026-07-31 02:59

同 Skill 集合

.claude/skills/aeon/SKILL.md
skills/action-converter/SKILL.md
skills/article/SKILL.md
skills/auto-merge/SKILL.md
skills/auto-workflow/SKILL.md
skills/autoresearch/SKILL.md
skills/bd-radar/SKILL.md
skills/changelog/SKILL.md
skills/code-health/SKILL.md
skills/cost-report/SKILL.md
skills/create-skill/SKILL.md
skills/ctrl/SKILL.md
skills/defi-overview/SKILL.md
skills/deploy-prototype/SKILL.md
skills/digest/SKILL.md
skills/distribute-tokens/SKILL.md
skills/ecosystem-pulse/SKILL.md
skills/executor-mcp/SKILL.md
skills/fear-divergence/SKILL.md
skills/feature/SKILL.md
skills/fetch-tweets/SKILL.md
skills/finance-district-mcp/SKILL.md
skills/fleet-control/SKILL.md
skills/fork-fleet/SKILL.md
skills/github-monitor/SKILL.md
skills/github-trending/SKILL.md
skills/glim-mcp/SKILL.md
skills/heartbeat/SKILL.md
skills/idea-forge/SKILL.md
skills/idea-pipeline/SKILL.md
skills/inbox-triage/SKILL.md
skills/install-skill/SKILL.md
skills/investigation-report/SKILL.md
skills/issue-triage/SKILL.md
skills/last30/SKILL.md
skills/memory-flush/SKILL.md
skills/mention-radar/SKILL.md
skills/monitor-polymarket/SKILL.md
skills/narrative-convergence/SKILL.md
skills/narrative-tracker/SKILL.md
skills/okf-export/SKILL.md
skills/okf-ingest/SKILL.md
skills/onchain-monitor/SKILL.md
skills/operator-scorecard/SKILL.md
skills/picks-tracker/SKILL.md
skills/pm-manipulation/SKILL.md
skills/pm-pulse/SKILL.md
skills/posthog-errors/SKILL.md
skills/pr-review/SKILL.md

元信息

文件数
0
版本
bb1cfc3
Hash
810e6458
收录时间
2026-07-31 02:59

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-01 06:12
浙ICP备14020137号-1 $访客地图$