/alibabacloud-analyticdb-postgresql-ai-coaching-best-practice
Implement AI Coaching best practices on AnalyticDB for PostgreSQL (ADBPG): Leverage Supabase projects (training data management) + ADBPG instances with vector optimization to build RAG-driven coaching systems that guide users through domain-specific workflows, decision-making,
$ npx -y skills add aliyun/alibabacloud-aiops-skills --skill alibabacloud-analyticdb-postgresql-ai-coaching-best-practice --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/alibabacloud-analyticdb-postgresql-ai-coaching-best-practice
Context preview
The summary Claude sees to decide when to auto-load this skill.
Implement AI Coaching best practices on AnalyticDB for PostgreSQL (ADBPG): Leverage Supabase projects (training data management) + ADBPG instances with vector optimization to build RAG-driven coaching systems that guide users through domain-specific workflows, decision-making,
SKILL.md
alibabacloud-analyticdb-postgresql-ai-coaching-best-practice.SKILL.mdname: alibabacloud-analyticdb-postgresql-ai-coaching-best-practice
description: |
Implement AI Coaching best practices on AnalyticDB for PostgreSQL (ADBPG): Leverage Supabase projects (training data management) + ADBPG instances with vector optimization to build RAG-driven coaching systems that guide users through domain-specific workflows, decision-making, or skill development.
Use when: User wants to create Supabase projects (spb-xxx), ADBPG instances (gp-xxx), vector knowledge bases, or RAG-driven coaching systems on ADBPG.
Triggers: "Supabase", "ADBPG", "vector database", "knowledge base", "RAG", "AI coaching", "coaching system", "spb-xxx", "gp-xxx"
ADBPG AI Coaching Best Practice
Build RAG-driven coaching systems using **ADBPG Supabase** (training data management) + **ADBPG Vector Knowledge Base** (RAG-driven intelligent coaching).
**Core Capabilities**:
- **Supabase Project**: PostgreSQL-based platform for managing coaching domains, learners, and session records
- **Vector Knowledge Base**: ADBPG instance with vector optimization for RAG-driven coaching
- **Seamless Integration**: Supabase stores structured data, ADBPG powers intelligent AI coaching dialogue
---
Pre-check: Aliyun CLI >= 3.3.3 Required
> **IMPORTANT**: Run `aliyun version` to verify >= 3.3.3. If not installed or version too low, > run `curl -fsSL https://aliyuncli.alicdn.com/setup.sh | bash` to update, > or see [references/cli-installation-guide.md](references/cli-installation-guide.md) for installation instructions. > > Then **[MUST]** run `aliyun configure set --auto-plugin-install true` to enable automatic plugin installation. > **[MUST]** run `aliyun plugin update` to ensure that any existing plugins on your local machine are always up-to-date.
---
[MUST] CLI User-Agent
> **Every `aliyun` CLI command invocation must include:** > `--user-agent AlibabaCloud-Agent-Skills/alibabacloud-analyticdb-postgresql-ai-coaching-best-practice`
---
[MUST] CLI AI-Mode Configuration
At the **start** of the Core Workflow (before any CLI invocation):
**[MUST] Enable AI-Mode** — AI-mode is required for Agent Skill execution. Run the following commands before any CLI invocation:
aliyun configure ai-mode enable
aliyun configure ai-mode set-user-agent --user-agent "AlibabaCloud-Agent-Skills/alibabacloud-analyticdb-postgresql-ai-coaching-best-practice"
**[MUST] Disable AI-Mode at EVERY exit point** — Before delivering the final response for ANY reason, always disable AI-mode first. This applies to ALL exit paths: workflow success, workflow failure, error/exception, user cancellation, session end, or any other scenario where no further CLI commands will be executed. AI-mode is only used for Agent Skill invocation scenarios and MUST NOT remain enabled after the skill stops running.
aliyun configure ai-mode disable
---
Pre-check: Alibaba Cloud Credentials Required
> **Security Rules:** > - **NEVER** read, echo, or print AK/SK values > - **NEVER** ask the user to input AK/SK directly > - **NEVER** print passwords or API Keys in plain text in logs or stdout > - **ONLY** use `aliyun configure list` to check credential status > - When displaying API Keys, show only the first 6 characters + `***` (e.g., `sk-abc1***`)
aliyun configure list
**If no valid profile exists, STOP here.** Configure credentials outside of this session via `aliyun configure` or environment variables.
---
Scenario Description
| Scenario | Use Case | Target Users | |----------|----------|--------------| | **Workflow Coaching** | Guide professionals through structured business processes (sales cycles, project management) | Sales teams, project managers | | **Decision Support** | Help engineers evaluate trade-offs and make informed technical decisions | Engineers, architects | | **Skill Development** | Develop communication, negotiation, or technical skills through guided practice | Professionals, new hires | | **Onboarding** | Systematically guide new team members through technical and process onboarding | New employees, mentors |
Architecture
User (Web / Terminal / Agent)
│
┌──────┴──────┐
v v
┌─────────────┐ ┌────────────────────────┐
│ Supabase │ │ Agent Mode │
│ (spb-xxx) │ │ ChatWithKnowledgeBase │
│ - Domains │ └───────────┬────────────┘
│ - Sessions │ │
└──────┬──────┘ │
v v
┌────────────────────────────────────────┐
│ ADBPG Instance (gp-xxx) + KB │
│ Domain Knowledge + RAG + LLM │
└────────────────────────────────────────┘---
RAM Policy
Required Permissions
| Operation | RAM Permission | |-----------|----------------| | Supabase Project Management | `gpdb:CreateSupabaseProject`, `gpdb:GetSupabaseProject`, `gpdb:ModifySupabaseProjectSecurityIps` | | ADBPG Instance Management | `gpdb:CreateDBInstance`, `gpdb:DescribeDBInstances`, `gpdb:ModifySecurityIps` | | Account Management | `gpdb:DescribeAccounts`, `gpdb:CreateAccount` | | Knowledge Base Operations | `gpdb:InitVectorDatabase`, `gpdb:CreateNamespace`, `gpdb:CreateDocumentCollection`, `gpdb:UploadDocumentAsync`, `gpdb:ChatWithKnowledgeBase` | | VPC Network | `vpc:DescribeVpcs`, `vpc:DescribeVSwitches`, `vpc:DescribeVSwitchAttributes` | | NAT Gateway & EIP | `vpc:DescribeNatGateways`, `vpc:CreateNatGateway`, `vpc:DescribeEipAddresses`, `vpc:AllocateEipAddress`, `vpc:AssociateEipAddress`, `vpc:CreateSnatEntry` |
**Recommended System Policies:** `AliyunGPDBFullAccess`, `AliyunVPCFullAccess` (or `AliyunVPCReadOnlyAccess` if NAT already exists)
See [references/ram-policies.md](references/ram-policies.md) for complete list.
> **[MUST] Permission Failure Handling:** When any command fails due to permission errors: > 1. Read [references/ram-policies.md](references/ram-policies.md) for required permissions > 2. Use `ram-permission-diagnose` skill to guide the user > 3. Pause and wa
Read more
name: alibabacloud-analyticdb-postgresql-ai-coaching-best-practice description: | Implement AI Coaching best practices on AnalyticDB for PostgreSQL (ADBPG): Leverage Supabase projects (training data management) + ADBPG instances with vector optimization to build RAG-driven coaching systems that guide users through domain-specific workflows, decision-making, or skill development. Use when: User wants to create Supabase projects (spb-xxx), ADBPG instances (gp-xxx), vector knowledge bases, or RAG-driven coaching systems on ADBPG. Triggers: "Supabase", "ADBPG", "vector database", "knowledge base", "RAG", "AI coaching", "coaching system", "spb-xxx", "gp-xxx"
ADBPG AI Coaching Best Practice
Build RAG-driven coaching systems using **ADBPG Supabase** (training data management) + **ADBPG Vector Knowledge Base** (RAG-driven intelligent coaching).
**Core Capabilities**:
- **Supabase Project**: PostgreSQL-based platform for managing coaching domains, learners, and session records
- **Vector Knowledge Base**: ADBPG instance with vector optimization for RAG-driven coaching
- **Seamless Integration**: Supabase stores structured data, ADBPG powers intelligent AI coaching dialogue
---
Pre-check: Aliyun CLI >= 3.3.3 Required
> **IMPORTANT**: Run `aliyun version` to verify >= 3.3.3. If not installed or version too low, > run `curl -fsSL https://aliyuncli.alicdn.com/setup.sh | bash` to update, > or see [references/cli-installation-guide.md](references/cli-installation-guide.md) for installation instructions. > > Then **[MUST]** run `aliyun configure set --auto-plugin-install true` to enable automatic plugin installation. > **[MUST]** run `aliyun plugin update` to ensure that any existing plugins on your local machine are always up-to-date.
---
[MUST] CLI User-Agent
> **Every `aliyun` CLI command invocation must include:** > `--user-agent AlibabaCloud-Agent-Skills/alibabacloud-analyticdb-postgresql-ai-coaching-best-practice`
---
[MUST] CLI AI-Mode Configuration
At the **start** of the Core Workflow (before any CLI invocation):
**[MUST] Enable AI-Mode** — AI-mode is required for Agent Skill execution. Run the following commands before any CLI invocation:
aliyun configure ai-mode enable aliyun configure ai-mode set-user-agent --user-agent "AlibabaCloud-Agent-Skills/alibabacloud-analyticdb-postgresql-ai-coaching-best-practice"
**[MUST] Disable AI-Mode at EVERY exit point** — Before delivering the final response for ANY reason, always disable AI-mode first. This applies to ALL exit paths: workflow success, workflow failure, error/exception, user cancellation, session end, or any other scenario where no further CLI commands will be executed. AI-mode is only used for Agent Skill invocation scenarios and MUST NOT remain enabled after the skill stops running.
aliyun configure ai-mode disable
---
Pre-check: Alibaba Cloud Credentials Required
> **Security Rules:** > - **NEVER** read, echo, or print AK/SK values > - **NEVER** ask the user to input AK/SK directly > - **NEVER** print passwords or API Keys in plain text in logs or stdout > - **ONLY** use `aliyun configure list` to check credential status > - When displaying API Keys, show only the first 6 characters + `***` (e.g., `sk-abc1***`)
aliyun configure list
**If no valid profile exists, STOP here.** Configure credentials outside of this session via `aliyun configure` or environment variables.
---
Scenario Description
| Scenario | Use Case | Target Users | |----------|----------|--------------| | **Workflow Coaching** | Guide professionals through structured business processes (sales cycles, project management) | Sales teams, project managers | | **Decision Support** | Help engineers evaluate trade-offs and make informed technical decisions | Engineers, architects | | **Skill Development** | Develop communication, negotiation, or technical skills through guided practice | Professionals, new hires | | **Onboarding** | Systematically guide new team members through technical and process onboarding | New employees, mentors |
Architecture
User (Web / Terminal / Agent)
│
┌──────┴──────┐
v v
┌─────────────┐ ┌────────────────────────┐
│ Supabase │ │ Agent Mode │
│ (spb-xxx) │ │ ChatWithKnowledgeBase │
│ - Domains │ └───────────┬────────────┘
│ - Sessions │ │
└──────┬──────┘ │
v v
┌────────────────────────────────────────┐
│ ADBPG Instance (gp-xxx) + KB │
│ Domain Knowledge + RAG + LLM │
└────────────────────────────────────────┘---
RAM Policy
Required Permissions
| Operation | RAM Permission | |-----------|----------------| | Supabase Project Management | `gpdb:CreateSupabaseProject`, `gpdb:GetSupabaseProject`, `gpdb:ModifySupabaseProjectSecurityIps` | | ADBPG Instance Management | `gpdb:CreateDBInstance`, `gpdb:DescribeDBInstances`, `gpdb:ModifySecurityIps` | | Account Management | `gpdb:DescribeAccounts`, `gpdb:CreateAccount` | | Knowledge Base Operations | `gpdb:InitVectorDatabase`, `gpdb:CreateNamespace`, `gpdb:CreateDocumentCollection`, `gpdb:UploadDocumentAsync`, `gpdb:ChatWithKnowledgeBase` | | VPC Network | `vpc:DescribeVpcs`, `vpc:DescribeVSwitches`, `vpc:DescribeVSwitchAttributes` | | NAT Gateway & EIP | `vpc:DescribeNatGateways`, `vpc:CreateNatGateway`, `vpc:DescribeEipAddresses`, `vpc:AllocateEipAddress`, `vpc:AssociateEipAddress`, `vpc:CreateSnatEntry` |
**Recommended System Policies:** `AliyunGPDBFullAccess`, `AliyunVPCFullAccess` (or `AliyunVPCReadOnlyAccess` if NAT already exists)
See [references/ram-policies.md](references/ram-policies.md) for complete list.
> **[MUST] Permission Failure Handling:** When any command fails due to permission errors: > 1. Read [references/ram-policies.md](references/ram-policies.md) for required permissions > 2. Use `ram-permission-diagnose` skill to guide the user > 3. Pause and wa
Official Alibaba Cloud Agent Skills collection, providing AI agents with rich Alibaba Cloud product capabilities and general-purpose tooling.
Other skills on alibabacloud-aiops-skills.
- /alibabacloud-agentbay-aio-skills
Execute code in a secure cloud sandbox via AgentBay SDK. Use this skill whenever users request to run, execute, or evaluate code (Python, JavaScript, R, Java), including plotting charts, running scripts, or viewing code output. Covers requests like "run this code", "execute
Open skill - /alibabacloud-agentloop-dataset
Operate Alibaba Cloud AgentLoop Dataset resources with aliyun CLI and the AgentLoop API version 2026-05-20. Use when requests concern AgentLoop datasets, data rows, Dataset schemas, embedding fields, semantic search, ExecuteQuery, AgentSpace data, 数据集, 数据写入, 数据查询, 语义检索, or ask
Open skill - /alibabacloud-agentloop-evaluation
Orchestrate AgentLoop evaluation workflows through the Aliyun CLI plugin with safe previews, saved evaluator and evaluator-skill management, one-shot sample tests, trace or dataset batch runs, polling, and result inspection. Analyze evaluation quality and low-score cases from
Open skill - /alibabacloud-agentloop-experience
Proactively use AgentLoop Recall to retrieve prior Alibaba Cloud AgentLoop experience through the bundled SearchContext CLI whenever the user asks or implies that prior work may help. Trigger for requests to check, search, recall, retrieve, look up, review, consult, reference,
Open skill - /alibabacloud-agentloop-management
AgentLoop APM接入 / AI可观测接入 / 应用监控接入 / 自研探针 / 探针安装. Use for Python aliyun-bootstrap (aliyun-instrument), Java AliyunJavaAgent, Golang instgo, Node.js cms_node_sdk, PHP/.NET OpenTelemetry, ack-onepilot, LicenseKey, AgentLoop workspace agentloop-*. Also for LangChain, Dify,
Open skill - /alibabacloud-avatar-video
Use Alibaba Cloud DashScope API and LingMou to generate AI video and speech. Seven capabilities — (1) LivePortrait talking-head (image + audio → video, two-step), (2) EMO talking-head, (3) AA/AnimateAnyone full-body animation (three-step), (4) T2I text-to-image (Wan 2.x, default
Open skill

