Skip to main content
skill CX Codex

deploy-chalk-function — Claude Code skill: deploy Python

This skill walks through deploying a standalone Python function to Chalk’s container infrastructure and calling it remotely with chalkcompute.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add chalk-ai/chalk-ai-plugins --skill deploy-chalk-function -a claude-code
Open on GitHub

What deploy-chalk-function does

The skill outlines a Python file that imports chalkcompute, marks a function with @chalkcompute.function(), and calls it from the script. Importing the decorated function triggers image building, upload, and registration. A later call runs remotely and returns the result.

The example uses a uv script header with an inline dependency declaration. Python must stay within >=3.12,<3.14 because the transitive Rust package chalk-remote-call-python currently builds only through Python 3.13. The decorator requires parentheses; leaving them out raises TypeError.

Credentials come from CHALK_API_SERVER, CHALK_CLIENT_ID, CHALK_CLIENT_SECRET, and CHALK_ENVIRONMENT_ID, rather than the chalk CLI configuration. Without CHALK_ENVIRONMENT_ID, the image operation fails with permission_denied. If the configured index cannot resolve chalkcompute, the skill shows how to point uv to a local chalk-sandbox-sdk checkout.

What it helps with

  • deploy a standalone Python function to Chalk
  • run a decorated function remotely
  • declare chalkcompute as a uv dependency
  • provide Chalk credentials through environment variables
  • trace a permission_denied image-build failure

Example prompts for the agent

  • Create a uv Python script that uses @chalkcompute.function() and deploys the function to Chalk.
  • List the environment variables required by chalkcompute and explain the permission_denied error.
  • Show how to invoke the decorated function from the same script with uv.

How to install deploy-chalk-function

1Skills CLI (Vercel)

npx skills add chalk-ai/chalk-ai-plugins --skill deploy-chalk-function -a claude-code

2Manually: put the files in place

~/.claude/skills/deploy-chalk-function/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/deploy-chalk-function/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about deploy-chalk-function

How do I install deploy-chalk-function in Claude Code?

Run npx skills add chalk-ai/chalk-ai-plugins --skill deploy-chalk-function -a claude-code. The skill will be available at ~/.claude/skills/deploy-chalk-function/SKILL.md.

What does deploy-chalk-function do?

It explains how to deploy a standalone Python function with chalkcompute. Importing the decorated function starts image creation, upload, and registration, while calling it sends the work to Chalk remotely.

Which environment variables does chalkcompute require?

Set CHALK_API_SERVER, CHALK_CLIENT_ID, CHALK_CLIENT_SECRET, and CHALK_ENVIRONMENT_ID. The SDK reads these values from the environment, and omitting CHALK_ENVIRONMENT_ID causes a permission_denied result during image handling.

Similar skills

All skills for Agent setup: memory, context, orchestration →

From the same set4

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor