Ds project setup

From RHEcosystemAppEng/agentic-plugins · View interactive version

Ds project setup is an AI agent skill from the GitHub repository RHEcosystemAppEng/agentic-plugins. Create and configure Data Science Projects on OpenShift AI with namespace setup, S3 data connections, pipeline server, and model serving enablement. Use when: - "Create a data science project" - "Set up a new namespace for ML work" - "Add an S3 data connection to my project" - "Configure the pipelin

How to use this skill

Skill file

/ds-project-setup Skill

Bootstrap a Red Hat OpenShift AI Data Science Project from scratch. Creates a namespace with RHOAI dashboard labels, configures S3-compatible data connections, sets up the pipeline server with external storage, and enables model serving on the project.

Prerequisites

Required MCP Server: openshift (OpenShift MCP Server)

Required MCP Tools (from openshift):

Preferred MCP Server: rhoai (RHOAI MCP Server) — used when available, automatic OpenShift fallback on failure

Preferred MCP Tools (from rhoai):

Note: create_pipeline_server is intentionally excluded — it constructs invalid DSPA manifests. Pipeline server creation always uses OpenShift direct.

Common prerequisites (KUBECONFIG, OpenShift+RHOAI cluster, verification protocol): See skill-conventions.md.

Fallback templates: See openshift-fallback-templates.md for OpenShift YAML templates used when RHOAI tools are unavailable.

Additional cluster requirements:

When to Use This Skill

Use this skill when you need to:

Do NOT use this skill when:

Workflow

Step 1: Gather Requirements

Ask the user for the project name first:

Immediately check if the project name already exists:

MCP Tool: list_data_science_projects (from rhoai)

Parameters: none

If rhoai unavailable or returns error: Use resources_list (from openshift) with apiVersion: v1, kind: Namespace, labelSelector: opendatahub.io/dashboard=true.

Ask the user for remaining settings:

Present configuration table:

| Setting | Value |

|---------|-------|

| Project name | [name] |

| Display name | [display_name] |

| Description | [description] |

| Data connections | [yes/no] |

| Pipeline server | [yes/no] |

| Model serving mode | [single/multi] |

WAIT for user to confirm or modify the configuration.

Step 2: Create Data Science Project

MCP Tool: create_data_science_project (from rhoai)

Parameters:

If rhoai unavailable or returns error: Use resources_create_or_update (from openshift) to create the Namespace with RHOAI labels. See openshift-fallback-templates.md for the YAML template.

Verify creation:

MCP Tool: get_project_details (from rhoai)

Parameters:

Confirm the project was created with proper RHOAI labels (opendatahub.io/dashboard: "true").

If rhoai unavailable or returns error: Use resources_get (from openshift) with apiVersion: v1, kind: Namespace, name: [project-name]. Check for label opendatahub.io/dashboard: "true".

Note: The get_project_details tool requires a name parameter (not namespace). If the tool returns a parameter error, fall back to OpenShift.

Error Handling:

Output to user: "Data Science Project [name] created successfully."

Step 3: Configure Data Connections (Optional)

Skip this step if user declined data connections in Step 1.

Ask the user for S3 connection details:

Display connection configuration (credentials REDACTED):

| Setting | Value |

|---------|-------|

| Connection name | [name] |

| Bucket | [bucket] |

| Endpoint | [endpoint] |

| Access key | [first-4-chars]**** |

| Secret key | |

| Region | [region] |

WAIT for user to confirm the connection details are correct.

MCP Tool: create_s3_data_connection (from rhoai)

Parameters:

If rhoai unavailable or returns error: Use resources_create_or_update (from openshift) to create the Secret with S3 annotations. See openshift-fallback-templates.md for the YAML template.

Verify creation:

MCP Tool: list_data_connections (from rhoai)

Parameters:

Confirm the data connection appears in the list.

If rhoai unavailable or returns error: Use resources_list (from openshift) with apiVersion: v1, kind: Secret, namespace: [namespace], labelSelector: opendatahub.io/dashboard=true. Filter results by annotation opendatahub.io/connection-type: s3.

Error Handling:

Output to user: "Data connection [name] created in project [namespace]."

Repeat this step if user wants to create multiple data connections.

Step 4: Configure Pipeline Server (Optional)

Skip this step if user declined pipeline server in Step 1.

Prerequisite check: A data connection must exist in the project (from Step 3 or pre-existing). If no data connections exist, inform user: "Pipeline server requires an S3 data connection for artifact storage. Would you like to create one now?" and return to Step 3.

