starlark-dev

Solid

Develop and debug Kurtosis Starlark packages. Create packages from scratch, understand the plan-based execution model, use print() debugging, handle future references, and test packages locally. Use when writing or troubleshooting .star files.

DevOps & Infrastructure 540 stars 97 forks Updated 4 days ago Apache-2.0

Install

View on GitHub

Quality Score: 86/100

Stars 20%
91
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Starlark Dev Create, debug, and test Kurtosis Starlark packages. ## Package structure A minimal Kurtosis package needs two files: ``` my-package/ kurtosis.yml # Package metadata main.star # Entry point ``` ### kurtosis.yml ```yaml name: github.com/your-org/my-package ``` ### main.star ```python def run(plan, args): plan.add_service( name="my-service", config=ServiceConfig( image="nginx:latest", ports={ "http": PortSpec(number=80, transport_protocol="TCP"), }, ), ) ``` ## Running packages ```bash # Run a local package kurtosis run ./my-package # Run with parameters kurtosis run ./my-package '{"param1": "value1"}' # Run a remote package from GitHub kurtosis run github.com/ethpandaops/ethereum-package # Run with a custom config file kurtosis run github.com/ethpandaops/ethereum-package --args-file config.yaml # Dry run (plan only, no execution) kurtosis run ./my-package --dry-run ``` ## Execution model Kurtosis Starlark executes in two phases: 1. **Planning phase** — Your code runs and builds a plan of actions. `add_service()`, `exec()`, etc. don't execute immediately — they return future references. 2. **Execution phase** — The plan is executed in order. Future references are resolved to actual values. This means you **cannot** use the return value of `plan.exec()` in Python-level logic like `if/else` during the planning phase. Use `plan.verify()` or `plan.assert(...

Details

Author
kurtosis-tech
Repository
kurtosis-tech/kurtosis
Created
3 years ago
Last Updated
4 days ago
Language
Go
License
Apache-2.0

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category

DevOps & Infrastructure Solid

cluster-manage

Manage Kurtosis cluster settings. Switch between Docker and Kubernetes backends, list available clusters, and configure which cluster Kurtosis uses. Use when you need to change where Kurtosis runs enclaves.

540 Updated 4 days ago
kurtosis-tech
DevOps & Infrastructure Featured

dstack

dstack is an open-source control plane for GPU provisioning and orchestration across GPU clouds, Kubernetes, and on-prem clusters.

2,148 Updated today
dstackai
AI & Automation Featured

kubernetes

Kubernetes workflow skill. Use this skill when a user needs workload manifests, rollout strategy, service exposure, or cluster operations guidance.

50 Updated 2 days ago
diegosouzapw
Code & Development Solid

ccpm

CCPM - spec-driven project management: PRD → Epic → GitHub Issues → parallel agents → shipped code. Use this skill for anything in the software delivery lifecycle: writing a PRD ('write a PRD for X', 'let's plan X', 'scope this out'), parsing a PRD into an epic, decomposing an epic into tasks, syncing to GitHub ('sync the X epic', 'push tasks to github'), starting work on an issue ('start working on issue N', 'let's work on issue N'), analyzing parallel work streams, running standups ('standup', 'run the standup'), checking status ('what's next', 'what's blocked', 'what are we working on'), closing issues, or merging an epic. Use ccpm any time the user is talking about shipping a feature, managing work, or tracking progress — even if they don't say 'ccpm' or 'PRD'. Do NOT use for: debugging code, writing tests, reviewing PRs, or raw GitHub issue/PR operations with no delivery context.

8,145 Updated 2 months ago
automazeio
AI & Automation Solid

code-execution

Execute Python code locally with marketplace API access for 90%+ token savings on bulk operations. Activates when user requests bulk operations (10+ files), complex multi-step workflows, iterative processing, or mentions efficiency/performance.

585 Updated 2 months ago
mhattingpete