# gudastudio/skills architecture

> Architecture diagram of the GitHub repository gudastudio/skills, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-07-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/gudastudio/skills
- Repository: https://github.com/gudastudio/skills

## Overview

#### Purpose and Distribution Model
This repository is a meta-repository for Claude Code Agent Skills that delegate coding work to external model CLIs. The actual skill implementations are Git submodules, while this root provides installation and discovery. Core paths: `collaborating-with-codex`, `collaborating-with-gemini`, `.gitmodules`.

#### Entry Points
Cross-platform installers are the operational entry points:
- `install.sh`: Linux/macOS command-line installation.
- `install.ps1`: Windows PowerShell installation.
They enumerate/select skills and install them into user (`~/.claude/skills/`), project (`./.claude/skills/`), or caller-specified target directories.

#### Skill Package Boundary
Each submodule is an independently versioned Skill package, expected to contain Claude-compatible metadata/instructions and executable bridge resources:
- `collaborating-with-codex`
- `collaborating-with-gemini`
The root does not contain the bridge code in the supplied tree; submodule initialization (`git clone --recurse-submodules`) is therefore required before installation or use.

#### Installation Flow
1. User invokes the platform installer (`install.sh` or `install.ps1`).
2. Installer lists available submodule-backed skills or selects all/named skills.
3. Installer copies or deploys selected packages to the resolved Claude Skills target.
4. Claude Code discovers the deployed packages and loads relevant skills on demand.

The key boundary is deployment only: installers arrange filesystem-based Skill availability but do not themselves orchestrate model calls.

#### Runtime and External Dependencies
The installation scripts require a shell runtime (Bash or PowerShell). Skill bridge execution requires Python 3.8+ and Claude Code v2.0.56+. Delegated execution depends on separately installed external services/CLIs:
- OpenAI Codex CLI via `collaborating-with-codex`
- Google Gemini CLI via `collaborating-with-gemini`

#### Delegation and Session Control
Once loaded by Claude Code, each skill accepts a project directory and prompt, invokes its designated external CLI, and returns a normalized JSON-style result containing success state, response messages, and optional `SESSION_ID`. Session IDs establish continuation boundaries for multi-turn model collaboration. The recommended safety boundary is read-only external execution and requesting unified-diff output rather than allowing direct workspace modification.

#### Documentation and Maintenance
Root documentation defines installation, supported targets, and collaboration conventions; the English counterpart is maintained separately:
- `README.md`
- `docs/README_EN.md`
- `.github/ISSUE_TEMPLATE/bug_report.md`
- `.github/ISSUE_TEMPLATE/feature-request.md`

The repository is MIT-licensed (`LICENSE`) and uses Git submodules as the mechanism for independently evolving skill implementations.

