Contextpilot Savings
EfficientContext/ContextPilot
A skill your agent uses when a user asks how many tokens (or how much context/cost) ContextPilot has saved, or wants a ContextPilot savings status/summary inside Hermes Agent — e.g.
Route Quark user goals to the correct atomic skill or workflow.
$ npx skills add amd/Quark --skill quark-torch-router -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install amd/Quark quark-torch-router --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/amd/Quark.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills-impl/l1-atomic/torch/quark-torch-router .claude/skills/quark-torch-router && rm -rf skills-srcUse ~/.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/
Install the "quark-torch-router" agent skill from https://github.com/amd/Quark/tree/release%2F0.13/.claude/skills-impl/l1-atomic/torch/quark-torch-router into .claude/skills/quark-torch-router/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "quark-torch-router", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/amd/Quark/tree/release%2F0.13/.claude/skills-impl/l1-atomic/torch/quark-torch-routerType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add amd/Quark --skill quark-torch-router -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install amd/Quark quark-torch-router --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/amd/Quark.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills-impl/l1-atomic/torch/quark-torch-router .agents/skills/quark-torch-router && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "quark-torch-router" agent skill from https://github.com/amd/Quark/tree/release%2F0.13/.claude/skills-impl/l1-atomic/torch/quark-torch-router into .agents/skills/quark-torch-router/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "quark-torch-router", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add amd/Quark --skill quark-torch-router -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install amd/Quark quark-torch-router --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/amd/Quark.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills-impl/l1-atomic/torch/quark-torch-router .cursor/skills/quark-torch-router && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "quark-torch-router" agent skill from https://github.com/amd/Quark/tree/release%2F0.13/.claude/skills-impl/l1-atomic/torch/quark-torch-router into .cursor/skills/quark-torch-router/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "quark-torch-router", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/amd/Quark.git --path .claude/skills-impl/l1-atomic/torch/quark-torch-router--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add amd/Quark --skill quark-torch-router -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install amd/Quark quark-torch-router --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/amd/Quark.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills-impl/l1-atomic/torch/quark-torch-router .gemini/skills/quark-torch-router && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "quark-torch-router" agent skill from https://github.com/amd/Quark/tree/release%2F0.13/.claude/skills-impl/l1-atomic/torch/quark-torch-router into .gemini/skills/quark-torch-router/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "quark-torch-router", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install amd/Quark quark-torch-routerInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add amd/Quark --skill quark-torch-router -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/amd/Quark.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills-impl/l1-atomic/torch/quark-torch-router .github/skills/quark-torch-router && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "quark-torch-router" agent skill from https://github.com/amd/Quark/tree/release%2F0.13/.claude/skills-impl/l1-atomic/torch/quark-torch-router into .github/skills/quark-torch-router/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "quark-torch-router", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add amd/Quark --skill quark-torch-router -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install amd/Quark quark-torch-router --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/amd/Quark.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills-impl/l1-atomic/torch/quark-torch-router .opencode/skills/quark-torch-router && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "quark-torch-router" agent skill from https://github.com/amd/Quark/tree/release%2F0.13/.claude/skills-impl/l1-atomic/torch/quark-torch-router into .opencode/skills/quark-torch-router/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "quark-torch-router", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
quark-torch-routerRoute Quark user goals to the correct atomic skill or workflow.
Quark Torch Router is an agent skill from amd/Quark. Route Quark user goals to the correct atomic skill or workflow. Use when a user describes a Quark task in plain language — such as "install Quark", "quantize a model", "analyze my model", "build a PTQ plan", "export the quantized model", "debug a failed run", "run the full PTQ pipeline", "run model quantization", "install Quark", or any request that involves AMD Quark model quantization. This is the entry point skill — trigger it whenever the user's intent involves Quark and the correct downstream skill is not…
Its SKILL.md is about 1.9k 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, covering LLM inference and serving and Plain language and style rules. It works with PyTorch. The licence is MIT.
4 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 313cb0b. It shows what the files ask for, not the result of running them.
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.
No scripts in the folder and no shell commands in SKILL.md (its code samples are json).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Quark Torch Router loads about 1.9k tokens when it runs. Until then it costs about 139 tokens; SKILL.md has 842 words of instructions outside code blocks.
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.
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.
The full file from amd/Quark at commit 313cb0b, republished under its MIT licence (© amd). 842 words, ~1,869 tokens.
.claude/skills/quark-torch-router/SKILL.md (or your agent's skills folder).Translate a user's natural-language goal into the smallest correct skill boundary. The router exists because Quark has a layered skill system — picking the wrong skill wastes time and produces wrong artifacts. The router is the sole producer of session_context.json; every other artifact (env, workspace, install results) is produced by its own owning skill, and the router only carries forward references to those files.
env_context.json (optional, when routing depends on hardware facts)workspace_context.json (optional, when routing depends on validated paths)Carries the user goal, selected workflow, constraints, *_ref pointers to other artifacts, and unresolved questions.
Schema: session_context.schema.json
{
"user_goal": "Quantize Qwen/Qwen3-8B with FP8 and export to HuggingFace format",
"workflow": "quark-torch-llm-ptq-workflow",
"constraints": {
"offline": false,
"execution_mode": "interactive_execute"
},
"env_context_ref": null,
"workspace_context_ref": null,
"pytorch_install_result_ref": null,
"quark_install_result_ref": null,
"open_questions": [
"GPU type and CUDA/ROCm version not yet confirmed — quark-env-preflight needed"
]
}Set each *_ref field to the path of the corresponding artifact once its producer skill has run. The router never embeds hardware, workspace, or install facts inline — those belong in their owning artifacts.
Any request that involves quantizing a model MUST route to quark-torch-llm-ptq-workflow.
This includes:
NEVER run quantize_quark.py directly without going through the workflow's 4-step flow (intake → plan → manifest → confirmed execution).
| User Intent | Target Skill | Why |
|---|---|---|
| Quantize a model (any scheme, any model) | quark-torch-llm-ptq-workflow | Must use the 4-step workflow with checkpoints |
| Full end-to-end PTQ: from model to quantized output | quark-torch-llm-ptq-workflow | Multi-step workflow orchestration |
| Install PyTorch, set up torch, fix torch version | quark-torch-install | PyTorch installation is separate from Quark package installation |
| Install Quark, set up Quark dependencies, check Quark packages | quark-install | Quark package installation, assumes PyTorch already set up |
| Inspect a model, check architecture, validate model path | quark-torch-model-intake | Model facts are prerequisites for planning |
| Choose quantization scheme, build a quant plan | quark-torch-quant-plan | Planning is separate from execution |
| Export quantized model, package for deployment | quark-torch-export | Export is a post-quantization step |
| Debug a failed run, fix an error, diagnose issues | quark-torch-debug | Error recovery has its own diagnostic flow |
| Check environment, detect GPU, verify setup | quark-env-preflight | L0 fact collection only |
| Validate paths, check model directory | quark-workspace-validate | L0 path validation only |
Extract the core intent. Strip away filler and figure out what the user actually needs. "I want to quantize Llama-2 with INT4" → the intent is PTQ → route to quark-torch-llm-ptq-workflow.
Check for L0 prerequisites. Before routing to an L1 skill, check if the downstream skill needs facts that are missing:
quark-env-preflight firstquark-workspace-validate firstPick the smallest fit. If the user only wants to check their model's architecture, route to quark-torch-model-intake — do not send them through the full workflow. But if they say "quantize my model", use quark-torch-llm-ptq-workflow.
Handle ambiguity honestly. If the goal is unclear, record the likely routes in open_questions and ask the user. Example: "I want to set up Quark" — does that mean install, or install + run PTQ?
open_questions.session_context.json already exists from a previous step, read it and carry forward — do not start from scratch.session_context.json and pass control to the chosen skill.session_context.json with the gaps documented rather than forcing a premature routing decision.User: "Help me quantize Qwen/Qwen3-8B to FP8, output to ./output/qwen3-8b-fp8" Router: →
quark-torch-llm-ptq-workflowExplain: "I'll quantize your model through a 4-step workflow: (1) model intake, (2) quantization plan, (3) command generation, (4) execution after your confirmation."
User: "How do I install Quark? I'm on Ubuntu with ROCm 7.1" Router: →
quark-install(clear Quark install intent, hardware stated — PyTorch setup handled byquark-torch-installif needed)
User: "I need to install PyTorch for ROCm 7.1" Router: →
quark-torch-install(clear PyTorch install intent, accelerator stated)
User: "I want to use Quark with my model" Router: Ask — "Do you want to: (a) inspect your model's architecture, (b) quantize it, or (c) set up Quark first?"
© amd, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .claude/skills-impl/l1-atomic/torch/quark-torch-router of amd/Quark.
Open the folder on GitHubat commit 313cb0b
Quark Torch Router 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Quark Torch Router this skillamd/Quark | 181 | — | ~1.9k | Automated safety check: Pass | MIT | |
| Contextpilot SavingsEfficientContext/ContextPilot | 140 | — | ~1.4k | Automated safety check: Pass | MIT | |
| RWKV Architecture GuideOrchestra-Research/AI-Research-SKILLs | 13k | 2 repos | ~1.8k | Automated safety check: Pass | MIT | |
| ML Engineerdavila7/claude-code-templates | 32k | 9 repos | ~2.3k | Automated safety check: Pass | MIT | |
| Databricks ML Trainingdatabricks/databricks-agent-skills | 345 | — | ~4.6k | Automated safety check: Pass | Custom licence | |
| Training ReferencesVectorSpaceLab/AREX-Skill | 330 | — | ~684 | Automated safety check: Pass | BSD-3-Clause |
EfficientContext/ContextPilot
A skill your agent uses when a user asks how many tokens (or how much context/cost) ContextPilot has saved, or wants a ContextPilot savings status/summary inside Hermes Agent — e.g.
Orchestra-Research/AI-Research-SKILLs
Explains RWKV, a hybrid that trains in parallel like a GPT and runs inference like an RNN with constant memory per token, plus usage, fine-tuning and troubleshooting.
davila7/claude-code-templates
Build production ML systems with PyTorch 2.x, TensorFlow, and modern ML frameworks.
databricks/databricks-agent-skills
Train ML models on Databricks. An agent skill from databricks/databricks-agent-skills.
VectorSpaceLab/AREX-Skill
A skill your agent uses when planning or auditing TorchVision reference training/evaluation workflows for classification, quantization, detection, segmentation, video classification, optical flow…
graphsignal/graphsignal
Profile AI inference workloads (vLLM, SGLang, TensorRT-LLM, PyTorch, any GPU application) with the Graphsignal profiler and read the results from its local /signals JSON endpoint.
amd/Quark
Author or restructure a Quark Agent Skill so it conforms to this project's template, contracts, and layer rules.
amd/Quark
Run, resume, monitor, diagnose, and report Quark Quant-Perf workflows for PyTorch and HuggingFace transformers models.
amd/Quark
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.
amd/Quark
Collect and normalize environment facts (OS, Python, GPU, CUDA/ROCm, container state) before Quark installation or PTQ planning.
amd/Quark
Install or verify the AMD Quark package and its dependencies.
amd/Quark
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…
Works with
Categories
Route Quark user goals to the correct atomic skill or workflow. Quark Torch Router is an agent skill from amd/Quark. Route Quark user goals to the correct atomic skill or workflow.
Quark Torch Router fits situations like: A user describes a Quark task in plain language — such as install Quark; quantize a model; analyze my model; build a PTQ plan.
Run `npx skills add amd/Quark --skill quark-torch-router -a claude-code`. Or copy the skill folder (.claude/skills-impl/l1-atomic/torch/quark-torch-router in amd/Quark) into .claude/skills/quark-torch-router in your project. Claude Code loads it when a task matches its description.
Run `npx skills add amd/Quark --skill quark-torch-router -a codex`. Or copy the skill folder (.claude/skills-impl/l1-atomic/torch/quark-torch-router in amd/Quark) into .agents/skills/quark-torch-router in your project. Codex loads it when a task matches its description.
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-router -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-router, .gemini/skills/quark-torch-router, .github/skills/quark-torch-router and .opencode/skills/quark-torch-router in your project.
SKILL.md names no scripts, command-line tools or credentials: Quark Torch Router is instructions for the agent only.
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.
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.
Quark Torch Router is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.9k tokens (SKILL.md is roughly 7.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Quark Torch Router: Contextpilot Savings (EfficientContext/ContextPilot, 140 stars), RWKV Architecture Guide (Orchestra-Research/AI-Research-SKILLs, 13k stars), ML Engineer (davila7/claude-code-templates, 32k stars) and Databricks ML Training (databricks/databricks-agent-skills, 345 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
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.