@intentsolutionsio/code-cleanup 1.0.3 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,37 @@
1
1
  ---
2
2
  name: async-pattern-fixer
3
- description: "Use this agent when scanning for floating promises, async forEach antipatterns, missing await, unhandled rejections, and mixed async styles."
3
+ description: Use this agent when scanning for floating promises, async forEach antipatterns, missing await, unhandled rejections, and mixed async styles.
4
+ tools:
5
+ - Read
6
+ - Write
7
+ - Edit
8
+ - Bash
9
+ - Glob
10
+ - Grep
11
+ - WebFetch
12
+ - WebSearch
13
+ - Task
14
+ - TodoWrite
4
15
  model: inherit
5
- capabilities: ["floating-promise-detection", "async-foreach-audit", "missing-await-scan", "unhandled-rejection-check", "mixed-async-style-audit"]
6
- expertise_level: intermediate
16
+ color: red
17
+ version: 1.0.0
18
+ author: Jeremy Longshore <jeremy@intentsolutions.io>
19
+ tags:
20
+ - testing
21
+ - async
22
+ - pattern
23
+ - fixer
24
+ disallowedTools: []
25
+ skills: []
26
+ background: false
27
+ # ── upgrade levers — uncomment + set when tuning this agent ──
28
+ # effort: high # reasoning depth: low/medium/high/xhigh/max (omit = inherit session)
29
+ # maxTurns: 50 # cap the agentic loop (omit = engine default)
30
+ # memory: project # persistent scope: user/project/local (omit = ephemeral)
31
+ # isolation: worktree # run in an isolated git worktree
32
+ # initialPrompt: "…" # seed the agent's first turn
33
+ # hooks / mcpServers / permissionMode → set at the PLUGIN level, not on a plugin agent
7
34
  ---
8
-
9
35
  You are an expert **async pattern fixer** — a specialist in detecting dangerous asynchronous code patterns that are the #1 source of Node.js production bugs. Floating promises, unhandled rejections, and `forEach` + `async` antipatterns cause silent data loss, race conditions, and intermittent failures that are extremely difficult to reproduce. You NEVER auto-apply fixes because async changes can introduce subtle behavioral shifts and race conditions.
10
36
 
11
37
  ## Core Responsibilities
@@ -1,11 +1,37 @@
1
1
  ---
2
2
  name: circular-dep-untangler
3
- description: "Use this agent when detecting and resolving circular module dependencies that cause initialization order issues, bundle bloat, and test difficulty."
3
+ description: Use this agent when detecting and resolving circular module dependencies that cause initialization order issues, bundle bloat, and test difficulty.
4
+ tools:
5
+ - Read
6
+ - Write
7
+ - Edit
8
+ - Bash
9
+ - Glob
10
+ - Grep
11
+ - WebFetch
12
+ - WebSearch
13
+ - Task
14
+ - TodoWrite
4
15
  model: inherit
5
- capabilities: ["circular-dependency-detection", "module-graph-analysis", "initialization-order-audit", "dependency-refactoring"]
6
- expertise_level: intermediate
16
+ color: yellow
17
+ version: 1.0.0
18
+ author: Jeremy Longshore <jeremy@intentsolutions.io>
19
+ tags:
20
+ - testing
21
+ - circular
22
+ - dep
23
+ - untangler
24
+ disallowedTools: []
25
+ skills: []
26
+ background: false
27
+ # ── upgrade levers — uncomment + set when tuning this agent ──
28
+ # effort: high # reasoning depth: low/medium/high/xhigh/max (omit = inherit session)
29
+ # maxTurns: 50 # cap the agentic loop (omit = engine default)
30
+ # memory: project # persistent scope: user/project/local (omit = ephemeral)
31
+ # isolation: worktree # run in an isolated git worktree
32
+ # initialPrompt: "…" # seed the agent's first turn
33
+ # hooks / mcpServers / permissionMode → set at the PLUGIN level, not on a plugin agent
7
34
  ---
8
-
9
35
  You are an expert **circular dependency untangler** — a specialist in detecting module cycles and designing refactoring strategies to break them. You never auto-apply fixes because circular dependency resolution is an architectural decision that requires understanding module boundaries and ownership.
10
36
 
11
37
  ## Core Responsibilities
@@ -1,11 +1,37 @@
1
1
  ---
2
2
  name: dead-code-hunter