Main entry points: [`install.sh`](https://github.com/gudastudio/skills/blob/main/install.sh) (Bash installer), [`install.ps1`](https://github.com/gudastudio/skills/blob/main/install.ps1) (PowerShell installer), [`collaborating-with-codex`](https://github.com/gudastudio/skills/tree/main/collaborating-with-codex) (Codex skill submodule), [`collaborating-with-gemini`](https://github.com/gudastudio/skills/tree/main/collaborating-with-gemini) (Gemini skill submodule)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_distribution["Distribution"]
  node_gitmodules["Submodule manifest<br/>Git metadata<br/>[.gitmodules]"]
  node_codex_source["Codex skill submodule<br/>Skill package"]
  node_gemini_source["Gemini skill submodule<br/>Skill package"]
  node_bash_installer{{"Bash installer<br/>[install.sh]"}}
  node_powershell_installer{{"PowerShell installer<br/>[install.ps1]"}}
  node_skills_target[("Claude Skills target<br/>Filesystem deployment")]
end

subgraph group_runtime["Claude Runtime"]
  node_claude_code["Claude Code<br/>Host runtime"]
  node_codex_bridge["Codex bridge<br/>Skill runtime"]
  node_gemini_bridge["Gemini bridge<br/>Skill runtime"]
  node_session_result["Normalized result<br/>JSON-style result"]
end

subgraph group_external["External Models"]
  node_codex_cli["OpenAI Codex CLI<br/>External CLI"]
  node_gemini_cli["Google Gemini CLI<br/>External CLI"]
end

subgraph group_maintenance["Documentation &amp; Maintenance"]
  node_root_readme["Root documentation<br/>README<br/>[README.md]"]
  node_english_readme["English documentation<br/>README<br/>[README_EN.md]"]
  node_issue_templates["Issue templates<br/>Maintenance workflow<br/>[bug_report.md]"]
  node_license["MIT license"]
end

node_gitmodules -->|"tracks"| node_codex_source
node_gitmodules -->|"tracks"| node_gemini_source
node_bash_installer -->|"selects"| node_codex_source
node_bash_installer -->|"selects"| node_gemini_source
node_powershell_installer -->|"selects"| node_codex_source
node_powershell_installer -->|"selects"| node_gemini_source
node_bash_installer -->|"deploys selected skills"| node_skills_target
node_powershell_installer -->|"deploys selected skills"| node_skills_target
node_skills_target -->|"is discovered by"| node_claude_code
node_claude_code -->|"loads on demand"| node_codex_bridge
node_claude_code -->|"loads on demand"| node_gemini_bridge
node_codex_bridge -->|"invokes"| node_codex_cli
node_gemini_bridge -->|"invokes"| node_gemini_cli
node_codex_bridge -->|"returns"| node_session_result
node_gemini_bridge -->|"returns"| node_session_result
node_root_readme -.->|"has English counterpart"| node_english_readme
node_issue_templates -.->|"supports maintenance"| node_root_readme

click node_gitmodules "https://github.com/gudastudio/skills/blob/main/.gitmodules"
click node_codex_source "https://github.com/gudastudio/skills/tree/main/collaborating-with-codex"
click node_gemini_source "https://github.com/gudastudio/skills/tree/main/collaborating-with-gemini"
click node_bash_installer "https://github.com/gudastudio/skills/blob/main/install.sh"
click node_powershell_installer "https://github.com/gudastudio/skills/blob/main/install.ps1"
click node_root_readme "https://github.com/gudastudio/skills/blob/main/README.md"
click node_english_readme "https://github.com/gudastudio/skills/blob/main/docs/README_EN.md"
click node_issue_templates "https://github.com/gudastudio/skills/blob/main/.github/ISSUE_TEMPLATE/bug_report.md"
click node_license "https://github.com/gudastudio/skills/tree/main/LICENSE"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_gitmodules,node_codex_source,node_gemini_source,node_bash_installer,node_powershell_installer,node_skills_target toneBlue
class node_claude_code,node_codex_bridge,node_gemini_bridge,node_session_result toneAmber
class node_codex_cli,node_gemini_cli toneMint
class node_root_readme,node_english_readme,node_issue_templates,node_license toneRose
```

## Components

### Distribution

Root repository installs independently versioned skill submodules.

- [Submodule manifest](https://github.com/gudastudio/skills/blob/main/.gitmodules): Git metadata · Pins the skill package repositories. · `.gitmodules`
- [Codex skill submodule](https://github.com/gudastudio/skills/tree/main/collaborating-with-codex): Skill package · Independently versioned Claude skill for Codex delegation. · `collaborating-with-codex`
- [Gemini skill submodule](https://github.com/gudastudio/skills/tree/main/collaborating-with-gemini): Skill package · Independently versioned Claude skill for Gemini delegation. · `collaborating-with-gemini`
- [Bash installer](https://github.com/gudastudio/skills/blob/main/install.sh): Installer · Linux/macOS installation entry point. · `install.sh`
- [PowerShell installer](https://github.com/gudastudio/skills/blob/main/install.ps1): Installer · Windows installation entry point. · `install.ps1`
- **Claude Skills target**: Filesystem deployment · User, project, or caller-selected skills directory.

### Claude Runtime

Claude Code discovers deployed skills and delegates through them.

- **Claude Code**: Host runtime · Requires v2.0.56+ and loads deployed skills on demand.
- **Codex bridge**: Skill runtime · Accepts a project and prompt, then normalizes CLI results.
- **Gemini bridge**: Skill runtime · Accepts a project and prompt, then normalizes CLI results.
- **Normalized result**: JSON-style result · Returns success, messages, and optional SESSION_ID for continuation.

### External Models

External CLIs execute delegated model work.

- **OpenAI Codex CLI**: External CLI · Separately installed delegated coding runtime.
- **Google Gemini CLI**: External CLI · Separately installed delegated coding runtime.

### Documentation & Maintenance

- [Root documentation](https://github.com/gudastudio/skills/blob/main/README.md): README · Defines installation, targets, and collaboration conventions. · `README.md`
- [English documentation](https://github.com/gudastudio/skills/blob/main/docs/README_EN.md): README · Separately maintained English counterpart. · `docs/README_EN.md`
- [Issue templates](https://github.com/gudastudio/skills/blob/main/.github/ISSUE_TEMPLATE/bug_report.md): Maintenance workflow · Bug and feature intake templates. · `.github/ISSUE_TEMPLATE/bug_report.md`
- [MIT license](https://github.com/gudastudio/skills/tree/main/LICENSE): License · `LICENSE`

## Connections

- Submodule manifest → Codex skill submodule: tracks
- Submodule manifest → Gemini skill submodule: tracks
- Bash installer → Codex skill submodule: selects · Requires initialized submodules.
- Bash installer → Gemini skill submodule: selects · Requires initialized submodules.
- PowerShell installer → Codex skill submodule: selects · Requires initialized submodules.
- PowerShell installer → Gemini skill submodule: selects · Requires initialized submodules.
- Bash installer → Claude Skills target: deploys selected skills
- PowerShell installer → Claude Skills target: deploys selected skills
- Claude Skills target → Claude Code: is discovered by
- Claude Code → Codex bridge: loads on demand
- Claude Code → Gemini bridge: loads on demand
- Codex bridge → OpenAI Codex CLI: invokes · Python 3.8+ bridge execution.
- Gemini bridge → Google Gemini CLI: invokes · Python 3.8+ bridge execution.
- Codex bridge → Normalized result: returns
- Gemini bridge → Normalized result: returns
- Root documentation → English documentation: has English counterpart
- Issue templates → Root documentation: supports maintenance
