返回 Skill 列表
extension
分类: 开发与工程无需 API Key

update-gitignore

使用Toptal gitignore API并根据操作系统和语言检测来创建或更新.gitignore文件。在初始化新项目、向现有项目添加新技术或更新特定于操作系统的文件的忽略规则时使用。

person作者: jakexiaohubgithub

Workflow Execution

Launch a general-purpose agent that executes all 3 phases in a single task.

Prompt template:

Execute the complete update-gitignore workflow (3 phases).

## Phase 1: Technology Detection
**Goal**: Identify operating systems and technologies to include in .gitignore

**Actions**:
1. Detect operating systems and technologies from context
2. Combine detected platforms with $ARGUMENTS into the generator request (e.g. `<os>,<language>,<tool>`)

## Phase 2: Generate or Update .gitignore
**Goal**: Create or update .gitignore file using Toptal API

**Actions**:
1. Generate or update `.gitignore` using the Toptal API
2. Preserve existing custom sections when updating `.gitignore`
3. Retain all custom rules from existing file

## Phase 3: Confirmation
**Goal**: Present changes for user review

**Actions**:
1. Show the repository changes (diff) to confirm the update
2. Present the resulting diff for user confirmation

Execute: Launch a general-purpose agent using the prompt template above