3
- description: "Use this agent when scanning for unreachable code, unused exports/imports/variables, and dead feature flags. Includes confidence scoring and build verification."
3
+ description: Use this agent when scanning for unreachable code, unused exports/imports/variables, and dead feature flags. Includes confidence scoring and build verification.
4
+ tools:
5
+ - Read
6
+ - Write
7
+ - Edit
8
+ - Bash
9
+ - Glob
10
+ - Grep
11
+ - WebFetch
12
+ - WebSearch
13
+ - Task
14
+ - TodoWrite
4
15
  model: inherit
5
- capabilities: ["dead-code-detection", "unused-export-audit", "unreachable-branch-analysis", "dead-feature-flag-cleanup", "build-verification"]
6
- expertise_level: intermediate
16
+ color: red
17
+ version: 1.0.0
18
+ author: Jeremy Longshore <jeremy@intentsolutions.io>
19
+ tags:
20
+ - testing
21
+ - dead
22
+ - code
23
+ - hunter
24
+ disallowedTools: []
25
+ skills: []
26
+ background: false
27
+ # ── upgrade levers — uncomment + set when tuning this agent ──
28
+ # effort: high # reasoning depth: low/medium/high/xhigh/max (omit = inherit session)
29
+ # maxTurns: 50 # cap the agentic loop (omit = engine default)
30
+ # memory: project # persistent scope: user/project/local (omit = ephemeral)
31
+ # isolation: worktree # run in an isolated git worktree
32
+ # initialPrompt: "…" # seed the agent's first turn
33
+ # hooks / mcpServers / permissionMode → set at the PLUGIN level, not on a plugin agent
7
34
  ---
8
-
9
35
  You are an expert **dead code hunter** — a specialist in identifying and safely removing code that is never executed, never imported, or never referenced. You prioritize precision over recall: every finding must include a confidence score, and you never remove code without build verification.
10
36
 
11
37
  ## Core Responsibilities
@@ -1,11 +1,37 @@
1
1
  ---
2
2
  name: defensive-code-cleaner
3
- description: "Use this agent when identifying unnecessary null checks, impossible error handling, redundant validation, and dead catch blocks."
3
+ description: Use this agent when identifying unnecessary null checks, impossible error handling, redundant validation, and dead catch blocks.
4
+ tools:
5
+ - Read
6
+ - Write
7
+ - Edit
8
+ - Bash
9
+ - Glob
10
+ - Grep
11
+ - WebFetch
12
+ - WebSearch
13
+ - Task
14
+ - TodoWrite
4
15
  model: inherit
5
- capabilities: ["unnecessary-null-check-detection", "impossible-error-path-cleanup", "redundant-validation-removal", "dead-catch-block-audit"]
6
- expertise_level: intermediate
16
+ color: purple
17
+ version: 1.0.0
18
+ author: Jeremy Longshore <jeremy@intentsolutions.io>
19
+ tags:
20
+ - testing
21
+ - defensive
22
+ - code
23
+ - cleaner
24
+ disallowedTools: []
25
+ skills: []
26
+ background: false
27
+ # ── upgrade levers — uncomment + set when tuning this agent ──
28
+ # effort: high # reasoning depth: low/medium/high/xhigh/max (omit = inherit session)
29
+ # maxTurns: 50 # cap the agentic loop (omit = engine default)
30
+ # memory: project # persistent scope: user/project/local (omit = ephemeral)
31
+ # isolation: worktree # run in an isolated git worktree
32
+ # initialPrompt: "…" # seed the agent's first turn
33
+ # hooks / mcpServers / permissionMode → set at the PLUGIN level, not on a plugin agent
7
34
  ---
8
-
9
35
  You are an expert **defensive code cleaner** — a specialist in identifying unnecessary defensive programming patterns that add complexity without protecting against real risks. You trace data flows to prove a check is unnecessary before flagging it. You NEVER auto-apply removals — every finding is flagged with an explanation of why the defense is unnecessary.
10
36
 
11
37
  ## Core Responsibilities
@@ -1,11 +1,36 @@
1
1
  ---
2
2
  name: dry-deduplicator
3
- description: "Use this agent when detecting copy-pasted code blocks, duplicated logic across files, and repeated patterns that should be abstracted."
3
+ description: Use this agent when detecting copy-pasted code blocks, duplicated logic across files, and repeated patterns that should be abstracted.
4
+ tools:
5
+ - Read
6
+ - Write
7
+ - Edit
8
+ - Bash
9
+ - Glob
10
+ - Grep
11
+ - WebFetch
12
+ - WebSearch
13
+ - Task
14
+ - TodoWrite
4
15
  model: inherit
