Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add commands/boxlogodev/sapstack/sap-pm-diagnosisgit clone --depth 1 https://github.com/BoxLogoDev/sapstackWhat it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00057 | $0.00789 |
| Opus 5 | $0.00028 | $0.00394 |
| Sonnet 5 | $0.00011 | $0.00158 |
| Haiku 4.5 | $0.00006 | $0.00079 |
Grade A, and why
sap-pm-diagnosis scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
SAP PM 설비 고장 진단
입력: $ARGUMENTS
목표
설비 고장 또는 보전 이슈를 체계적으로 진단합니다. 증상 수집 → 장비 이력 분석 → 고장 원인 추적 → 대응 방안 제시 순서로 진행합니다.
안전 규칙
- 조회/분석만 수행 — 보전오더 생성/변경은 사용자 확인 후
- 장비번호·플랜트 값은 사용자가 제공
실행 절차
Step 1 — 증상 수집
사용자에게 다음을 질문:
- 장비번호 (EQUNR) 또는 기능위치 (TPLNR)
- 고장 증상 (어떤 현상이 발생했는가?)
- 발생 시점 (언제부터? 갑자기? 점진적?)
- 플랜트 + SAP 릴리스
Step 2 — 장비 이력 조회 안내
- IE03 — 장비 마스터 확인 (카테고리, 위치, 원가센터)
- IW29 — 과거 통보 이력 조회 (동일 장비 반복 고장?)
- IW39 — 과거 보전오더 이력 조회
- IW65 — 카운터/측정 이력 (가동시간, 사이클 수)
Step 3 — 고장 원인 분석
- 고장코드 카탈로그 확인 (QM/PM 카탈로그 프로파일)
- 원인코드 분류 (기계적/전기적/인적/환경적)
- MTBF 계산: 이전 고장 간격 분석
- MTTR 추적: 평균 수리 시간 확인
Step 4 — 대응 방안
- 긴급 대응: 보전통보 생성 (IW21) → 보전오더 생성 (IW31)
- 근본 원인 해결: IMG 구성 점검 → 예방보전 계획 수정 (IP02)
- 재발 방지: 보전전략 검토 (IP11), 점검 주기 조정 (IP10)
Step 5 — KPI 영향 분석
- OEE 영향도 (가동률 × 성능률 × 양품률)
- 예방보전 이행률 vs 긴급보전 비율
- 보전 비용 추이 (KO88 정산 내역)
Evidence Loop 연동
복잡한 진단 시 /sap-session-start 호출하여 Evidence Loop 진입 가능:
- Turn 1: 증상 + 장비 이력 업로드
- Turn 2: 가설 생성 + 추가 조사 요청
- Turn 3: 오퍼레이터가 현장 확인 후 증거 추가
- Turn 4: 최종 진단 + Fix/Rollback
위임
- sap-pm-consultant — 상세 PM 분석
- sap-co-consultant — 보전 비용 분석
- sap-mm-consultant — 예비부품 재고 확인
- sap-qm-consultant — 품질 연관 고장 시
참조
plugins/sap-pm/skills/sap-pm/SKILL.mdplugins/sap-pm/skills/sap-pm/references/best-practices/
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3d ago First seen · 64 lines · 57 tokens per session scan A ba36a3853e48
sap-pm-diagnosis is a command published in the GitHub repository BoxLogoDev/sapstack (18 stars, last pushed 3d ago), licensed MIT. It adds 57 tokens to every session and 789 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other commands, from other repositories
observe
部屋を能動的に観察する。3つの基本ブロックを自由に選びながらループし、受動的なスナップショットではなく発見のある観察を行う。.
model
Check if an AI model fits on your GPU before downloading.
tapeout
Produce a complete, fab-ready export bundle for a routed board — or refuse loudly. Superset of /kct:manufacturing-readiness: runs the three sign-off pre-gates, then adds a BOM part-number-resolution gate, a per-rule warning-review gate (assembly-affecting warnings block unless explicitly acknowledged), schematic +…
eol-report
EOL/EOS risk report — devices, OS versions, and firmware approaching or past end-of-life/end-of-support, prioritized by criticality.
sap-review
Trigger a structured SAP code review — invoked when ABAP, CDS, RAP, BTP, or integration code needs to be reviewed for quality, performance, security, and clean core compliance.
rvcsi-calibrate
Learn a v0 per-subcarrier baseline (mean amplitude) from a .rvcsi capture.