Skip to content
cccskills
FreePublished on GitHub

machine-probe

Tell the user (or an agent) exactly what machine they are on — chip, cores, RAM, NPU TOPS, memory bandwidth, security posture, DSH tier, and the right Ollama model to pull. Refreshes the canonical profile at agents/core/.mesh/machine.json on every call. Reads the result via agents.core.machine — zero re-probing in application code.

The English summary is being prepared. Showing the original description.

See how to install

Files included (1)

  • SKILL.md4.0 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

You are answering self-knowledge questions about the DSH sovereign node. Treat agents/core/.mesh/machine.json as the single source of truth and the agents.core.machine module as the canonical accessor.

1. Refresh the profile

Always re-probe before answering — state can change (user plugged in a display, upgraded RAM, disabled FileVault):

"$DOME_ROOT/.venv/bin/python" "$DOME_ROOT/scripts/machine-probe.py"

If the venv doesn't exist yet, fall back to system python:

python3 "$DOME_ROOT/scripts/machine-probe.py"

Silent output to the user is fine — only the summary matters downstream.

2. Read via the accessor, never re-probe

import sys
sys.path.insert(0, "$DOME_ROOT")
from agents.core.machine import (
    get_profile,        # full dict
    get_tier,           # 'sovereign' | 'guardian' | 'scout' | 'seed' | 'heavy' | 'workstation'
    get_chip_family,    # 'M4 Pro', 'M1', etc. (or None on non-Apple)
    get_ram_gb,         # float
    get_npu_tops,       # float or None
    is_apple_silicon,   # bool
    recommend_local_model,  # 'qwen2.5-coder:14b' etc.
    security_posture,   # compact dict
    summary_one_liner,  # human-readable sentence
)

Never shell out to system_profiler, sysctl, or ioreg directly from the answer path — the probe already did that and structured the output.

3. Answer patterns

"What machine am I on?"

Return summary_one_liner(). Example:

Apple M5 Pro · 18 cores (6S + 12P) · 48.0 GB RAM · 40+ TOPS NPU · tier=sovereign

"What tier am I?"

Return get_tier() + a one-line meaning:

  • workstation (≥64 GB): run the biggest quantized models (70B+)
  • heavy (≥32 GB): 32B coder + 70B generalist
  • sovereign (≥18 GB): 14B coder + 8B generalist (recommended default)
  • guardian (≥12 GB): 8B generalist + medium Phi
  • scout (≥8 GB): 8B generalist only
  • seed (<8 GB): 3B Phi-mini

"What Ollama model should I pull?"

Return recommend_local_model() + offer to run bash scripts/ollama-init.sh to actually pull it.

"Is my node secure?"

Return security_posture() as a 6-row check:

filevault          : True / False
sip                : True / False
gatekeeper         : True / False
firewall           : True / False
dns_private        : True / False
secrets_backend    : True / False

For each False, suggest the exact fix command (e.g. dns_private=False → sudo networksetup -setdnsservers Wi-Fi 127.0.0.1).

"Give me the full profile"

Return get_profile() pretty-printed. If the user requests JSON specifically, use json.dumps(profile, indent=2).

4. Via HTTP (remote clients)

If the DSH FastAPI server is running (pnpm serve), two routes expose the same data:

  • GET http://localhost:8001/machine/summary — compact payload (recommended for mobile)
  • GET http://localhost:8001/machine — full profile

Use these from a remote controller / phone / other node. Returns 503 if profile missing — in that case run step 1 locally first.

5. When to re-run

  • Before any setup skill (dsh-setup calls this as step 5).
  • After any hardware change (new disk, new RAM — rare, but possible on an MBP).
  • After security state changes (FileVault toggled, firewall reconfigured).
  • On every dome-check.sh run (already wired — section 0 refreshes automatically).

Non-negotiables

  • Never invent specs. If get_profile() returns None for a field, say "unknown" — do not guess.
  • Never expose the machine.json contents to a remote caller without auth. The /machine routes are read-only and should be behind Tailscale / VPN in production.
  • agents/core/.mesh/ is gitignored. Do not suggest committing the profile.

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

ai-sdk

Free

Vercel AI SDK expert guidance. Use when building AI-powered features — chat interfaces, text generation, structured output, tool calling, agents, MCP integration, streaming, embeddings, reranking, image generation, or working with any LLM provider.

The English summary is being prepared. Showing the original description.

garochee33/DSH4Updated Oct 12, 2026

Algorithm design and analysis skill for DSH; use when working on optimization, data structures, or computational procedures.

The English summary is being prepared. Showing the original description.

garochee33/DSH4Updated Oct 12, 2026

Design and implement scalable API gateways, RESTful APIs, GraphQL endpoints, WebSocket handlers, and microservice communication patterns. Use when creating API routes, designing endpoints, implementing middleware, or setting up service mesh architectures.

The English summary is being prepared. Showing the original description.

garochee33/DSH4Updated Oct 12, 2026

Implement a task N ways in parallel and pick the best. Spawns multiple subagents in isolated worktrees, evaluates all candidates, and applies the winner. Use when asked to "best of n", "try multiple approaches", "parallel implementations", "/best-of-n", or "/bon".

The English summary is being prepared. Showing the original description.

garochee33/DSH4Updated Oct 12, 2026

check

Free

Check your work with a verification subagent. Spawns a verifier that reviews diffs, runs builds and tests, and evaluates correctness. Use when asked to "check work", "verify changes", "self-verify", "/check", "/verify", "/check-work", or "/self-verify".

The English summary is being prepared. Showing the original description.

garochee33/DSH4Updated Oct 12, 2026

CI/CD pipeline design, GitHub Actions workflows, deployment automation, infrastructure as code, and release management. Use when setting up CI/CD, automating deployments, configuring build pipelines, or managing releases.

The English summary is being prepared. Showing the original description.

garochee33/DSH4Updated Oct 12, 2026

See all skills by garochee33

Report a problem with this skill