Agent skill

Proto Regenerate

by buildonspark in buildonspark/spark

Regenerate proto bindings for both SO (Go) and SDK (TypeScript) after proto file changes

Apache-2.0Auto-check: warnings

Install Proto Regenerate

The automated check flagged lines worth reading first. See the safety section below.

skills CLI
$ npx skills add buildonspark/spark --skill proto-regenerate -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install buildonspark/spark proto-regenerate --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/buildonspark/spark.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/proto-regenerate .claude/skills/proto-regenerate && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
proto-regenerate
GitHub stars
113
Token cost
~308 tokens
SKILL.md length
101 words
Files
1
Skills in repo
2
Repo updated
First seen
Licence
Apache-2.0

At a glance

Regenerate proto bindings for both SO (Go) and SDK (TypeScript) after proto file changes

  • Works in 4 steps: Regenerate SO (Go) bindings → Regenerate SDK (TypeScript) bindings → Verify generation → …
  • SKILL.md covers Steps, Critical Notes and Usage
  • Calls mise, make and yarn

What it does

Proto Regenerate is an agent skill from buildonspark/spark. Regenerate proto bindings for both SO (Go) and SDK (TypeScript) after proto file changes

Its SKILL.md is about 310 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It works with TypeScript. The repository describes itself as: The Spark Bitcoin layer 2 protocol. The licence is Apache-2.0.

Example prompts

  • “/proto-regenerate”

Workflow steps

4 steps, taken from the first numbered list in SKILL.md.

  1. Regenerate SO (Go) bindings
  2. Regenerate SDK (TypeScript) bindings
  3. Verify generation
  4. Run code quality checks

What it can do on your machine

Read from SKILL.md and the folder at commit 0b3a32a. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • mise
    • make
    • yarn

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use yarn, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Proto Regenerate loads about 308 tokens when it runs. Until then it costs about 26 tokens; SKILL.md has 101 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~26
When it runs · the whole SKILL.md, loaded when a task matches
~308

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: warnings

The automated check found patterns that need a careful read before installing.

  • WarningContains instruction-override wording (e.g. “without asking the user”)SKILL.md:40
    - Never update tool versions without user consent

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from buildonspark/spark at commit 0b3a32a, republished under its Apache-2.0 licence (© buildonspark). 101 words, ~308 tokens.

