git-skills

Cursor 完整 Git Skill,默认对接 Gitea:初始化、每次中文签名提交、每次远程推送,以及克隆、拉取、分支、合并、标签、暂存。作者档案与加密 Token 在本机,不进对话、不进仓库。

当前测试版本:0.2.0

文档

快速开始

powershell -NoProfile -ExecutionPolicy Bypass -File .\install.ps1

本机写入档案与 Gitea 令牌(不要在聊天里贴 Token):

$scripts = "$env:USERPROFILE\.cursor\skills\git-init\scripts"
powershell -NoProfile -ExecutionPolicy Bypass -File "$scripts\store-profile.ps1"
powershell -NoProfile -ExecutionPolicy Bypass -File "$scripts\store-token.ps1"

在项目里对 Cursor 说:

用 git-init 初始化,远程是 git@git.example.com:owner/repo.git

安全

  • Token%USERPROFILE%\.git-skills\token.dpapiDPAPI,当前用户)
  • 不 force push、不改已有 origin、不改全局 user.name / user.email
  • 不要安装到 ~\.cursor\skills-cursor\

修改 Skill 后重新运行 install.ps1

S
Description
No description provided
Readme 78 KiB
Languages
PowerShell 100%