### Check once

Perform these check once, to make sure about the git logic. There is no need to keep running this on every execution.

**Detection & Creation Logic**:

- Check if the following command succeeds to determine if the repository is a git repo (create/verify .gitignore if so):

  ```sh
  git rev-parse --git-dir 2>/dev/null
  ```

- Check if Dockerfile\* exists or Docker in plan.md → create/verify .dockerignore
- Check if .eslintrc* or eslint.config.* exists → create/verify .eslintignore
- Check if .prettierrc\* exists → create/verify .prettierignore
- Check if .npmrc or package.json exists → create/verify .npmignore (if publishing)
- Check if terraform files (\*.tf) exist → create/verify .terraformignore
- Check if .helmignore needed (helm charts present) → create/verify .helmignore

**If ignore file already exists**: Verify it contains essential patterns, append missing critical patterns only
**If ignore file missing**: Create with full pattern set for detected technology
