- Antigravityのデストップ・アプリからMCPサーバーを通してOracle Databaseに接続し、Agent Skillsを使った販売分析を実行する。
- Antigravity CLIを使ってAPEX 26.1のアプリケーションを生成する。
- ローカルで実行しているOracle AI Database 26ai Freeに、APEXワークスペースとしてAPEXDEV(スキーマAPEXDEV)が作成されている。
- スキーマSHにSales Historyのサンプル・データがインストールされている。
- SQLclの接続としてlocal-26ai-sys、local-26ai-apexdevが作成されている。
Google Antigravityで売り上げ分析
Documents % apm --version
Agent Package Manager (APM) CLI version 0.14.1 (90edce4)
Documents %
以前に作成したスキルを流用するため、GitHubのリポジトリsh-sales-analysisをクローンします。
git clone https://github.com/ujnak/sh-sales-analysis.git
cd sh-sales-analysis
Documents % git clone https://github.com/ujnak/sh-sales-analysis.git
Cloning into 'sh-sales-analysis'...
remote: Enumerating objects: 28, done.
remote: Counting objects: 100% (28/28), done.
remote: Compressing objects: 100% (21/21), done.
remote: Total 28 (delta 3), reused 27 (delta 2), pack-reused 0 (from 0)
Receiving objects: 100% (28/28), 10.77 KiB | 2.15 MiB/s, done.
Resolving deltas: 100% (3/3), done.
Documents % cd sh-sales-analysis
sh-sales-analysis %
リポジトリに含まれる販売分析のスキルを、Gemini CLI向けにインストールします。MCPサーバーについては(おそらく)適切にインストールされないと思ったので、インストール対象から外しています。
sh-sales-analysis % apm install --only apm --target gemini
[>] Installing dependencies from apm.yml...
[i] Targets: gemini (source: --target flag)
[+] <project root> (local)
|-- 4 skill(s) integrated -> .agents/skills/
[*] Installed 1 APM dependency in 0.4s.
sh-sales-analysis %
新しいAPMのcompileコマンドは、Antigravityが参照できるファイルを生成するようなので実行します。
apm compile --target gemini
sh-sales-analysis % apm compile --target gemini
[*] Starting context compilation...
[i] Targets: gemini (source: --target flag)
[i] Compiling for GEMINI.md + .gemini/commands/ + .gemini/skills/ + .gemini/settings.json (MCP/hooks) - explicit --target flag
[i] Analyzing project structure...
|- 1 directories scanned (max depth: 0)
|- 3 files analyzed across 3 file types (md, yaml, yml)
+- 1 instruction patterns detected
Optimizing placements...
Pattern Source Coverage
Placement Metrics
──────────────────────────────────────────────────────────────────────────────────────────────────────────────────
** sh-schema.instructi… 1/1 ./AGENTS.md
rel: 100%
Generated 1 AGENTS.md file
+- Context efficiency: 100.0%
+- Generation time: 1ms
Placement Distribution
+- . 1 instruction from 1 source
[i] Generated GEMINI.md (imports AGENTS.md)
[+] Compilation completed successfully!
[!] Compilation completed with 2 warning(s):
[!] .apm/instructions/sh-schema.instructions.md: Missing 'description' in frontmatter
[!] .apm/instructions/sh-schema.instructions.md: Missing 'description' in frontmatter
sh-sales-analysis % ls
AGENTS.md apm_modules apm.lock.yaml apm.yml GEMINI.md README.md
sh-sales-analysis %
ローカルのOracle Databaseに接続するMCPサーバーを設定します。Antigravityでは.agents/mcp_config.jsonにMCPサーバーを設定するように変わっています。
{
"mcp": {
"allowed": ["oracle-sh"],
"excluded": []
},
"mcpServers": {
"oracle-sh": {
"command": "/opt/homebrew/Caskroom/sqlcl/26.1.2.132.1334/sqlcl/bin/sql",
"args": ["-R", "4", "-mcp"]
}
}
}
MCPサーバーoracle-shで利用可能な接続を一覧します。
「 oracle-shで利用できる接続を一覧して。」
「local-26ai-apexdevに接続して。」
スキルを参照した検索を実行します。
「 売り上げの地域別のランキングを調べて。」
「スキルは参照しましたか?」
Antigravity CLIでAPEX 26.1のアプリケーション生成
mkdir emp-crud-agy
cd emp-crud-agy
Documents % mkdir emp-crud-agy
Documents % cd emp-crud-agy
emp-crud-agy %
Gitで管理する予定はありませんが、初期化だけしておきます。
git init
emp-crud-agy % git init
Initialized empty Git repository in /Users/username/Documents/emp-crud-agy/.git/
emp-crud-agy %
name: emp-crud
version: 0.1.0
description: Oracle APEX 26.1のAPEXlangを使ってアプリケーションを作成する。
author: Yuji
dependencies:
apm:
# Oracle Database Skills
- git: https://github.com/oracle/skills
path: db
ref: main
# Oracle APEX Skills
- git: https://github.com/oracle/skills
path: apex
ref: main
emp-crud-agy % apm install --target gemini
[>] Installing dependencies from apm.yml...
[>] Resolving skills-apex...
[>] Resolving skills-db...
[i] Targets: gemini (source: --target flag)
[+] github.com/oracle/skills/apex#main #main @11e528de
|-- Skill integrated -> .agents/skills/
[+] github.com/oracle/skills/db#main #main @11e528de
|-- Skill integrated -> .agents/skills/
[i] Added apm_modules/ to .gitignore
[*] Installed 2 APM dependencies in 1.3s.
emp-crud-agy %
Oracle Databaseにアクセスできるように、SQLclのMCPサーバーを設定します。
{
"mcp": {
"allowed": ["oracle-apexdev"],
"excluded": []
},
"mcpServers": {
"oracle-apexdev": {
"command": "/opt/homebrew/Caskroom/sqlcl/26.1.2.132.1334/sqlcl/bin/sql",
"args": ["-R", "4", "-mcp"]
}
}
}
Accessing workspace:
/Users/username/Documents/emp-crud-agy
Do you trust the contents of this project?
Antigravity CLI requires permission to read, edit, and execute files here.
> Yes, I trust this folder
No, exit
↑/↓ Navigate · enter Confirm
Gemini 3.5 Flash (High)
emp-crud-agy % agy
▄▀▀▄ Antigravity CLI 1.0.1
▀▀▀▀▀▀ yuji.nkks@gmail.com (Google AI Pro)
▀▀▀▀▀▀▀▀ Gemini 3.5 Flash (High)
▄▀▀ ▀▀▄ ~/Documents/emp-crud-agy
▄▀▀ ▀▀▄
────────────────────────────────────────────────────────────────────────────────
>
────────────────────────────────────────────────────────────────────────────────
? for shortcuts Gemini 3.5 Flash (High)
1. MCPサーバーoracle-apexdevで、データベースlocal-26ai-apexdevに接続してください。
2. local-26ai-apexdevはユーザーapexdevで接続されています。これはAPEXワークスペースAPEXDEVのパーシング・スキーマです。
3. スキーマAPEXDEVには表EMPが存在します。
4. APEXlangのスキルを参照して、表EMPの一覧を表示する対話モード・レポートのページと、従業員の作成、更新、削除ができるフォームを持つAPEXアプリケーションEMP_CRUDを作成してください。
5. アプリケーションはディレクトリapplications以下にEMP_CRUDとして作成してください。
6. アプリケーションのインポートはMCPサーバーではなく、applications/EMP_CRUDに移動した後に、"sql -name local-26ai-apexdev"でSQLclを起動し、"apex import"を実行することで、APEXアプリケーションのインポートを行なってください。
▄▀▀▄ Antigravity CLI 1.0.1
▀▀▀▀▀▀ yuji.nkks@gmail.com (Google AI Pro)
▀▀▀▀▀▀▀▀ Gemini 3.5 Flash (High)
▄▀▀ ▀▀▄ ~/Documents/emp-crud-agy
▄▀▀ ▀▀▄
────────────────────────────────────────────────────────────
> 1. MCPサーバーoracle-apexdevで、データベースlocal-26ai-
apexdevに接続してください。
2. local-26ai-
apexdevはユーザーapexdevで接続されています。これはAPEXワークスペースAPEXDEVの
ーシング・スキーマです。
3. スキーマAPEXDEVには表EMPが存在します。
4.
APEXlangのスキルを参照して、表EMPの一覧を表示する対話モード・レポートのページ
、従業員の作成、更新、削除ができるフォームを持つAPEXアプリケーションEMP_CRUDを
作成してください。
5.
アプリケーションはディレクトリapplications以下にEMP_CRUDとして作成してください
。
6.
アプリケーションのインポートはMCPサーバーではなく、applications/EMP_CRUDに移動
した後に、"sql -name local-26ai-apexdev"でSQLclを起動し、"apex
import"を実行することで、APEXアプリケーションのインポートを行なってください。
● Read(/Users/ynakakoshi/Documents/emp-crud-agy/.agents/skills/apex/SKILL.md)
● ListDir(/Users/ynakakoshi/Documents/emp-...agy/.agents/skills/apex/apexlang)
● Read(/Users/ynakakoshi/Documents/emp-cr...ents/skills/apex/apexlang/SKILL.md)
● ListDir(/Users/ynakakoshi/Documents/emp-.../skills/apex/apexlang/references)
● ListDir(/Users/ynakakoshi/Documents/emp-...ex/apexlang/references/workflows)
● Read(/Users/ynakakoshi/Documents/emp-cr...ences/workflows/apex-generation.md)
● ListDir(/Users/ynakakoshi/Documents/emp-...gents/skills/apex/apexlang/tools)
● ListPermissions(You have read and write access to the following
workspace(s)...)
● Bash(node tools/apexctl.mjs workspace probe)
● ListDir(/Users/ynakakoshi/Documents/emp-crud-agy)
● ListDir(/Users/ynakakoshi/Documents/emp-...ents/skills/apex/apexlang/assets)
● Bash(node tools/apexctl.mjs --help) (ctrl+o to expand)
Command
────────────────────────────────────────────────────────────────────────────────
Requesting permission for: node tools/apexctl.mjs --help
Do you want to proceed?
> 1. Yes
2. No
↑/↓ Navigate · tab Amend · e edit command
esc to cancel Gemini 3.5 Flash (High)
I have created the implementation plan for the EMP_CRUD APEX application.
Please review implementation_plan.md and let me know if you approve so I can
proceed with the execution phase.
────────────────────────────────────────────────────────────
> approved
▸ Thought for 2s, 371 tokens
Initiating Execution Phase
● Bash(sql -name local-26ai-apexdev <<EOF) (ctrl+o to expand)
I will wait for the import task to finish in the background.
▸ Thought for 3s, 542 tokens
Confirming Successful Import
I will update the walkthrough.md artifact to document the successful
compilation and import of the application using SQLcl, including how the
page alias filename mismatch warning was addressed.
● Create(/Users/ynakakoshi/.gemi...289d719b/walkthrough.md) (ctrl+o to expand)
I will update the task.md file to reflect that all import tasks and
verification steps are complete.
● Create(/Users/ynakakoshi/.gemi...60-b8ea289d719b/task.md) (ctrl+o to expand)
I have completed the import process and finalized the application.
### Summary of Work Done
1. Executed SQLcl APEX Import:
Imported the EMP_CRUD application into the APEXDEV workspace using
SQLcl. The initial import generated a compilation warning about a mismatch
between the filename and the defined page alias.
2. Resolved Page Alias Warning:
Updated the page alias inside p00003-employee-form.apx from EMPLOYEE-DETAILS
to
EMPLOYEE-FORM to match the filename.
3. Re-executed Import:
Successfully imported the application (Application ID: 111 ) with zero
warnings or errors.
Please check the updated walkthrough.md and task.md for full
execution logs and details.
2 artifacts · /artifact to review
────────────────────────────────────────────────────────────────────────────────
>
────────────────────────────────────────────────────────────────────────────────
? for shortcuts Gemini 3.5 Flash (High)











