typescriptast

Perform automated TypeScript refactoring using ts-morph and the TypeScript compiler API. Used for renaming, function extraction, and dead code elimination across large codebases.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "typescriptast" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-5e8910906027f2b1bd6463148880f3725bc3871efd3eba592877ba9390fee28e. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/typescript-ast-refactor-ts-morph before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Perform automated TypeScript refactoring using ts-morph and the TypeScript compiler API. Used for renaming, function extraction, and dead code elimination across large codebases.

0 Downloads

Introduction source: third_party · user_3c6cb52e · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: "TypeScript AST 重构"
slug: "typescript-ast-refactor-ts-morph"
version: "1.0.0"
displayName: "TypeScript AST 重构"
summary: "使用 ts-morph 和 TypeScript 编译器 API 执行自动 TypeScript 重构。处理重命名操作、提取函数和跨大型代码库的死代码消除。"
license: "MIT"
description: "使用 ts-morph 和 TypeScript 编译器 API 执行自动 TypeScript 重构。处理重命名操作、提取函数和跨大型代码库的死代码消除。"
github_stars: 6021
verification: "listed"
source: "https://github.com/1991513ccie-png/skills"
author: "1991513ccie-png"
category: "Developer Tools"
framework: "Cursor"
tool_ecosystem:
  github_repo: "1991513ccie-png/skills"
  github_stars: 6021
  npm_package: "ts-morph"
  npm_weekly_downloads: 15198934

TypeScript AST 重构

Performs automated TypeScript refactoring using ts-morph and the TypeScript Compiler API. Handles rename operations, extract-function, and dead code elimination across large codebases.

Installation

No source-backed install or usage instructions could be extracted automatically. Review the upstream project before running this skill in a sensitive workflow.

Documentation

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value92/100

Highlights

  • 提供基于 ts-morph 和 TypeScript 编译器 API 的自动化重构能力,解决大型代码库维护痛点
  • 支持重命名、提取函数、死代码消除等高价值重构操作
Trigger Precision65/100

Areas to improve

  • 缺少具体触发词 Reported severity: Minor

    description 描述了功能但未提供具体的触发命令或关键词,用户难以准确触发 Skill

    Recommendation: 在 description 或 skill_body 中添加具体的触发词示例,如 'refactor typescript'、'rename symbol'、'extract function' 等

Structure and Standards55/100

Areas to improve

  • 缺少 Usage 示例和 Phase 步骤 Reported severity: Minor

    文档缺少具体的 Usage 示例、Phase 步骤划分和出口条件,执行流程不清晰

    Recommendation: 添加 Usage 章节,提供具体的命令示例和分步执行流程,明确各阶段的输入输出和完成条件

Execution Reliability50/100

Areas to improve

  • 缺少错误处理和确认机制 Reported severity: Major

    未提供任何错误处理机制、参数验证或不可逆操作的确认流程,存在执行风险

    Recommendation: 添加错误处理逻辑,对关键重构操作(如重命名、删除)提供确认机制,确保执行安全

Evidence Verifiability (mean of the first four)66/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • github.com
  • ts-morph.com

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.