kali20gakki/msAgent / skills/profiler/mindstudio-cpu-binding
mindstudio-cpu-binding
VerifiedUse when diagnosing NPU + PyTorch or LLM Serving Host CPU affinity, NUMA locality, cgroup/cpuset constraints, CPU range conflicts, PyTorch/runtime threading, DataLoader, tokenizer, scheduler, vLLM-Ascend, SGLang, TTFT, TPOT, tokens/s, QPS, or multi-rank/multi-worker CPU binding issues.
assets/component-class-diagram.mmd
View on GitHubclassDiagram
class CpuAffinityAdvisorSkill {
+clarifyUserInput()
+generateCollectCommand()
+loadSnapshot()
+runDiagnosis()
+generateReport()
+generatePlan()
+applyLowRiskBinding()
+rollbackAffinity()
}
class HostCpuSnapshot {
+collection
+workload
+system
+cpu_topology
+numa_topology
+npu_topology
+processes
+cgroup
+pytorch
+runtime_sample
+availability
}
class Collector {
+collectCpuTopology()
+collectNpuTopology()
+collectProcessAffinity()
+collectCgroupLimits()
+collectPytorchConfig()
+collectRuntimeSample()
}
class DiagnosisEngine {
+evaluateRules(snapshot)
+detectMissingInfo()
+detectNoAffinity()
+detectCrossNuma()
+detectThreadOversubscription()
+detectCgroupConflict()
}
class AffinityPlanGenerator {
+generateConservativePlan()
+generateAdvancedPlan()
+generateApplyActions()
+generateRollbackActions()
}
class HtmlReportRenderer {
+renderSummary()
+renderCpuNumaGrid()
+renderIssueCards()
+renderPlan()
+writeSingleFileHtml()
}
class BindingExecutor {
+validatePid()
+validateProcessIdentity()
+validateCpuset()
+saveRollbackState()
+apply()
+rollback()
+verifyAffinity()
}
class TasksetExecutor {
+apply()
+rollback()
}
class InternalScriptExecutor {
+apply()
+rollback()
+query()
}
class RollbackStateStore {
+writeState()
+readState()
+updateActionStatus()
}
CpuAffinityAdvisorSkill --> Collector
CpuAffinityAdvisorSkill --> HostCpuSnapshot
CpuAffinityAdvisorSkill --> DiagnosisEngine
CpuAffinityAdvisorSkill --> AffinityPlanGenerator
CpuAffinityAdvisorSkill --> HtmlReportRenderer
CpuAffinityAdvisorSkill --> BindingExecutor
BindingExecutor <|-- TasksetExecutor
BindingExecutor <|-- InternalScriptExecutor
BindingExecutor --> RollbackStateStore
Collector --> HostCpuSnapshot
DiagnosisEngine --> HostCpuSnapshot
AffinityPlanGenerator --> DiagnosisEngine
HtmlReportRenderer --> HostCpuSnapshot
RollbackStateStore --> AffinityPlanGenerator
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |