Skip to content

dongnguyenvie/bashcut-agent-kit / skills/stock-images

stock-images

Verified

FileKindSize
SKILL.mdskill md8.0 KB
fetch_emoji.pyscript1.5 KB
fetch_illustrations.pyscript1.6 KB
fetch_logos.pyscript1.5 KB
fetch_stock.pyscript1.5 KB

fetch_stock.py

View on GitHub
#!/usr/bin/env -S uv run --script
# /// script
# requires-python = ">=3.10"
# dependencies = ["pillow>=10.1"]
# ///
"""Runs fetch_stock.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_stock`), 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_stock.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_stock.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)
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
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: 194kUpdated Claude CodeCodexVerifiedInstall