common
Shared utilities for Gemini-based skills including API key management, Vertex AI configuration, and client helpers. Use as dependency for skills requiring Gemini API access.
npx skills add majiayu000/claude-skill-registry --skill common --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Common Skill Utilities Thư viện dùng chung cho các skills sử dụng Gemini API. ## Capabilities - **API Key Management** (quản lý API key) – Tự động tìm `GEMINI_API_KEY` từ nhiều nguồn - **Vertex AI Support** (hỗ trợ Vertex AI) – Chuyển đổi giữa AI Studio và Vertex AI - **Client Helpers** (trợ giúp client) – Tự động khởi tạo client phù hợp ## Usage ```python import sys from pathlib import Path # Thêm common directory vào path common_dir = Path(__file__).parent.parent.parent / 'common' sys.path.insert(0, str(common_dir)) from api_key_helper import get_api_key_or_exit, get_client, get_vertex_config # Lấy API key api_key = get_api_key_or_exit() # Hoặc lấy client tự động client_info = get_client() ``` ## API Key Lookup Order 1. Process environment variable (`GEMINI_API_KEY`) 2. Project root `.env` file 3. `.claude/.env` file 4. `.claude/skills/.env` file 5. Skill directory `.env` file ## Vertex AI Configuration ```bash export GEMINI_USE_VERTEX=true export VERTEX_PROJECT_ID=your-gcp-project-id export VERTEX_LOCATION=us-central1 ``` ## Files - `api_key_helper.py` – Main utility module - `README.md` – Detailed documentation
- Capabilities
- Usage
- API Key Lookup Order
- Vertex AI Configuration
- Files
export GEMINI_USE_VERTEX=true export VERTEX_PROJECT_ID=your-gcp-project-id export VERTEX_LOCATION=us-central1
What does the common skill do?
Shared utilities for Gemini-based skills including API key management, Vertex AI configuration, and client helpers. Use as dependency for skills requiring Gemini API access.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill common --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
