@feng-h/pdca-skill 1.0.13 → 1.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/settings.local.json +2 -1
- package/README.md +28 -3
- package/install.sh +110 -0
- package/package.json +5 -3
package/README.md
CHANGED
|
@@ -51,12 +51,37 @@
|
|
|
51
51
|
|
|
52
52
|
**前提条件**:已安装 OpenClaw 并配置飞书插件
|
|
53
53
|
|
|
54
|
+
#### 方式 1:自动安装脚本(推荐)
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
# 自动检测 OpenClaw 目录并安装
|
|
58
|
+
npx @feng-h/pdca-skill install
|
|
59
|
+
|
|
60
|
+
# 或下载后直接运行
|
|
61
|
+
curl -fsSL https://raw.githubusercontent.com/Feng-H/PDCA-with-AI/main/install.sh | bash
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
#### 方式 2:通过 skills.sh
|
|
65
|
+
|
|
54
66
|
```bash
|
|
55
|
-
# 通过 skills.sh 安装
|
|
56
67
|
npx skills add Feng-H/PDCA-with-AI --agent skills
|
|
68
|
+
```
|
|
57
69
|
|
|
58
|
-
|
|
59
|
-
|
|
70
|
+
#### 方式 3:手动安装
|
|
71
|
+
|
|
72
|
+
```bash
|
|
73
|
+
# 克隆到 OpenClaw skills 目录
|
|
74
|
+
git clone https://github.com/Feng-H/PDCA-with-AI.git ~/.openclaw/skills/pdca
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### 更新技能
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
# 使用安装脚本自动更新
|
|
81
|
+
npx @feng-h/pdca-skill install
|
|
82
|
+
|
|
83
|
+
# 或进入目录手动拉取
|
|
84
|
+
cd ~/.openclaw/skills/pdca && git pull
|
|
60
85
|
```
|
|
61
86
|
|
|
62
87
|
### 常用指令
|
package/install.sh
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
|
|
3
|
+
# PDCA Skill 安装/更新脚本
|
|
4
|
+
# 自动检测 OpenClaw skills 目录并安装到正确位置
|
|
5
|
+
|
|
6
|
+
set -e
|
|
7
|
+
|
|
8
|
+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
9
|
+
SKILL_NAME="pdca"
|
|
10
|
+
REPO_URL="https://github.com/Feng-H/PDCA-with-AI.git"
|
|
11
|
+
|
|
12
|
+
echo "╔══════════════════════════════════════════════════════════════╗"
|
|
13
|
+
echo "║ PDCA Skill 安装/更新脚本 ║"
|
|
14
|
+
echo "╚══════════════════════════════════════════════════════════════╝"
|
|
15
|
+
echo ""
|
|
16
|
+
|
|
17
|
+
# 检测 OpenClaw 配置
|
|
18
|
+
echo "🔍 检测 OpenClaw 配置..."
|
|
19
|
+
|
|
20
|
+
OPENCLAW_CONFIG=""
|
|
21
|
+
OPENCLAW_SKILLS_DIR=""
|
|
22
|
+
|
|
23
|
+
# 可能的配置文件位置
|
|
24
|
+
CONFIG_PATHS=(
|
|
25
|
+
"$HOME/.openclaw/config.json"
|
|
26
|
+
"$HOME/.config/openclaw/config.json"
|
|
27
|
+
"$HOME/.openclaw.json"
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
for config_path in "${CONFIG_PATHS[@]}"; do
|
|
31
|
+
if [ -f "$config_path" ]; then
|
|
32
|
+
OPENCLAW_CONFIG="$config_path"
|
|
33
|
+
break
|
|
34
|
+
fi
|
|
35
|
+
done
|
|
36
|
+
|
|
37
|
+
if [ -n "$OPENCLAW_CONFIG" ]; then
|
|
38
|
+
echo "✅ 找到配置: $OPENCLAW_CONFIG"
|
|
39
|
+
# 尝试读取 skillsDir
|
|
40
|
+
if command -v jq &> /dev/null; then
|
|
41
|
+
OPENCLAW_SKILLS_DIR=$(jq -r '.skillsDir // .skillsPath // empty' "$OPENCLAW_CONFIG" 2>/dev/null || echo "")
|
|
42
|
+
fi
|
|
43
|
+
fi
|
|
44
|
+
|
|
45
|
+
# 默认 skills 目录
|
|
46
|
+
DEFAULT_SKILLS_DIR="$HOME/.openclaw/skills"
|
|
47
|
+
SKILLS_DIR="${OPENCLAW_SKILLS_DIR:-$DEFAULT_SKILLS_DIR}"
|
|
48
|
+
|
|
49
|
+
echo "📁 目标安装目录: $SKILLS_DIR"
|
|
50
|
+
echo ""
|
|
51
|
+
|
|
52
|
+
# 创建目标目录
|
|
53
|
+
mkdir -p "$SKILLS_DIR"
|
|
54
|
+
|
|
55
|
+
# 目标 skill 目录
|
|
56
|
+
TARGET_DIR="$SKILLS_DIR/$SKILL_NAME"
|
|
57
|
+
|
|
58
|
+
# 临时目录用于下载
|
|
59
|
+
TEMP_DIR=$(mktemp -d)
|
|
60
|
+
trap "rm -rf $TEMP_DIR" EXIT
|
|
61
|
+
|
|
62
|
+
echo "⬇️ 下载最新版本..."
|
|
63
|
+
cd "$TEMP_DIR"
|
|
64
|
+
|
|
65
|
+
# 检查是否安装了 git
|
|
66
|
+
if command -v git &> /dev/null; then
|
|
67
|
+
git clone --depth 1 "$REPO_URL" temp_skill
|
|
68
|
+
cd temp_skill
|
|
69
|
+
elif command -v curl &> /dev/null || command -v wget &> /dev/null; then
|
|
70
|
+
# 使用 npm 下载
|
|
71
|
+
npm pack "@feng-h/pdca-skill"
|
|
72
|
+
tar -xzf feng-h-pdca-skill-*.tgz
|
|
73
|
+
cd package
|
|
74
|
+
else
|
|
75
|
+
echo "❌ 错误: 需要 git 或 npm 来下载 skill"
|
|
76
|
+
exit 1
|
|
77
|
+
fi
|
|
78
|
+
|
|
79
|
+
echo "✅ 下载完成"
|
|
80
|
+
echo ""
|
|
81
|
+
|
|
82
|
+
# 备份现有安装(如果存在)
|
|
83
|
+
if [ -d "$TARGET_DIR" ]; then
|
|
84
|
+
echo "📦 备份现有安装..."
|
|
85
|
+
BACKUP_DIR="${TARGET_DIR}.backup.$(date +%Y%m%d_%H%M%S)"
|
|
86
|
+
mv "$TARGET_DIR" "$BACKUP_DIR"
|
|
87
|
+
echo "✅ 备份到: $BACKUP_DIR"
|
|
88
|
+
fi
|
|
89
|
+
|
|
90
|
+
echo "📋 安装到: $TARGET_DIR"
|
|
91
|
+
mkdir -p "$SKILLS_DIR"
|
|
92
|
+
cp -r "$TEMP_DIR/temp_skill" "$TARGET_DIR"
|
|
93
|
+
|
|
94
|
+
# 如果是 npm 方式下载的
|
|
95
|
+
if [ -d "$TEMP_DIR/package" ]; then
|
|
96
|
+
rm -rf "$TARGET_DIR"
|
|
97
|
+
cp -r "$TEMP_DIR/package" "$TARGET_DIR"
|
|
98
|
+
fi
|
|
99
|
+
|
|
100
|
+
echo ""
|
|
101
|
+
echo "╔══════════════════════════════════════════════════════════════╗"
|
|
102
|
+
echo "║ ✅ 安装完成! ║"
|
|
103
|
+
echo "╚══════════════════════════════════════════════════════════════╝"
|
|
104
|
+
echo ""
|
|
105
|
+
echo "📁 安装位置: $TARGET_DIR"
|
|
106
|
+
echo ""
|
|
107
|
+
echo "🔍 验证安装:"
|
|
108
|
+
echo " ls -la $TARGET_DIR/SKILL.md"
|
|
109
|
+
echo ""
|
|
110
|
+
echo "🚀 重启 OpenClaw 后即可使用"
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feng-h/pdca-skill",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.14",
|
|
4
4
|
"description": "PDCA project management system for Feishu/Lark integration with AI-driven workflow",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"skills",
|
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
},
|
|
23
23
|
"homepage": "https://github.com/Feng-H/PDCA-with-AI#readme",
|
|
24
24
|
"bin": {
|
|
25
|
-
"pdca-skill": "./bin/pdca.js"
|
|
25
|
+
"pdca-skill": "./bin/pdca.js",
|
|
26
|
+
"pdca-install": "./install.sh"
|
|
26
27
|
},
|
|
27
28
|
"files": [
|
|
28
29
|
"SKILL.md",
|
|
@@ -30,7 +31,8 @@
|
|
|
30
31
|
"system/",
|
|
31
32
|
".claude/",
|
|
32
33
|
"README.md",
|
|
33
|
-
"CLAUDE.md"
|
|
34
|
+
"CLAUDE.md",
|
|
35
|
+
"install.sh"
|
|
34
36
|
],
|
|
35
37
|
"scripts": {
|
|
36
38
|
"version": "git add package.json",
|