Agent skill

Quark Torch Doc Drift Check

by amd in amd/Quark

Compare skill contracts and guidance against current Quark documentation and source entry points.

MITAuto-check passedAI & LLM Engineering

Install Quark Torch Doc Drift Check

skills CLI
$ npx skills add amd/Quark --skill quark-torch-doc-drift-check -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install amd/Quark quark-torch-doc-drift-check --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/amd/Quark.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills-impl/meta/torch/quark-torch-doc-drift-check .claude/skills/quark-torch-doc-drift-check && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
quark-torch-doc-drift-check
GitHub stars
181
Token cost
~1.5k tokens
SKILL.md length
170 words
Files
1
Skills in repo
37
Repo updated
First seen
Licence
MIT

At a glance

Compare skill contracts and guidance against current Quark documentation and source entry points.

  • Works in 5 steps: Select scope: Full check or focused on… → Run checks: Compare skill content… → Classify findings: Critical (broken… → …
  • Maintainers need to verify that installation docs
  • SKILL.md covers Purpose, Inputs, Outputs: validation_report.md and Interaction Flow, plus 1 more section
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Quark Torch Doc Drift Check is an agent skill from amd/Quark. Compare skill contracts and guidance against current Quark documentation and source entry points. Use when maintainers need to verify that installation docs, artifact schemas, PTQ planning assumptions, CLI flags, or supported model lists still match upstream Quark reality. Trigger for "check doc drift", "are skills still accurate", "verify against Quark docs", or after a Quark release when upstream documentation may have changed.

Its SKILL.md is about 1.5k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in AI & LLM Engineering. The licence is MIT.

When your agent uses it

  • Maintainers need to verify that installation docs
  • Artifact schemas
  • PTQ planning assumptions
  • Supported model lists still match upstream Quark reality

Example prompts

  • “check doc drift”
  • “are skills still accurate”
  • “verify against Quark docs”
  • “/quark-torch-doc-drift-check”

Requirements

  • Python 3

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Select scope: Full check or focused on specific skills/facts?
  2. Run checks: Compare skill content against upstream source and docs.
  3. Classify findings: Critical (broken guidance), warning (outdated), info (gap in coverage).
  4. Report: Produce the drift report.
  5. Hand off: If fixes are needed, route to quark-torch-skill-sync for the actual updates.

What it can do on your machine

Read from SKILL.md and the folder at commit 313cb0b. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are markdown).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Quark Torch Doc Drift Check loads about 1.5k tokens when it runs. Until then it costs about 115 tokens; SKILL.md has 170 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~115
When it runs · the whole SKILL.md, loaded when a task matches
~1.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from amd/Quark at commit 313cb0b, republished under its MIT licence (© amd). 170 words, ~1,489 tokens.

