Skip to main content
Run any Skill in Manus
with one click

migration-hardcode-sweep

Stars9
Forks2
UpdatedJune 5, 2026 at 08:04

把腳本/config 推上遠端、template、或跨主機同步前,系統化掃描硬編碼的絕對路徑、 個人 ID/token、生產環境值,並改寫為 env var / $SCRIPT_DIR,避免個資外洩與環境 相依。流程:grep 一組固定 pattern(路徑 + 個資 + secret)→ 命中即 fail → 分類 改寫(路徑→相對/env、secret→env 讀取)→ 重掃確認歸零 → 回報。 觸發時機:使用者說「推 template」「同步到遠端/另一台」「push 這個 repo」「這個能不能 公開/分享」「檢查有沒有寫死路徑/個資」,或自己準備把含路徑/token 的檔案推到遠端/共享前。

Installation

Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.

SKILL.md
readonly