Full upload: MCNVideo AI project with .workbuddy

This commit is contained in:
maogeigei committed 2026-08-06 23:44:59 +08:00
commit 7252d24ba1
755 files changed
+170975

No files matched your search

@@ -0,0 +1,17 @@
#!/bin/bash
# 安装 ljg-card 依赖
set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
CARD_DIR="$(dirname "$SCRIPT_DIR")/skills/ljg-card"
if [ -f "$CARD_DIR/package.json" ]; then
echo "Installing ljg-card dependencies..."
cd "$CARD_DIR"
npm install
npx playwright install chromium
echo "ljg-card dependencies installed successfully."
else
echo "Error: package.json not found in $CARD_DIR"
exit 1
fi
@@ -0,0 +1,44 @@
#!/bin/bash
# Usage: sync-push.sh <skill-name> <commit-message>
# Syncs a local ljg-* skill to the repo and pushes.
# Auto-bumps patch version in marketplace.json and plugin.json.
set -euo pipefail
SKILL="$1"
MSG="$2"
REPO="$HOME/.claude/ljg-skills-repo"
LOCAL="$HOME/.claude/skills/$SKILL"
TARGET="$REPO/skills/$SKILL"
if [ ! -d "$LOCAL" ]; then
echo "ERROR: $LOCAL does not exist" >&2
exit 1
fi
cd "$REPO"
git pull --rebase --quiet
rsync -av --delete --exclude='.git' "$LOCAL/" "$TARGET/"
# Auto-bump patch version in plugin metadata
bump_version() {
local file="$1"
local current
current=$(grep -m1 '"version"' "$file" | sed 's/.*"\([0-9]*\.[0-9]*\.[0-9]*\)".*/\1/')
local major minor patch
major=$(echo "$current" | cut -d. -f1)
minor=$(echo "$current" | cut -d. -f2)
patch=$(echo "$current" | cut -d. -f3)
local new_version="$major.$minor.$((patch + 1))"
sed -i '' "s/\"version\": \"$current\"/\"version\": \"$new_version\"/" "$file"
echo "$new_version"
}
NEW_VER=$(bump_version ".claude-plugin/plugin.json")
bump_version ".claude-plugin/marketplace.json" > /dev/null
git add "skills/$SKILL" .claude-plugin/
git diff --cached --quiet && { echo "No changes to push."; exit 0; }
git commit -m "$MSG (v$NEW_VER)"
git push
echo "Pushed $SKILL at collection v$NEW_VER"