conveyordata/data-product-portal/postgres-semantic

Claude Code and agent skill by conveyordata/data-product-portal

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use for ANY PostgreSQL interaction — queries, schema exploration, metrics, or business data questions. MUST be used before postgres tools to load semantic models containing business context, field mappings, and validated metric formulas.

Install

npx vskill@latest install conveyordata/data-product-portal/postgres-semantic

SKILL.md

PostgreSQL Semantic Model Integration

Load semantic models before any database operation. They contain business rules, exact field expressions, and validated metrics that make queries correct.

Workflow

Step 1: Check for semantic models (MANDATORY FIRST STEP)

Before calling any database tool, list the semantic models at /products:

python
list_files(path="/products")

If the directory is empty or missing, skip to Step 5 and query directly.

Step 2: Load relevant models

Load model files matching the user's question:

Question containsLoad
orders, revenue, transactions, payments, pricingsales-transaction-ledger/osi.yml
customers, users, sessions, acquisition, behaviorcustomer-demographic-master/osi.yml
inventory, stock, warehouse, products, SKUsinventory-snapshot/osi.yml
unclear or multi-domainall models
python
read_file(path="/products/sales-transaction-ledger/osi.yml")
read_file(path="/products/customer-demographic-master/osi.yml")
read_file(path="/products/inventory-snapshot/osi.yml")
Step 3: Extract from each model
  • `ai_context.instructions` (top level) — critical business rules for all queries
  • `datasets[].source` — actual schema.table name to query
  • `datasets[].fields[].expression` — exact SQL expression to use (never guess)
  • `metrics[].expression` — pre-validated SQL calculation (use as-is)
  • `relationships[]` — correct join conditions across domains
Step 4: Apply context
  1. Apply domain instructions (e.g., divide cents by 100 for dollar amounts)
  2. Use exact field expression values — never invent column names
  3. Use pre-defined metric expressions verbatim
  4. Use relationships for cross-domain joins
  5. Respect field-level ai_context warnings
Step 5: Query the database
python
show_tables() # list available tables
describe_table(table="schema.table") # table structure
run_query(query="SELECT ...") # execute SQL

Always cite which semantic rule or metric you applied in your response.

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
201
Repository forks
55
7-day trend score
27

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/conveyordata/data-product-portal/postgres-semantic/badge)](https://verified-skill.com/skills/conveyordata/data-product-portal/postgres-semantic)

Something wrong with this skill or its page? Tell us.