Command Palette

Search for a command to run...

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

Machine Profile

Re-runnable profile of this machine's facts, identity domains, and drift vs the stored profile; read-only unless operator confirms a write (never installs…

БесплатноЗапускает вложенные скрипты
melodic-softwareот melodic-software★ 34 звезды на GitHub

Установить Machine Profile в Claude Code и Claude Desktop

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

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

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

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

Machine profile

Purpose

Record, once per machine, what the host has and which identity domains it holds, with the observation behind every value, so a plugin setup run starts from observed answers and a kept default says whether anyone looked. The profile drives setups; it never replaces their prerequisite logic. Design and rulings: machine-profile-design.

Everything here is read-only except two steps the operator confirms in that turn: record --confirm (writes the profile document) and apply --confirm (prints what to hand to each setup; it writes nothing itself).

Actions

<script> is bash "${CLAUDE_SKILL_DIR}/scripts/profile.sh". Every command that reads or writes the store takes --data-dir "${CLAUDE_PLUGIN_DATA}".

  • profile (default). Run /harness-ops:prerequisites, save its table to a scratch file, then run <script> discover --prerequisites <file> and print what it observed: machine facts, then each identity domain with its tree, git include, gh directory and verdicts. Offer to record it. On the operator's yes, run <script> record --data-dir ... --confirm <saved discover output>; without --confirm it validates and writes nothing.
  • diff. <script> diff --data-dir ... --prerequisites <file> compares the stored document with fresh discovery. Empty output and exit 0 mean nothing changed: say so and ask nothing. Exit 4 lists each difference with both values and both observed_by entries. The store cannot tell a hand edit from a host change, so report the difference and do not attribute it.
  • explain <key>. <script> explain --data-dir ... <key> prints the stored record and the command or path behind it.
  • apply --option <key>. Run diff first and show it. Then <script> apply --data-dir ... --option <key> prints the plan. Only after the operator says yes in that turn, add --confirm. Setup skills are disable-model-invocation: true, so a handoff line is relayed for the operator to type as /<plugin>:setup; the model does not invoke it. An option recorded under a domain is a per-domain identity: the script reports a conflict and stops for it, and it is never put into the single pluginConfigs slot.

Exit codes: 0 ok, 1 refused, 2 usage or missing tool (jq), 3 no profile stored, 4 differences found.

Where the profile lives

${CLAUDE_PLUGIN_DATA}/machine-profile/profile.json. The machine section is not project-keyed (it describes the host, the same for every project), which the design ratifies as a deviation from docs/contracts/plugin-data-report-keying rule 1; each domain is keyed by its tree root. A missing document reads as "no profile for this machine" and offers to produce one; there is no fallback path. The document is regenerable from the host, so uninstalling the plugin from its last scope costs a re-run, not data. It holds names, paths and observation commands, and discovery never reads a credential or a sensitive userConfig value. The writer is a backstop for hand-supplied records, not a secret detector: it refuses the key words and value shapes listed under Gotchas, so do not supply a secret that matches neither.

We keep the profile in the plugin data directory, accepting that an uninstall from the last scope can remove it.

Document shape and verdicts

Records live in machine.facts, machine.options, and per domain in identity, facts and options. Each record has key, value, verdict, and these by verdict:

Verdict Meaning Required
set a non-default value is in force observed_by, mode, supplied_by
default-verified unset; discovery looked observed_by, mode, observation (including "found nothing")
default-unexamined unset; nothing was looked at skipped_because, and no observed_by
blocked a guard prevents the change observed_by, mode, guard with the operator command

mode is observed or reproduced. A binary whose row in the prerequisites table names a :setup check is reproduced, because that setup is hidden and the profile cannot run its own check. A fact discovery measured directly (a binary present, a path, a core count) is recorded set with the source in supplied_by; absence is default-verified. There is no bare keep, and a value equal to its default is never written to mark it decided. default-unexamined becomes default-verified only through an observation, never through written rationale.

Discovery reads identity domains from

Полный SKILL.md на GitHub

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

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

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

Вложенные файлы

  • evals/evals.json
  • scripts/profile.sh
  • scripts/profile.test.sh

FAQ

Что делает скилл Machine Profile?

Re-runnable profile of this machine's facts, identity domains, and drift vs the stored profile; read-only unless operator confirms a write (never installs, never reapplies stored values). Use when 'profile this machine', 'has this machine changed', 'which identity domains exist here', what this host has configured, or hand machine facts to setup.

Как установить скилл Machine Profile?

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

Скилл Machine Profile запускает скрипты?

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

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

Сравнить Machine Profile с