Scaffolding Oracle APEX Applications using Blueprints
% mkdir blueprint-emp-dept
% cd blueprint-emp-dept
blueprint-emp-dept %
blueprint-emp-dept % git init
Initialized empty Git repository in /Users/______/Documents/blueprint-emp-dept/.git/
blueprint-emp-dept %
name: emp-dept
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 APEXlang Skills
- git: https://github.com/oracle/skills
path: apex
ref: main
mcp:
- name: oracle-apexdev
registry: false
transport: stdio
command: /opt/homebrew/Caskroom/sqlcl/26.1.2.132.1334/sqlcl/bin/sql
args:
- -R
- "4"
- -mcp
blueprint-emp-dept % apm install --target codex
[>] Installing dependencies from apm.yml...
[>] Resolving skills-db...
[>] Resolving skills-apex...
[i] Targets: codex (source: --target flag)
[+] github.com/oracle/skills/apex#main #main @b31c5175
|-- Skill integrated -> .agents/skills/
[+] github.com/oracle/skills/db#main #main @b31c5175
|-- Skill integrated -> .agents/skills/
[i] Added apm_modules/ to .gitignore
+- MCP Servers (1)
[i] Skipped MCP config for claude (active targets: codex)
| [>] oracle-apexdev (self-defined, stdio)
| +- Configuring for Codex...
[*] Configured MCP server 'oracle-apexdev' for Codex CLI
+ oracle-apexdev
| [+] oracle-apexdev -> Codex (configured)
[*] Configured 1 server
[*] Installed 2 APM dependencies and 1 MCP server in 2.3s.
blueprint-emp-dept %
blueprint-emp-dept % ls
apex-fa-icons-allowlist.txt apm.lock.yaml blueprint-prompt.md
apm_modules apm.yml
blueprint-emp-dept %
blueprint-emp-dept % ls
apex-fa-icons-allowlist.txt apm.lock.yaml blueprint-prompt.md
apm_modules apm.yml employees-management-schema.md
blueprint-emp-dept %
Oracle Databaseにemployees-management-schema.mdに記述されているスキーマが定義されていることを前提として、表EMPに登録されている従業員の一覧を表示するレポートのページと、レポート上に一覧されている従業員を選択し、所属(所属は表DEPTを参照する)、給与、手当を更新できるフォームを開く。
また、新規に従業員の登録と、既存の従業員の削除も可能とする。
これらの要件を機能要件定義書として、Markdown形式のファイルとして生成してください。
生成するファイルの名前はemployees-management-functional-requirements.mdとします。」
以下のファイルの内容だけが、生成するAPEX blueprintの要件定義書になります。
employees-management-functional-requirements.md
employees-management-schema.md
Application Name, Region Name, Column Nameはすべて英語にしてください。
マークダウンの##、###、####に続くアプリケーション、ページ、リージョンなどの名前は、すべて英語にしてください。」
生成されるBlueprintのアプリケーション、ページおよびリージョンの名前に日本語が含まれていると、Blueprintから生成されたAPEXlangに日本語の識別子が含まれることになり、インポート時にエラーが発生します。そのため、プロンプトの末尾で英語にするよう指示しています。
blueprint-prompt.mdなどに追加するか、個別のスキルとして登録すると、毎回同じ指示をする必要は無くなるでしょう。