Download SKILL.mdSave it as .claude/skills/proto-regenerate/SKILL.md (or your agent's skills folder).
name
proto-regenerate
description
Regenerate proto bindings for both SO (Go) and SDK (TypeScript) after proto file changes
disable-model-invocation
true

Proto Regeneration Workflow

When .proto files are modified, regenerate bindings for both codebases.

Steps

All commands run from repository root

  1. Regenerate SO (Go) bindings:

    bash
    make
  2. Regenerate SDK (TypeScript) bindings:

    bash
    cd sdks/js/packages/spark-sdk
    mise exec -- yarn generate:proto
    cd - # Return to repo root
  3. Verify generation:

    • Check spark/proto/ for updated Go files
    • Check sdks/js/packages/spark-sdk/src/spark-wallet/proto-descriptors.ts for updated TypeScript file
  4. Run code quality checks:

    bash
    cd spark && mise lint && cd -
    cd sdks/js && yarn build && cd -

Critical Notes

  • MUST use mise exec -- for TypeScript generation to ensure protoc v29.3
  • Never update tool versions without user consent
  • If proto generation fails, check mise.toml for correct protoc version

Usage

After modifying any .proto file in the protos/ directory, run:

/proto-regenerate

This ensures both Go and TypeScript bindings stay in sync.

© buildonspark, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/proto-regenerate of buildonspark/spark.

Open the folder on GitHubat commit 0b3a32a

Compare with similar skills

Proto Regenerate next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Proto Regenerate compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Proto Regenerate this skillbuildonspark/spark113—~308Automated safety check: WarnApache-2.0
MCP Server Builderanthropics/skills180k63 repos~2.3kAutomated safety check: PassApache-2.0
Web Artifacts Builderanthropics/skills180k40 repos~769Automated safety check: PassApache-2.0
Typescript Advanced Typesrolling-scopes/rsschool-app10k25 repos~4.2kAutomated safety check: PassMPL-2.0
Code Review ChecklistshareAI-lab/learn-claude-code78k4 repos~1.1kAutomated safety check: PassMIT
MCP Server BuildershareAI-lab/learn-claude-code78k4 repos~1.2kAutomated safety check: PassMIT

Similar skills

  • MCP Server Builder

    anthropics/skills

    Official

    Guides the design and implementation of Model Context Protocol servers in TypeScript or Python, from tool naming and error messages to evaluation.

    180k GitHub starsUsed in 63 repos~2.3k tokens
    Agent WorkflowsAuto-check passed
  • Web Artifacts Builder

    anthropics/skills

    Official

    Builds multi-component claude.ai HTML artifacts as a small React, TypeScript and Tailwind project, then bundles it into one shareable HTML file.

    180k GitHub starsUsed in 40 repos~769 tokens
    Frontend & DesignAuto-check passed
  • Typescript Advanced Types

    rolling-scopes/rsschool-app

    Master TypeScript's advanced type system including generics, conditional types, mapped types, template literals, and utility types for building type-safe applications.

    10k GitHub starsUsed in 25 repos~4.2k tokens
    DevelopmentAuto-check passed
  • Code Review Checklist

    shareAI-lab/learn-claude-code

    Reviews code against a five-part checklist covering security, correctness, performance, maintainability and testing, and reports findings in a fixed format.

    78k GitHub starsUsed in 4 repos~1.1k tokens
    DevelopmentAuto-check passed
  • MCP Server Builder

    shareAI-lab/learn-claude-code

    Walks through building MCP servers in Python or TypeScript that expose tools, resources and prompts to Claude, with templates, registration and testing.

    78k GitHub starsUsed in 4 repos~1.2k tokens
    Agent WorkflowsAuto-check passed
  • Nx Import

    nrwl/nx

    Import, merge, or combine repositories into an Nx workspace using nx import.

    29k GitHub starsUsed in 6 repos~3.5k tokens
    DevelopmentAuto-check passed

More from buildonspark/spark

  • Resolving Rebase Conflicts

    buildonspark/spark

    Resolve rebase conflicts in Ent generated code and Atlas migrations using repository scripts.

    113 GitHub stars~1.5k tokensUpdated 1 mo ago
    Auto-check passed

Works with

Questions about Proto Regenerate

What does Proto Regenerate do?

Regenerate proto bindings for both SO (Go) and SDK (TypeScript) after proto file changes. Proto Regenerate is an agent skill from buildonspark/spark.

How do I install Proto Regenerate in Claude Code?

Run `npx skills add buildonspark/spark --skill proto-regenerate -a claude-code`. Or copy the skill folder (.claude/skills/proto-regenerate in buildonspark/spark) into .claude/skills/proto-regenerate in your project. Claude Code loads it when a task matches its description.

How do I install Proto Regenerate in Codex?

Run `npx skills add buildonspark/spark --skill proto-regenerate -a codex`. Or copy the skill folder (.claude/skills/proto-regenerate in buildonspark/spark) into .agents/skills/proto-regenerate in your project. Codex loads it when a task matches its description.

Can I use Proto Regenerate in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add buildonspark/spark --skill proto-regenerate -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/proto-regenerate, .gemini/skills/proto-regenerate, .github/skills/proto-regenerate and .opencode/skills/proto-regenerate in your project.

What does Proto Regenerate need to run?

Going by SKILL.md and its folder, Proto Regenerate needs the command-line tools its instructions call (mise, make and yarn).

Does Proto Regenerate access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Proto Regenerate safe to install?

Our automated static check of SKILL.md flagged 1 warning(s): contains instruction-override wording (e.g. “without asking the user”). Read the flagged lines before installing; the check is not a guarantee either way.

What licence does Proto Regenerate use?

Proto Regenerate is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Proto Regenerate use?

About 308 tokens (SKILL.md is roughly 1.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Proto Regenerate?

Skills that share tags, products or a category with Proto Regenerate: MCP Server Builder (anthropics/skills, 180k stars), Web Artifacts Builder (anthropics/skills, 180k stars), Typescript Advanced Types (rolling-scopes/rsschool-app, 10k stars) and Code Review Checklist (shareAI-lab/learn-claude-code, 78k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Proto Regenerate?

buildonspark (a GitHub organization) maintains it in buildonspark/spark, which has 113 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on September 1, 2026.

Source: buildonspark/spark on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.