AgentSkillsCN

repo-b-hardware-first

在 <PRIVATE_REPO_B> 中,坚持硬件优先的诊断与修复。适用于运行时探针、遥测、推理,以及集成故障场景——在这些场景中,需要严格遵循真实硬件行为,杜绝新增桩代码,并确保诊断过程具有确定性。

SKILL.md
--- frontmatter
name: repo-b-hardware-first
description: Enforce hardware-first diagnosis and fixes in <PRIVATE_REPO_B>. Use for runtime probe, telemetry, inference, and integration failures where strict real-hardware behavior, no new stubs, and deterministic diagnostics are required.

REPO_B Shim Hardware First

Use this skill to troubleshoot and fix shim issues with real-hardware assumptions.

Operating Rules

  1. Assume hardware exists and is the required path.
  2. Do not add new stubs, fake fallbacks, or simulation shortcuts.
  3. Keep strict env modes explicit during diagnosis.

Strict-Diagnosis Workflow

  1. Set strict environment flags.
  2. Run doctor and probe checks.
  3. Run strict preflight profiles.
  4. Fix root cause in real execution path.
  5. Re-run checks and capture evidence.

Commands

bash
repo_b_ONLY=1 repo_b_FORCE_REAL=1 REPO_B_INFERENCE_PROVIDER=repo_b_only python3 -m repo_b_repo_b_python_shim --doctor
repo_b_ONLY=1 repo_b_FORCE_REAL=1 REPO_B_INFERENCE_PROVIDER=repo_b_only python3 shim_hw_test.py --json --require-hardware
powershell
pwsh -File tools/preflight.ps1 -Fast
pwsh -File tools/preflight.ps1 -Hardware -ForceReal -repo_bOnly -VerboseOutput

References

  • Strict command matrix: references/strict-commands.md