This file provides context for AI coding assistants working in the Babylon repository.
Babylon is Red Hat GPTE's self-service platform for catalog items, workshops, and lab environments on OpenShift. The main user-facing stack lives under catalog/ (React UI + aiohttp API). Operators, Helm charts, and deployment docs cover the rest of the platform.
Follow these skills when working on catalog components:
- Catalog UI (
catalog/ui): .agents/skills/catalog-ui-dev/SKILL.md - Catalog API (
catalog/api): .agents/skills/catalog-api-dev/SKILL.md
| Path | Purpose |
|---|---|
| AGENTS.md | Entry point for any coding agent |
| .agents/skills/ | Project skills (tool-agnostic; Cursor, Claude Code, and others load this) |
Do not duplicate skills under .cursor/skills/ — Cursor discovers .agents/skills/ directly. Invoke /autocommit for grouped conventional commits.
For catalog/ui work, install patternfly/ai-helpers from upstream (not vendored in this repo). Prioritize the react and migration plugins.
Cursor: add the patternfly/ai-helpers plugin marketplace in Cursor settings, then enable the plugins you need.
Claude Code:
/plugin marketplace add patternfly/ai-helpers
/plugin install react@ai-helpers
Optional: PatternFly MCP server for component docs in the editor.
oc loginto a cluster with Babylon deployed- Start the catalog API from
catalog/api/(port 8080) - Start the catalog UI from
catalog/ui/withpnpm run start:dev(port 9000, proxies to API)
- Match existing code style and patterns in each component
- UI: PatternFly 6, SWR,
@app/*path alias, routes insrc/app/routes.tsx - API: aiohttp routes in
app.py, env vars for local dev (ENVIRONMENT=development,BABYLON_NAMESPACE) - Do not commit secrets,
.envfiles, or local tool caches (e.g..pnpm-store/)
- .agents/skills/ — component development skills
- catalog/Development.adoc — catalog build and deploy
- docs/Deploying_Babylon.adoc — platform deployment