ref-cross-platform-runtime SKILL.md skillA
ref-cross-platform-runtime from daishiman/harness-dev is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add daishiman/harness-dev/ref-cross-platform-runtime@git:20260712.4cd8fafPins git:20260712.4cd8faf in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- daishiman/harness-dev
- Path
eval-log/task/08/claude-skills.before/ref-cross-platform-runtime/SKILL.md- Versions recorded
- 1
- Latest version
- git:20260712.4cd8faf, committed Jul 12, 2026
- Size
- 2,604 bytes
- Repository stars
- 10
- License
- none declared
他Skillが host OS で分岐するとき、OS判定に失敗したときに読む。.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# ref-cross-platform-runtime
## Purpose & Output Contract
Mac / Linux / Windows / unknown を横串で扱うための共通契約を提供する。
本 ref を import した skill は次の dict を呼び出し元へ返せる:
```json
{
"os": "mac|linux|windows|unknown",
"shell": "bash|powershell",
"python_available": true,
"fallback_used": false
}
```
## Boundary
- **責務**: OS 判定動線・フォールバック文面・no-deps 原則の宣言
- **非責務**: 個別 secret 取得(→ `scripts/cross_platform_secret.py` に委譲)
## Key Rules
1. 判定キー: `uname -s` または `ver`。両方失敗 → unknown
2. unknown のとき自走しない。**必ず** ユーザーへ問い合わせる(後述プロンプト)
3. ユーザー宣言値は **会話スコープのみ** に保持。長期記憶へ焼き込まない
4. 追加導入を要求する CLI を呼ばない(jq, yq, rg, requests, PyYAML 禁止)
## Steps
参照用。手順なし。本文を import する skill 側が以下を組み込むこと。
### OS判定 (skill 本文に貼る雛形)
```bash
OS_KIND="$(uname -s 2>/dev/null || echo unknown)"
case "$OS_KIND" in
Darwin) os=mac ;;
Linux) os=linux ;;
MINGW*|MSYS*|CYGWIN*) os=windows ;;
*) os=unknown ;;
esac
```
### unknown フォールバックプロンプト
```text
お使いの OS を判定できませんでした。次のいずれかでお答えください。
1. macOS
2. Linux
3. Windows
回答に応じて、以降は os=mac / os=linux / os=windows で分岐します。
```
## Gotchas
- `uname` が無い純 Windows コマンドプロンプトでは `ver` を使う
- WSL は uname=Linux で返るので Linux 経路で扱う(user に確認しない)
…Read the whole file at its exact version.
How to install
mdr add daishiman/harness-dev/ref-cross-platform-runtime@sha256:86891307247f7d53The line at the top of this page pins the label git:20260712.4cd8faf, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_3wxod5rxuvlxd5ta)
3 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 1 version of this file, committed on Jul 12, 2026.
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (2604 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
daishiman/harness-dev · 10 stars · license none declared · pushed 2026-11-03 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_3wxod5rxuvlxd5ta GET https://markdownregistry.com/api/v1/resolve?ref=daishiman/harness-dev/ref-cross-platform-runtime GET https://markdownregistry.com/api/v1/blob/86891307247f7d53fc0b99474f98204f08a46e225ec3e59ffc289bb6cdf7dbba
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.
More from daishiman/harness-dev
Every file in daishiman/harness-dev