‹ 首页

pin-audit

@toongri · 收录于 昨天 · 上游提交 昨天

Use when checking pin graph health. Runs lib/pins/audit to detect dangling relations, duplicates, invalid entities, stale entries, and orphans, then presents a ranked report.

适合你,如果你的项目依赖 pin graph 并需要定期检查数据完整性

/ 通过 npx 安装 校验哈希
npx oh-my-skill add toongri/oh-my-toong-playground/pin-audit
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- toongri/oh-my-toong-playground/pin-audit
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify toongri/oh-my-toong-playground/pin-audit
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
25GitHub stars
~478最小装载
~478含声明引用
~599文本包总量
索引托管

怎么用

商店整理自技能原文 · 版本 731a80a · 表述以原文为准
它做什么

安装后,Claude可以执行只读的pin知识图谱健康检查,检测悬空关系、重复实体、无效实体、过期条目和孤立节点,并生成按严重程度排序的报告,不修改任何数据。

什么时候触发

当用户要求检查pin图健康或进行pin审计时触发。

装好后可以这样说
运行只读检查,报告所有问题。
优先报告结构性缺陷。
需提供当前时间参数。
技能原文 SKILL.md作者撰写 · MIT · 731a80a

pin-audit

Run a read-only health check over the pin knowledge graph by calling audit(input, opts?) from lib/pins/audit.ts.

Invocation
bun "${CLAUDE_SKILL_DIR}/scripts/audit.ts"

audit is read-only. It does not write, delete, or modify any file.

now omission disables stale detection. When opts.now is absent, detectStale skips every entity — no stale findings will appear in the report. Always pass { now: new Date() } unless you intentionally want to suppress staleness.

Detector set and severity

Findings are ordered highest-signal first in report.findings:

| Rank | Type | Severity | What it means | |------|------|----------|---------------| | 1 | dangling | error | A relation's target id is absent from the in-scope entity set. Primary signal — fix before anything else. | | 2 | duplicate | error | Two entities share the same source_url. | | 3 | invalid | error | Entity fails schema validate(). | | 4 | stale | error | Entity exceeds its tier threshold (tier1=180d, tier2=90d, tier3=30d). reference type uses checked_at ?? created_at (falls back to created_at when checked_at is absent); all other types use created_at. | | 5 | orphan | warning | Entity has no outgoing relations. Soft signal only — never a violation. |

Dangling relations are the primary check: a broken link is a structural defect; an isolated node is merely informational.

Presenting results
  1. Group findings by severity: errors first, then warnings.
  2. Within errors, preserve the ranked order above (dangling, duplicate, invalid, stale).
  3. For each finding, report: type, entityId, and message. For dangling, also include targetId. For duplicate, also include conflictsWith.
  4. Treat orphan findings as soft warnings at the end of the report, not violations requiring action.
  5. If findings is empty, report "audit clean — no issues found".
按 MIT 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。