Back to Skills

dagger-codegen

majiayu000
Updated Today
2 views
58
9
58
View on GitHub
Metawordai

About

This skill helps developers work with Dagger's Go SDK code generation system. It is used when editing generated files like `dagger.gen.go`, modifying Go templates for bindings, or working on commands like `dagger develop` and `dagger client install`. Key areas include the invoke() dispatch, SDK interfaces (CodeGenerator, ClientGenerator), and debugging generated code output.

Quick Install

Claude Code

Recommended
Plugin CommandRecommended
/plugin add https://github.com/majiayu000/claude-skill-registry
Git CloneAlternative
git clone https://github.com/majiayu000/claude-skill-registry.git ~/.claude/skills/dagger-codegen

Copy and paste this command in Claude Code to install this skill

Documentation

Dagger Codegen

When to Load This Skill

  • Editing dagger.gen.go or internal/dagger/dagger.gen.go output
  • Modifying Go templates in cmd/codegen/generator/go/templates/
  • Changing SDK interfaces in core/sdk.go
  • Working on dagger develop, dagger call, or dagger client install
  • Debugging why generated code looks wrong

Critical Concepts

"Codegen" means 4 different things in Dagger:

#NameTriggerKey Files
1In-Module Bindingsdagger developcmd/codegen/generator/go/templates/
2Runtime DispatchModule startupcmd/codegen/generator/go/templates/modules.go:140
3SDK Librariesgo generatesdk/go/generate.go
4Generated Clientsdagger client install_dagger.gen.go/client.go.tmpl

Know which one you're dealing with before editing.

Key Entry Points

To change...Edit
Generated method signaturescmd/codegen/generator/go/templates/src/_types/object.go.tmpl
Generated type definitionscmd/codegen/generator/go/templates/src/_types/*.go.tmpl
Module invoke() dispatchcmd/codegen/generator/go/templates/modules.go:140
Standalone client Connect()cmd/codegen/generator/go/templates/src/_dagger.gen.go/client.go.tmpl
Template functionscmd/codegen/generator/go/templates/functions.go:54
SDK interfacescore/sdk.go:20 (ClientGenerator), :93 (CodeGenerator)
Built-in SDK listcore/sdk/consts.go
Python outputsdk/python/codegen/src/codegen/generator.py

Reference Files

Load based on specific need:

NeedLoad
Understanding the 4 codegen typescodegen-types.md
SDK architecture, interfaces, Go special casesdk-architecture.md
Go template conditionals, two-pass generationgo-templates.md
dagger client install internalsgenerated-clients.md

GitHub Repository

majiayu000/claude-skill-registry
Path: skills/dagger-codegen

Related Skills

content-collections

Meta

This skill provides a production-tested setup for Content Collections, a TypeScript-first tool that transforms Markdown/MDX files into type-safe data collections with Zod validation. Use it when building blogs, documentation sites, or content-heavy Vite + React applications to ensure type safety and automatic content validation. It covers everything from Vite plugin configuration and MDX compilation to deployment optimization and schema validation.

View skill

sglang

Meta

SGLang is a high-performance LLM serving framework that specializes in fast, structured generation for JSON, regex, and agentic workflows using its RadixAttention prefix caching. It delivers significantly faster inference, especially for tasks with repeated prefixes, making it ideal for complex, structured outputs and multi-turn conversations. Choose SGLang over alternatives like vLLM when you need constrained decoding or are building applications with extensive prefix sharing.

View skill

evaluating-llms-harness

Testing

This Claude Skill runs the lm-evaluation-harness to benchmark LLMs across 60+ standardized academic tasks like MMLU and GSM8K. It's designed for developers to compare model quality, track training progress, or report academic results. The tool supports various backends including HuggingFace and vLLM models.

View skill

langchain

Meta

LangChain is a framework for building LLM applications using agents, chains, and RAG pipelines. It supports multiple LLM providers, offers 500+ integrations, and includes features like tool calling and memory management. Use it for rapid prototyping and deploying production systems like chatbots, autonomous agents, and question-answering services.

View skill