feat: add myblog blog writer skill

This commit is contained in:
liumangmang
2026-05-13 15:28:05 +08:00
parent 8989bbc413
commit ec273dd486
4 changed files with 591 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
#!/usr/bin/env bash
set -euo pipefail
skill_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
target_dir="${CODEX_HOME:-$HOME/.codex}/skills"
target="${target_dir}/myblog-blog-writer"
mkdir -p "${target_dir}"
if [[ -e "${target}" && ! -L "${target}" ]]; then
echo "Refusing to replace existing non-symlink: ${target}" >&2
exit 1
fi
ln -sfn "${skill_dir}" "${target}"
echo "Linked ${target} -> ${skill_dir}"