Command Palette

Search for a command to run...

Назад к скиллам
скилл № 13032

Key‑Safe Skill Generator (Zero-Exposure Edition)

A documentation‑only meta‑skill that teaches AI agents how to design, generate and validate zero‑exposure skills on MGC Blackbox 1.5.4. Provides the…

БесплатноЗапускает вложенные скрипты
zkevinyот zkeviny1 288 установок в других каталогах

Установить Key‑Safe Skill Generator (Zero-Exposure Edition) в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

1. Overview — What This Generator Produces

This is a meta‑skill: it teaches an AI agent how to design and generate zero‑exposure skills on MGC Blackbox 1.5.4.

It does not run anything itself. It produces three kinds of artefact:

Shape When to generate it What the user gets
Single‑script skill One operation, one credential, one script A script stored in MGC, run with mgc_run, writing a result file
Workflow package skill Several scripts that call each other A folder stored with mgc_save_file, cross‑script calls routed at runtime
Sealed delivery package The skill must run on another node A sealed capsule (p2p or free mode) the target node imports and runs

This skill does not restate the MGC feature set. The authoritative, always-current reference for MGC tools, ext fields, error codes and sealing internals is the upstream specification. Load it with the mgc_skill MCP tool whenever the flow is unclear — it returns the live spec, not a snapshot.

What this skill adds is the part the spec cannot give you: the generation specification, the acceptance checklist, and templates that actually run on 1.5.4.


2. The Zero‑Exposure Contract — What "Zero‑Exposure" Means

A generated skill is zero‑exposure when no credential value ever enters the AI's context, a prompt, a log line, or a parameter string.

2.1 The contract, as a three‑party split

User   → mgc_save(info_type="config", info_owner="<ref>", content=<credentials>)
User   → mgc_save(info_type="script", info_owner="<name>", ext01="python", content=<script>)
AI     → mgc_run(info_owner="<name>", diff_3="<name>", ext02='["--arg","value"]')
           └─ MGC executes the script inside the encrypted boundary
               └─ script reads the credential over the localhost REST API
               └─ script performs the sensitive operation
               └─ script writes the result to a file and prints its path
AI     → reads the result file → sees the operation outcome, never the secret

2.2 The single rule

Never call mgc_get on a credential entry from AI. mgc_get returns plaintext and destroys the guarantee.

The one permitted exception is the node public key: mgc_get(info_type="__NODE_PUB__", info_owner="__NODE_PUB__") returns a public key, not a secret.

2.3 The acceptance test

A generated skill is zero‑exposure only if all five hold:

# Test How to check
1 No credential value appears in any file the AI can read Grep the skill files for the secret
2 The credential is referenced by info_owner only The script holds a name, never a value
3 The credential is fetched at runtime, inside the boundary The script calls the REST API
4 The operation outcome reaches the AI through a result file, not through a credential read The script prints RESULT_FILE:<path>
5 No credential value is passed as a runtime parameter ext02 carries only non‑sensitive values

3. The Generation Flow

Six steps, in this order. Each step produces something the next one consumes.

1. Identify the operation          → what the skill does, for whom
2. Design the credential record    → info_type, info_owner, required fields
3. Choose the production shape     → single script / workflow package / sealed
4. Write the script(s)             → using the layer specs in §4-§6
5. Assemble the skill package      → SKILL.md + manifest.json + optional script
6. Validate against the checklist → §8

Step 1 is not optional. A skill that cannot state its operation in one sentence will not produce a coherent SKILL.md either.


4. Layer Specification — Credential

4.1 Naming convention

Field Value Rule
info_type "config" The credential record type
info_owner "<service>_<environment>" One per service and per environment. Good: smtp_gmail_prod. Bad: test, cred1

Use a distinct info_owner per service and per environment. Two skills that share a credential must agree on the exact same info_owner string — that string is the contract between them.

4.2 Content shape

Store credentials as a JSON object. The script owns the field names, so define them once and reuse.

Tool: mgc_save
Parameters:
  info_type:   "config"
  info_owner:  "smtp_gmail_prod"
  content:     "{\"host\": \"smtp.example.com\", \"port\": 587, \"username\": \"<user supplied>\", \"password\": \"<user supplied>\"}"

Never put a credential value in a template, a README, a prompt or an example. Use a placeholder such as <user supplied>. A template that ships with a realistic-looking secret is a leak waiting to happen.

4.3 Runtime retrieval

This is the code that the generated script carries. It is the single most important block in the whole skill.

import os
import json
import requests

MGC_BASE_URL = "http://127.0.0.1:572
Полный SKILL.md на ClawHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл Key‑Safe Skill Generator (Zero-Exposure Edition)?

A documentation‑only meta‑skill that teaches AI agents how to design, generate and validate zero‑exposure skills on MGC Blackbox 1.5.4. Provides the generation specification (credential layer, script layer, workflow package layer, sealed delivery layer), a selectable acceptance checklist, and corrected templates. Credentials are stored encrypted; local scripts read them via the localhost REST API at runtime, while AI agents never touch plaintext. Covers 1.5.4 dual-mode sealing, link authorization, capsule import, folder workflows with auto-recognised cross-script call graphs, and credential rotation and deletion.

Как установить скилл Key‑Safe Skill Generator (Zero-Exposure Edition)?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Key‑Safe Skill Generator (Zero-Exposure Edition) запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить Key‑Safe Skill Generator (Zero-Exposure Edition) с