Bỏ qua tới nội dung
TakoAPI
Quay lại kỹ năng

gitignore-sync

bởi nikita-holban

Coding Agents & IDEs
463Lượt tải do clawskills.sh công bố
0Lượt xem
0 lượt thíchĐăng nhập để thích kỹ năng này
—Chưa có đánh giá
Đánh giá của bạn

Tóm tắt

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

Mô tả

Kỹ năng này làm gì

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.

Khi nào nên dùng

  • 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

Quy trình ví dụ

ĐẦU VÀO

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

AGENT
  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

ĐẦU RA

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

Cài đặt

clawhub install nikita-holban/gitignore-sync

Chạy lệnh CLI, hoặc dán prompt vào Claude Code, Cursor, Codex hay coding agent bạn đang dùng.

Liên kết