BB huawei-cloud-msmodelslim-model-adapt
Create basic Transformers model adapters for msModelSlim. Implements required interfaces and completes a four-step verification workflow: generate test model -> full fallback quantization -> weight verification -> quantization description validation. Use this skill when the user wants to: (1) create msModelSlim adapters for decoder-only LLM, (2) adapt understanding VLM text backbones for quantization, (3) implement W8A8/W4A16 quantization workflow for new models. Trigger: user mentions "msModelSlim", "adapter", "model adapter","quantization", "W8A8","W4A16", "transformers", "LLM", "VLM", "adapter creation", "适配器","模型适配", "量化", "模型适配器", "LLM量化"
Create basic Transformers model adapters for msModelSlim.
As a process B 75/100 · Nearly there — weak spots: result and completion, running it twice, progress reporting
What is at stake
Medium-severity findings: the skill is probably honest, but read what alarmed the scanner.
Below is the worst case for this category. The finding here is medium: the guard saw a sign, not a proof.
The skill asks for more than the task needs: broad tool access, credential environment variables, binaries. Every extra permission widens the damage from a mistake or a compromise.
Narrow allowed-tools and the variable list to the minimum; replace binaries with readable sources or scripts.
How to improve
- Your own cases (evals/evals.json, 4–6 real requests with expected answers): the full check would then run those instead of a model-drafted suite.
- A spec.yaml with trigger phrases and assertions — a behaviour contract for CI; `skilltest init` writes a template.
Guard findings · 14
✓ No critical or high findings
Medium and low: 14
-
medium Broad scope
meta-broad-allowed-toolsSKILL.md:1Broad tool permissions pre-approved: bashallowed-tools: python3 bash
-
low Secrets in code
secret-high-entropy-tokenassets/model_adapter_template.py:21High-entropy token-like string (may be an id, hash or a credential)Mode…eV1
-
low Secrets in code
secret-high-entropy-tokenassets/model_adapter_template.py:29High-entropy token-like string (may be an id, hash or a credential)Mode…eV1):
-
low Secrets in code
secret-high-entropy-tokenassets/model_adapter_template.py:38High-entropy token-like string (may be an id, hash or a credential) (detector / deny-list definition)# ==================== Mode…eV1 ====================
detector -
low Secrets in code
secret-high-entropy-tokenassets/vlm_model_adapter_template.py:19High-entropy token-like string (may be an id, hash or a credential)from msmodelslim.model.interface_hub import Mode…eV1
-
low Secrets in code
secret-high-entropy-tokenassets/vlm_model_adapter_template.py:29High-entropy token-like string (may be an id, hash or a credential)Mode…eV1,
-
low Secrets in code
secret-high-entropy-tokenassets/vlm_model_adapter_template.py:44High-entropy token-like string (may be an id, hash or a credential) (detector / deny-list definition)# ==================== Mode…eV1 ====================
detector -
low Secrets in code
secret-high-entropy-tokenreferences/acceptance-criteria.md:44High-entropy token-like string (may be an id, hash or a credential)class MyModelAdapter(TransformersModel, Mode…eV1):
-
low Secrets in code
secret-high-entropy-tokenreferences/implementation_guide.md:34High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)- **pushrecommendcontinueadmit**: `TransformersModel + Mode…eV1` (`ModelInfoInterface` canselectbutSuggest)
quoted -
low Secrets in code
secret-high-entropy-tokenreferences/implementation_guide.md:40High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)- **pushrecommendcontinueadmit**: `VLMBaseModelAdapter + Mode…eV1` (`ModelInfoInterface` canselectbutSuggest)
quoted -
low Secrets in code
secret-high-entropy-tokenreferences/interface_reference.md:29High-entropy token-like string (may be an id, hash or a credential)## 2) Mode…eV1 (mustneed)
-
low Secrets in code
secret-high-entropy-tokenreferences/interface_reference.md:76High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)- oughtInterfacethroughoftenand `TransformersModel + Mode…eV1` groupmatchUsage.
quoted -
low Secrets in code
secret-high-entropy-tokenreferences/interface_reference.md:86High-entropy token-like string (may be an id, hash or a credential)Mode…eV1):
-
low Secrets in code
secret-high-entropy-tokenreferences/interface_reference.md:90High-entropy token-like string (may be an id, hash or a credential) (quoted — discussed, not commanded)ifwhenpreviousScenariosnotrequiresModelinformationinformationabilityforce, cansavestrategy `ModelInfoInterface`, but `Mode…eV1` notcansavestrategy.
quoted
Files scanned: 26. Evidence is masked. Grey chips explain why severity was lowered.
Against the Agent Skills spec
✓ No remarks against the Agent Skills spec
Process rating: all ten parameters 75/100
- 0Progress reporting. Says nothing while it works
- 30Running it twice. 6 mutating operations with no state check
- 40Result and completion. Does not say what the result is
- 50Failures and branches. 0 branches, has a failure section
- 70When it triggers. States when to use, but not when not to
- 70Inputs and preconditions. Inputs and preconditions are listed
- 100Tools and files. Tools declared in frontmatter
- 100Steps. 47 steps
- 100Consistency. Name and required fields are in place
- 100Execution cost. Instruction body is 1698 tokens
- low 12 top-level sections: this looks like several domains in one skill
- low The response is described with custom markup (3 tags): a typed call is more reliable
Everything here is measured from the skill text rather than judged by a model, so the numbers are checkable. A parameter weighs more when it is a more common reason for the process to stall.
Quality signals
- +4Description does not say when NOT to use the skill (false activations)
- +3Output format is not stated: the model decides each time
- +1No license
- +2Single-language instructions
- +5Description quotes 6 example trigger phrases
- +3Description length 651: enough signal without eating the budget
- +4Structure: 19 headings
- +3Step-by-step instructions: 47 items
- +4Has examples (3 code blocks)
- +4Reference files are cited in the instructions (8 of 10)
- +3All 4 scripts are documented
Quality base 70; lint remarks subtract, signals add up to 100. Result: 96.