AgentStack
SKILL verified MIT Self-run

Gitsetup

skill-lightpointventures-claude-code-starter-gitsetup · by lightpointventures

当用户想初始化 Git、配置 .gitignore、创建 GitHub 仓库、首次推送代码时使用 — 从零配置 Git 到推送 GitHub

No reviews yet
0 installs
15 views
0.0% view→install

Install

$ agentstack add skill-lightpointventures-claude-code-starter-gitsetup

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets Used
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

Are you the author of Gitsetup? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

配置 Git 仓库

帮用户从零配置 Git,一直到推送到 GitHub。

步骤

1. 检查当前状态

检查项目是否已经初始化 Git:

  • 已初始化 → 跳到第 3 步
  • 未初始化 → 从第 2 步开始

2. 初始化 Git

  • 运行 git init
  • 创建初始分支 main

3. 生成 .gitignore

根据检测到的技术栈生成 .gitignore:

  • 通用 — .DSStore、.env、nodemodules、__pycache__、*.log
  • 前端 — dist、build、.next、.nuxt
  • Python — venv、.venv、*.pyc、.pytest_cache
  • IDE — .vscode、.idea

如果已有 .gitignore,检查是否有遗漏并补充。

4. 创建 GitHub 仓库(可选)

> 要创建 GitHub 仓库并推送吗?

如果用户同意:

  • gh repo create 创建私有仓库
  • 设置 remote
  • 初始提交并推送

注意:默认创建私有仓库。如果用户想要公开,需要明确确认。

5. 完成

> Git 配置完成。 > (展示仓库地址,如果创建了 GitHub 仓库) > 用 /commit 提交代码,用 /deploy 部署上线。

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.