干燥
- 作者仓库星标 330
- 许可证 MIT
- 作者仓库 claude-skill-registry
- 领域
- 数据
- 作者声明的智能体
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 94 / 100 · 启发式扫描,不代表运行安全
- 运行环境证据
- 未执行;当前没有隔离运行测试证据
- 作者 / 版本 / 许可证
- @majiayu000 · MIT
- 上下文用量评级
- 低消耗
- 接入复杂程度
- 即装即用
- 是否需要外部接口密钥
- 不需要
- 兼容的系统
- macOS · Linux · Windows
- 运行环境要求
- 未检出明确要求
- 检测到的文件与系统行为
-
- 只读
- 允许写入 / 修改
- 网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
需要注意: 未声明工具权限范围;实际权限由运行环境决定。
# Scan with higher threshold (find only large duplicates)
/bluera-base:dry scan --threshold 100
# Scan specific directory
/bluera-base:dry scan --path src/
# Combine both
/bluera-base:dry scan --threshold 75 --path lib/
# DRY Check
Detect duplicate code across your codebase using jscpd.
## Subcommands
| Command | Description |
|---------|-------------|
| `dry` or `dry scan` | Run duplication scan |
| `dry report` | Show last scan results |
| `dry config` | Show current jscpd configuration |
| `dry init` | Create project-specific jscpd.json |
## Parameters
| Parameter | Description | Default |
|-----------|-------------|---------|
| `--threshold N` | Minimum token count for duplicate detection (higher = fewer matches) | jscpd default |
| `--path <dir>` | Directory to scan for duplicates | Current directory |
## Examples
```bash
# Scan with higher threshold (find only large duplicates)
/bluera-base:dry scan --threshold 100
# Scan specific directory
/bluera-base:dry scan --path src/
# Combine both
/bluera-base:dry scan --threshold 75 --path lib/
```
## Workflow
**Phases:** Check jscpd → Scan codebase → Report duplicates → Suggest refactors
### 1. Check jscpd Installation
```bash
command -v jscpd || npx jscpd --version
```
If not installed, suggest: `npm install -g jscpd`
### 2. Run Scan
```bash
jscpd --reporters json --output .bluera/bluera-base/state/ .
```
### 3. Parse Results
Results are stored in `.bluera/bluera-base/state/jscpd-report.json`
### 4. Refactoring Guidance
See skills/dry-refactor/SKILL.md for language-specific refactoring patterns.
章节与文件索引
按说明文件中的顺序排列。
子命令
参数
工作流程
1.检查jscpd安装情况
3. 解析结果
文件/命令 -> dry · dry scan · dry report · dry config · dry init · --threshold N · --path <dir> · npm install -g jscpd
内容校验值 -> e9eb5a84dd82
当前原文的自动摘译,尚未人工审校。
子命令
命令 · 描述
dry或dry scan· 运行重复扫描dry report· 显示上次扫描结果dry config· 显示当前 jscpd 配置dry init· 创建项目特定的 jscpd.json参数
参数 · 描述 · 默认值
--threshold N· 重复检测的最小标记计数(越高 = 匹配越少) · jscpd 默认值--path <dir>· 扫描重复项的目录 · 当前目录工作流程
阶段:检查 jscpd → 扫描代码库 → 报告重复项 → 建议重构
1.检查jscpd安装情况
如果没有安装,建议:
npm install -g jscpd3. 解析结果
结果存储在
.bluera/bluera-base/state/jscpd-report.json中