CARTO2Prod_inv

Load inventory data from temporary CARTO tables into production tables per asset type.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/danielprats/01_03_VIMEP --skill carto2prod-inv
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: CARTO2Prod_inv
Source: https://github.com/danielprats/01_03_VIMEP/tree/main/AssistentIA/_skills/CARTO2Prod_inv
Command: npx skills add https://github.com/danielprats/01_03_VIMEP --skill carto2prod-inv

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, python-dotenv, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the process of transferring inventory data from temporary CARTO tables to dedicated production tables for each asset type, simplifying data management and ensuring data integrity.

Core Features & Use Cases

  • Automated Data Loading: Moves data from [asset]_inv_tmp to vimep_[asset]_inv tables in CARTO.
  • Schema Preservation: Maintains the specific schema of each asset type without requiring unification.
  • Use Case: After uploading new street furniture inventory data to a temporary CARTO table, use this Skill to automatically create or update the vimep_mur_inv production table with the latest information.

Quick Start

Use the CARTO2Prod_inv skill to load the 'AGO' asset data from its temporary CARTO table into the production table.

Frequently Asked Questions about CARTO2Prod_inv

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I load inventory data from temporary CARTO tables into production?

To load inventory data from temporary CARTO tables into production, you can automate the transfer of data from `[asset]_inv_tmp` to `vimep_[asset]_inv` tables. This process drops and recreates tables using SQL queries executed via API.

Does the CARTO data loading process preserve the specific schema for each asset type?

Yes, the CARTO data loading process preserves the specific schema for each asset type. It ensures assets like Arbrat, Paviment, and Senyalització Vertical maintain their specific schemas during the transfer without requiring unification.

What is the best way to automate transferring street furniture inventory data in CARTO?

The best way to automate transferring street furniture inventory data in CARTO is using a script that moves data from temporary tables to dedicated production tables. It automatically creates or updates the target production table with the latest information.

How do I move data from an inv_tmp table to a vimep production table in CARTO?

You move data from an `inv_tmp` table to a `vimep` production table in CARTO by executing SQL queries via API. This automates table dropping and creation, ensuring the production table is updated with the latest inventory information for that asset.

Can I use python-dotenv and requests to execute SQL queries for CARTO table creation?

Yes, you can use python-dotenv and requests to execute SQL queries for CARTO table creation. These dependencies facilitate environment variable management and API requests needed to automate dropping and creating production tables.

What happens to existing production tables when loading new CARTO inventory data?

When loading new CARTO inventory data, existing production tables are dropped and recreated. This ensures the `vimep_[asset]_inv` tables are populated with the latest information from the temporary tables without retaining outdated records.