pre-commit
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 "pre-commit" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-b3c95320160943b19d9d359c576f8a87e6fefd067cb3de9eca7623a83e9237a1. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/enforce-repo-hygiene-with-pre-commit-hooks 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
Runs repeatable pre-commit checks to catch formatting, lint, key, and policy issues and prevent them from entering the code repository.
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
- pre-commit
- Limits and differences
- Not specified in the source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: "使用 pre-commit 钩子强制执行仓库卫生规范"
slug: "enforce-repo-hygiene-with-pre-commit-hooks"
version: "1.0.0"
displayName: "使用 pre-commit 钩子强制执行仓库卫生规范"
summary: "运行可重复的预提交检查门,捕获格式、lint、密钥和策略问题,防止它们进入代码仓库。"
license: "MIT"
description: "运行可重复的预提交检查门,捕获格式、lint、密钥和策略问题,防止它们进入代码仓库。"
github_stars: 15163
verification: "listed"
source: "https://github.com/1991513ccie-png/skills"
author: "1991513ccie-png"
publisher_type: "individual"
category: "Templates & Workflows"
framework: "Multi-Framework"
tool_ecosystem:
github_repo: "1991513ccie-png/skills"
github_stars: 15163使用pre-commit钩子强制执行仓库卫生规范
Run a repeatable pre-commit gate that catches formatting, lint, secret, and policy issues before they land in the repo.
Prerequisites
pre-commit
Installation
No source-backed install or usage instructions could be extracted automatically. Review the upstream project before running this skill in a sensitive workflow.
Documentation
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供 pre-commit 钩子自动化检查,有效解决代码仓库卫生规范的通用痛点
- 功能实用性强,适用于广泛的开发场景
Areas to improve
-
触发词缺失 Reported severity: Major
description 描述了功能但未提供具体触发词(如命令、关键词),用户难以判断何时触发
Recommendation: 在 description 或 skill_body 中补充具体的触发命令或关键词,如 'pre-commit run' 或 'git commit'
Areas to improve
-
缺少 When to Use 说明 Reported severity: Minor
未提供 When to Use 章节说明适用场景
Recommendation: 补充 When to Use 章节,说明何时使用此 Skill
-
缺少端到端示例 Reported severity: Minor
未提供具体的端到端使用示例
Recommendation: 补充一个完整的使用示例,展示如何配置和使用 pre-commit 钩子
Highlights
- frontmatter 完整,包含必要元数据
Areas to improve
-
缺少具体安装/配置指令 Reported severity: Major
Installation 部分注明'No source-backed install or usage instructions could be extracted',用户无法直接执行
Recommendation: 提供具体的 pre-commit 安装和配置步骤,包括 .pre-commit-config.yaml 示例配置
-
缺少异常处理说明 Reported severity: Minor
未说明常见错误的处理方法
Recommendation: 补充常见错误排查和解决方法
Highlights
- 工具来源明确,提供了官方文档链接
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.
-
Accounts, secrets or authorization
Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.
Mentioned in main document · lines 6, 8
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
- pre-commit.com
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
pre-commit
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.