sergebulaev/tiktok-skills / .codex-marketplace/tiktok-skills
tiktok-marketing
VerifiedPlan, script, caption, and publish short-form video for TikTok. Use when the user wants to write the first 1-3 second hook (spoken line plus on-screen text), draft a caption under 2,200 chars with TikTok settings and hashtags, ride a trending sound without being cringe, strip AI tells from a spoken script to sound human on camera, or plan a week around completion rate. TikTok is video-only: the user supplies the video, the skills produce the script, caption, and settings, then publish via Publora.
lib/_env.py
View on GitHub"""Internal helper to load .env when python-dotenv is available."""
from __future__ import annotations
import os
from pathlib import Path
_ENV_LOADED = False
#: The only variables a project .env may set. Anything the bundle *executes*
#: or routes traffic through has to come from the launch environment: a .env
#: that arrives with a clone, or that lands in a parent directory, is not a
#: trusted source for the name of a command to run.
_DOTENV_VARIABLES = (
"APIFY_TOKEN", "PUBLORA_API_KEY", "TIKTOK_PLATFORM_ID", "PIXFARO_TOKEN", "PIXFARO_API_KEY",
)
def env_candidates() -> list[Path]:
"""Where `load_env` looks, in order: upward from the cwd, then the repo root
(this file's parent's parent)."""
out: list[Path] = []
try:
from dotenv import find_dotenv
found = find_dotenv(usecwd=True)
if found:
out.append(Path(found))
except ImportError:
cur = Path.cwd()
for d in [cur, *cur.parents]:
if (d / ".env").is_file():
out.append(d / ".env")
break
root = Path(__file__).resolve().parents[1] / ".env"
if root not in out:
out.append(root)
return out
def load_env(force: bool = False) -> None:
"""Load environment variables from .env if python-dotenv is installed.
Safe no-op if python-dotenv is missing, preserving Tier 0 (manual)
zero-dependency operation. Searches upwards from the current working
directory and checks the repository root. Only bundle API credentials and
the platform id are loaded. Executables and transport settings must come
from the launch environment. Existing environment variables are preserved.
"""
global _ENV_LOADED
if _ENV_LOADED and not force:
return
try:
from dotenv import dotenv_values
for path in env_candidates():
if not path.is_file():
continue
values = dotenv_values(path)
for name in _DOTENV_VARIABLES:
value = values.get(name)
if value is not None:
os.environ.setdefault(name, value)
except ImportError:
pass
_ENV_LOADED = True
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 472k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 323k | Updated | Claude CodeCodex | Verified | Install |