MCP Tool: get_pipeline_server (from rhoai)

Parameters:

If pipeline server already exists, report its status and ask if user wants to reconfigure.

Display pipeline server configuration:

| Setting | Value |

|---------|-------|

| Namespace | [namespace] |

| Data connection | [data_connection_name] |

WAIT for user to confirm pipeline server setup.

Pipeline Server Creation (OpenShift direct — the create_pipeline_server RHOAI tool is not used because it constructs invalid DSPA manifests):

MCP Tool: resources_create_or_update (from openshift)

Create a DataSciencePipelinesApplication CR using the template from openshift-fallback-templates.md.

Parameters to fill in the template:

Verify DSPA is ready:

MCP Tool: resources_get (from openshift)

Check .status.conditions for Ready=True. Poll every 15 seconds until ready or timeout (5 minutes).

Verify creation:

MCP Tool: get_pipeline_server (from rhoai)

Parameters:

Confirm the pipeline server is configured and initializing.

If rhoai unavailable or returns error: Use resources_get (from openshift) for the DSPA CR as described above.

Error Handling:

Output to user: "Pipeline server configured in project [namespace] using data connection [data_connection]."

Step 5: Enable Model Serving and Report

MCP Tool: set_model_serving_mode (from rhoai)

Parameters:

If rhoai unavailable or returns error: Patch the namespace annotation via resources_create_or_update (from openshift). Set annotation opendatahub.io/model-serving-mode to single or multi on the Namespace.

Final validation:

MCP Tool: get_project_status (from rhoai)

Parameters:

Report project summary:

| Component | Status |

|-----------|--------|

| Project | [name] (created / existing) |

| Data connections | [count] configured |

| Pipeline server | [configured / not configured] |

| Model serving | [single / multi] mode enabled |

Suggest next steps:

Common Issues

Issue 1: Project Name Already Exists

Error: create_data_science_project returns conflict error

Cause: A namespace with the same name already exists in the cluster, either as an RHOAI project or a regular OpenShift project.

Solution:

  1. Use list_data_science_projects to check if it is an existing RHOAI project
  2. If it is an RHOAI project, offer to configure additional components on it
  3. If it is a regular namespace (not an RHOAI project), suggest a different name or advise converting it by adding the opendatahub.io/dashboard: "true" label

Issue 2: S3 Endpoint Unreachable

Error: Data connection created but pipeline server or model serving cannot access storage

Cause: The S3 endpoint URL is malformed, unreachable from the cluster, or requires TLS configuration.

Solution:

  1. Verify the endpoint URL format includes the protocol (https://)
  2. For MinIO: use the internal cluster service URL (e.g., http://minio.minio-ns.svc:9000)
  3. For AWS: use the regional endpoint (e.g., https://s3.us-east-1.amazonaws.com)
  4. Check if the cluster has network egress restrictions that block external S3 access

Issue 3: Pipeline Server Fails to Initialize

Error: Pipeline server status remains unhealthy or pods crash

Cause: Usually caused by an invalid data connection (wrong credentials or unreachable bucket), or insufficient cluster resources.

Solution:

  1. Verify the data connection credentials are correct (re-create if needed)
  2. Check that the S3 bucket exists and is accessible with the provided credentials
  3. Check namespace ResourceQuota for pod limits
  4. Review pipeline server pod logs via pods_log (from openshift) for specific error messages

Issue 4: Namespace Quota Exceeded

Error: Resource creation fails with quota exceeded error

Cause: The cluster has ResourceQuota or LimitRange policies that restrict resource creation in the namespace.

Solution:

  1. Use resources_get (from openshift) to inspect ResourceQuota in the namespace
  2. Report the quota limits to the user
  3. Suggest contacting the cluster administrator to increase quotas or clean up unused resources

Dependencies

MCP Tools

See Prerequisites for the complete list of required and optional MCP tools.

Related Skills

Reference Documentation

Example Usage

User: "Create a data science project called fraud-detection with an S3 connection and pipeline server"

Skill response: Gathers requirements, presents configuration table, creates project fraud-detection, configures S3 data connection (credentials redacted in display), sets up pipeline server, enables single-model serving, and reports final project status with next steps.

Critical: Human-in-the-Loop Requirements

See skill-conventions.md for general HITL and security conventions.

Skill-specific checkpoints:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.