google-agents-cli-scaffold
Project scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.
container-use-guide
container-useを使用したクローズドな開発・テスト環境の構築手順、並行作業ガイドライン、技術スタック別設定例を提供
Full skill instructions
container-useを使用したクローズドな開発・テスト環境の構築手順です。
container-useは、Dockerコンテナ内で開発・テストを行うためのツール群です。
メリット:
実装作業は原則としてcontainer-use環境で行うこと。ホスト環境での直接実装は禁止。
例外については implement-issues.md の「プラットフォーム固有コード」セクションを参照。
複数のIssueを同時に処理する場合、ホスト環境では以下の問題が発生します:
| 問題 | 影響 |
|---|---|
| ブランチ切り替え | 未コミット変更の退避が必要 |
| 依存関係の競合 | lockファイルの変更がぶつかる |
| ビルドキャッシュ | 異なるブランチの成果物が混在 |
| 作業状態の保持 | 中断時に状態を失う |
┌─────────────────────────────────────────────────────┐
│ ホスト環境 (読み取り専用) │
│ - gh issue/pr 操作のみ許可 │
│ - ファイル編集禁止 │
└─────────────────────────────────────────────────────┘
│ │
▼ ▼
┌─────────────────┐ ┌─────────────────┐
│ 環境A (Issue#42)│ │ 環境B (Issue#43)│
│ env_id: abc-123 │ │ env_id: def-456 │
│ │ │ │
│ ブランチ: │ │ ブランチ: │
│ feature/42-auth │ │ feature/43-pay │
│ │ │ │
│ 状態: active │ │ 状態: active │
└─────────────────┘ └─────────────────┘
│ │
▼ ▼
独立した作業 独立した作業
(競合なし) (競合なし)
| ルール | 説明 |
|---|---|
| 1 Issue = 1 環境 | 必ずIssueごとに環境を作成 |
| 環境IDを記録 | GitHub Issue のメタデータで追跡 |
| 作業再開時は既存環境を使用 | 毎回新規作成しない |
| PRマージ後に環境削除 | リソース節約 |
container-use環境はLinuxコンテナのため、macOS/Windows固有APIはコンテナ内でビルド/テスト不可です。
詳細: プラットフォーム例外ポリシー を参照
flowchart LR
LIST[環境一覧確認] --> EXISTS{既存環境?}
EXISTS -->|あり| OPEN[環境を開く]
EXISTS -->|なし| CREATE[環境を作成]
CREATE --> CONFIG[環境設定]
CONFIG --> SERVICE{サービス必要?}
OPEN --> SERVICE
SERVICE -->|はい| ADD[サービス追加]
SERVICE -->|いいえ| WORK
ADD --> WORK[作業開始]
| ツール | 用途 |
|---|---|
container-use_environment_list | 既存環境の一覧取得 |
container-use_environment_create | 新規環境の作成 |
container-use_environment_open | 既存環境を開く |
container-use_environment_config | 環境設定 (base image, setup commands) |
container-use_environment_add_service | サービス追加 (DB, Redis等) |
container-use_environment_run_cmd | コマンド実行 |
container-use_environment_file_read | ファイル読み取り |
container-use_environment_file_write | ファイル書き込み |
container-use_environment_file_edit | ファイル編集 |
container-use_environment_file_list | ディレクトリ一覧 |
container-use_environment_checkpoint | 環境のスナップショット保存 |
container-use_environment_list(
environment_source="/path/to/repo",
explanation="Check existing environments for this project"
)
result = container-use_environment_create(
environment_source="/path/to/repo",
title="Issue #123 - User Authentication Feature",
explanation="Create dev environment for auth feature"
)
env_id = result.environment_id
container-use_environment_open(
environment_source="/path/to/repo",
environment_id="existing-env-id",
explanation="Reopen existing environment"
)
プロジェクトの技術スタックに応じて設定:
container-use_environment_config(
environment_source="/path/to/repo",
environment_id=env_id,
config={
"base_image": "node:20-slim",
"setup_commands": [
"npm ci",
"npm run build"
],
"envs": [
"NODE_ENV=test",
"LOG_LEVEL=debug"
]
},
explanation="Configure Node.js environment with dependencies"
)
詳細な設定例: {{skill:tech-stack-configs}} を参照
| サービス | image | ポート |
|---|---|---|
| PostgreSQL | postgres:15-alpine | 5432 |
| MySQL | mysql:8 | 3306 |
| Redis | redis:7-alpine | 6379 |
container-use_environment_add_service(
environment_source="/path/to/repo",
environment_id=env_id,
name="postgres", # サービス名 = ホスト名
image="postgres:15-alpine",
envs=["POSTGRES_USER=app", "POSTGRES_PASSWORD=password", "POSTGRES_DB=testdb"],
ports=[5432],
explanation="Add PostgreSQL for database tests"
)
container-use_environment_run_cmd(
environment_source="/path/to/repo",
environment_id=env_id,
command="npm test",
explanation="Run test suite"
)
container-use_environment_run_cmd(
environment_source="/path/to/repo",
environment_id=env_id,
command="npm run dev",
background=True,
ports=[3000],
explanation="Start dev server in background"
)
container-use_environment_run_cmd(
environment_source="/path/to/repo",
environment_id=env_id,
command="source .env && npm test",
shell="bash",
explanation="Run with bash to source env file"
)
container-use_environment_file_read(
environment_source="/path/to/repo",
environment_id=env_id,
target_file="src/index.ts",
should_read_entire_file=True,
explanation="Read source file"
)
container-use_environment_file_write(
environment_source="/path/to/repo",
environment_id=env_id,
target_file="src/feature.ts",
contents="export const feature = () => { ... }",
explanation="Write new feature file"
)
container-use_environment_file_edit(
environment_source="/path/to/repo",
environment_id=env_id,
target_file="src/index.ts",
search_text="old code",
replace_text="new code",
explanation="Update import statement"
)
詳細: {{skill:tech-stack-configs}} を参照
| 技術スタック | base_image | 主な設定 |
|---|---|---|
| Node.js/TypeScript | node:20-slim | npm ci, Playwright対応 |
| Python/FastAPI | python:3.11-slim | pip install -r requirements.txt |
| Go | golang:1.21-alpine | go mod download, migrate対応 |
| Rust | rust:1.85-slim | cargo fetch, cargo build |
詳細: {{skill:tech-stack-configs}} を参照
| ORM/ツール | マイグレーション | ロールバック |
|---|---|---|
| Flyway | flyway migrate | flyway undo |
| Prisma | npx prisma migrate deploy | npx prisma migrate reset |
| Alembic | alembic upgrade head | alembic downgrade -1 |
Diagnosis Commands:
docker system df # Check disk usage
df -h # Check available disk space
docker info # Check daemon status
Decision Tree:
| Condition | Action |
|---|---|
| Disk space < 10GB | docker system prune -af and retry |
| Docker daemon not running | Start Docker Desktop, wait 30s, retry |
| After prune still failing | User escalation required |
User Escalation (MANDATORY):
When container-use cannot function:
Report the failure clearly:
⚠️ Container-use is unavailable due to: [specific error]
Attempted recovery:
- [action 1]: [result]
- [action 2]: [result]
Present options:
Options:
A) Wait for Docker recovery (manual intervention needed)
B) Proceed with direct host operations (breaks isolation)
C) Abort and resume later
Which would you prefer?
If user chooses direct host operations:
[non-containerized]CRITICAL: Never silently fall back. Always get explicit user approval.
セッション復旧の詳細手順: container-useエージェントルール を参照
postgres, redis)postgres, redis, mysql など分かりやすい名前を使うPRレビュー後の修正作業で環境を再利用するため、環境IDをGitHub Issueで追跡します。
詳細: GitHub Issue状態管理 を参照
| ラベル | 説明 |
|---|---|
env:active | 作業中 |
env:blocked | 人間の介入が必要 |
env:pr-created | PR作成済み |
env:merged | マージ完了 |
メリット: container-use/worktree/ホスト環境のどこからでも gh CLI でアクセス可能。
Project scaffolding, deployment configuration, and CI/CD setup for Google ADK agents.
Set up tracing, logging, and monitoring for deployed ADK agents across Cloud Trace, BigQuery, and third-party platforms.
Enterprise Azure infrastructure architect generating Bicep or Terraform from workload descriptions.
Plan and configure production-ready Azure Kubernetes Service clusters with Day-0 and Day-1 best practices.
Raw mechanical interfaces fusing Swiss typographic print with military terminal aesthetics. Rigid grids, extreme type scale contrast, utilitarian color, analog degradation effects. For data-heavy dashboards, portfolios, or editorial sites that need to feel like declassified blueprints.
Web search, scraping, extraction, crawling, and monitoring via ScrapeGraph AI CLI.
Skill for working with Firebase Hosting (Classic). Use this when you want to deploy static web apps, Single Page Apps (SPAs), or simple microservices. Do NOT use for Firebase App Hosting.
Deploy and manage web apps with Firebase App Hosting. Use this skill when deploying Next.js/Angular apps with backends.
Deploy applications and websites to Vercel. Use when the user requests deployment actions like "deploy my app", "deploy and give me the link", "push this live", or "create a preview deployment".
Build SEO-optimized pages at scale using templates, data, and proven playbook patterns.
Design and build isolated, reusable Convex backend components with clear boundaries and app-facing wrappers.
Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".
Opus.ai: Revolutionize Your Web Experience
Build a no-code AI app in minutes.
An IDE for code migration from legacy to modern frameworks through coding agents.
Automate CGI animation in live-action scenes
Branded artistic QR-code concepts
Launch a website in seconds with AI.
Streamline Your Coding Experience with AI Code Helper
Convert any screenshot or design to clean code.