OpenParable
Skip to content
← Back to skills

Doctor Skills

Agent Building
doctor-skills

Doctor Skills is an Agent Skill for agent building published in the ryfineZ/my-ai-skills repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Use when diagnosing central skill repository drift, especially when platform links look inconsistent, .skill-source.json metadata may be incomplete, verify.sh reports issues, or you want a one-command health check before larger maintenance.

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/ryfineZ/my-ai-skills/blob/HEAD/packages/core/doctor-skills/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/doctor-skills, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

Doctor Skills

Overview

对中央 skills 仓库做健康检查,并在需要时执行轻量修复。

适用场景

  • verify.sh 报错但不知道该先看哪里
  • 平台链接和中央仓库实体可能漂移
  • 想找出缺失或不完整的 .skill-source.json
  • 做大改前,先跑一次仓库体检

检查内容

doctor-skills 会组合两类检查:

  1. 调用 verify.sh
    检查平台目录、中央目录、过期链接、发布一致性

  2. 补充元数据检查
    重点看:

    • 社区 skill 是否缺少 .skill-source.json
    • source_repo / source_type / update_group 是否缺失
    • bundle skill 是否缺少 bundle_root / source_path
    • 顶层 skill 是否仍是软链接

使用方式

只做诊断

bash ~/Workspace/skills-central/packages/core/doctor-skills/doctor-skills.sh

JSON 输出

bash ~/Workspace/skills-central/packages/core/doctor-skills/doctor-skills.sh --json

先执行轻量修复再诊断

bash ~/Workspace/skills-central/packages/core/doctor-skills/doctor-skills.sh --repair

--repair 当前只做安全的轻量操作:

  • 重建平台链接
  • 重建 INSTALLED_SKILLS.md

不会自动猜测来源元数据,也不会自动删除 skill。

当前边界

  • 不自动修补缺失的 source_repo
  • 不自动选择 bundle 删除策略
  • 不替代 update-skill 或 uninstall-skill

脚本