Agent skill

Copy Samples

by whitphx in whitphx/stlite

Update sharing-editor sample apps from the streamlit/docs repository

Apache-2.0Auto-check passed

Install Copy Samples

skills CLI
$ npx skills add whitphx/stlite --skill copy-samples -a claude-code

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

GitHub CLI
$ gh skill install whitphx/stlite copy-samples --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/whitphx/stlite.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/copy-samples .claude/skills/copy-samples && 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
copy-samples
GitHub stars
1.7k
Token cost
~393 tokens
SKILL.md length
145 words
Files
1
Skills in repo
4
Repo updated
First seen
Licence
Apache-2.0

At a glance

Update sharing-editor sample apps from the streamlit/docs repository

  • Works in 5 steps: Run the copy-samples script → If any patch fails, investigate the… → Verify the build succeeds → …
  • Calls sh and make

What it does

Copy Samples is an agent skill from whitphx/stlite. Update sharing-editor sample apps from the streamlit/docs repository

Its SKILL.md is about 390 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 Streamlit, Python and WebAssembly. The repository describes itself as: Streamlit-Lite; In-browser Streamlit 🎈🚀. The licence is Apache-2.0.

Example prompts

  • “/copy-samples”

Workflow steps

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

  1. Run the copy-samples script
  2. If any patch fails, investigate the upstream changes and update the corresponding patch file in packages/sharing-editor/bin/sample-diffs/
  3. Verify the build succeeds
  4. If the build fails due to missing stlite.json manifests for new sample directories, create them. Each stlite.json needs title and…
  5. Check newly added sample files for file paths referencing python/api-examples-source/ (e.g…

What it can do on your machine

Read from SKILL.md and the folder at commit 9a44ae8. 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:

    • sh
    • make

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

  • Network

    No URLs in SKILL.md.

    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

Copy Samples loads about 393 tokens when it runs. Until then it costs about 20 tokens; SKILL.md has 145 words of instructions outside code blocks.

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

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 passed

The automated check found no risky patterns in SKILL.md.

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 whitphx/stlite at commit 9a44ae8, republished under its Apache-2.0 licence (© whitphx). 145 words, ~393 tokens.

Download SKILL.mdSave it as .claude/skills/copy-samples/SKILL.md (or your agent's skills folder).
name
copy-samples
description
Update sharing-editor sample apps from the streamlit/docs repository
disable-model-invocation
true
argument-hint
path-to-streamlit-docs-repo

Update the sharing-editor sample apps by copying from the upstream Streamlit docs repository.

  1. Run the copy-samples script:
    shell
    sh packages/sharing-editor/bin/copy-samples.sh $ARGUMENTS
  2. If any patch fails, investigate the upstream changes and update the corresponding patch file in packages/sharing-editor/bin/sample-diffs/
  3. Verify the build succeeds:
    shell
    make sharing-editor
  4. If the build fails due to missing stlite.json manifests for new sample directories, create them. Each stlite.json needs title and entrypoint fields. Check existing samples under packages/sharing-editor/public/samples/ for reference.
  5. Check newly added sample files for file paths referencing python/api-examples-source/ (e.g. open("python/api-examples-source/cat-purr.mp3", ...)). These paths don't exist in the sharing-editor samples layout. For each such file:
    • Ensure the referenced asset is copied into packages/sharing-editor/public/samples/011_component_gallery/pages/ (the copy-samples script or a cp command).
    • Create a patch in packages/sharing-editor/bin/sample-diffs/011_component_gallery/pages/ that rewrites the path to pages/<filename>.
    • Add the cp and patch commands to copy-samples.sh.
    • Apply the patch to the current sample file. See the existing charts.audio-purr.py patch for reference.

© whitphx, 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/copy-samples of whitphx/stlite.

Open the folder on GitHubat commit 9a44ae8

Compare with similar skills

Copy Samples 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.

Copy Samples compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Copy Samples this skillwhitphx/stlite1.7k—~393Automated safety check: PassApache-2.0
Spider Kingaoyunyang/spider-king-skill507—~7.3kAutomated safety check: PassMIT
Wasm Compatibilityericmjl/llamabot1822 repos~1.6kAutomated safety check: PassNone
Build Fluentqt Guicalvinhxx/Fluent-Qt152—~1.6kAutomated safety check: PassMIT
Language Supportlive-codes/livecodes1.5k—~1.6kAutomated safety check: PassMIT
Updating Docs For Releasestreamlit/docs178—~4kAutomated safety check: PassApache-2.0

Similar skills

  • Spider King

    aoyunyang/spider-king-skill

    Pure-web protocol reverse skill: turn hostile browser clients into browser-free Python collectors.

    507 GitHub stars~7.3k tokensUpdated 1 mo ago
    Backend & APIsAuto-check passed
  • Wasm Compatibility

    ericmjl/llamabot

    Check if a marimo notebook is compatible with WebAssembly (WASM) and report any issues.

    182 GitHub starsUsed in 2 repos~1.6k tokens
    Data & AnalyticsAuto-check passed
  • Build Fluentqt Gui

    calvinhxx/Fluent-Qt

    Create, integrate, redesign, or fix C++ and PySide6 GUIs using FluentQt, including component and Gallery work.

    152 GitHub stars~1.6k tokensUpdated 3 days ago
    Frontend & DesignAuto-check passed
  • Language Support

    live-codes/livecodes

    Work with 90+ supported languages, compilers, CSS processors, and WASM-compiled languages for markup, style, and script editors.

    1.5k GitHub stars~1.6k tokensUpdated today
    Frontend & DesignAuto-check passed
  • Update the streamlit/docs repo for a new Streamlit release. An agent skill from streamlit/docs.

    178 GitHub stars~4k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Edge Python

    dylan-sutton-chavez/edge-python

    Write, run, test and package Edge Python programs with the edge CLI.

    271 GitHub stars~12k tokensUpdated today
    SecurityAuto-check passed

More from whitphx/stlite

  • Changeset

    whitphx/stlite

    Create or update a changeset fragment (.changeset/.md) reflecting the changes made in the current session or branch.

    1.7k GitHub stars~1.9k tokensUpdated 12 days ago
    Auto-check passed
  • Scan Dependencies

    whitphx/stlite

    CRITICAL: The scan-dependencies skill flags any dependencies that are unsafe to use.

    1.7k GitHub stars~1.7k tokensUpdated 12 days ago
    Auto-check passed
  • Streamlit Rebase

    whitphx/stlite

    Rebase our custom fork of the Streamlit repository onto new upstream Streamlit release

    1.7k GitHub stars~2.3k tokensUpdated 12 days ago
    Auto-check passed

Questions about Copy Samples

What does Copy Samples do?

Update sharing-editor sample apps from the streamlit/docs repository. Copy Samples is an agent skill from whitphx/stlite.

How do I install Copy Samples in Claude Code?

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

How do I install Copy Samples in Codex?

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

Can I use Copy Samples 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 whitphx/stlite --skill copy-samples -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/copy-samples, .gemini/skills/copy-samples, .github/skills/copy-samples and .opencode/skills/copy-samples in your project.

What does Copy Samples need to run?

Going by SKILL.md and its folder, Copy Samples needs the command-line tools its instructions call (sh and make).

Does Copy Samples 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 Copy Samples safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Copy Samples use?

Copy Samples 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 Copy Samples use?

About 393 tokens (SKILL.md is roughly 1.6k 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 Copy Samples?

Skills that share tags, products or a category with Copy Samples: Spider King (aoyunyang/spider-king-skill, 507 stars), Wasm Compatibility (ericmjl/llamabot, 182 stars), Build Fluentqt Gui (calvinhxx/Fluent-Qt, 152 stars) and Language Support (live-codes/livecodes, 1.5k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Copy Samples?

whitphx (a GitHub user) maintains it in whitphx/stlite, which has 1,669 GitHub stars. The repository holds 4 skills in this directory. The repository was last updated on September 25, 2026.

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