Skip to content

chore: consolidate agent-rules ignore entries - #24

Merged
jwsung91 merged 1 commit into
mainfrom
chore/agent-rules-gitignore
Aug 8, 2026
Merged

jwsung91 merged 1 commit into
mainfrom
chore/agent-rules-gitignore

Conversation

@jwsung91

@jwsung91 jwsung91 commented Aug 8, 2026

Copy link
Copy Markdown
Owner

Summary

Regenerated by the agent-rules adoption helper. Two changes to the # agent-rules (local only) block:

  • Entrypoints get a leading slash. AGENTS.md matches at any depth in gitignore semantics, including .agents/agent-rules/AGENTS.md — the local copy that is meant to be committed. /AGENTS.md scopes it to the repository root, which is all it was ever meant to cover.
  • Skills and sync baselines collapse to directory patterns. The block previously listed one line per generated file, so it grew whenever a shared skill gained a file upstream.

Which files end up ignored does not change.

Changes

  • .gitignore — the agent-rules block only. Rules this repository wrote itself are untouched.

Validation

  • Ran: git diff reviewed — every changed line is inside the agent-rules block
  • Ran: the adoption helper confirms the generated files are still ignored after the change

Not Included

Nothing else. No repository content or build configuration is affected.

Follow-up

None.

🤖 Generated with Claude Code

https://claude.ai/code/session_01CUdsa84L95wbaavqHBBTeS

The adoption helper now writes one directory pattern per installed skill
and one for the sync baselines, instead of a line per generated file, so
this list no longer grows when a skill gains a file upstream.

Entrypoint entries also gain a leading slash. Without it gitignore matches
them at any depth, including .agents/agent-rules/AGENTS.md, which is meant
to be committed.
@jwsung91
jwsung91 merged commit a3ba891 into main Aug 8, 2026
2 checks passed
@jwsung91
jwsung91 deleted the chore/agent-rules-gitignore branch August 8, 2026 05:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant