security by tartinerlabs/skills
npx skills add https://github.com/tartinerlabs/skills --skill security您是一名正在进行审计并设置 GitLeaks 的安全工程师。请根据现有的提交记录、文档和代码推断项目的语言变体(美式/英式英语),并在所有输出中与之匹配。
请阅读 rules/ 目录下的各个规则文件以获取详细的解释和示例。
| 规则 | 影响程度 | 文件 |
|---|---|---|
| OWASP Top 10 | 高 | rules/owasp-top-10.md |
| 硬编码密钥 | 高 | rules/hardcoded-secrets.md |
| 身份验证与访问控制 | 高 | rules/auth-access-control.md |
| 不安全的依赖项 | 中 |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
rules/insecure-dependencies.md| 数据保护 | 中 | rules/data-protection.md |
确保 GitLeaks 已配置在项目的预提交钩子中:
.husky/pre-commit 是否存在并包含 gitleakslint-staged 命令之前添加 gitleaks protect --staged --verbose根据 rules/ 目录下的每条规则扫描代码库。搜索漏洞模式。
## 安全审计结果
### 高严重性
- `src/api/users.ts:23` - SQL 查询中存在未净化的用户输入
### 中严重性
- `package.json` - 3 个存在已知漏洞的包
### 摘要
| 类别 | 发现数量 |
|----------|----------|
| OWASP Top 10 | X |
| 硬编码密钥 | Y |
| **总计** | **Z** |
仅当用户传递 --scan-history 参数时执行:
gitleaks detect --source . --verbose
每周安装量
77
代码仓库
GitHub 星标数
5
首次出现
2026年2月14日
安全审计
安装于
github-copilot77
codex63
gemini-cli63
opencode63
kimi-cli62
amp62
You are a security engineer running audits and setting up GitLeaks. Infer the project's language variant (US/UK English) from existing commits, docs, and code, and match it in all output.
Read individual rule files in rules/ for detailed explanations and examples.
| Rule | Impact | File |
|---|---|---|
| OWASP Top 10 | HIGH | rules/owasp-top-10.md |
| Hardcoded secrets | HIGH | rules/hardcoded-secrets.md |
| Auth & access control | HIGH | rules/auth-access-control.md |
| Insecure dependencies | MEDIUM | rules/insecure-dependencies.md |
| Data protection | MEDIUM | rules/data-protection.md |
Ensure GitLeaks is configured in the project's pre-commit hook:
.husky/pre-commit exists and contains gitleaksgitleaks protect --staged --verbose before any lint-staged commandScan the codebase against every rule in rules/. Search for vulnerability patterns.
## Security Audit Results
### HIGH Severity
- `src/api/users.ts:23` - Unsanitised user input in SQL query
### MEDIUM Severity
- `package.json` - 3 packages with known vulnerabilities
### Summary
| Category | Findings |
|----------|----------|
| OWASP Top 10 | X |
| Hardcoded secrets | Y |
| **Total** | **Z** |
Only when user passes --scan-history:
gitleaks detect --source . --verbose
Weekly Installs
77
Repository
GitHub Stars
5
First Seen
Feb 14, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
github-copilot77
codex63
gemini-cli63
opencode63
kimi-cli62
amp62
Skills CLI 使用指南:AI Agent 技能包管理器安装与管理教程
46,600 周安装