用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/fabioc-aloha/Alex_Skill_Mall --skill version-stamp-automation命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | version-stamp-automation |
| description | Version numbers in 5+ files WILL drift with manual edits: |
| lastReviewed | 2026-04-30T00:00:00.000Z |
Version numbers in 5+ files WILL drift with manual edits:
package.json says 2.1.0// package.json is the ONE source
{
"version": "2.1.0"
}
// scripts/bump-version.cjs
const fs = require('fs');
const path = require('path');
const newVersion = process.argv[2];
if (!newVersion) {
console.error('Usage: node bump-version.cjs <version>');
process.exit(1);
}
// Define all version locations
const locations = [
{
file: 'package.json',
pattern: /"version":\s*"[^"]+"/,
replace: `"version": "${newVersion}"`
},
{
file: 'README.md',
pattern: /version-v[\d.]+/g,
replace: `version-v${newVersion}`
},
{
file: 'src/extension.ts',
pattern: /VERSION\s*=\s*['"][^'"]+['"]/,
replace: `VERSION = '${newVersion}'`
}
];
locations.forEach(({ file, pattern, replace }) => {
const filePath = path.resolve(file);
if (!fs.existsSync(filePath)) return;
let content = fs.readFileSync(filePath, 'utf8');
content = content.replace(pattern, replace);
fs.writeFileSync(filePath, content);
console.log(`Updated: ${file}`);
});
| Type | Action | Example |
|---|---|---|
| Auto-derivable | Script updates | README badge, package.json |
| Manually dated | Leave alone | CHANGELOG entries, planning docs |
| Build-time | Inject at build | Extension about page |
# After running bump script
grep -rn "2.1.0" . --include="*.json" --include="*.md" --include="*.ts"
# Should see consistent version everywhere (except historical docs)
versioning automation documentation devops