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★ 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,ghdirectory and verdicts. Offer to record it. On the operator's yes, run<script> record --data-dir ... --confirm <saved discover output>; without--confirmit 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 bothobserved_byentries. 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>. Rundifffirst 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 aredisable-model-invocation: true, so ahandoffline 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 aconflictand stops for it, and it is never put into the singlepluginConfigsslot.
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.
- Pointer: when stating where
${CLAUDE_PLUGIN_DATA}resolves or when uninstall removes it, fetch plugin manifest reference: environment variables and plugin uninstall live.
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
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- 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 запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…