capri-new-module

Create and extend CAPRI model modules using GAMS conventions.

16|1|Updated Jun 20, 2023
One-click install
npx skills add https://github.com/chrispahm/gams-ide --skill capri-new-module
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: capri-new-module
Source: https://github.com/chrispahm/gams-ide/tree/main/skills/capri-new-module
Command: npx skills add https://github.com/chrispahm/gams-ide --skill capri-new-module

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the process of adding new components, products, or functionalities to the complex CAPRI modeling system, ensuring adherence to established conventions and best practices.

Core Features & Use Cases

  • Structured Development: Guides users through planning, symbol declaration, file conventions, and coding style.
  • Integration Assistance: Helps integrate new modules into the existing CAPRI architecture and execution flow.
  • Validation Support: Provides steps for testing, error trapping, and validating results using GAMS tools and queries.
  • Use Case: A user needs to add a new agricultural product to the CAPRI model. This Skill will guide them through defining the product, mapping it to relevant sets, providing necessary data, and ensuring it's correctly incorporated into market balances and equations.

Quick Start

Use the capri-new-module skill to create a new GAMS file for CAPRI following the specified conventions.

Frequently Asked Questions about capri-new-module

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

FAQPage Schema
How do I add a new module to the CAPRI model using GAMS?

To add a new CAPRI module in GAMS, you must follow structured conventions for planning, symbol declaration, file naming, and coding style to ensure seamless integration. This process guarantees the new code adheres to the established CAPRI architecture.

What steps are required to integrate a new agricultural product into CAPRI market balances?

Integrating a new agricultural product into CAPRI involves defining the product, mapping it to relevant sets, providing necessary data, and correctly incorporating it into market balances and equations. This ensures the new component functions within the existing execution flow.

How does CAPRI architecture enforce coding style and file naming conventions for model extensions?

CAPRI architecture enforces coding style and file naming conventions through structured development guidelines that govern symbol declaration and code formatting. Adhering to these guidelines ensures new GAMS components integrate without disrupting the existing execution flow.

Can I use GAMS queries to validate and trap errors in a newly created CAPRI model component?

Yes, you can use GAMS queries and tools to validate and trap errors in a newly created CAPRI model component. Progressive testing and validation support are built into the module development workflow to ensure accurate results.

Do I need prior knowledge of CAPRI sets and equations before extending the model with new features?

Yes, prior knowledge of CAPRI sets, equations, and architecture is required before extending the model. You must map new products or functionalities to relevant sets and incorporate them into existing equations to maintain system integrity.

What is the best way to structure GAMS code for seamless integration into the CAPRI execution flow?

The best way to structure GAMS code for CAPRI is to follow established file naming conventions, enforce strict coding styles, and declare symbols progressively. This structured approach ensures new modules integrate seamlessly into the existing architecture.