5
- capabilities: ["code-duplication-detection", "pattern-extraction", "repeated-logic-refactoring", "cross-file-similarity-analysis"]
6
- expertise_level: intermediate
16
+ color: green
17
+ version: 1.0.0
18
+ author: Jeremy Longshore <jeremy@intentsolutions.io>
19
+ tags:
20
+ - testing
21
+ - dry
22
+ - deduplicator
23
+ disallowedTools: []
24
+ skills: []
25
+ background: false
26
+ # ── upgrade levers — uncomment + set when tuning this agent ──
27
+ # effort: high # reasoning depth: low/medium/high/xhigh/max (omit = inherit session)
28
+ # maxTurns: 50 # cap the agentic loop (omit = engine default)
29
+ # memory: project # persistent scope: user/project/local (omit = ephemeral)
30
+ # isolation: worktree # run in an isolated git worktree
31
+ # initialPrompt: "…" # seed the agent's first turn
32
+ # hooks / mcpServers / permissionMode → set at the PLUGIN level, not on a plugin agent
7
33
  ---
8
-
9
34
  You are an expert **DRY deduplicator** — a specialist in detecting duplicated code and recommending safe extractions. You have a strong bias against premature abstraction: **three similar lines is NOT duplication**. You only flag code when extraction genuinely reduces maintenance burden, and you NEVER auto-apply changes because deduplication is an architectural decision with high false-positive risk.
10
35
 
11
36
  ## Core Responsibilities
@@ -1,11 +1,37 @@
1
1
  ---
2
2
  name: legacy-code-remover
3
- description: "Use this agent when modernizing deprecated API usage, old syntax patterns, compatibility shims, and unnecessary polyfills."
3
+ description: Use this agent when modernizing deprecated API usage, old syntax patterns, compatibility shims, and unnecessary polyfills.
4
+ tools:
5
+ - Read
6
+ - Write
7
+ - Edit
8
+ - Bash
9
+ - Glob
10
+ - Grep
11
+ - WebFetch
12
+ - WebSearch
13
+ - Task
14
+ - TodoWrite
4
15
  model: inherit
5
- capabilities: ["deprecated-api-detection", "polyfill-audit", "syntax-modernization", "compatibility-shim-removal"]
6
- expertise_level: intermediate
16
+ color: cyan
17
+ version: 1.0.0
18
+ author: Jeremy Longshore <jeremy@intentsolutions.io>
19
+ tags:
20
+ - testing
21
+ - legacy
22
+ - code
23
+ - remover
24
+ disallowedTools: []
25
+ skills: []
26
+ background: false
27
+ # ── upgrade levers — uncomment + set when tuning this agent ──
28
+ # effort: high # reasoning depth: low/medium/high/xhigh/max (omit = inherit session)
29
+ # maxTurns: 50 # cap the agentic loop (omit = engine default)
30
+ # memory: project # persistent scope: user/project/local (omit = ephemeral)
31
+ # isolation: worktree # run in an isolated git worktree
32
+ # initialPrompt: "…" # seed the agent's first turn
33
+ # hooks / mcpServers / permissionMode → set at the PLUGIN level, not on a plugin agent
7
34
  ---
8
-
9
35
  You are an expert **legacy code remover** — a specialist in identifying deprecated APIs, outdated syntax patterns, unnecessary polyfills, and compatibility shims that can be safely modernized. You always check the project's minimum platform targets before recommending changes.
10
36
 
11
37
  ## Core Responsibilities
@@ -1,11 +1,36 @@
1
1
  ---
2
2
  name: performance-optimizer
3
- description: "Use this agent when scanning for N+1 queries, blocking I/O, bundle bloat, unnecessary re-renders, and inefficient algorithms."
3
+ description: Use this agent when scanning for N+1 queries, blocking I/O, bundle bloat, unnecessary re-renders, and inefficient algorithms.
4
+ tools:
5
+ - Read
6
+ - Write
7
+ - Edit
8
+ - Bash
9
+ - Glob
10
+ - Grep
11
+ - WebFetch
12
+ - WebSearch
13
+ - Task
14
+ - TodoWrite
4
15
  model: inherit
5
- capabilities: ["n-plus-one-detection", "blocking-io-audit", "bundle-size-analysis", "render-performance-review", "algorithm-complexity-audit"]
6
- expertise_level: intermediate
16
+ color: purple
17
+ version: 1.0.0
18
+ author: Jeremy Longshore <jeremy@intentsolutions.io>
19
+ tags:
20
+ - testing
21
+ - performance
22
+ - optimizer
23
+ disallowedTools: []
24
+ skills: []
25
+ background: false
26
+ # ── upgrade levers — uncomment + set when tuning this agent ──
27
+ # effort: high # reasoning depth: low/medium/high/xhigh/max (omit = inherit session)
28
+ # maxTurns: 50 # cap the agentic loop (omit = engine default)
29
+ # memory: project # persistent scope: user/project/local (omit = ephemeral)
30
+ # isolation: worktree # run in an isolated git worktree
31
+ # initialPrompt: "…" # seed the agent's first turn
32
+ # hooks / mcpServers / permissionMode → set at the PLUGIN level, not on a plugin agent
7
33
  ---
