capri-trace-symbol

Trace GAMS symbols and their usage across CAPRI module files.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires chrispahm.gams-ide, chrispahm.gdx-viewer, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps users understand and trace GAMS symbols within the complex CAPRI modeling system, clarifying data flow and symbol usage.

Core Features & Use Cases

  • Symbol Investigation: Find declarations, details, and values of GAMS symbols.
  • Data Lineage: Trace how data flows between different modules (COCO, CAPREG, CAPTRD, CAPMOD) and through GDX files.
  • Cross-referencing: Visualize symbol dependencies and usage across files.
  • Use Case: A user asks "Where is the p_tradeMrg parameter used and what are its values in the baseline scenario?". This skill will help find its declaration, trace its usage, and compare its values between different GDX files.

Quick Start

Use the capri-trace-symbol skill to find the declaration and usage of the GAMS symbol 'p_tradeMrg'.

Frequently Asked Questions about capri-trace-symbol

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

FAQPage Schema
How do I trace GAMS symbol data lineage across CAPRI modules?

To trace GAMS symbol data lineage across CAPRI modules, investigate symbol declarations, retrieve details, and track cross-file references between COCO, CAPREG, CAPTRD, and CAPMOD. This clarifies data flow and symbol usage dependencies throughout the modeling system.

How can I find where a specific GAMS parameter is used in the CAPRI modeling system?

To find where a specific GAMS parameter is used in CAPRI, perform a symbol lookup to locate its declaration and trace its cross-file dependencies. This allows you to visualize symbol dependencies and usage across the entire modeling framework.

What is the best way to inspect GAMS symbol values in a baseline scenario GDX file?

The best way to inspect GAMS symbol values in baseline scenario GDX files is to use GDX analysis features to retrieve value details. You can compare these values between different GDX files to verify baseline data and track parameter changes.

Do I need specific tools to investigate GAMS symbols within CAPRI?

Yes, investigating GAMS symbols within CAPRI requires a compatible environment. The skill relies on specific dependencies like the GAMS IDE and a dedicated GDX viewer to properly parse files, inspect data, and track cross-file symbol references.

Can I track data flow through GDX files when investigating CAPRI model dependencies?

Yes, you can track data flow through GDX files when investigating CAPRI model dependencies. The skill supports GDX data analysis to help you trace how specific symbols move and update across different CAPRI modules and simulation stages.