Loading...
Loading...
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.
npx skill4agent add pproenca/dot-skills codemod| Priority | Category | Impact | Prefix |
|---|---|---|---|
| 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 | |
| 8 | Testing Strategy | MEDIUM | |
| 9 | State Management | MEDIUM | |
| 10 | Security and Capabilities | LOW-MEDIUM | |
| 11 | Package Structure | LOW | |
ast-explore-before-writingast-understand-named-vs-anonymousast-use-kind-for-precisionast-field-access-for-structureast-check-null-before-accesspattern-use-meta-variablespattern-avoid-overly-genericpattern-combine-with-rulespattern-use-constraintspattern-use-relational-patternspattern-ensure-idempotencyparse-select-correct-parserparse-handle-embedded-languagesparse-provide-pattern-contextparse-early-return-non-applicabletraverse-use-find-vs-findalltraverse-single-pass-collectiontraverse-use-stopby-for-depthtraverse-use-siblings-efficientlytraverse-cache-repeated-lookupssemantic-use-file-scope-firstsemantic-check-null-resultssemantic-verify-file-ownershipsemantic-cache-cross-file-resultsedit-batch-before-commitedit-preserve-formattingedit-handle-overlapping-rangesedit-use-flatmap-for-conditionaledit-add-imports-correctlyworkflow-order-nodes-by-dependencyworkflow-use-matrix-for-parallelismworkflow-use-manual-gatesworkflow-validate-before-runworkflow-use-conditional-stepstest-use-fixture-pairstest-cover-edge-casestest-use-strictness-levelstest-update-fixtures-intentionallytest-run-on-subset-firststate-use-for-resumabilitystate-make-transforms-idempotentstate-log-progress-for-observabilitysecurity-minimize-capabilitiessecurity-validate-external-inputssecurity-review-before-running-third-partypkg-use-semantic-versioningpkg-write-descriptive-metadatapkg-organize-by-convention