dongnguyenvie/bashcut-agent-kit / skills/captions-text
captions-text
Verified| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 14.0 KB |
| fetch_font.py | script | 1.5 KB |
| fetch_fonts.py | script | 1.5 KB |
fetch_fonts.py
View on GitHub#!/usr/bin/env -S uv run --script
# /// script
# requires-python = ">=3.10"
# dependencies = ["pillow>=10.1", "fonttools>=4.40"]
# ///
"""Runs fetch_fonts.py of BashCut's Online Resources plugin (bashcut.resources), the one copy the app's Online resources
sheet uses too: same flags (`--help`), same output. Imported (`import fetch_fonts`), it is that module."""
import importlib.util
import os
import runpy
import sys
from pathlib import Path
def plugin_script(name):
"""BASHCUT_RESOURCES_DIR, a project's .bashcut/plugins, then the user's plugins folder."""
here = Path.cwd()
roots = [os.environ.get("BASHCUT_RESOURCES_DIR"), *(p / ".bashcut/plugins/bashcut.resources" for p in (here, *here.parents)),
Path.home() / "Library/Application Support/BashCut/Plugins/bashcut.resources"]
for root in roots:
if root and (Path(root) / "scripts" / name).is_file():
return Path(root) / "scripts" / name
sys.exit('{"error": "fetch_fonts.py needs the Online Resources plugin: bashcut plugins install bashcut.resources"}')
# Bytecode written into the plugin folder would change it, and BashCut would ask to trust the plugin again.
sys.dont_write_bytecode = True
SCRIPT = plugin_script("fetch_fonts.py")
sys.path.insert(0, str(SCRIPT.parent))
if __name__ == "__main__":
runpy.run_path(str(SCRIPT), run_name="__main__")
else:
_spec = importlib.util.spec_from_file_location(__name__, SCRIPT)
_module = importlib.util.module_from_spec(_spec)
sys.modules[__name__] = _module
_spec.loader.exec_module(_module)
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |