Skip to content

fix(gemini): drop redundant .gemini/skills copy#155

Closed
mpkrass7 wants to merge 2 commits intomainfrom
mpkrass7/remove-gemini-skill-copy
Closed

fix(gemini): drop redundant .gemini/skills copy#155
mpkrass7 wants to merge 2 commits intomainfrom
mpkrass7/remove-gemini-skill-copy

Conversation

@mpkrass7
Copy link
Copy Markdown
Collaborator

Summary

Changes

  • Removed step 5 from setup_gemini.py (the shutil.rmtree + copytree block targeting .gemini/skills).
  • Dropped the now-unused import shutil.
  • Renumbered the next step from # 6. to # 5..

No changes to setup_codex.py — Codex still owns .agents/skills/, and Gemini reads from that same path. One source of truth, no clobbering.

Test plan

  • Deploy and confirm gemini CLI starts and resolves skills from .agents/skills/.
  • Confirm codex CLI still resolves skills from .agents/skills/ (unchanged behavior).
  • Confirm no leftover .gemini/skills/ directory is created on a clean app deploy.

This pull request and its description were written by Isaac.

PR #150 added a step in setup_codex.py that wipes ~/.agents/skills/ via
shutil.rmtree then re-populates it from .claude/skills. Gemini also
discovers skills under .agents/, so this nukes Gemini's skills on every
codex setup run.

Drop step 5 entirely and remove the now-unused .agents/ entry from
.gitignore. Gemini's existing skill discovery path is left alone; codex
falls back to its other lookup mechanisms.

Co-authored-by: Isaac
Gemini CLI already discovers skills from .agents/, which setup_codex.py
populates from .claude/skills. Copying them again into .gemini/skills
created a second source of truth that drifted on every codex setup run
and showed up as Gemini's skills being clobbered.

Remove step 5 from setup_gemini.py and drop the now-unused shutil
import. Skill discovery for Gemini continues to work via the shared
.agents/ path.

Co-authored-by: Isaac
@mpkrass7 mpkrass7 closed this Apr 30, 2026
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