distro-scripts
The distro.py helper, copied out by the install command in distro-setup. Never read or retype it.
от brokep★ 48 звёзд на GitHub
Установить distro-scripts в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
distro-scripts
Part of the Distro Bot agent preset.
distro-scripts
The distro.py helper. The install command in distro-setup copies it out by its marker, so never read or retype it. Commands: install, init, status, set, ingest, report, winners, propose, approve, applied, revert, reject, changes, learn, playbook, site, scan, topic, topics, lead, leads, suppress, fal, higgs, grok, sizes. Each prints one JSON line.
#!/usr/bin/env python3
# DISTRO_TOOLS_V1: Distro Bot helper: settings, performance ingest and analysis, the change ledger and budget caps,
# the playbook, site snapshots, topic scans, the outbound ledger, and ad creative on FAL, Higgsfield, or Grok Imagine.
# Every command prints one JSON line. Standard library only, plus ffmpeg for ad sizes.
import base64
import calendar
import csv
import datetime as dt
import email.utils
import html
import json
import math
import mimetypes
import os
import random
import re
import shutil
import statistics
import subprocess
import sys
import time
import urllib.error
import urllib.parse
import urllib.request
import xml.etree.ElementTree as ET
from html.parser import HTMLParser
mimetypes.add_type("image/webp", ".webp")
# A user's bots share /workspace, so every file lives beside this script in the folder the install picked.
HOME = os.environ.get("DISTRO_HOME") or os.path.dirname(os.path.abspath(__file__))
P = {k: os.path.join(HOME, v) for k, v in (("state", "state.json"), ("perf", "perf.csv"), ("changes", "changes.jsonl"),
("playbook", "playbook.md"), ("topics", "topics.jsonl"), ("leads", "leads.csv"),
("sends", "sends.csv"), ("suppress", "suppress.txt"))}
ENV = os.environ.get
FAL_QUEUE, FAL_API, FAL_REST = ENV("DISTRO_FAL_QUEUE", "https://queue.fal.run"), ENV("DISTRO_FAL_API", "https://api.fal.ai"), ENV("DISTRO_FAL_REST", "https://rest.alpha.fal.ai")
XAI_API, HF_API = ENV("DISTRO_XAI_API", "https://api.x.ai/v1"), ENV("DISTRO_HF_API", "https://api.higgsfield.ai")
HN_API, NEWS_RSS = ENV("DISTRO_HN_API", "https://hn.algolia.com/api/v1"), ENV("DISTRO_NEWS_RSS", "https://news.google.com/rss/search")
SECRET_FILES = [p for p in (ENV("DISTRO_SECRETS", ""), "/home/box/agent-data/box-secrets.json") if p]
KEYS = ("FAL_KEY", "XAI_API_KEY", "HF_KEY")
UA = "Mozilla/5.0 (X11; Linux x86_64) distro-bot/1.0"
ROUTINES = ("Campaign check", "Trend scan", "Outbound replies", "Weekly distro review")
ROLES, ACCESS = ("sales", "voice", "intel", "seo", "qa"), ("connector", "browser", "export", "off")
SPEND_KINDS = ("budget", "bid", "launch", "pause")
KINDS = SPEND_KINDS + ("creative", "targeting")
LEARN_KINDS = ("hook", "angle", "offer", "audience", "format", "channel", "timing", "voice", "avoid", "other")
STAGES = ("new", "drafted", "sent", "replied", "handed_off", "closed")
STOP_WHY = ("optout", "bounce", "customer", "no", "other")
GAPS, MIN_IMPR = (3, 5, 7), 1000
FIELDS = ["date", "platform", "campaign", "adset", "ad", "spend", "impressions", "clicks", "conversions", "revenue",
"engagements", "reach", "currency", "source", "read_at"]
NUMS = FIELDS[5:12]
LEAD_FIELDS = ["email", "name", "company", "title", "domain", "source", "stage", "step", "last_touch", "next_touch",
"thread", "said", "replied_at", "handed_to", "note", "added"]
FREE_MAIL = set("gmail.com googlemail.com yahoo.com outlook.com hotmail.com live.com icloud.com me.com aol.com proton.me "
"protonmail.com gmx.com mail.com yandex.com zoho.com".split())
ALIASES = {"facebook": "meta", "instagram": "meta", "meta ads": "meta", "google ads": "google", "adwords": "google",
"twitter": "x", "x ads": "x", "x posts": "x-organic", "x organic": "x-organic", "linkedin ads": "linkedin",
"tiktok ads": "tiktok", "reddit ads": "reddit", "bing": "microsoft", "microsoft ads": "microsoft"}
FORBIDDEN_INPUT = re.compile(r"(api_?key|token|secret|password)", re.I)
GROK_IMAGE, GROK_VIDEO = "grok-imagine-image-2.0", "grok-imagine-video-1.5"
HF_IMAGE, HF_VIDEO = "higgsfield-ai/soul/v2/standard", "bytedance/seedance-2.0/image-to-video"
# xAI list prices per second of video on 2026-10-01. /v1/models returns live image prices but none for video.
GROK_VIDEO_USD = {"grok-imagine-video": 0.05, "grok-imagine-video-1.5": 0.08}
PLACEMENTS = {"meta": [("square", 1080, 1080), ("portrait", 1080, 1350), ("story", 1080, 1920)],
"google": [("square", 1200, 1200), ("landscape", 1200, 628), ("portrait", 960, 1200)],
"x": [("square", 1200, 1200), ("landscape", 1200, 628)],
"linkedin": [("square", 1200, 1200), ("landscape", 1200, 628)],
"tiktok": [("story", 1080, 1920)],
"reddit": [("square", 1200, 1200), ("portrait", 1080, 1350), ("landscape", 1920, 1080)]}
REPAIRED = [] # tools reinstalled after a computer update dropped them
# ---------- basics ----------
def now_dt():
v = ENV("DISTRO_NOW")
d = dt.datetime.fromisoformat(v.repla
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл distro-scripts?
The distro.py helper, copied out by the install command in distro-setup. Never read or retype it.
Как установить скилл distro-scripts?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл distro-scripts запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…