@allanpk716/work-skills-setup 0.1.0 → 1.4.0
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/LICENSE +21 -0
- package/README.md +227 -0
- package/README.zh.md +228 -0
- package/installer/jest.config.js +10 -0
- package/installer/package-lock.json +4428 -0
- package/installer/package.json +38 -0
- package/installer/src/configurators/git-user.js +137 -0
- package/installer/src/configurators/pushover.js +363 -0
- package/installer/src/hooks/hooks-installer.js +511 -0
- package/installer/src/hooks/index.js +71 -0
- package/{src → installer/src}/i18n/en.json +12 -0
- package/{src → installer/src}/i18n/zh.json +12 -0
- package/{src → installer/src}/index.js +4 -0
- package/{src → installer/src}/verification/runner.js +3 -11
- package/installer/tests/bin.test.js +26 -0
- package/installer/tests/cli.test.js +31 -0
- package/installer/tests/config-git-ssh-detect.js +33 -0
- package/installer/tests/config-git-ssh-guide.js +43 -0
- package/installer/tests/config-git-user-detect.js +71 -0
- package/installer/tests/config-pushover-detect.js +33 -0
- package/installer/tests/config-pushover-input.js +44 -0
- package/installer/tests/config-pushover-save.js +49 -0
- package/installer/tests/configurators/git-ssh.test.js +77 -0
- package/installer/tests/configurators/git-user.test.js +124 -0
- package/installer/tests/configurators/pushover.test.js +188 -0
- package/installer/tests/configurators/unified-flow.test.js +410 -0
- package/installer/tests/detectors/git.test.js +79 -0
- package/installer/tests/detectors/index.test.js +241 -0
- package/installer/tests/detectors/pip-package.test.js +83 -0
- package/installer/tests/detectors/python.test.js +99 -0
- package/installer/tests/detectors/ssh-tools.test.js +129 -0
- package/installer/tests/i18n.test.js +80 -0
- package/installer/tests/index.test.js +39 -0
- package/installer/tests/installers/index.test.js +89 -0
- package/installer/tests/installers/pip-installer.test.js +75 -0
- package/installer/tests/marketplace/config-manager.test.js +130 -0
- package/installer/tests/marketplace/plugin-discovery.test.js +93 -0
- package/installer/tests/marketplace/plugin-installer.test.js +125 -0
- package/installer/tests/package.test.js +37 -0
- package/installer/tests/platform.test.js +39 -0
- package/installer/tests/run-all.js +47 -0
- package/installer/tests/setup.js +4 -0
- package/installer/tests/verification/formatter.test.js +101 -0
- package/installer/tests/verification/index.test.js +107 -0
- package/installer/tests/verification/parser.test.js +61 -0
- package/installer/tests/verification/runner.test.js +63 -0
- package/installer/tests/welcome.test.js +49 -0
- package/package.json +13 -11
- package/plugins/claude-notify/.claude-plugin/plugin.json +8 -0
- package/plugins/claude-notify/SKILL.md +1285 -0
- package/plugins/claude-notify/hooks/scripts/notify-attention.py +272 -0
- package/plugins/claude-notify/hooks/scripts/notify.py +444 -0
- package/plugins/claude-notify/scripts/notify-disable.py +51 -0
- package/plugins/claude-notify/scripts/notify-enable.py +51 -0
- package/plugins/claude-notify/scripts/notify-status.py +34 -0
- package/plugins/claude-notify/scripts/verify-installation.py +348 -0
- package/plugins/claude-notify/test.bat +20 -0
- package/plugins/claude-notify/tests/__init__.py +1 -0
- package/plugins/claude-notify/tests/test_notify.py +226 -0
- package/plugins/claude-notify/tests/test_notify_disable.py +116 -0
- package/plugins/claude-notify/tests/test_notify_enable.py +119 -0
- package/plugins/claude-notify/tests/test_notify_status.py +101 -0
- package/plugins/claude-notify/tests/test_pushover.py +98 -0
- package/plugins/claude-notify/tests/test_windows.py +88 -0
- package/plugins/windows-git-commit/.claude-plugin/plugin.json +8 -0
- package/plugins/windows-git-commit/SKILL.md +891 -0
- package/plugins/windows-git-commit/hooks/pre-commit +60 -0
- package/plugins/windows-git-commit/scanner/__init__.py +114 -0
- package/plugins/windows-git-commit/scanner/executor.py +254 -0
- package/plugins/windows-git-commit/scanner/gitignore.py +64 -0
- package/plugins/windows-git-commit/scanner/messages.py +182 -0
- package/plugins/windows-git-commit/scanner/reporter.py +263 -0
- package/plugins/windows-git-commit/scanner/rules/__init__.py +99 -0
- package/plugins/windows-git-commit/scanner/rules/cache_files.py +97 -0
- package/plugins/windows-git-commit/scanner/rules/config_files.py +121 -0
- package/plugins/windows-git-commit/scanner/rules/internal_info.py +119 -0
- package/plugins/windows-git-commit/scanner/rules/secrets.py +107 -0
- package/plugins/windows-git-commit/scanner/rules/whitelist.py +126 -0
- package/plugins/windows-git-commit/scanner/utils/__init__.py +5 -0
- package/plugins/windows-git-commit/scanner/utils/file_utils.py +64 -0
- package/plugins/windows-git-commit/scanner/utils/git_ops.py +72 -0
- package/plugins/windows-git-commit/security-scanner/requirements.txt +1 -0
- package/plugins/windows-git-commit/tests/__init__.py +0 -0
- package/plugins/windows-git-commit/tests/conftest.py +75 -0
- package/plugins/windows-git-commit/tests/test_file_utils.py +60 -0
- package/plugins/windows-git-commit/tests/test_performance.py +56 -0
- package/plugins/windows-git-commit/tests/test_windows_compat.py +97 -0
- package/src/configurators/git-user.js +0 -78
- package/src/configurators/pushover.js +0 -195
- /package/{bin → installer/bin}/setup.js +0 -0
- /package/{src → installer/src}/cli.js +0 -0
- /package/{src → installer/src}/configurators/git-ssh.js +0 -0
- /package/{src → installer/src}/configurators/index.js +0 -0
- /package/{src → installer/src}/detectors/git.js +0 -0
- /package/{src → installer/src}/detectors/index.js +0 -0
- /package/{src → installer/src}/detectors/pip-package.js +0 -0
- /package/{src → installer/src}/detectors/python.js +0 -0
- /package/{src → installer/src}/detectors/ssh-tools.js +0 -0
- /package/{src → installer/src}/i18n/index.js +0 -0
- /package/{src → installer/src}/installers/index.js +0 -0
- /package/{src → installer/src}/installers/pip-installer.js +0 -0
- /package/{src → installer/src}/marketplace/config-manager.js +0 -0
- /package/{src → installer/src}/marketplace/index.js +0 -0
- /package/{src → installer/src}/marketplace/plugin-discovery.js +0 -0
- /package/{src → installer/src}/marketplace/plugin-installer.js +0 -0
- /package/{src → installer/src}/platform.js +0 -0
- /package/{src → installer/src}/verification/formatter.js +0 -0
- /package/{src → installer/src}/verification/index.js +0 -0
- /package/{src → installer/src}/verification/parser.js +0 -0
- /package/{src → installer/src}/welcome.js +0 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 allanpk716
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
# Work Skills
|
|
2
|
+
|
|
3
|
+
English | [中文](README.zh.md)
|
|
4
|
+
|
|
5
|
+
Personal skills collection for improving daily work efficiency with Claude Code.
|
|
6
|
+
|
|
7
|
+
## 🚀 Quick Start
|
|
8
|
+
|
|
9
|
+
**New to Work Skills?** Just run:
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npx github:allanpk716/work-skills#main
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
**Prefer manual install?**
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
git clone https://github.com/allanpk716/work-skills.git
|
|
19
|
+
cd work-skills
|
|
20
|
+
node installer/src/index.js
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
**Need details?** See **[Quick Start Guide](QUICK-START.md)**
|
|
24
|
+
|
|
25
|
+
**Already installed?** Run `git pull && npx .` to update
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## Prerequisites
|
|
30
|
+
|
|
31
|
+
- Windows development environment
|
|
32
|
+
- Git with SSH (PuTTY/Pageant) configured
|
|
33
|
+
- Node.js environment installed (for Claude Code plugin system)
|
|
34
|
+
|
|
35
|
+
## Installation
|
|
36
|
+
|
|
37
|
+
### NPX Install (Recommended)
|
|
38
|
+
|
|
39
|
+
One-line install via GitHub:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
npx github:allanpk716/work-skills#main
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
This automatically downloads and runs the installer. No clone needed.
|
|
46
|
+
|
|
47
|
+
### Official Project Install
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
npx allanpk716/work-skills
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### Register as Plugin Marketplace
|
|
54
|
+
|
|
55
|
+
Run the following command in Claude Code:
|
|
56
|
+
|
|
57
|
+
```
|
|
58
|
+
/plugin marketplace add allanpk716/work-skills
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
### Install Skills
|
|
62
|
+
|
|
63
|
+
**Option 1: Via Browse UI**
|
|
64
|
+
|
|
65
|
+
1. Select __Browse and install plugins__
|
|
66
|
+
2. Select __work-skills__
|
|
67
|
+
3. Select the plugin(s) you want to install
|
|
68
|
+
4. Select __Install now__
|
|
69
|
+
|
|
70
|
+
**Option 2: Direct Install**
|
|
71
|
+
|
|
72
|
+
```
|
|
73
|
+
# Install git skills plugin
|
|
74
|
+
/plugin install git-skills@work-skills
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
**Option 3: Ask the Agent**
|
|
78
|
+
|
|
79
|
+
Simply tell Claude Code:
|
|
80
|
+
|
|
81
|
+
> Please install Skills from github.com/allanpk716/work-skills
|
|
82
|
+
|
|
83
|
+
## Available Plugins
|
|
84
|
+
|
|
85
|
+
| Plugin | Description | Skills |
|
|
86
|
+
| --- | --- | --- |
|
|
87
|
+
| __git-skills__ | Git workflow automation for Windows | windows-git-commit |
|
|
88
|
+
| __claude-notify__ | Task completion notifications via Pushover and Windows Toast | claude-notify |
|
|
89
|
+
|
|
90
|
+
## Update Skills
|
|
91
|
+
|
|
92
|
+
To update skills to the latest version:
|
|
93
|
+
|
|
94
|
+
1. Run `/plugin` in Claude Code
|
|
95
|
+
2. Switch to __Marketplaces__ tab
|
|
96
|
+
3. Select __work-skills__
|
|
97
|
+
4. Choose __Update marketplace__
|
|
98
|
+
|
|
99
|
+
You can also __Enable auto-update__ to get the latest versions automatically.
|
|
100
|
+
|
|
101
|
+
## Available Skills
|
|
102
|
+
|
|
103
|
+
### Git Skills
|
|
104
|
+
|
|
105
|
+
Git workflow automation skills optimized for Windows development with PuTTY/Pageant authentication.
|
|
106
|
+
|
|
107
|
+
#### windows-git-commit
|
|
108
|
+
|
|
109
|
+
Automated Git commit and push for Windows using command-line git with plink + PPK authentication.
|
|
110
|
+
|
|
111
|
+
**Features:**
|
|
112
|
+
- Auto-analyzes code changes
|
|
113
|
+
- Generates descriptive commit messages
|
|
114
|
+
- Uses command-line git (no GUI dialogs)
|
|
115
|
+
- Configures PuTTY/plink SSH authentication automatically
|
|
116
|
+
- Runs in subagent to preserve context
|
|
117
|
+
|
|
118
|
+
**Usage:**
|
|
119
|
+
|
|
120
|
+
```bash
|
|
121
|
+
# Automatic commit and push (recommended)
|
|
122
|
+
/windows-git-commit
|
|
123
|
+
|
|
124
|
+
# With custom commit message
|
|
125
|
+
/windows-git-commit Commit message here
|
|
126
|
+
|
|
127
|
+
# Commit specific files only
|
|
128
|
+
/windows-git-commit for changes in src/ and tests/
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
**Prerequisites:**
|
|
132
|
+
- Pageant must be running with PPK key loaded
|
|
133
|
+
- TortoiseGit or PuTTY must be installed
|
|
134
|
+
- First run auto-configures git to use TortoisePlink
|
|
135
|
+
|
|
136
|
+
**One-time Setup:**
|
|
137
|
+
|
|
138
|
+
```bash
|
|
139
|
+
# Configure git to use TortoisePlink (64-bit system)
|
|
140
|
+
git config --global core.sshcommand "\"C:\\Program Files\\TortoiseGit\\bin\\TortoisePlink.exe\""
|
|
141
|
+
|
|
142
|
+
# Or 32-bit system
|
|
143
|
+
git config --global core.sshcommand "\"C:\\Program Files (x86)\\TortoiseGit\\bin\\TortoisePlink.exe\""
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
For detailed troubleshooting, see the skill documentation.
|
|
147
|
+
|
|
148
|
+
### Claude Notify
|
|
149
|
+
|
|
150
|
+
Task completion notifications via Pushover and Windows Toast.
|
|
151
|
+
|
|
152
|
+
#### claude-notify
|
|
153
|
+
|
|
154
|
+
Automatically sends notifications when Claude Code completes tasks. Receive mobile push notifications via Pushover and desktop toast notifications on Windows.
|
|
155
|
+
|
|
156
|
+
**Features:**
|
|
157
|
+
- Mobile push notifications via Pushover
|
|
158
|
+
- Windows Toast desktop notifications
|
|
159
|
+
- AI-powered task summaries using Claude CLI
|
|
160
|
+
- Parallel execution for instant delivery
|
|
161
|
+
- Graceful degradation when Pushover not configured
|
|
162
|
+
- Completes within 5 seconds
|
|
163
|
+
|
|
164
|
+
**Usage:**
|
|
165
|
+
|
|
166
|
+
No manual invocation needed - notifications are sent automatically when Claude Code tasks complete.
|
|
167
|
+
|
|
168
|
+
**Prerequisites:**
|
|
169
|
+
- Python 3.8 or higher
|
|
170
|
+
- Pushover account (optional, for mobile notifications)
|
|
171
|
+
|
|
172
|
+
**Setup:**
|
|
173
|
+
|
|
174
|
+
1. **Configure Pushover (optional):**
|
|
175
|
+
|
|
176
|
+
```cmd
|
|
177
|
+
# Windows Command Prompt
|
|
178
|
+
setx PUSHOVER_TOKEN "your-pushover-app-token"
|
|
179
|
+
setx PUSHOVER_USER "your-pushover-user-key"
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
2. **Verify installation:**
|
|
183
|
+
|
|
184
|
+
```bash
|
|
185
|
+
python scripts/verify-installation.py
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
3. **Test:**
|
|
189
|
+
|
|
190
|
+
Complete any task in Claude Code. You should receive notifications automatically.
|
|
191
|
+
|
|
192
|
+
**Without Pushover:**
|
|
193
|
+
|
|
194
|
+
Windows Toast notifications work without any configuration. Just install the plugin and you're ready to go.
|
|
195
|
+
|
|
196
|
+
For detailed documentation, see the [skill documentation](plugins/claude-notify/SKILL.md).
|
|
197
|
+
|
|
198
|
+
## Project Structure
|
|
199
|
+
|
|
200
|
+
```
|
|
201
|
+
work-skills/
|
|
202
|
+
├── .claude-plugin/
|
|
203
|
+
│ └── marketplace.json # Plugin marketplace configuration
|
|
204
|
+
├── plugins/
|
|
205
|
+
│ ├── windows-git-commit/ # Git workflow automation plugin
|
|
206
|
+
│ │ ├── commands/ # Slash commands
|
|
207
|
+
│ │ └── skills/ # Skill definitions
|
|
208
|
+
│ └── claude-notify/ # Notification plugin
|
|
209
|
+
│ ├── hooks/ # Hook definitions
|
|
210
|
+
│ ├── SKILL.md # Skill documentation
|
|
211
|
+
│ └── tests/ # Test suite
|
|
212
|
+
├── README.md # This file
|
|
213
|
+
├── README.zh.md # Chinese version
|
|
214
|
+
└── CHANGELOG.md # Version history
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
## Contributing
|
|
218
|
+
|
|
219
|
+
This is a personal skills collection. Feel free to fork and adapt for your own needs!
|
|
220
|
+
|
|
221
|
+
## License
|
|
222
|
+
|
|
223
|
+
MIT
|
|
224
|
+
|
|
225
|
+
## Credits
|
|
226
|
+
|
|
227
|
+
Structure and organization inspired by [baoyu-skills](https://github.com/JimLiu/baoyu-skills) by Jim Liu.
|
package/README.zh.md
ADDED
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
# Work Skills
|
|
2
|
+
|
|
3
|
+
[English](README.md) | 中文
|
|
4
|
+
|
|
5
|
+
个人技能集合,用于提升 Claude Code 的日常工作效率。
|
|
6
|
+
|
|
7
|
+
## 🚀 快速开始
|
|
8
|
+
|
|
9
|
+
**初次使用?** 直接运行:
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npx github:allanpk716/work-skills#main
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
**喜欢手动安装?**
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
git clone https://github.com/allanpk716/work-skills.git
|
|
19
|
+
cd work-skills
|
|
20
|
+
node installer/src/index.js
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
**详细步骤?** 查看 **[快速安装指南](QUICK-START.md)** 或 **[完整安装文档](INSTALLATION.zh.md)**
|
|
24
|
+
|
|
25
|
+
**已安装?** 运行 `git pull && npx .` 更新
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## 前提条件
|
|
31
|
+
|
|
32
|
+
- Windows 开发环境
|
|
33
|
+
- 已配置 SSH (PuTTY/Pageant) 的 Git
|
|
34
|
+
- 已安装 Node.js 环境 (用于 Claude Code 插件系统)
|
|
35
|
+
|
|
36
|
+
## 安装
|
|
37
|
+
|
|
38
|
+
### NPX 安装 (推荐)
|
|
39
|
+
|
|
40
|
+
通过 GitHub 一键安装:
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
npx github:allanpk716/work-skills#main
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
自动下载并运行安装程序,无需克隆仓库。
|
|
47
|
+
|
|
48
|
+
### 官方项目安装
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
npx allanpk716/work-skills
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### 注册为插件市场
|
|
55
|
+
|
|
56
|
+
在 Claude Code 中运行以下命令:
|
|
57
|
+
|
|
58
|
+
```
|
|
59
|
+
/plugin marketplace add allanpk716/work-skills
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### 安装技能
|
|
63
|
+
|
|
64
|
+
**方式 1: 通过浏览界面**
|
|
65
|
+
|
|
66
|
+
1. 选择 __Browse and install plugins__
|
|
67
|
+
2. 选择 __work-skills__
|
|
68
|
+
3. 选择要安装的插件
|
|
69
|
+
4. 选择 __Install now__
|
|
70
|
+
|
|
71
|
+
**方式 2: 直接安装**
|
|
72
|
+
|
|
73
|
+
```
|
|
74
|
+
# 安装 git 技能插件
|
|
75
|
+
/plugin install git-skills@work-skills
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
**方式 3: 询问 Agent**
|
|
79
|
+
|
|
80
|
+
直接告诉 Claude Code:
|
|
81
|
+
|
|
82
|
+
> Please install Skills from github.com/allanpk716/work-skills
|
|
83
|
+
|
|
84
|
+
## 可用插件
|
|
85
|
+
|
|
86
|
+
| 插件 | 描述 | 技能 |
|
|
87
|
+
| --- | --- | --- |
|
|
88
|
+
| __git-skills__ | Windows Git 工作流自动化 | windows-git-commit |
|
|
89
|
+
| __claude-notify__ | 通过 Pushover 和 Windows Toast 发送任务完成通知 | claude-notify |
|
|
90
|
+
|
|
91
|
+
## 更新技能
|
|
92
|
+
|
|
93
|
+
更新技能到最新版本:
|
|
94
|
+
|
|
95
|
+
1. 在 Claude Code 中运行 `/plugin`
|
|
96
|
+
2. 切换到 __Marketplaces__ 标签页
|
|
97
|
+
3. 选择 __work-skills__
|
|
98
|
+
4. 选择 __Update marketplace__
|
|
99
|
+
|
|
100
|
+
你也可以启用 __自动更新__ 来获取最新版本。
|
|
101
|
+
|
|
102
|
+
## 可用技能
|
|
103
|
+
|
|
104
|
+
### Git 技能
|
|
105
|
+
|
|
106
|
+
为 Windows 开发优化的 Git 工作流自动化技能,支持 PuTTY/Pageant 认证。
|
|
107
|
+
|
|
108
|
+
#### windows-git-commit
|
|
109
|
+
|
|
110
|
+
使用命令行 git 和 plink + PPK 认证的自动化 Git 提交和推送。
|
|
111
|
+
|
|
112
|
+
**特性:**
|
|
113
|
+
- 自动分析代码变更
|
|
114
|
+
- 生成描述性提交信息
|
|
115
|
+
- 使用命令行 git (无 GUI 对话框)
|
|
116
|
+
- 自动配置 PuTTY/plink SSH 认证
|
|
117
|
+
- 在子代理中运行以保留上下文
|
|
118
|
+
|
|
119
|
+
**用法:**
|
|
120
|
+
|
|
121
|
+
```bash
|
|
122
|
+
# 自动提交和推送 (推荐)
|
|
123
|
+
/windows-git-commit
|
|
124
|
+
|
|
125
|
+
# 使用自定义提交信息
|
|
126
|
+
/windows-git-commit Commit message here
|
|
127
|
+
|
|
128
|
+
# 仅提交特定文件
|
|
129
|
+
/windows-git-commit for changes in src/ and tests/
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
**前提条件:**
|
|
133
|
+
- Pageant 必须运行并加载了 PPK 密钥
|
|
134
|
+
- 必须安装 TortoiseGit 或 PuTTY
|
|
135
|
+
- 首次运行会自动配置 git 使用 TortoisePlink
|
|
136
|
+
|
|
137
|
+
**一次性配置:**
|
|
138
|
+
|
|
139
|
+
```bash
|
|
140
|
+
# 配置 git 使用 TortoisePlink (64位系统)
|
|
141
|
+
git config --global core.sshcommand "\"C:\\Program Files\\TortoiseGit\\bin\\TortoisePlink.exe\""
|
|
142
|
+
|
|
143
|
+
# 或 32位系统
|
|
144
|
+
git config --global core.sshcommand "\"C:\\Program Files (x86)\\TortoiseGit\\bin\\TortoisePlink.exe\""
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
详细故障排除请参阅技能文档。
|
|
148
|
+
|
|
149
|
+
### Claude Notify
|
|
150
|
+
|
|
151
|
+
通过 Pushover 和 Windows Toast 发送任务完成通知。
|
|
152
|
+
|
|
153
|
+
#### claude-notify
|
|
154
|
+
|
|
155
|
+
当 Claude Code 完成任务时自动发送通知。通过 Pushover 接收移动推送通知,在 Windows 系统上接收桌面 Toast 通知。
|
|
156
|
+
|
|
157
|
+
**特性:**
|
|
158
|
+
- 通过 Pushover 发送移动推送通知
|
|
159
|
+
- Windows Toast 桌面通知
|
|
160
|
+
- 使用 Claude CLI 生成 AI 驱动的任务摘要
|
|
161
|
+
- 并行执行实现即时投递
|
|
162
|
+
- 未配置 Pushover 时优雅降级
|
|
163
|
+
- 在 5 秒内完成
|
|
164
|
+
|
|
165
|
+
**用法:**
|
|
166
|
+
|
|
167
|
+
无需手动调用 - 通知在 Claude Code 任务完成时自动发送。
|
|
168
|
+
|
|
169
|
+
**前提条件:**
|
|
170
|
+
- Python 3.8 或更高版本
|
|
171
|
+
- Pushover 账号(可选,用于移动通知)
|
|
172
|
+
|
|
173
|
+
**安装配置:**
|
|
174
|
+
|
|
175
|
+
1. **配置 Pushover(可选):**
|
|
176
|
+
|
|
177
|
+
```cmd
|
|
178
|
+
# Windows 命令提示符
|
|
179
|
+
setx PUSHOVER_TOKEN "your-pushover-app-token"
|
|
180
|
+
setx PUSHOVER_USER "your-pushover-user-key"
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
2. **验证安装:**
|
|
184
|
+
|
|
185
|
+
```bash
|
|
186
|
+
python scripts/verify-installation.py
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
3. **测试:**
|
|
190
|
+
|
|
191
|
+
在 Claude Code 中完成任何任务,你应该会自动收到通知。
|
|
192
|
+
|
|
193
|
+
**不使用 Pushover:**
|
|
194
|
+
|
|
195
|
+
Windows Toast 通知无需任何配置即可工作。只需安装插件即可开始使用。
|
|
196
|
+
|
|
197
|
+
详细文档请参阅[技能文档](plugins/claude-notify/SKILL.md)。
|
|
198
|
+
|
|
199
|
+
## 项目结构
|
|
200
|
+
|
|
201
|
+
```
|
|
202
|
+
work-skills/
|
|
203
|
+
├── .claude-plugin/
|
|
204
|
+
│ └── marketplace.json # 插件市场配置
|
|
205
|
+
├── plugins/
|
|
206
|
+
│ ├── windows-git-commit/ # Git 工作流自动化插件
|
|
207
|
+
│ │ ├── commands/ # 斜杠命令
|
|
208
|
+
│ │ └── skills/ # 技能定义
|
|
209
|
+
│ └── claude-notify/ # 通知插件
|
|
210
|
+
│ ├── hooks/ # Hook 定义
|
|
211
|
+
│ ├── SKILL.md # 技能文档
|
|
212
|
+
│ └── tests/ # 测试套件
|
|
213
|
+
├── README.md # 英文说明
|
|
214
|
+
├── README.zh.md # 中文说明 (本文件)
|
|
215
|
+
└── CHANGELOG.md # 版本历史
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
## 贡献
|
|
219
|
+
|
|
220
|
+
这是个人技能集合。欢迎 fork 并根据你的需求进行调整!
|
|
221
|
+
|
|
222
|
+
## 许可证
|
|
223
|
+
|
|
224
|
+
MIT
|
|
225
|
+
|
|
226
|
+
## 致谢
|
|
227
|
+
|
|
228
|
+
项目结构和组织方式受到 [baoyu-skills](https://github.com/JimLiu/baoyu-skills) (作者 Jim Liu) 的启发。
|