mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-06-21 16:57:08 -07:00
2.0 KiB
2.0 KiB
Workspace: Base Folder Strategy & Custom Skills
This branch introduces the _ux_git-worktree and _ux_finish-pr skills and enforces the Base Folder Strategy for repository management. It is maintained by the AI DevTools UX team.
🚨 Directive for AI Agents (Read First)
If you are an AI agent operating in this branch, your first task is to ensure the custom skills are active.
- Check if
~/.gemini/skills/_ux_git-worktree/and~/.gemini/skills/_ux_finish-pr/exist. - If any are missing, immediately execute
./scripts/sync-skills.sh. - Prompt the user to run
/skills reloadif you are in an interactive session.
🤝 Team Contributions
This is a Draft PR branch. Your team is encouraged to:
- Refine the
_ux_git-worktreeskill instructions inpackages/core/src/skills/builtin/_ux_git-worktree/SKILL.md. - Refine the
_ux_finish-prskill instructions inpackages/core/src/skills/builtin/_ux_finish-pr/SKILL.md. - Improve the automation in
scripts/worktree-manager.sh. - All changes should be committed directly to this branch
(
feature/gemini-cli-ux-team-skills).
1. Architectural Strategy
Functional work happens in sibling directories (e.g., main/, feature-name/).
The root directory acts as a container.
2. Setting Up Custom Skills
To ensure this agent has the necessary procedural knowledge to manage worktrees and PR reviews on your behalf, you must sync the custom skills to your local user directory.
Sync Script
Run the following from the root of this worktree:
./scripts/sync-skills.sh
3. Mandatory Workflow
- ALWAYS use the
_ux_git-worktreeskill for branch management. - ALWAYS use the
_ux_finish-prskill for pull request maintenance. - Never use standard
git checkout -b. - Use
worktree-manager.sh pr <number>for semantic PR checkouts. - When operating in a worktree, ensure the primary
main/.gitpath is included in your trusted directories to bypass macOS sandbox restrictions.