OpenClaw · Skill

Gitignore Sync

Generate high-confidence .gitignore rules from real repo signals and gitignore.io, then update safely via a managed block so manual rules stay untouched.

Coding Agents & IDEs
v0.1.3
VirusTotal: Suspicious

Install

Start with the primary install command. Alternate entrypoints are included below for ClawHub and OpenClaw CLI users.

Primary command

clawhub install nikita-holban/gitignore-sync

ClawHub installer

npx clawhub@latest install nikita-holban/gitignore-sync

OpenClaw CLI

openclaw skills install nikita-holban/gitignore-sync

Direct OpenClaw install

openclaw install nikita-holban/gitignore-sync

What this skill does

Generate high-confidence .gitignore rules from real repo signals and gitignore.io, then update safely via a managed block so manual rules stay untouched.

Why it matters

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

Typical use cases

  • 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

Source instructions

Gitignore Sync

Generate high-confidence .gitignore rules from real repo signals and gitignore.io, then update safely via a managed block so manual rules stay untouched.

Execution Rule

Use scripts/update_gitignore.py as the only execution path. Do not fetch from the API directly in ad-hoc commands. Do not manually compose or rewrite .gitignore when this skill is selected.

Workflow

  1. Infer requested templates from the user prompt.
  2. Detect likely templates from repository files and folders.
  3. Run scripts/update_gitignore.py with --prompt-text and/or --services.
  4. Let the script fetch combined template rules from https://www.toptal.com/developers/gitignore/api/<templates>.
  5. Let the script write or update a managed block in .gitignore.
  6. Preserve non-managed user sections in .gitignore.

Run

From the target repository root, run:

python3 <skill-path>/scripts/update_gitignore.py \
  --prompt-text "create .gitignore for flutter firebase vscode" \
  --repo .

Use explicit templates when the user names exact services:

python3 <skill-path>/scripts/update_gitignore.py \
  --services flutter,firebase,visualstudiocode \
  --repo .

Notes

  • Prefer passing both --prompt-text and --services when available.
  • Keep manual custom rules outside the managed block markers.
  • Re-run safely; the script replaces only the managed block.
  • Use --rules-file for offline/local testing when network access is blocked.

Related OpenClaw skills

Browse all →
Featured slot

Your product here

Reserve this slot to reach operators and coding-agent buyers.

Shown where builders are actively comparing tools and deployment options.

Advertise