Lint logo

Lint

Community
owenliang60-ship-it
lint

Obsidian Vault 全量体检。扫描断链、孤岛、缺标签、噪声标签、Clipping 库存、MOC 完整性,产出健康报告。当用户说"lint"、"体检"、"vault 检查"、"健康检查"时触发。

Overview

Publisherowenliang60-ship-it
Repositoryknowledge-mgmt
Skill namelint
Stars
39
Forks
11
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 owenliang60-ship-it on GitHub. Read the source before you install it.

Installation

Install the Lint 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/owenliang60-ship-it/knowledge-mgmt/tree/main/lint
  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/owenliang60-ship-it/knowledge-mgmt.git /tmp/knowledge-mgmt
mkdir -p .claude/skills
cp -r /tmp/knowledge-mgmt/lint .claude/skills/lint
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Lint 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 Lint 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 Lint 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.

/lint — Vault 健康体检

参考规则:先读取 vault 根目录 SCHEMA.md 获取完整检查项定义。

执行流程

Step 1: 读取 Schema

bash
obsidian read path="SCHEMA.md"

确认当前检查项清单和标签体系定义。

Step 2: 全量扫描

并行执行以下检查(使用 Obsidian CLI + subagent 加速):

2a: 链接检查
bash
# 断链:搜索所有 wikilink,检查目标是否存在
obsidian search query="[["
# 孤岛:检查 Cards/ 下零 backlink 的文件
# 对每个 Card: obsidian backlinks path="Cards/{name}.md"
2b: 标签检查
bash
# 扫描所有 Cards,检查 frontmatter 中是否有 type/ 和 domain/ 标签
# 扫描所有标签,找出不属于四维体系的噪声标签
obsidian tags path="Cards/"
2c: 格式检查
bash
# 扫描所有 .md 文件,检查是否有 frontmatter(以 --- 开头)
obsidian files folder="Cards"
# 逐个读取检查 frontmatter
2d: Clipping 库存
bash
# 统计待研究 / 已研究数量(按文件夹区分)
obsidian files folder="Clippings"       # 待研究(根目录下的 .md 文件)
obsidian files folder="Clippings/已研究"  # 已研究
# 检查超过 30 天未研究的(按 created 字段判断)
2e: MOC 完整性
bash
# 读取每个 MOC 文件
# 检查是否有 Card 被遗漏(有 domain 标签但不在对应 MOC 中)
# 检查 MOC 中的链接是否有效
2f: 空链统计(知识缺口)
bash
# 收集所有指向不存在页面的 [[wikilink]]
# 按 domain 分组统计

Step 3: 安全写入

Lint 可自动执行的(无需用户确认):

  1. 生成健康报告

Lint 不能自动执行的(只报告):

  • 修复断链、补标签、建 Card、修改/删除任何内容

Step 4: 生成健康报告

产出格式:

markdown
---
title: "Vault Health Report YYYY-MM-DD"
tags:
  - type/health-report
date: YYYY-MM-DD
---

## 总览

- 健康评分: XX/100
- Cards: {总数} | Clippings: {unread数} unread / {read数} read
- 断链: {数量} | 孤岛: {数量} | 噪声标签: {数量}

## 🔴 需要修复(高严重度)

{断链清单、缺标签 Card 清单、缺 frontmatter 文件清单、MOC 链接失效}

## 🟡 建议改善(中严重度)

{孤岛 Card、噪声标签、超 30 天 unread Clippings、MOC 遗漏}

## 🟢 信息

{Clipping 库存统计、空链统计}

## 📚 研究缺口建议

{按 domain 分组的空链热点,建议研究方向}

Step 5: 存入 Vault

bash
obsidian create path="Cards/Vault Health Report YYYY-MM-DD.md" content="..." overwrite

Step 6: 输出摘要

向用户展示报告核心数据和需要关注的高优先级项目。

评分规则

扣分项每个扣分
断链-3
缺 frontmatter-2
缺四维标签-1
孤岛 Card-0.5
噪声标签-1
MOC 遗漏-0.5

满分 100,扣完为止,最低 0 分。

Cron 模式

被 cron 调用时(非用户手动触发),行为与手动相同,但:

  • 报告自动写入 Journal/Vault Health Report YYYY-MM-DD.md(而非 Cards/),避免每日例行报告在 Cards/ 堆积产生噪声
  • 不输出到对话(无用户在场)
  • 不做任何"顺手修复":Step 3 的 lint 写入边界(只能写健康报告、不能补标签 / 不能改 / 不能建其他 Card)在 cron 模式下完全适用,和手动模式无差别

Frequently asked questions

What does the Lint AI skill do?

Obsidian Vault 全量体检。扫描断链、孤岛、缺标签、噪声标签、Clipping 库存、MOC 完整性,产出健康报告。当用户说"lint"、"体检"、"vault 检查"、"健康检查"时触发。

Why use Lint on TypingMind?

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

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/owenliang60-ship-it/knowledge-mgmt/tree/main/lint. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Lint?

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

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

Is the Lint AI skill free?

Yes. It is published on GitHub by owenliang60-ship-it 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 👇