add-model

Automate adding, updating, and looking up AI models in OpenCode/Lazer configurations.

Updated May 11, 2025
One-click install
npx skills add https://github.com/rogsme/dotfiles --skill add-model-rogsme
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-model
Source: https://github.com/rogsme/dotfiles/tree/main/.config/opencode/.claude/skills/add-model
Command: npx skills add https://github.com/rogsme/dotfiles --skill add-model-rogsme

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires curl, jq, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the process of adding, registering, updating, or looking up AI models in the OpenCode/Lazer configuration, streamlining the management of the model catalog.

Core Features & Use Cases

  • Model Management: Add, register, update, or look up AI models in the OpenCode/Lazer configuration.
  • Integration: Updates both the live OpenCode config and the bundled defaults in install.sh.
  • Use Case: Ideal for updating the bundled model catalog in a repository or for users who want to modify their local OpenCode/Lazer configurations.

Quick Start

Use the add-model skill to add a new AI model to your OpenCode/Lazer configuration.

Frequently Asked Questions about add-model

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

FAQPage Schema
How do I add a new AI model to the OpenCode configuration?

You can add a new AI model to the OpenCode configuration by using the add-model Skill, which automates the registration process and maps the model schema directly into the required format.

How does models.dev integration work for AI model resolution?

Models.dev integration works by using curl to fetch model data and jq to manipulate the JSON, allowing the add-model Skill to automatically resolve and map AI model schemas into the OpenCode configuration.

Can I update both local and bundled OpenCode configurations?

Yes, you can update both local and bundled OpenCode configurations. The Skill modifies your live local config and simultaneously updates the bundled defaults found in the install.sh file.

Do I need curl and jq to manage the AI model catalog?

Yes, you need curl and jq to manage the AI model catalog because curl handles the API calls to models.dev while jq performs the required JSON manipulation for the OpenCode schema mapping.

What is the best way to update the bundled model catalog in a repository?

The best way to update the bundled model catalog in a repository is to use the add-model Skill, which directly modifies the bundled defaults within install.sh to ensure your repository ships with the updated models.

Why does updating AI models in OpenCode require a schema mapping?

Updating AI models in OpenCode requires a schema mapping because the data fetched from models.dev must be translated into the specific OpenCode format, which is handled automatically by the Skill's jq processing.