Download SKILL.mdSave it as .claude/skills/quark-torch-doc-drift-check/SKILL.md (or your agent's skills folder).
name
quark-torch-doc-drift-check
description
Compare skill contracts and guidance against current Quark documentation and source entry points. Use when maintainers need to verify that installation docs, artifact schemas, PTQ planning assumptions, CLI flags, or supported model lists still match upstream Quark reality. Trigger for "check doc drift", "are skills still accurate", "verify against Quark docs", or after a Quark release when upstream documentation may have changed.
layer
meta
primary_artifact
validation_report.md
source_knowledge
docs/source/install.rst, examples/torch/language_modeling/llm_ptq/README.md, quark/torch/quantization/config/template.py

quark-torch-doc-drift-check

Purpose

Provide a lightweight governance check focused on documentation accuracy. While quark-torch-skill-sync audits source code changes broadly, this skill focuses specifically on whether the skills' user-facing guidance (install commands, scheme lists, model names, CLI flags) still matches what Quark's own docs and source say. Think of this as a fact-checker for the skill system.

Inputs

  • Quark upstream docs and source code (read-only)
  • Current skill SKILL.md files

Outputs: validation_report.md

Lists where current skill guidance has drifted from upstream Quark docs and source.

Schema: validation_report.schema.json

markdown
# Documentation Drift Report

## What to Check

### 1. CLI Flags Still Exist
The skills reference specific `quantize_quark.py` flags. Verify they are still in the argparse definitions:

**Critical flags to verify:**
- `--quant_scheme` — and that all 21 scheme names listed in `quark-torch-quant-plan` are still valid
- `--quant_algo` — and that all algorithm names are still valid
- `--model_export` — and that `hf_format`, `onnx`, `gguf` are still the options
- `--kv_cache_dtype` — still accepts `fp8`
- `--multi_gpu` — still accepts `auto` and `balanced`
- `--file2file_quantization` — still exists for ultra-large models
- `--trust_remote_code` — still defaults to True

### 2. Model Templates Still Exist
Check that `quark/torch/quantization/config/template.py` still contains all model templates listed in `quark-torch-model-intake`:

```python
# Key check: model_type values in the template registry
# Expected: llama, mistral, qwen, qwen2, qwen3, deepseek, phi, phi3, etc.
```

### 3. Contract Fields Match Workflow Needs

Verify that the JSON schemas in `.claude/skills-impl/shared/contracts/` match what the workflow actually produces:

- `session_context.schema.json` — does the schema match the `session_context.json` structure skills emit?
- `quant_plan.schema.json` — does it include all fields from `quark-torch-quant-plan`'s decision table?
- `run_manifest.schema.json` — does it match `quark-torch-llm-ptq-workflow`'s manifest output?

### 4. Install Docs Match

Compare `quark-torch-install`'s PyTorch version matrix with:

- `tools/ci/install_torch.sh` PyTorch version matrix
- `docs/source/install.rst` installation instructions

Compare `quark-install`'s dependency tables with:

- `pyproject.toml` Python version constraint
- `requirements.txt` core dependency versions
- `docs/source/install.rst` installation instructions

### 5. Examples Don't Contradict

Check that the example prompts in `examples/agent_skills/prompts/` would still route correctly with current skill descriptions. Verify skill output formats against the schemas in `.claude/skills-impl/shared/contracts/` directly.

## Checking Process

```bash
# Extract current scheme list from source
grep -oP "register_scheme\(['\"](\w+)['\"]" quark/torch/quantization/config/template.py

# Extract CLI flags from quantize_quark.py
grep -oP "add_argument\(['\"]--(\w+)['\"]" examples/torch/language_modeling/llm_ptq/quantize_quark.py

# Extract model templates
grep -oP "model_type=['\"](\w+)['\"]" quark/torch/quantization/config/template.py

# Check Python version constraint
grep "requires-python" pyproject.toml
```

## Rules

- **This is a read-only check** — report findings but do not modify skills. Modifications go through `quark-torch-skill-sync`.
- **Focus on user-facing facts** — version numbers, command syntax, and option lists matter most because users will copy-paste them.
- **Flag removed items as critical** — a skill that recommends a deleted flag will cause immediate user failures.
- **Flag new items as informational** — a new scheme that is not yet documented in skills is a gap, not an error.

## Checks Performed

- CLI flags: 15 checked, 14 match, 1 drift
- Scheme list: 21 checked, 21 match
- Model templates: 36 checked, 34 match, 2 new (not in skills)
- Install versions: 8 checked, 7 match, 1 drift

## Findings

### CRITICAL: CLI flag renamed

- `--custom_mode` in skills → now `--export_mode` in source
- **Impact**: Copy-paste commands in quark-torch-export will fail
- **Action**: Update quark-torch-export SKILL.md

### INFO: New model templates not in skills

- `phi4` and `command_r` added to template.py
- **Impact**: Users asking about these models won't get model-specific guidance
- **Action**: Add to quark-torch-model-intake supported models table

### INFO: PyTorch 2.10.0 added for CUDA 13.0

- Skills already list 2.10.0 as supported — no action needed

Interaction Flow

  1. Select scope: Full check or focused on specific skills/facts?
  2. Run checks: Compare skill content against upstream source and docs.
  3. Classify findings: Critical (broken guidance), warning (outdated), info (gap in coverage).
  4. Report: Produce the drift report.
  5. Hand off: If fixes are needed, route to quark-torch-skill-sync for the actual updates.

Recovery

  • If upstream docs are inaccessible, report which checks could not be performed.
  • If drift is detected, hand off to quark-torch-skill-sync with the specific findings so it can apply targeted fixes.

© amd, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills-impl/meta/torch/quark-torch-doc-drift-check of amd/Quark.

Open the folder on GitHubat commit 313cb0b

Compare with similar skills

Quark Torch Doc Drift Check next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Quark Torch Doc Drift Check compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Quark Torch Doc Drift Check this skillamd/Quark181—~1.5kAutomated safety check: PassMIT
Agent BuildershareAI-lab/learn-claude-code78k5 repos~1.2kAutomated safety check: PassMIT
Add Uint Supportpytorch/pytorch104k2 repos~2.3kAutomated safety check: PassCustom licence
LLM Benchmarking with lm-evaluation-harnessOrchestra-Research/AI-Research-SKILLs13k8 repos~3kAutomated safety check: PassMIT
Segment Anything Model GuideOrchestra-Research/AI-Research-SKILLs13k8 repos~3.3kAutomated safety check: PassMIT
1passwordtrpc-group/trpc-agent-go1.9k14 repos~656Automated safety check: PassApache-2.0

Similar skills

  • Agent Builder

    shareAI-lab/learn-claude-code

    Design and build AI agents for any domain. An agent skill from shareAI-lab/learn-claude-code.

    78k GitHub starsUsed in 5 repos~1.2k tokens
    AI & LLM EngineeringAuto-check passed
  • Add Uint Support

    pytorch/pytorch

    Add unsigned integer (uint) type support to PyTorch operators by updating ATDISPATCH macros.

    104k GitHub starsUsed in 2 repos~2.3k tokens
    AI & LLM EngineeringAuto-check passed
  • LLM Benchmarking with lm-evaluation-harness

    Orchestra-Research/AI-Research-SKILLs

    Runs lm-evaluation-harness to benchmark language models on academic suites such as MMLU, GSM8K and HumanEval, compare models and track training checkpoints.

    13k GitHub starsUsed in 8 repos~3k tokens
    AI & LLM EngineeringAuto-check passed
  • Segment Anything Model Guide

    Orchestra-Research/AI-Research-SKILLs

    Guide to using Meta's Segment Anything Model for zero-shot image segmentation with point, box or mask prompts, or automatic mask generation.

    13k GitHub starsUsed in 8 repos~3.3k tokens
    AI & LLM EngineeringAuto-check passed
  • 1password

    trpc-group/trpc-agent-go

    Set up and use 1Password CLI (op). An agent skill from trpc-group/trpc-agent-go.

    1.9k GitHub starsUsed in 14 repos~656 tokens
    AI & LLM EngineeringAuto-check passed
  • Planning With Files

    jarrodwatts/claude-code-config

    Transforms workflow to use Manus-style persistent markdown files for planning, progress tracking, and knowledge storage.

    1.1k GitHub starsUsed in 5 repos~967 tokens
    AI & LLM EngineeringAuto-check passed

More from amd/Quark

All 37 skills in this repo
  • Author or restructure a Quark Agent Skill so it conforms to this project's template, contracts, and layer rules.

    181 GitHub stars~3.1k tokensUpdated 12 days ago
    Auto-check passed
  • Run, resume, monitor, diagnose, and report Quark Quant-Perf workflows for PyTorch and HuggingFace transformers models.

    181 GitHub stars~3k tokensUpdated 12 days ago
    Auto-check passed
  • Author a new ShapeShifter graph-transformation pass for AMD Quark (ONNX or PyTorch) so it conforms to the pass framework's conventions and auto-registers.

    181 GitHub stars~2.9k tokensUpdated 12 days ago
    Auto-check passed
  • Collect and normalize environment facts (OS, Python, GPU, CUDA/ROCm, container state) before Quark installation or PTQ planning.

    181 GitHub stars~1.4k tokensUpdated 12 days ago
    Auto-check passed
  • Quark Install

    amd/Quark

    Install or verify the AMD Quark package and its dependencies.

    181 GitHub stars~1.8k tokensUpdated 12 days ago
    Auto-check: notes
  • L3 recipe that runs quark.onnx.AutoSearchPro end-to-end on a user .onnx model: intake → preset selection (or custom search space) → calibration / eval data reader → standalone autosearch script…

    181 GitHub stars~3.4k tokensUpdated 12 days ago
    Auto-check passed

Questions about Quark Torch Doc Drift Check

What does Quark Torch Doc Drift Check do?

Compare skill contracts and guidance against current Quark documentation and source entry points. Quark Torch Doc Drift Check is an agent skill from amd/Quark. Compare skill contracts and guidance against current Quark documentation and source entry points.

When should I use Quark Torch Doc Drift Check?

Quark Torch Doc Drift Check fits situations like: maintainers need to verify that installation docs; artifact schemas; PTQ planning assumptions; supported model lists still match upstream Quark reality.

How do I install Quark Torch Doc Drift Check in Claude Code?

Run `npx skills add amd/Quark --skill quark-torch-doc-drift-check -a claude-code`. Or copy the skill folder (.claude/skills-impl/meta/torch/quark-torch-doc-drift-check in amd/Quark) into .claude/skills/quark-torch-doc-drift-check in your project. Claude Code loads it when a task matches its description.

How do I install Quark Torch Doc Drift Check in Codex?

Run `npx skills add amd/Quark --skill quark-torch-doc-drift-check -a codex`. Or copy the skill folder (.claude/skills-impl/meta/torch/quark-torch-doc-drift-check in amd/Quark) into .agents/skills/quark-torch-doc-drift-check in your project. Codex loads it when a task matches its description.

Can I use Quark Torch Doc Drift Check in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add amd/Quark --skill quark-torch-doc-drift-check -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/quark-torch-doc-drift-check, .gemini/skills/quark-torch-doc-drift-check, .github/skills/quark-torch-doc-drift-check and .opencode/skills/quark-torch-doc-drift-check in your project.

What does Quark Torch Doc Drift Check need to run?

SKILL.md names no scripts, command-line tools or credentials: Quark Torch Doc Drift Check is instructions for the agent only. Our summary lists: Python 3.

Does Quark Torch Doc Drift Check access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Quark Torch Doc Drift Check safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Quark Torch Doc Drift Check use?

Quark Torch Doc Drift Check is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Quark Torch Doc Drift Check use?

About 1.5k tokens (SKILL.md is roughly 6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Quark Torch Doc Drift Check?

Skills that share tags, products or a category with Quark Torch Doc Drift Check: Agent Builder (shareAI-lab/learn-claude-code, 78k stars), Add Uint Support (pytorch/pytorch, 104k stars), LLM Benchmarking with lm-evaluation-harness (Orchestra-Research/AI-Research-SKILLs, 13k stars) and Segment Anything Model Guide (Orchestra-Research/AI-Research-SKILLs, 13k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Quark Torch Doc Drift Check?

amd (a GitHub organization) maintains it in amd/Quark, which has 181 GitHub stars. The repository holds 37 skills in this directory. The repository was last updated on September 28, 2026.

Source: amd/Quark on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.