Style Check 标志

Style Check

社区
Mikefluff
style-check

Read-only pre-commit lint over writer/prose-edit/essay-write. Takes a staged diff (or a specified file / commit range) and flags neuro-slop, synthetic structures, voice drift in prose. Read-only — never edits. Use before `git commit`, as a post-commit check, or as a pre-commit hook.

概览

发布者Mikefluff
代码仓库skills
技能名称style-check
星标数
26
复刻数
2
附带文件
8
许可协议MIT
链接
  • Markdown 格式的指令

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

  • 兼容任何大语言模型

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

  • 8 个附带文件

    模型执行任务时可读取的脚本、模板和参考资料。这些文件为只读文件,绝不会被执行。

  • 开源

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

安装

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

1

安装到 TypingMind

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

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

安装到其他智能体

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

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

在 TypingMind 中使用此技能

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

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

兼容任何 AI 模型

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

  • 仅在需要时加载

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

  • 在聊天中切换模型

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

技能指令

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

Use cases:

  • before git commit — check staged changes for neuro-slop
  • post-commit — check the last commit
  • manual run on a file / line range
  • pre-commit hook (if the user wires it into .git/hooks/pre-commit)

The skill picks which rule layer to apply (writer / prose-edit / essay-write) based on file path. Default routing is illustrative; configure your own path patterns — see references/routing.md:

  • fiction project files (e.g. fiction/*.md, novels/**/*.tex) → fiction layer (prose-edit)
  • non-fiction project files (e.g. essays/*.md, longreads/*.md) → non-fiction layer (essay-write)
  • generic prose / notes → base writer
  • code files (.py, .js, .ts, …) → skipped silently

DEPENDENCY

This skill applies rules from:

  • writer/SKILL.md — baseline anti-neuro-slop (25 categories) + structural synthetic markers
  • prose-edit/SKILL.md — fiction layer
  • essay-write/SKILL.md — non-fiction layer

The skill DOES NOT write or edit. It reads files, runs rules, returns a structured report.

FILE-FORMAT AGNOSTIC

Accepts any text format: .md, .tex, .txt, .rst, plain text. Auto-skips binary files and known source-code extensions.

ROUTING

The skill picks a rule set by file path (fiction → writer+prose-edit, non-fiction → writer+essay-write, anything else → writer only; code is skipped). The default routing table is illustrative — adapt the patterns to your project's directory layout. Full routing table, edge cases, extension-skip list, and a "configuring your own routing" note — see references/routing.md.

MODES

staged (default) — check staged changes

bash
git diff --cached --name-only

For each staged file:

  1. If binary or a code extension — skip
  2. Pull added/changed lines: git diff --cached -U0 <file>
  3. Apply the matching rule set (per routing)
  4. Emit a report

last — check the last commit

bash
git diff HEAD~1 HEAD --name-only

Same pipeline, scoped to the last commit.

range <from>..<to> — check a commit range

bash
git diff <from>..<to> --name-only

file <path> — check the whole file

Not a diff; a full pass over the file. Useful for older files.

file <path> <line1>:<line2> — check a line range

Full pass on the indicated fragment.

detect — "was this written by AI?"

Not a lint pass but an audit with a verdict. Triggers: «проверь на ИИ», «палится ли текст», «это нейросеть писала?», "is this AI-written".

Run the linter, then score findings by family (лексика / структура / коммуникация), not by raw count — hits from a single family are the author's style, not a model. Any class A copy-paste artifact (turn0search3, oaicite, utm_source=chatgpt.com) settles it on its own without a cluster.

Returns a table of quotes with a verdict. Does not rewrite. Full scale, family taxonomy, output shape and the limits of what soft signals can prove — references/detect-mode.md.

OUTPUT FORMAT

Structured report grouped by file, then by violations (L CATEGORY «quote» → rule/advice), plus a === SUMMARY === block with counters by layer and severity breakdown. Full reference template — in references/output-format.md; a separate calibration sample — in examples/sample-report.md.

SEVERITY LEVELS

Three levels: BLOCKING (canon drift, uncited claim, fabricated source, broken markup), WARNING (neuro-slop ≥2 matches, staccato/inversion/double-neg, tautology/meta-ref/anglicism, academic pathos, viral format), INFO (single-match L1, metaphor overload, style drift). Full category-by-level breakdown — in references/severity.md.

EXIT CODE (if invoked as a pre-commit hook)

When wired as a git hook:

  • 0 — only INFO, commit allowed
  • 1 — WARNING present, ask the author (or show-and-continue, depending on configuration)
  • 2 — BLOCKING present, abort the commit

In a normal (non-hook) call, exit code is not used — just the report.

INTEGRATION

The skill does not install the hook itself. If the user asks — emit installation instructions for a .git/hooks/pre-commit wrapper. Ready-made bash snippet and installation steps — in references/pre-commit-hook.md.

WHAT NOT TO DO

  • Does not edit files. Reads and reports only. For editing — use writer/prose-edit/essay-write.
  • Does not spawn sub-agents. Lightweight read-only skill, everything goes through Read+Grep+Bash directly.
  • Does not fabricate sources to check fabrication. It only marks suspicious citations as UNVERIFIED_SOURCE — verification is the author's job.
  • Does not assert authorship from soft signals. In detect mode, flawless grammar, dryness and a wide vocabulary prove nothing. Report the markers with quotes; let the reader conclude. Missing a machine-written text is cheaper than accusing a living author.
  • Does not block commits automatically without exit code. When run as a normal skill — report only. Blocking happens only via an installed hook.
  • Does not touch code. .py, .js, .ts, .go and similar — silently skipped.

REFERENCES (load on demand)

FileWhen to load
references/detect-mode.mdThe user asks whether a text was written by AI — verdict scale, family taxonomy, class A artifacts, and where to stop.
references/routing.mdDeciding which rule set applies to a given path / extension; need edge cases or want to configure your own routing patterns.
references/severity.mdNeed to classify a violation as BLOCKING / WARNING / INFO or want the full category list.
references/output-format.mdProducing the final report — need the full template with the SUMMARY block.
references/pre-commit-hook.mdThe user asks to install style-check as a git pre-commit hook — need the bash snippet and steps.
references/validation-taxonomy.mdProducing structured JSON validation output for CI/CD or tooling — hookAnalysis, contentAnalysis, scoreReasons enum, metrics, formattingRecommended.
examples/sample-report.mdNeed tone/detail calibration — reference sample.

附带文件

技能加载后,模型会按需读取这些文件。它们仅作为可读文件提供,绝不会被执行。

常见问题

Style Check AI 技能有什么作用?

Read-only pre-commit lint over writer/prose-edit/essay-write. Takes a staged diff (or a specified file / commit range) and flags neuro-slop, synthetic structures, voice drift in prose. Read-only — never edits. Use before `git commit`, as a post-commit check, or as a pre-commit hook.

为什么在 TypingMind 中使用 Style Check?

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

如何在 TypingMind 中安装 Style Check?

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

哪些 AI 模型可以使用 Style Check?

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

Style Check 可以搭配多少个 AI 模型使用?

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

Style Check AI 技能免费吗?

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

什么是 AI 技能?

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

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

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

查看全部

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

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