ryfinez/my-ai-skills/code-quality-check
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
通用代码质量检查。在提交代码前自动执行,根据项目类型应用对应的检查规则
Install
npx vskill@latest install ryfinez/my-ai-skills/code-quality-checkSKILL.md
通用代码质量检查 Skill
在提交代码前自动检查代码质量,根据项目类型智能应用对应的检查规则。
🎯 核心特性
1. 智能项目类型识别
自动检测项目类型,无需手动配置:
- Obsidian 插件:检测
manifest.json中的 Obsidian 特征 - 浏览器扩展:检测
manifest.json中的manifest_version - React/Vue/Angular:检测
package.json中的依赖 - Electron 应用:检测
package.json中的 Electron - 通用项目:其他所有项目
2. 分层检查规则
根据项目类型应用不同级别的规则:
3. 模块化设计
规则独立管理,易于扩展:
📋 检查规则
通用规则(所有项目)
| 规则 | 级别 | 说明 | |
|---|---|---|---|
| 硬编码的敏感信息 | 🔴 必须修复 | API key、password、secret、token | |
| 正则表达式控制字符 | 🔴 必须修复 | \x00-\x1f 等控制字符 | |
| 未使用的变量 | 🟡 建议优化 | ESLint 检测 |
前端规则(React/Vue/前端项目)
| 规则 | 级别 | 说明 | |
|---|---|---|---|
| innerHTML/outerHTML | 🔴 必须修复 | XSS 安全风险 | |
| dangerouslySetInnerHTML | 🟡 建议优化 | React 特定(需注意) | |
| console.log 残留 | 🟡 建议优化 | 生产环境清理 |
Obsidian 插件规则
| 规则 | 级别 | 说明 | |
|---|---|---|---|
| 直接创建 style 元素 | 🔴 必须修复 | 必须使用 styles.css | |
| 导入 Node.js 模块 | 🔴 必须修复 | 禁止 fs、path 等模块 |
🚀 使用方式
自动触发(推荐)
通过 commit-conventional skill 自动触发:
手动触发
🔧 常见问题修复
1. innerHTML/outerHTML(XSS 风险)
❌ 错误:
✅ 修复:
2. 创建 style 元素(Obsidian)
❌ 错误:
✅ 修复: 将 CSS 移到 styles.css 文件
3. Node.js 模块(Obsidian)
❌ 错误:
✅ 修复:
4. 硬编码敏感信息
❌ 错误:
✅ 修复:
🎯 与 commit-conventional 集成
本 Skill 已集成到 commit-conventional 中,在提交时自动执行。
版本:v2.0(通用代码质量检查) 最后更新:2026-01-23
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpackages/custom/code-quality-check/SKILL.md
Popularity
- Repository stars
- 125
- Repository forks
- 24
- 7-day trend score
- 24
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 26 Apr 2026, 6 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ryfinez/my-ai-skills/code-quality-check)