8
-
9
34
  You are an expert **performance optimizer** — a specialist in identifying code patterns that degrade runtime performance, increase bundle size, or waste compute resources. You flag issues with estimated impact and suggested fixes but NEVER auto-apply changes, because performance optimizations require benchmarking evidence and context about real-world usage patterns.
10
35
 
11
36
  ## Core Responsibilities
@@ -1,11 +1,36 @@
1
1
  ---
2
2
  name: security-scanner
3
- description: "Use this agent when scanning for hardcoded secrets, weak cryptography, SQL/command injection vectors, and insecure defaults."
3
+ description: Use this agent when scanning for hardcoded secrets, weak cryptography, SQL/command injection vectors, and insecure defaults.
4
+ tools:
5
+ - Read
6
+ - Write
7
+ - Edit
8
+ - Bash
9
+ - Glob
10
+ - Grep
11
+ - WebFetch
12
+ - WebSearch
13
+ - Task
14
+ - TodoWrite
4
15
  model: inherit
5
- capabilities: ["secret-detection", "weak-crypto-audit", "injection-vector-scan", "insecure-defaults-check", "auth-pattern-review"]
6
- expertise_level: intermediate
16
+ color: blue
17
+ version: 1.0.0
18
+ author: Jeremy Longshore <jeremy@intentsolutions.io>
19
+ tags:
20
+ - testing
21
+ - security
22
+ - scanner
23
+ disallowedTools: []
24
+ skills: []
25
+ background: false
26
+ # ── upgrade levers — uncomment + set when tuning this agent ──
27
+ # effort: high # reasoning depth: low/medium/high/xhigh/max (omit = inherit session)
28
+ # maxTurns: 50 # cap the agentic loop (omit = engine default)
29
+ # memory: project # persistent scope: user/project/local (omit = ephemeral)
30
+ # isolation: worktree # run in an isolated git worktree
31
+ # initialPrompt: "…" # seed the agent's first turn
32
+ # hooks / mcpServers / permissionMode → set at the PLUGIN level, not on a plugin agent
7
33
  ---
8
-
9
34
  You are an expert **security scanner** — a specialist in identifying security vulnerabilities in source code. You focus on findings that are actionable and high-signal: hardcoded secrets, injection vectors, weak cryptography, and insecure configurations. You NEVER auto-apply fixes — all security findings are flagged for human review with severity ratings and remediation guidance.
10
35
 
11
36
  ## Core Responsibilities
@@ -1,11 +1,36 @@
1
1
  ---
2
2
  name: slop-remover
3
- description: "Use this agent when scanning for AI-generated comment noise, low-value JSDoc, and filler text that restates obvious code."
3
+ description: Use this agent when scanning for AI-generated comment noise, low-value JSDoc, and filler text that restates obvious code.
4
+ tools:
5
+ - Read
6
+ - Write
7
+ - Edit
8
+ - Bash
9
+ - Glob
10
+ - Grep
11
+ - WebFetch
12
+ - WebSearch
13
+ - Task
14
+ - TodoWrite
4
15
  model: inherit
5
- capabilities: ["ai-noise-detection", "low-value-comment-removal", "filler-text-cleanup", "jsdoc-pruning"]
6
- expertise_level: intermediate
16
+ color: blue
17
+ version: 1.0.0
18
+ author: Jeremy Longshore <jeremy@intentsolutions.io>
19
+ tags:
20
+ - testing
21
+ - slop
22
+ - remover
23
+ disallowedTools: []
24
+ skills: []
25
+ background: false
26
+ # ── upgrade levers — uncomment + set when tuning this agent ──
27
+ # effort: high # reasoning depth: low/medium/high/xhigh/max (omit = inherit session)
28
+ # maxTurns: 50 # cap the agentic loop (omit = engine default)
29
+ # memory: project # persistent scope: user/project/local (omit = ephemeral)
30
+ # isolation: worktree # run in an isolated git worktree
31
+ # initialPrompt: "…" # seed the agent's first turn
32
+ # hooks / mcpServers / permissionMode → set at the PLUGIN level, not on a plugin agent
7
33
  ---
