brainstorming
brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or planning anything new, in software or out of it (a talk, a business, a renovation).
skill-github-sync将本地 Skills 同步到 viceroy-skills GitHub 仓库,维护 README
Independent GitHub snapshot · Automated classification · Original documentation governs
将本地 Skills 同步到 jacardl/viceroy-skills 仓库。
ai · assistant · creative · developer · operations · product
https://github.com/jacardl/viceroy-skills~/.hermes/keys/github_token.txt/tmp/viceroy-skills_sync跳过预检会踩坑。读完后才执行 sync。
扫描本地凭证文件,发现真实密钥立即停下:
for f in $(find ~/.hermes/skills ~/.agents/skills ~/.openclaw/skills \
-path "*/references/config.md" 2>/dev/null); do
grep -iE "appsecret|api_key|secret|password|token|wx_|private_key" "$f" | \
grep -v "REDACTED\|\\*\\*\\*\\*\\*" && echo "⚠️ $f 含明文密钥,STOP"
done
命中真实值 → 跳过该 skill,不 push。
git fetch origin && git log --oneline origin/main -5
curl -s -H "Authorization: Bearer $TOKEN" \
"https://api.github.com/repos/jacardl/viceroy-skills/contents/skills/<cat>" | \
python3 -c "import sys,json; [print(x['name']) for x in json.load(sys.stdin)]"
git clone "https://jacardl:$(cat ~/.hermes/keys/github_token.txt)@github.com/jacardl/viceroy-skills.git" \
/tmp/viceroy-skills_sync
rm -rf /tmp/viceroy-skills_sync/skills/<cat>/<skill>
cp -r /path/to/local/<skill> \
/tmp/viceroy-skills_sync/skills/<cat>/<skill>
git -C /tmp/viceroy-skills_sync checkout HEAD -- \
skills/<cat>/<skill>/references/config.md
cd /tmp/viceroy-skills_sync
git add <files> && git commit -m "feat: sync <skill>"
GIT_ASKPASS=echo git push
443 超时 → sleep 5 && git push
rejected → GIT_TERMINAL_PROMPT=0 git pull --rebase --autostash origin main && git push
每次增删技能后同步更新 README.md 和 README.en.md。
格式规范见 references/readme-template.md。
11 个实战踩坑的详细复盘见 references/sync-pitfalls.md(完整 11 坑)。
关键规则:
~/.hermes/skills/<域>/ vs 云端 skills/<6大分类>/)git diff 检查改动文件关键规则:
~/.hermes/skills/<域>/ vs 云端 skills/<6大分类>/)git diff 检查改动文件