generation-gate-rules
БесплатноЗапускает вложенные скриптыНе проверенHide a generator ecosystem or model version from everyone except moderators — "available to moderators, hidden" — and lift that gate again; or, during a…
от civitai★ 7 333 звезды на GitHubОб этом скилле
Generation Gate Rules
node .claude/skills/generation-gate-rules/gate.mjs <command> [flags]
The rules model is described in docs/features/generation-gating-rules-model.md.
What add writes
The rule is always available to moderators, hidden, and that isn't configurable. Moderators see and can generate with the target. Everyone else never sees it. A hidden rule also blocks canGenerate across the whole site, so a version published while its rule is in place still can't be generated by non-mods.
Gate targets:
- a new ecosystem:
--ecosystem <EcosystemRecord.key>. The key is case-sensitive. A misspelled key has no effect, and nothing reports the mistake. - a new version in an existing ecosystem:
--version <id>.
Adding the rule before the code deploys is safe. A rule that names something the running code doesn't know yet has no effect.
What disable writes
For an outage, when one generator fails for everyone and the cause is outside our code (a provider is down, out of credit, or changed its API). The rule is available to moderators, disabled, with the --message you pass. Non-moderators still see the generator, greyed out with that message, and the server refuses their requests. Moderators can still generate, so they can tell when it recovers. Run enable once a fresh read shows successes again.
Commands
| Command | What it does |
|---|---|
list [--json] |
Every rule on the site. |
add --ecosystem <key> or add --version <id> [--message <m>] [--writable] |
Adds a rule this skill owns, with the id onboard-eco-<key> or onboard-mv-<id>. |
remove --ecosystem <key> or remove --version <id> [--from-rule <id>] [--writable] |
Removes this skill's rule. With --from-rule, removes the target from a rule someone set by hand. |
disable --ecosystem <key> or disable --version <id> --message <m> [--writable] |
Adds or rewrites the incident rule incident-<key>-<UTC date> (key lowercased) or incident-mv-<id>-<UTC date>, then reads it back. |
enable --ecosystem <key> or enable --version <id> [--writable] |
Deletes every incident-* rule that names only this target, then reads back that they are gone. It refuses if an incident rule also gates something else. |
addis idempotent. If the rule already exists, it does nothing. If another rule already covers the target, it says so.removenever edits a rule it doesn't own unless you pass--from-rule. Without the flag, it lists the hand-made rules that gate the target.- Writes touch one rule at a time (
saveGateRule/deleteGateRule), so they never overwrite someone else's rules.remove --from-rulestill reads the rule first, so an edit made to that rule in between is lost.
Another rule on the same target can override this one. "Available to nobody, hidden" is the kill switch: it hides the target from moderators too, and hidden from any rule that applies wins. Point that out to the user instead of editing their rule.
Setup
- It uses
CIVITAI_API_KEYfrom.claude/skills/mod-actions/.env, and it must belong to a moderator. - Every write is a dry run unless you pass
--writable. Ask the user before each--writablecall. Rules take effect on the live site immediately.
Установить generation-gate-rules в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл generation-gate-rules?
Hide a generator ecosystem or model version from everyone except moderators — "available to moderators, hidden" — and lift that gate again; or, during a provider outage, disable it for everyone except moderators with a message users see, and enable it again. Reads and writes the same generation gate rules the /moderator/generation-config page edits. Use before a new generator model's code deploys, to remove the gate at launch, and when one generator's provider is down. Called by onboard-generator-model; usable on its own.
Как установить скилл generation-gate-rules?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл generation-gate-rules запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic