跳到正文
TakoAPI
返回技能列表

gitignore-sync

由 nikita-holban 提供

Coding Agents & IDEs
463下载量由 clawskills.sh 提供
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Context-aware .gitignore generation backed by gitignore.io, not vibes.

描述

该技能的功能

Generates .gitignore rules by detecting templates from repository context and fetching patterns from gitignore.io. Updates only a managed block in the existing .gitignore, leaving manually written rules untouched. Re-running is safe and idempotent.

Using gitignore.io templates via a managed block prevents both hand-rolling incomplete rules and accidentally clobbering custom entries on re-runs.

何时使用

  • Setting up .gitignore for a new Flutter + Firebase project
  • Updating an existing repo's .gitignore after adding a new tool like VS Code
  • Regenerating ignore rules without overwriting custom project-specific entries
  • Bootstrapping .gitignore in a monorepo with mixed language environments
  • Syncing .gitignore patterns when switching CI or adding Docker to a project

示例工作流

输入

User asks: generate a .gitignore for a Flutter Firebase project with VS Code

智能体
  1. 1

    Infer templates: flutter, firebase, visualstudiocode from the user prompt

  2. 2

    Scan repository files and folders to confirm or add detected templates

  3. 3

    Run scripts/update_gitignore.py with --prompt-text and --services flags pointing to the repo root

  4. 4

    Script fetches combined rules from toptal.com/developers/gitignore/api/flutter,firebase,visualstudiocode

  5. 5

    Script writes the fetched rules into the managed block in .gitignore, preserving any existing custom rules outside the block

输出

.gitignore updated with accurate Flutter, Firebase, and VS Code patterns inside the managed block; custom rules untouched

安装

clawhub install nikita-holban/gitignore-sync

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接