Skip to main content

init

Initializes or optimizes git-agent configuration, regenerates commit scopes from git history, and re-derives .gitignore rules.

来源信息

仓库
FradSer/dotclaude
最近来源活动
2026年8月11日 09:08
检测到的 SKILL.md 语言
英语
星标
593
分支
50

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
init
description
Initializes or optimizes git-agent configuration, regenerates commit scopes from git history, and re-derives .gitignore rules.
user-invocable
true
argument-hint
[--scope | --gitignore]
allowed-tools
["Bash(git-agent:*)"]
## Execution Execute initialization or optimization based on `$ARGUMENTS`: 1. **Optimize commit scopes** (regenerate from history): ```bash git-agent init --scope --force ``` 2. **Re-derive `.gitignore`** (preserve custom rules): ```bash git-agent init --gitignore ``` 3. **Full initialization** (both scopes and `.gitignore`): ```bash git-agent init --scope --gitignore ``` Report the updated configuration status upon completion. CLI Reference: `../../references/cli.md`
在 GitHub 查看