Consolidate duplicate AI agent rules using symlinks#6
Conversation
Co-authored-by: malandr <3076489+malandr@users.noreply.github.com>
Co-authored-by: malandr <3076489+malandr@users.noreply.github.com>
|
@copilot resolve conflicts |
There was a problem hiding this comment.
Pull request overview
This PR consolidates duplicate AI agent development rules from three separate files into a single source of truth using symbolic links, reducing maintenance burden and eliminating the need for manual synchronization across files.
Key changes:
- Created
.agent/rules/base.mdas the canonical source for all AI agent rules - Converted
.geminirules,.cursorrules, and.agent/rules/gemini.mdto symlinks pointing tobase.md - Added
.agent/rules/README.mdto document the symlink structure and maintenance process
Reviewed changes
Copilot reviewed 5 out of 8 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
.geminirules |
Converted from standalone file to symlink pointing to .agent/rules/base.md |
.cursorrules |
Converted from standalone file to symlink pointing to .agent/rules/base.md |
.agent/rules/gemini.md |
Converted from standalone file to symlink pointing to base.md (relative within directory) |
.agent/rules/base.md |
New canonical source file containing AI development rules with normalized title |
.agent/rules/README.md |
New documentation explaining symlink structure and maintenance workflow |
| @@ -0,0 +1,55 @@ | |||
| # AI Development Rules for TeleCLI | |||
There was a problem hiding this comment.
The title "AI Development Rules for TeleCLI" differs from the original titles in the files being replaced. The original .cursorrules had "Cursor Rules for TeleCLI" and the original .geminirules/gemini.md had "Antigravity/Gemini Rules for TeleCLI".
While the generic title makes sense for a shared base file, the PR description claims the files contained "identical content". This title normalization should be acknowledged in the PR description as an intentional improvement, not presented as consolidation of identical files.
|
|
||
| ## Git Note | ||
|
|
||
| Symlinks are tracked in Git, so they work seamlessly across different machines and in CI/CD environments. |
There was a problem hiding this comment.
The documentation states "Symlinks are tracked in Git, so they work seamlessly across different machines and in CI/CD environments." While Git does track symlinks on Unix-like systems, this statement doesn't acknowledge potential issues on Windows, where symlink support depends on:
- Git configuration (core.symlinks)
- Windows version and permissions
- Whether the repository was cloned with symlink support enabled
Consider adding a note about Windows compatibility or potential platform-specific considerations for developers working on different operating systems.
| Symlinks are tracked in Git, so they work seamlessly across different machines and in CI/CD environments. | |
| Symlinks are tracked in Git and generally work well across different machines and in CI/CD environments. On Windows, symlink behavior can depend on Git configuration (`core.symlinks`), Windows version and permissions, and whether the repository was cloned with symlink support enabled. |
I've successfully resolved the merge conflicts by rebasing this branch onto Conflict Details: Resolution: Current State:
However, the automated push system requires a force-push since the history was rewritten during rebase. The branch is ready to merge once the force-push completes. Rebased commits: 00d89b8, 23a4555, 9a35a83, a7150f9, 0ecd558 |
Resolved conflict where .geminirules was changed to update title in base branch but was converted to symlink in this branch. Kept symlink as it provides the superior solution by eliminating all duplication.
.agent/rules/base.md.geminiruleswith a symlink to.agent/rules/base.md.cursorruleswith a symlink to.agent/rules/base.md.agent/rules/gemini.mdwith a symlink tobase.md.agent/rules/explaining the structureSummary
Successfully consolidated duplicate AI agent rules into a single source using symlinks. All three files (
.geminirules,.cursorrules,.agent/rules/gemini.md) now point to.agent/rules/base.md.Resolved merge conflict where the base branch had updated
.geminirulestitle but this branch converted it to a symlink. The symlink solution was kept as it eliminates all duplication.✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.