dry
- Repo stars 330
- License MIT
- Author repo claude-skill-registry
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
# 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
command -v jscpd || npx jscpd --version
If not installed, suggest: npm install -g jscpd
2. Run Scan
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.
- Fluxly category
- Data
- Author-declared agents
- No explicit declaration found; this is not inferred or tested compatibility
- Static check
- 94 / 100 · heuristic scan, not runtime safety proof
- Author / version / license
- @majiayu000 · MIT
- Fluxly token estimate
- Lean
- Fluxly setup estimate
- Plug-and-play
- External API key
- No requirement detected
- Detected OS requirements
- macOS · Linux · Windows
- Runtime requirements
- Unspecified
- Detected file/system behavior
-
- Read-only
- Write / modify
- Detected network behavior
- Local-only
- Install commands
- None (reference only)
Profile is derived at build time from SKILL.md and install vectors. Subject to drift from author intent.
Heads up: 未限定 allowed-tools,默认拥有全部工具权限。
# 3. Parse Results
Results are stored in `.bluera/bluera-base/state/jscpd-report.json` Command · Description dry or dry scan · Run duplication scan dry report · Show last scan results
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
Phases: Check jscpd → Scan codebase → Report duplicates → Suggest refactors
If not installed, suggest: npm install -g jscpd
2. Run Scan
# 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. Author text anchors workflow facts; Fluxly only indexes current sections, terms, files, and commands.
sections -> Subcommands → Parameters → Examples → Workflow → 1. Check jscpd Installation → 2. Run Scan
terms -> Phases · Detect duplicate code across your codebase using jscpd. · See skills/dry-refactor/SKILL.md for language-specific refactoring patterns.
files/cmd -> dry · dry scan · dry report · dry config · dry init · --threshold N · --path <dir> · npm install -g jscpd
body sha256 -> e9eb5a84dd82
Decide Fit First
Design Intent
How To Use It
Boundaries And Review