swamp-model

Manage swamp models by searching types, creating inputs, running methods, and inspecting outputs via CLI.

Updated May 27, 2026
One-click install
npx skills add https://github.com/alvagante/swamp-construction-kit --skill swamp-model-alvagante
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: swamp-model
Source: https://github.com/alvagante/swamp-construction-kit/tree/main/.agents/skills/swamp-model
Command: npx skills add https://github.com/alvagante/swamp-construction-kit --skill swamp-model-alvagante

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve? Working with swamp models requires knowing the correct CLI commands, YAML definition structure, CEL expression syntax, and validation rules. This Skill guides the AI through the full model lifecycle — discovering types, creating definitions, validating inputs, executing methods, and inspecting outputs — without memorizing command syntax or output shapes. ## Core Features & Use Cases - Type Discovery and Schema Inspection: Search available model types and describe their JSON schemas, methods, and global arguments before creating anything. - Model Lifecycle Management: Create, edit, validate, evaluate, and delete model definitions with enforced rules (never generate IDs, never write YAML from scratch, always scaffold via CLI). - Method Execution and Output Inspection: Run methods with runtime inputs, stdin piping, NDJSON batch runs, and pre-flight check controls, then inspect outputs, logs, and data artifacts. - Use Case: You need to look up your default AWS VPC and feed its ID into another model. Use this Skill to create a command/shell model, run its execute method, and reference the result via a CEL expression in a downstream model. ## Quick Start Ask the AI to search for a swamp model type, describe its schema, and create and run a model of that type with your desired inputs.

Frequently Asked Questions about swamp-model

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

FAQPage Schema
How do I create a swamp model?▼

Run swamp model create <type> <name> --json to scaffold a definition file with a system-assigned ID, then edit the returned YAML path to configure methods and arguments. Never write the YAML from scratch or generate your own UUIDs.

How do I run a method on a swamp model with inputs?▼

Use swamp model method run <name> <method> with --input key=value flags, --input-file for YAML, or --stdin for piped JSON and NDJSON batch runs. Inputs are validated against the model's inputs schema and referenced via ${{ inputs.<name> }} expressions.

What is the difference between swamp-model and swamp-extension?▼

swamp-model works with existing model types — searching, creating inputs, and running methods. swamp-extension is for building new custom model types in TypeScript with Zod schemas when no existing type fits your needs.

Why does swamp model validation show environment variable warnings?▼

Warnings appear when a model definition uses ${{ env.* }} expressions, meaning behavior depends on the runtime environment. Confirm with the user before executing, or use separate models per environment or vault.get() for sensitive values.

How do I reference data from another swamp model?▼

Use CEL expressions like ${{ data.latest("model-name", "data-name").attributes.field }} in globalArguments. The older model.<name>.resource pattern is deprecated; data.* functions also support versioning, tag lookup, and spec queries.

When should I use direct type execution instead of model create?▼

Use swamp model @<type> method run <method> <name> --input key=value for one-off executions without managing definition files. Use model create only for persistent definitions with CEL expressions, version control, or shared references across workflows.