Skip to content
Back to skills

Grandpa Migrate

BSecurity

Migrate an existing codebase from bloated dependencies to native stdlib alternatives. Provides step-by-step migration plans with rollback safety.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 4, 2026
ai-agentsjavascriptpythongojavashellnodegitdatabase

Security analysis

B81/100
  • highPerforms destructive filesystem operations
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned October 4, 2026

npx -y skills add bytewhisker/grandpa --skill grandpa-migrate --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Grandpa Migrate?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Grandpa Migrate
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/bytewhisker-grandpa-migrate/badge)](https://www.skillsdirectory.com/skills/bytewhisker-grandpa-migrate)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: grandpa-migrate
description: Migrate an existing codebase from bloated dependencies to native stdlib alternatives. Provides step-by-step migration plans with rollback safety.
---

# Grandpa Migrate: Dependency-to-Native Migration Engine

Analyze the project's dependency tree and produce a prioritized migration plan to replace bloated packages with native stdlib alternatives.

## Migration Database

### JavaScript / Node.js
| Package | Native Replacement | Since | Migration Effort |
|:---|:---|:---|:---|
| `uuid` | `crypto.randomUUID()` | Node 14.17+ | Trivial |
| `lodash.clonedeep` | `structuredClone(obj)` | Node 17+ | Trivial |
| `rimraf` | `fs.rmSync(p, { recursive: true, force: true })` | Node 14.14+ | Trivial |
| `mkdirp` | `fs.mkdirSync(p, { recursive: true })` | Node 10.12+ | Trivial |
| `node-fetch` / `cross-fetch` / `isomorphic-fetch` | `fetch()` | Node 18+ | Low |
| `querystring` | `new URLSearchParams()` | Node 10+ | Low |
| `left-pad` | `str.padStart(n, ch)` | ES2017 | Trivial |
| `is-odd` / `is-even` | `n % 2 !== 0` / `n % 2 === 0` | Always | Trivial |
| `is-number` | `typeof n === 'number' && !isNaN(n)` | Always | Trivial |
| `object-assign` | `Object.assign()` or `{ ...obj }` | ES2015 | Trivial |
| `array-flatten` / `flatten` | `arr.flat(Infinity)` | Node 12+ | Trivial |
| `moment` / `dayjs` | `Intl.DateTimeFormat`, `Intl.RelativeTimeFormat` | Modern | Medium |
| `classnames` / `clsx` | Template literals: `` `${base} ${cond && cls}` `` | Always | Low |
| `dotenv` | `node --env-file=.env` | Node 20.6+ | Low |
| `axios` | `fetch()` + `AbortSignal.timeout()` | Node 18+ | Medium |
| `chalk` | `util.styleText()` or ANSI escape sequences | Node 21+ | Low |
| `glob` | `fs.globSync()` | Node 22+ | Low |
| `assert` (npm) | `node:assert` | Always | Trivial |

### Python
| Package | Native Replacement | Since | Migration Effort |
|:---|:---|:---|:---|
| `os.path` calls | `pathlib.Path` | Python 3.4+ | Low |
| `toml` | `tomllib` | Python 3.11+ | Trivial |
| `typing_extensions` (most) | `typing` | Python 3.10+ | Low |
| `dataclasses-json` | `dataclasses` + `json` | Python 3.7+ | Medium |
| `python-dotenv` | `os.environ` + shell export | Always | Low |
| `requests` (simple GETs) | `urllib.request` | Always | Low |

### Go
| Package | Native Replacement | Since | Migration Effort |
|:---|:---|:---|:---|
| `gorilla/mux` | `net/http.ServeMux` (pattern matching) | Go 1.22+ | Medium |
| `logrus` / `zap` (simple) | `log/slog` | Go 1.21+ | Medium |
| `strconv` helpers | `fmt.Sprintf` | Always | Trivial |
| `sort` custom | `slices.SortFunc` | Go 1.21+ | Low |

## Migration Plan Output

```
GRANDPA MIGRATION PLAN
======================
Repository: <name>
Packages to migrate: <count>
Estimated effort: <hours>

PHASE 1: TRIVIAL (< 5 min each)
  1. uuid -> crypto.randomUUID()
     Files: src/id.js, src/user.js
     Find: import { v4 as uuidv4 } from 'uuid'
     Replace: // grandpa: native crypto stdlib
              const id = crypto.randomUUID();
     After: npm uninstall uuid

PHASE 2: LOW EFFORT (< 30 min each)
  ...

PHASE 3: MEDIUM EFFORT (< 2 hours each)
  ...

ROLLBACK: If any migration causes issues:
  git stash && npm install <package>
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.