capri-gams-style

Enforce CAPRI GAMS coding conventions for writing, reviewing, and refactoring GAMS code.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This skill ensures GAMS code adheres to the strict CAPRI coding conventions, promoting consistency, maintainability, and readability across the project.

Core Features & Use Cases

  • Code Review & Refactoring: Analyzes GAMS code against the "Red Book" rules for naming, structure, indentation, comments, and error trapping.
  • Code Generation: Produces new GAMS code that strictly follows CAPRI conventions.
  • Use Case: When developing new GAMS modules for the CAPRI model, use this skill to automatically check your code against the established standards before committing, preventing common errors and ensuring team-wide consistency.

Quick Start

Review the provided GAMS code snippet for adherence to CAPRI coding conventions.

Frequently Asked Questions about capri-gams-style

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

FAQPage Schema
How do I check if my GAMS code follows CAPRI coding conventions?

You can review GAMS code against the official CAPRI "Red Book" conventions, which cover naming, set usage, code structure, indentation, flow control, and error trapping to ensure consistency and maintainability.

What are the CAPRI GAMS style guide rules for naming and code structure?

The CAPRI GAMS style guide rules enforce specific conventions for naming, set usage, indentation, compile-time directives, and comments. Adhering to these rules promotes readability and maintainability across the CAPRI modeling project.

Can I automatically refactor existing GAMS code to meet CAPRI standards?

Yes, you can refactor GAMS code by analyzing it against the "Red Book" rules for naming, structure, indentation, comments, and error trapping, correcting deviations to align with CAPRI conventions.

How do I generate new GAMS modules for the CAPRI model that pass code review?

To generate new GAMS modules for the CAPRI model that pass code review, produce code that strictly follows CAPRI conventions for flow control, metadata, and version control practices outlined in the style guide.

Does the CAPRI GAMS style guide cover error trapping and compile-time directives?

Yes, the CAPRI GAMS style guide covers error trapping and compile-time directives. It enforces specific conventions for these elements to ensure robust code structure and execution within the CAPRI model.