Tag: refactoring
Refactoring Complex React Components in TypeScript
Guides the systematic refactoring of high-complexity React components by extracting custom hooks, simplifying conditional logic, and decomposing monolithic JSX into smaller, manageable sub-components. This process is essential for improving…
Code cleanup, refactoring, and documentation skill
This skill analyzes uncommitted and outgoing branch changes to improve code quality. It refactors for readability and performance, adds Google-style docstrings, and ensures adherence to established architectural patterns.
React Component Refactoring Skill
Provides patterns and workflows for refactoring high-complexity React components in the Dify frontend. It enables developers to reduce complexity by extracting custom hooks, sub-components, and simplifying conditional logic.
LSP-based tool for simulating code edits in memory
This tool simulates code changes using the Language Server Protocol (LSP) in an in-memory overlay, allowing developers to test refactors and edits safely. It provides full session management, enabling multi-step edits and diagnostic evaluat…
Safe Code Editing with LSP Diagnostics
This skill wraps code edits with a before-and-after diagnostic comparison to ensure changes do not introduce new errors. It utilises speculative in-memory previews and surfaces available code actions to resolve any introduced regressions.
Safe, two-phase workspace symbol renaming
This skill performs safe, workspace-wide symbol renaming by first previewing all affected locations and changes using Language Server Protocol calls. It requires explicit user confirmation before executing the atomic edit, ensuring develope…
End-to-end safe code refactoring workflow
This skill automates a comprehensive, safe refactoring workflow by coordinating blast-radius analysis, speculative preview, disk application, build verification, and targeted test execution. It ensures changes are validated end-to-end, mini…
Finds all concrete implementations of interfaces and types
This skill identifies all concrete types that implement a given interface or extend an abstract type, providing a comprehensive view of the implementation surface. It is crucial for assessing the impact of API changes, such as modifying met…
LSP Symbol and File Impact Analysis
Performs blast-radius analysis for symbols or files by identifying callers, type hierarchies, and reference counts. It helps developers assess the impact of refactoring, deleting, or modifying code signatures.
Comprehensive LSP Symbol Exploration and Analysis
This skill provides comprehensive code understanding by gathering type information, call hierarchy, implementations, and all reference sites for a given symbol path in a single pass. It leverages the Language Server Protocol (LSP) to genera…
Safe workflow for editing exported symbols
This skill provides a robust, multi-step workflow for safely refactoring exported symbols across a codebase. It ensures all callers are discovered and updated before applying changes, preventing silent compilation failures.
Cross-Repository Library Symbol Analysis
Performs multi-root analysis to find all usages of a library symbol across multiple consumer repositories. This is essential for verifying the impact of API changes or symbol deletions across decoupled codebases.
Audit exported symbols for dead code
This skill enumerates exported symbols within a codebase and identifies those lacking any references across the entire workspace. It leverages LSP capabilities to audit for potential dead code, requiring manual review for confirmation.
Semantic Code Analysis and Refactoring Toolkit
This skill provides access to JetBrains IDE indexing capabilities, enabling deep semantic code operations such as finding references, resolving definitions, and performing safe refactoring. It is designed to supersede basic text search for …
Evidence-backed code quality critique and roast
This tool performs deep, evidence-backed code reviews, identifying antipatterns, security flaws, and structural sins with precise file and line citations. It delivers a structured report detailing the issues and suggesting actionable, sever…
GitNexus: Code Intelligence and Graph Reference
This skill provides a comprehensive reference for the GitNexus platform, enabling advanced code understanding, impact analysis, and querying of the underlying knowledge graph. It guides users through various tools for debugging, refactoring…
Codebase intelligence and dependency mapping tool
This tool indexes an entire codebase, providing deep intelligence through symbol resolution, dependency graph analysis, and semantic search. It allows developers to quickly assess file importance, trace call paths, and understand the potent…
Codemod Implementation Patterns and Workflow
A guide for implementing automated code transformations using AST-based patterns and utility functions. It provides a structured workflow for scaffolding, testing with fixtures, and applying efficient transformations like method renaming an…
Tailwind CSS Best Practices for UI Consistency
This skill provides comprehensive styling guidelines for the Mastra Playground UI, ensuring design system consistency across component usage, design tokens, and class name implementation. It assists developers when writing, reviewing, or re…
Workflow for splitting complex pull requests
Use this workflow to decompose large, complex pull requests into smaller, reviewable units, safely managing the extraction of changes at the file or hunk level. It also provides mechanisms for tracking 'drift' and managing subsequent PRs ba…
Codebase relationship and impact analysis skill
This skill provides comprehensive graph analysis capabilities, allowing developers to trace dependencies, map system flows, and estimate the blast radius of proposed changes across a codebase. It supports finding paths, detecting cycles, an…
Codebase relationship and dependency analysis skill
This skill suite provides deep structural analysis of a codebase, allowing developers to trace dependencies, map execution flows, and predict the blast radius of proposed changes. It covers everything from finding specific symbol paths to d…
Analyze code relationships and dependencies
This skill suite provides comprehensive graph analysis capabilities, enabling developers to trace dependencies, map system flows, and estimate the potential blast radius of proposed code changes. It supports deep inspection of imports, symb…
Scan and fix hardcoded secrets in codebases
This tool scans codebases using entropy analysis and regex heuristics to detect hardcoded secrets and credentials. It can then automatically refactor the code, replacing leaked values with environment variable references and migrating them …