Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

codemod

БесплатноБез исполняемых скриптовНе проверен

Codemod (JSSG, ast-grep, workflows) best practices for writing efficient, safe, and maintainable code transformations. This skill should be used when writing…

pproencaот pproenca★ 231 звезда на GitHub

Об этом скилле

Codemod Best Practices

Comprehensive best practices guide for Codemod (JSSG, ast-grep, workflows), designed for AI agents and LLMs. Contains 48 rules across 11 categories, prioritized by impact to guide automated refactoring and code generation.

When to Apply

Reference these guidelines when:

  • Writing new codemods with JSSG or ast-grep
  • Designing workflow configurations for migrations
  • Debugging pattern matching or AST traversal issues
  • Reviewing codemod code for performance and safety
  • Setting up test fixtures for transform validation

Rule Categories by Priority

Priority Category Impact Prefix
1 AST Understanding CRITICAL ast-
2 Pattern Efficiency CRITICAL pattern-
3 Parsing Strategy CRITICAL parse-
4 Node Traversal HIGH traverse-
5 Semantic Analysis HIGH semantic-
6 Edit Operations MEDIUM-HIGH edit-
7 Workflow Design MEDIUM-HIGH workflow-
8 Testing Strategy MEDIUM test-
9 State Management MEDIUM state-
10 Security and Capabilities LOW-MEDIUM security-
11 Package Structure LOW pkg-

Quick Reference

1. AST Understanding (CRITICAL)

2. Pattern Efficiency (CRITICAL)

3. Parsing Strategy (CRITICAL)

4. Node Traversal (HIGH)

5. Semantic Analysis (HIGH)

6. Edit Operations (MEDIUM-HIGH)

7. Workflow Design (MEDIUM-HIGH)

  • [workflow-order-nodes-by-dependency](references/wo
Полный SKILL.md на GitHub

Установить codemod в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

AGENTS.mdREADME.mdassets/templates/_template.mdmetadata.jsonreferences/_sections.mdreferences/ast-check-null-before-access.mdreferences/ast-explore-before-writing.mdreferences/ast-field-access-for-structure.mdreferences/ast-understand-named-vs-anonymous.mdreferences/ast-use-kind-for-precision.mdreferences/edit-add-imports-correctly.mdreferences/edit-batch-before-commit.mdreferences/edit-handle-overlapping-ranges.mdreferences/edit-preserve-formatting.mdreferences/edit-use-flatmap-for-conditional.mdreferences/parse-early-return-non-applicable.mdreferences/parse-handle-embedded-languages.mdreferences/parse-provide-pattern-context.mdreferences/parse-select-correct-parser.mdreferences/pattern-avoid-overly-generic.mdreferences/pattern-combine-with-rules.mdreferences/pattern-ensure-idempotency.mdreferences/pattern-use-constraints.mdreferences/pattern-use-meta-variables.mdreferences/pattern-use-relational-patterns.mdreferences/pkg-organize-by-convention.mdreferences/pkg-use-semantic-versioning.mdreferences/pkg-write-descriptive-metadata.mdreferences/security-minimize-capabilities.mdreferences/security-review-before-running-third-party.mdreferences/security-validate-external-inputs.mdreferences/semantic-cache-cross-file-results.mdreferences/semantic-check-null-results.mdreferences/semantic-use-file-scope-first.mdreferences/semantic-verify-file-ownership.mdreferences/state-log-progress-for-observability.mdreferences/state-make-transforms-idempotent.mdreferences/state-use-for-resumability.mdreferences/test-cover-edge-cases.mdreferences/test-run-on-subset-first.md

FAQ

Что делает скилл codemod?

Codemod (JSSG, ast-grep, workflows) best practices for writing efficient, safe, and maintainable code transformations. This skill should be used when writing, reviewing, or debugging codemods, AST transformations, or automated refactoring tools. Triggers on tasks involving codemod, ast-grep, JSSG, code transformation, or automated migration.

Как установить скилл codemod?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл codemod запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить codemod с