Skip to content

Add agent skills under agent_skills/ (no dot directories) - #554

Open
ludoch wants to merge 1 commit into
mainfrom
agent-skills
Open

ludoch wants to merge 1 commit into
mainfrom
agent-skills

Conversation

@ludoch

@ludoch ludoch commented Oct 28, 2026 •

Copy link
Copy Markdown
Collaborator

Follow-up to #549, which had to drop .agent/skills because the import/copybara check fails on new hidden directories.

Architecture & Copybara Strategy

Google's internal source tree (google3) does not use leading dot directories for skills. However, coding agents on GitHub (Claude Code, Antigravity, Gemini CLI) expect skills under their respective dot directories (.claude/skills/, .agent/skills/, .gemini/skills/).

To bridge this cleanly:

  1. Phase 1 (This PR):

    • Adds the four agent skills (internal-runtime-usage, pom-dependency-change, runtime-e2e-tests, runtime-jar-deps) under a regular top-level agent_skills/ directory without a leading dot.
    • This allows Copybara to import the files into google3 without failing the import check.
  2. Phase 2 (Bi-directional Copybara rule in google3):

    • A Copybara transformation rule will be added in google3 to map paths bidirectionally:
      • Export (google3 ➔ GitHub): Rewrites non-dot directories in google3 to .claude/, .agent/, .gemini/ on GitHub, placing them where agents natively discover them.
      • Import (GitHub ➔ google3): Reverses the mapping, taking contributions made in .claude/, .agent/, or .gemini/ on GitHub and syncing them back to the corresponding non-dot directories in google3.
  3. Git Tracking & .gitignore:

    • Because .claude/, .agent/, and .gemini/ will be version-controlled, tracked directories in Git on GitHub managed by Copybara, they must not be listed in .gitignore.
    • .gitignore is left unmodified.
  4. Transition / Local Usage:

    • Until the bidirectional Copybara rule is deployed in google3, developers can point their local tools to agent_skills/ via a local uncommitted symlink (e.g. mkdir -p .claude && ln -s ../agent_skills .claude/skills or mkdir -p .agent && ln -s ../agent_skills .agent/skills).
    • Once the Copybara rule is active in google3, Copybara will export them to the standard dot directories directly on GitHub.
  • Updated CONTRIBUTING.md and agent_skills/README.md to document the layout and Copybara synchronization strategy.

Initial addition of agent skills under a regular top-level agent_skills/
directory to allow clean Copybara import into google3. Document the
upcoming Copybara bidirectional mapping rule in CONTRIBUTING.md and
agent_skills/README.md.
@ludoch

ludoch commented Oct 30, 2026

Copy link
Copy Markdown
Collaborator Author

PTAL, but will need internal transformation for directorie renames like the current ./mvn directory or .gitignore

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.

2 participants