starlark-mcp: Skill for Claude Code

.claude/skills/create-extension/SKILL.md

create-extension is a skill for Claude Code from connyay/starlark-mcp. It costs 39 tokens per session (2,405 once invoked), scanned A, original, MIT.

A guide for creating a new Starlark MCP extension, a small add-on that gives the starlark-mcp server additional tools or actions. It covers the extension's files, handlers, and structure.

In plain words
What is it for?
Use it when adding an extension with tools that call APIs, use SQLite or PostgreSQL, work with files, or run system commands.
Why use it?
Starting an extension requires choosing how it will access services, databases, files, or commands. The guide helps select an existing module or the appropriate implementation approach.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is connyay/starlark-mcp's own configuration. It tells Claude Code how to work on starlark-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything starlark-mcp configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is echo '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"tool_name","arguments":{}}}' | ./target/release/starlark-mcp.

Reuse

Borrowing it

Nothing to install: this file belongs to connyay/starlark-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/connyay/starlark-mcp/main/.claude/skills/create-extension/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/connyay/starlark-mcp

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for create-extension

README.md
[![agentmods](https://agentmods.dev/badge/skills/connyay/starlark-mcp/create-extension/github.svg)](https://agentmods.dev/skills/connyay/starlark-mcp/create-extension)
Your own site
<a href="https://agentmods.dev/skills/connyay/starlark-mcp/create-extension"><img src="https://agentmods.dev/badge/skills/connyay/starlark-mcp/create-extension/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for create-extension

Your own site · 80×15
<a href="https://agentmods.dev/skills/connyay/starlark-mcp/create-extension"><img src="https://agentmods.dev/badge/skills/connyay/starlark-mcp/create-extension.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,405 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00039 $0.02405
Opus 5.5 $0.00016 $0.00962
Sonnet 5.5 $0.00008 $0.00481
Haiku 4.5 $0.00004 $0.00241

Measured 2mo ago against content hash 63ff92d61e69, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

create-extension scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.claude/skills/create-extension/SKILL.md · 359 lines

How it starts

The opening of the file, as written. The whole thing — 359 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Create Extension

Creates a new Starlark-based MCP extension for the starlark-mcp server.

Instructions

When the user requests a new extension:

  1. Gather Requirements

    • Ask the user for the extension name (lowercase with underscores)
    • Ask what tools/capabilities the extension should provide
    • Determine if the extension needs:
      • External API access (HTTP calls)
      • Database access (SQLite, PostgreSQL)
      • File system operations
      • System commands (via exec.run())
  2. Choose Implementation Approach

    • IMPORTANT: Default to using existing Starlark modules first
    • Use exec.run() for CLI tools (docker, git, kubectl, etc.) - this is almost always the right choice
    • Use http module for REST APIs
    • Use existing sqlite or postgres modules for databases
    • Only create new Rust modules if:
      • The CLI tool doesn't exist or lacks JSON output
      • You need direct library access for performance
      • The existing modules don't provide required functionality
    • Remember: exec.run() is simple, fast to implement, and what users already have installed
  3. Create Extension File

    • Create extensions/{name}.star file
    • Follow the standard Starlark MCP extension structure
  4. Extension Structure

    # Tool handler functions
    def tool_name(params):
        """Tool description"""
        # Extract parameters
        param = params.get("param_name", "default")
    
        # Validate inputs
        if not param:
            return error_response("param_name is required")
    
        # Implement logic
        result = do_something(param)
    
        # Return MCP response
        return {
            "content": [{"type": "text", "text": result}],
        }
    
    # Helper functions
    def error_response(message):
        """Create an error response"""
        return {
            "content": [{"type": "text", "text": "Error: " + message}],
            "isError": True,
        }
    
    # Extension definition
    def describe_extension():
        """Define the extension"""
        return Extension(
            name = "extension_name",
            version = "1.0.0",
            description = "Extension description",
            tools = [
                Tool(
                    name = "tool_name",
                    description = "Tool description",
                    parameters = [
                        ToolParameter(
                            name = "param_name",
                            param_type = "string",
                            required = True,
                            description = "Parameter description",
                        ),
                    ],
                    handler = tool_name,
                ),
            ],
        )
    

Read the full file on GitHub · 359 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 359 lines · 39 tokens per session scan A 63ff92d61e69

Subscribe to this mod's changes

create-extension is a skill published in the GitHub repository connyay/starlark-mcp (2 stars, last pushed 9mo ago), licensed MIT. It adds 39 tokens to every session and 2,405 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

create-extension compared with skills from other repositories

create-extension next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
create-extensionconnyay/starlark-mcpSkill29mo agoMITA39Claude Code
opik-diagnosecomet-ml/opik-mcpSkill225yesterdayApache-2.0A187Claude Code
ue-mcp-epic-routingdb-lyon/ue-mcpSkill480yesterdayMITA81Claude Code, Codex
qa-knowledgegriddynamics/rosettaSkill373yesterdayApache-2.0A32Claude Code, Codex
apitapn1byn1kt/apitapSkill13118d agoApache-2.0A0Claude Code, Codex
frontmcp-setupagentfront/frontmcpSkill1482d agoApache-2.0A176Claude Code, Codex
x-use-reviewihuzaifashoukat/x-useSkill1815d agoMITA56Claude Code