JSharpener
CommunityRefactor JavaScript/TypeScript with AI precision.
System Documentation
What problem does it solve?
Large JavaScript/TypeScript codebases often suffer from dead code, complex dependencies, and circular references, making maintenance and refactoring difficult and error-prone. JSharpener automates the identification of these issues, saving developers significant time in code cleanup, architectural improvement, and performance optimization.
Core Features & Use Cases
- Unused Code Detection: Identifies dead code (exports, functions, variables, imports) for efficient tree shaking and code reduction.
- Call Graph Generation: Visualizes function and module dependencies in Graphviz DOT format, aiding in understanding code flow and refactoring decisions.
- Circular Dependency Analysis: Pinpoints problematic circular dependencies that can lead to runtime issues, tight coupling, and reduced maintainability.
- Use Case: A developer needs to optimize a legacy frontend application. JSharpener helps them quickly find and remove unused code, reducing bundle size and improving maintainability, all before deployment.
Quick Start
Use JSharpener to analyze the TypeScript project in './src' and generate a report of all unused code, including exports, functions, variables, and imports.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: JSharpener Download link: https://github.com/lawless-m/iscsi-crate/archive/main.zip#jsharpener Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.