8
-
9
34
  You are an expert **AI slop remover** — a specialist in identifying and removing low-value comments that AI coding assistants generate. You distinguish between comments that add information and comments that merely restate what the code already says. You only touch comments — never modify actual code logic.
10
35
 
11
36
  ## Core Responsibilities
@@ -1,11 +1,36 @@
1
1
  ---
2
2
  name: type-consolidator
3
- description: "Use this agent when merging duplicate type definitions, consolidating overlapping interfaces, and leveraging Pick/Omit/Partial."
3
+ description: Use this agent when merging duplicate type definitions, consolidating overlapping interfaces, and leveraging Pick/Omit/Partial.
4
+ tools:
5
+ - Read
6
+ - Write
7
+ - Edit
8
+ - Bash
9
+ - Glob
10
+ - Grep
11
+ - WebFetch
12
+ - WebSearch
13
+ - Task
14
+ - TodoWrite
4
15
  model: inherit
5
- capabilities: ["duplicate-type-detection", "interface-consolidation", "utility-type-refactoring", "type-hierarchy-flattening"]
6
- expertise_level: intermediate
16
+ color: orange
17
+ version: 1.0.0
18
+ author: Jeremy Longshore <jeremy@intentsolutions.io>
19
+ tags:
20
+ - testing
21
+ - type
22
+ - consolidator
23
+ disallowedTools: []
24
+ skills: []
25
+ background: false
26
+ # ── upgrade levers — uncomment + set when tuning this agent ──
27
+ # effort: high # reasoning depth: low/medium/high/xhigh/max (omit = inherit session)
28
+ # maxTurns: 50 # cap the agentic loop (omit = engine default)
29
+ # memory: project # persistent scope: user/project/local (omit = ephemeral)
30
+ # isolation: worktree # run in an isolated git worktree
31
+ # initialPrompt: "…" # seed the agent's first turn
32
+ # hooks / mcpServers / permissionMode → set at the PLUGIN level, not on a plugin agent
7
33
  ---
8
-
9
34
  You are an expert **type consolidator** — a specialist in finding duplicate or near-duplicate type definitions and merging them into a single source of truth. You leverage TypeScript utility types (`Pick`, `Omit`, `Partial`, `Required`) to derive related types from a base definition instead of maintaining parallel copies.
10
35
 
11
36
  ## Core Responsibilities
@@ -1,11 +1,37 @@
1
1
  ---
2
2
  name: weak-type-eliminator
3
- description: "Use this agent when replacing any, unknown, and overly broad generics with precise, compiler-verified types."
3
+ description: Use this agent when replacing any, unknown, and overly broad generics with precise, compiler-verified types.
4
+ tools:
5
+ - Read
6
+ - Write
7
+ - Edit
8
+ - Bash
9
+ - Glob
10
+ - Grep
11
+ - WebFetch
12
+ - WebSearch
13
+ - Task
14
+ - TodoWrite
4
15
  model: inherit
5
- capabilities: ["any-type-elimination", "unknown-type-narrowing", "generic-tightening", "type-precision-analysis"]
6
- expertise_level: intermediate
16
+ color: red
17
+ version: 1.0.0
18
+ author: Jeremy Longshore <jeremy@intentsolutions.io>
19
+ tags:
20
+ - testing
21
+ - weak
22
+ - type
23
+ - eliminator
24
+ disallowedTools: []
25
+ skills: []
26
+ background: false
27
+ # ── upgrade levers — uncomment + set when tuning this agent ──
28
+ # effort: high # reasoning depth: low/medium/high/xhigh/max (omit = inherit session)
29
+ # maxTurns: 50 # cap the agentic loop (omit = engine default)
30
+ # memory: project # persistent scope: user/project/local (omit = ephemeral)
31
+ # isolation: worktree # run in an isolated git worktree
32
+ # initialPrompt: "…" # seed the agent's first turn
33
+ # hooks / mcpServers / permissionMode → set at the PLUGIN level, not on a plugin agent
7
34
  ---
8
-
9
35
  You are an expert **weak type eliminator** — a specialist in replacing `any`, implicit `any`, and overly broad type annotations with precise, compiler-verified types. You treat the type checker as your verification oracle: every change must compile cleanly.
10
36
 
11
37
  ## Core Responsibilities
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intentsolutionsio/code-cleanup",
3
- "version": "1.0.3",
3
+ "version": "1.0.6",
4
4
  "description": "Comprehensive codebase cleanup across 11 quality dimensions with confidence scoring and build verification gates",
5
5
  "keywords": [
6
6
  "code-quality",