typos-source-code-spell-checker
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "typos-source-code-spell-checker" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-3a167fde2e372ca3c2c454188d1f6d26e93a7c2e95770175daa9fa6ba1d56376. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/typos-source-code-spell-checker before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
A super-fast source-code spell checker written in Rust that finds and corrects typos across a codebase. Designed to run in monorepos with minimal false positives and integratable into CI/CD, pre-commit hooks and editor workflows.
Introduction source: third_party · user_3c6cb52e · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Audience
- Not specified in the source documentation.
- Inputs and outputs
- Not specified in the source documentation.
- Software, accounts and paid services
- Not specified in the source documentation.
- Limits and differences
- Not specified in the source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: "\"拼写检查器源代码"
description: 一个用Rust编写的超快速源代码拼写检查器,能够查找并纠正整个代码库中的错别字。专为在单体仓库中运行而设计,具有最少的误报率。typos可以集成到CI/CD流水线、预提交钩子和编辑器工作流中。拼写检查器源代码
typos 是一个用于检查源代码中拼写错误的工具。它能够识别代码中的拼写问题,并提供修复建议。
安装方法:
cargo install typos-cli
使用方法:
typos
或者指定文件或目录:
typos src/
配置文件示例:
[files]
extend-exclude = ["*.rs", "*.md"]
支持的语言包括:Rust, Python, JavaScript, TypeScript, Go, Java, C++, C, Objective-C, Swift, Ruby, PHP, Scala, Kotlin, Groovy, Haskell, Erlang, Elixir, Lua, Perl, R, MATLAB, SQL, HTML, CSS, JSON, YAML, TOML, XML, Shell, PowerShell, Batch, Assembly, Pascal, Ada, Fortran, COBOL, Lisp, Scheme, Clojure, F#, OCaml, D, Nim, Crystal, V, Zig, Go, Rust, Swift, Objective-C++, C#, VB.NET, Delphi, Turbo Pascal, Modula-2, Oberon, ALGOL, PL/I, APL, SNOBOL, Prolog, Mercury, Curry, Tcl, Awk, sed, grep, make, CMake, Gradle, Maven, npm, pip, gem, cargo, yarn, bower, composer, nuget, conan, vcpkg, bazel, meson, autotools, configure, Makefile, CMakeLists.txt, build.gradle, pom.xml, package.json, requirements.txt, Gemfile, Cargo.toml, pyproject.toml, go.mod, rust-toolchain.toml, .gitignore, .dockerignore, .editorconfig, .eslintrc, .prettierrc, .stylelintrc, .babelrc, .nycrc, .coveragerc, .travis.yml, .circleci/config.yml, .github/workflows/.yml, .gitlab-ci.yml, Jenkinsfile, .appveyor.yml, .codecov.yml, .codeclimate.yml, .hound.yml, .scrutinizer.yml, .codacy.yml, .lgtm.yml, .deepsource.yml, .semgrep.yml, .pre-commit-config.yaml, .commitlintrc, .lintstagedrc, .stylelintrc.js, .eslintrc.js, .prettierrc.js, .babelrc.js, .nycrc.js, .coveragerc.js, .travis.yml.js, .circleci/config.yml.js, .github/workflows/.yml.js, .gitlab-ci.yml.js, Jenkinsfile.js, .appveyor.yml.js, .codecov.yml.js, .codeclimate.yml.js, .hound.yml.js, .scrutinizer.yml.js, .codacy.yml.js, .lgtm.yml.js, .deepsource.yml.js, .semgrep.yml.js, .pre-commit-config.yaml.js, .commitlintrc.js, .lintstagedrc.js
更多详情请访问:https://github.com/crate-ci/typos
常见问题:
-
如何忽略特定的拼写错误? 在配置文件中添加:
[default.extend-words] foo = "foo" bar = "bar" -
如何排除某些文件或目录? 在配置文件中添加:
[files] extend-exclude = ["*.rs", "*.md"] -
如何自动修复拼写错误? 使用
--write-changes参数:typos --write-changes -
如何在 CI 中使用? 在
.github/workflows/ci.yml中添加:- name: Check spelling uses: crate-ci/typos@v1.0.0 -
如何自定义字典? 创建一个包含自定义单词的文件,并在配置中引用它:
[default.extend-words] custom-word = "custom-word" -
如何处理特定语言的拼写检查? 使用
--language参数指定语言:typos --language rust -
如何输出详细信息? 使用
-v或--verbose参数:typos -v -
如何只检查特定文件类型? 使用
--file-types参数:typos --file-types rs,py,js -
如何跳过某些目录? 使用
--exclude参数:typos --exclude target/ --exclude node_modules/ -
如何在 Git Hook 中使用? 创建一个 Git Hook 脚本:
#!/bin/sh typos
注意事项:
- 该工具会检查所有支持的语言文件
- 默认情况下,它不会修改任何文件
- 可以通过配置文件自定义行为
- 支持多种格式的配置文件(TOML, JSON, YAML)
- 可以与 CI/CD 工具集成使用
相关命令:
typos --help- 显示帮助信息typos --version- 显示版本信息typos --write-changes- 自动修复拼写错误typos --ignore-words-list- 忽略特定单词列表typos --config- 指定配置文件路径
GitHub 仓库:https://github.com/crate-ci/typos
A blazing-fast source code spell checker written in Rust that finds and corrects typos across entire codebases. Designed to run on monorepos with minimal false positives, typos integrates into CI/CD pipelines, pre-commit hooks, and editor workflows.
Installation
Use the upstream install or setup path that matches your environment:
- $ cargo install typos-cli --locked
- $ brew install typos-cli
- $ conda install typos
Basic usage or getting-started notes:
-
Fast enough to run on monorepos
-
Low false positives so you can run on PRs
-
Extracted from upstream docs: https://raw.githubusercontent.com/crate-ci/typos/HEAD/README.md
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供源代码拼写检查功能,适用于开发者在代码库中查找和纠正拼写错误
- 具有明确的实用价值,属于通用开发工具,受众较广
Areas to improve
-
触发词不够精准 Reported severity: Minor
description 提供了较为详细的触发描述,但未明确列出具体的触发关键词或短语,用户可能难以准确判断何时使用该 Skill。
Recommendation: 建议在 description 中明确列出具体的触发关键词或短语,如 '拼写检查'、'typos'、'代码审查' 等,以提高触发精准度。
Areas to improve
-
缺少清晰的 Phase/步骤划分 Reported severity: Minor
Skill 内容结构较为完整,但缺少清晰的 Phase/步骤划分和明确的出口条件。
Recommendation: 建议将 Skill 内容划分为清晰的 Phase,如 '安装'、'配置'、'使用'、'常见问题' 等,并为每个 Phase 提供明确的出口条件。
Areas to improve
-
未覆盖所有可能的异常情况 Reported severity: Minor
Skill 提供了工具的安装和使用方法,但未覆盖所有可能的异常情况(如网络问题、权限问题等)。
Recommendation: 建议在 Skill 中添加对常见异常情况的处理说明,如网络问题、权限问题等,以提高执行可靠性。
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Install or fetch external dependencies
Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.
Mentioned in main document · lines 123
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- github.com
- raw.githubusercontent.com
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Not specified in the source documentation.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.