All skills
artwist-polyakov avatar

/sourcecraft-publisher

@42bec57

Publish static page artifacts to SourceCraft Sites (Yandex infrastructure, works in Russia), with advisory image optimization and an original-image path. Use when a static page/React artifact needs to be deployed to SourceCraft under YYYY/YYYY-MM/page-slug directory layout.

Use this Skill: https://skilld.dev/gh/artwist-polyakov/polyakov-claude-skills/sourcecraft-publisher

This session only. Nothing lands on disk.

configREADME.md

≈428 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Настройка sourcecraft-publisher

Быстрый старт

  1. Скопируйте .env.example:
    cp config/.env.example config/.env
  2. Заполните переменные (см. ниже)

Получение токена SourceCraft

  1. Откройте SourceCraft
  2. Перейдите в Settings → Access Tokens
  3. Создайте токен с правами Contents: Read and Write на нужный репозиторий
  4. Скопируйте токен в SOURCECRAFT_TOKEN

Если интерфейс отличается — ищите раздел OAuth/PAT tokens в настройках профиля или организации.

Переменные окружения

Переменная Обязательна Описание
SOURCECRAFT_TOKEN да OAuth2 токен для push в SourceCraft
SOURCECRAFT_REPO да org/repo — целевой репозиторий
SOURCECRAFT_BRANCH нет Ветка для push (default: master)
SOURCECRAFT_SITE_URL да Публичный URL сайта, например https://org.sourcecraft.site/repo

Структура публикации

Артифакты публикуются в директории:

YYYY/YYYY-MM/page-slug/

Итоговый URL:

<SOURCECRAFT_SITE_URL>/YYYY/YYYY-MM/page-slug/

SourceCraft Sites конфигурация

Скрипт автоматически создаёт .sourcecraft/sites.yaml в репозитории если его нет:

site:
  root: "."
  ref: master

Source: SKILL.md on GitHub

1 warning17d3 checks · Risk SAFE
  • Gen Agent Trust Hub17d

    This skill facilitates the deployment of static web artifacts to Yandex SourceCraft Sites. It securely manages authentication tokens through environment variables, sanitizes user-provided paths to prevent injection, and includes optional image optimization using the trusted Pillow library. The execution of shell commands for Git operations is handled safely without shell interpolation.

  • Socket17d

    1 alert: gptAnomaly

  • Snyk17d

    Risk: LOW · No issues

Signed by skilld at 42bec57. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last week.

Activeupdated 5 months ago

README badge

README badge for artwist-polyakov/polyakov-claude-skills/sourcecraft-publisher