Skip to content

feat(config-sync): exclude Spec Kit and gitignored paths in dprint and yamlfmt #511

Closed

Description

@DevSecNinja

Problem

The synced dprint.json and .yamlfmt.yaml do not exclude Spec Kit output, so repos that use Spec Kit fail lint / dprint and lint / yamlfmt after a sync:

Fleet scan (2026-11-16): .specify/ exists in 15 repos and .github/skills/ in 18. net-worth-calculator and note-iq already ignore both files or carry the same excludes locally. The central dprint.json already excludes other agent folders (.agents/**, .claude/**, .github/prompts/** and so on) but not .github/skills/**.

yamlfmt does not honour .gitignore by default, so home-assistant-ovapi also lists .venv/** and .venv-minimum/** locally. dprint already honours .gitignore, so its .venv excludes are redundant.

Proposed solution

  • config-sync/files/dprint.json: add .specify/** and .github/skills/** to excludes.
  • config-sync/files/.yamlfmt.yaml: add .specify/** to exclude and set gitignore_excludes: true.
  • Verify gitignore_excludes also applies when shared-lint passes files from find (.github/workflows/lint.yml), otherwise add .venv*/** explicitly.
  • Not breaking: only excludes more generated files.

After this lands, DevSecNinja/home-assistant-ovapi#61 should pass dprint and yamlfmt without local entries. Effort: XS.

Alternatives considered

  • Marker-delimited local blocks in the synced files: not needed once the common excludes are central.
  • Whole-file ignore per repo: works but loses future central changes. Kept only for repo-specific cases (see the cleanup issue).

Source: config-sync local overrides study (2026-11-16). Related: #508.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions