feat: add generic gitea issue-drive skills

This commit is contained in:
zfc
2026-03-12 15:53:26 +08:00
parent b36220b33a
commit 22765a2917
15 changed files with 1681 additions and 109 deletions
+12 -8
View File
@@ -96,6 +96,7 @@ install_layout() {
local skill_dir
local skill_name
local src_file
local rel_path
local dst_dir
local dst_file
local tpl_file
@@ -116,17 +117,20 @@ install_layout() {
for skill_dir in "$TMP_DIR/$SKILLS_SRC"/*/; do
[ -d "$skill_dir" ] || continue
skill_name=$(basename "$skill_dir")
src_file="$skill_dir/SKILL.md"
dst_dir="$TARGET/$skill_name"
dst_file="$dst_dir/SKILL.md"
[ -f "$src_file" ] || continue
[ -f "$skill_dir/SKILL.md" ] || continue
sync_file \
"$src_file" \
"$dst_file" \
"✨ 新增: $skill_name ($MODE)" \
"🔄 更新: $skill_name ($MODE) (本地版本已备份为 SKILL.md.local.bak"
while IFS= read -r -d '' src_file; do
rel_path="${src_file#$skill_dir}"
dst_file="$dst_dir/$rel_path"
sync_file \
"$src_file" \
"$dst_file" \
"✨ 新增: $skill_name/$rel_path ($MODE)" \
"🔄 更新: $skill_name/$rel_path ($MODE) (本地版本已备份为 $(basename "$rel_path").local.bak"
done < <(find "$skill_dir" -type f -print0)
done
for tpl_file in "$TMP_DIR/$SKILLS_SRC"/*.template "$TMP_DIR/$SKILLS_SRC"/*.md; do