quark-skill-creator
Author or restructure a Quark Agent Skill so it conforms to this project's template, contracts, and layer rules.
Skill by amd
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/amd-quark-skill-creator
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: documents, testing, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/quark-skill-creator
What's inside
- Skill name
quark-skill-creator- Description
- Author or restructure a Quark Agent Skill so it conforms to this project's template, contracts, and layer rules. Use when a maintainer says "create a new skill", "add a skill for X", "scaffold a skill", "draft a SKILL.md", or when an existing skill needs a structural rewrite to match the format contract. Walks the author through capture, draft, test, iterate, and governance handoff. This is a maintainer-facing meta skill, not an end-user PTQ tool.
- License
- MIT
- Instructions
- 141 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (12)
- SKILL.md
- reviewer.md · agents/
- evals.json · evals/
- .gitkeep · evals/inputs/
- evals-schema.md · references/
- format-rules.md · references/
- layer-decision.md · references/
- writing-patterns.md · references/
- scaffold_evals.py · scripts/
- scaffold_skill.py · scripts/
- validate_skill.py · scripts/
- validation_report.md
SKILL.md (first lines)
# quark-skill-creator
## Purpose
Codify this repo's authoring conventions so a new skill is correct on the first try. The Quark skill system is governed by five separate documents under `docs/agent_skills/` (`skill-format-contract.md`, `interaction-contract.md`, `artifact-contracts.md`, `architecture.md`, `governance.md`) plus the contributing guide. Reading them all before every authoring task is slow and error-prone — missed `primary_artifact`, wrong layer, hand-invented artifacts that bypass the contract surface. This skill replays the rules in workflow order and pairs the conversation with deterministic scaffolding + validation scripts so structural compliance is mechanical and the human focus stays on content.
## Inputs
- **Required**: skill name (`^[a-z][a-z0-9-]{0,63}$`), one-sentence intent, target layer, primary artifact filename, `description` draft (≤ 100 words, third-person, with trigger phrases).
- **Optional**: `source_knowledge` repo-relative paths, whether to emit a user-facing entry stub, whether to scaffold evals, prior conversation context to capture as a workflow.
## Outputs
- **Primary artifact**: `validation_report.md` — the report produced by `scripts/validate_skill.py` after Phase 5, capturing the mechanical-validation result of the freshly authored skill. The author should commit this report alongside the new skill so reviewers can see the validation evidence (per project governance practice for meta skills).
- `.claude/skills-impl/<layer>/<skill-name>/SKILL.md` — main authored skill (side-effect of the scaffold).
- `.claude/skills-impl/<layer>/<skill-name>/evals/evals.json` — optional starter evals (recommended for non-trivial skills; side-effect when `--with-evals`).
- `.claude/skills/<skill-name>/SKILL.md` — entry stub, only when the skill is user-facing (L1/L2/L3). Meta skills do not get a stub.
The skill file format itself is governed by `docs/agent_skills/skill-format-contract.md` (prose), not by a JSON schema in `shared/contracts/`.
## Interaction Flow
This skill follows the project's five-stage interaction contract; the **Authoring Workflow** below is the concrete sequence the Plan + Execute stages walk through.
1. **Intake** — collect skill name, intent, trigger phrases, layer hint, primary artifact filename. If the maintainer brought a draft from prior conversation, extract these from there first and only ask for gaps.
2. **Route** — apply the layer decision tree in `references/layer-decision.md`. Decide whether an entry stub is needed (user-facing → yes, internal/meta → no) and whether evals are needed (non-trivial skills → yes).
3. **Plan** — present the proposed frontmatter, section outline, and exact file paths *before* any write. Verify length budgets and that `source_knowledge` paths exist (or match the upstream Quark layout).
4. **Confirm** — explicit user approval is mandatory before running `scaffold_skill.py` (it writes files), before any `--force` overwrite, and before committing.
5. **Execute or Summarize** — run the scaffold, run the validator, run the reviewer subagent, summarize what was created and what governance follow-ups (`quark-torch-doc-drift-check`, `quark-torch-skill-sync`, `quark-torch-eval-runner`) the maintainer should consider — but never auto-trigger them.
## Authoring Workflow
The Plan and Execute stages walk through these phases in order. Each phase has a clear boundary so the maintainer can pause, correct, or hand off.
### Phase 1: Capture Intent
Pull what's already known from the conversation before asking. The current conversation may already contain a workflow the maintainer wants to capture ("turn this into a skill"). If so, extract: the tools used, the sequence of steps, corrections the maintainer made, input/output formats. Then confirm what's missing.
Always confirm:
1. What does this skill do? (one sentence)
2. When should it trigger? (concrete user phrases)
3. What's the primary artifact?
4. Does the skill need empirical evals, or is it purely structural? (See `references/evals-schema.md`.)
### Phase 2: Interview & Research
Proactively ask about edge cases, input/output formats, dependencies on existing artifacts, recovery paths. Read at least one comparable existing skill — for a meta skill read `meta/torch/quark-torch-skill-sync/SKILL.md`; for L1 atomic read `l1-atomic/torch/quark-torch-quant-plan/SKILL.md`; for L2 workflow read `l2-workflows/torch/quark-torch-llm-ptq-workflow/SKILL.md`.
If the skill consumes or produces a contract artifact, read `docs/agent_skills/artifact-contracts.md` to confirm the producer/consumer slot is consistent. If the skill needs a new artifact, **stop and surface the governance question** — do not invent.
### Phase 3: Draft
Present the proposed frontmatter, section outline, and file list before writing anything. Apply the rules in `references/format-rules.md` (frontmatter, length) and the patterns in `references/writing-patterns.md` (template, examples, workflow, conditional, feedback loop).
Then run the scaffold:
```bash
python3 .claude/skills-impl/meta/shared/quark-skill-creator/scripts/scaffold_skill.py \
--name quark-foo \
--layer l1-atomic \
--primary-artifact foo_result.json \
--source-knowledge docs/source/install.rst quark/torch/foo.py \
--description "..." \
[--with-stub] \
[--with-evals] \
[--force]
```
The script writes `SKILL.md` (and optionally an entry stub and an `evals/` scaffold) with all required sections pre-stubbed `TODO:`. Fill the TODOs as authored content — the scaffold guarantees structural compliance, not content quality.
### Phase 4: Test Cases
For non-trivial skills, scaffold the evals:
```bash
python3 .claude/skills-impl/meta/shared/quark-skill-creator/scripts/scaffold_evals.py \
.claude/skills-impl/<layer>/<name> \
--categories routing planning artifact recovery
```
Fill 1–4 evals per applicable category with **realistic** prompts (concrete model names, paths, error messages — not abstract requests) and **discriminating** expectations (an expectation that would also pass for a clearly wrong output is worse than no expectation). See `references/evals-schema.md` for the schema and the writing-good-expectations guidance.
Pure-routing meta skills (like `quark-skill-creator` itself) typically only need routing evals — others can be skipped.
### Phase 5: Iterate
Run validation in this order:
1. **Mechanical** — `python3 scripts/validate_skill.py <skill-dir>`. Catches frontmatter, length, and section issues. Fix any blocking findings before continuing.
2. **Contractual** — spawn a subagent with the prompt in `agents/reviewer.md`. It reads the skill against the format and artifact contracts and returns a structured report. Apply blocking findings; consider non-blocking suggestions.
3. **Empirical** (if evals exist) — hand the skill + evals to `quark-torch-eval-runner` (see `meta/torch/quark-torch-eval-runner/SKILL.md`). It walks each prompt manually and records pass/fail. Treat failures like the official skill-creator's iteration loop: improve the skill body or sharpen the eval. Re-run.
Stop iterating when validator passes, reviewer reports no blocking findings, and (if applicable) all eval expectations pass.
### Phase 6: Governance Handoff
Summarize what was created. List — but do not auto-trigger — the governance follow-ups the maintainer may want:
- `quark-torch-doc-drift-check` — confirms `source_knowledge` is still aligned with current upstream Quark.
- `quark-torch-skill-sync` — re-audits all skills if the new one introduces a new contract dependency.
- `quark-torch-eval-runner` — re-runs the four MVP eval categories if the new skill changes routing or planning behavior.
Update the index lists in `.claude/skills-impl/README.md` and `CLAUDE.md` if the new skill is user-facing or meta.
## Anti-Patterns
These are project-specific traps the official skill-creator does not warn about:
- **Skipping `primary_artifact`** because "this skill produces a report". Pick a concrete filename — for meta skills the project default is `validation_report.md`. Empty or `<TBD>` fails the format contract.
- **Inventing a new artifact name** outside the eight canonical ones in `docs/agent_skills/artifact-contracts.md`. New artifacts require a JSON schema in `shared/contracts/` and a producer/consumer entry in the doc — never a unilateral addition.
- **Wrong layer placement** — a workflow orchestrator in `l1-atomic`, or routing/drift logic in `l1-atomic` instead of `meta`. Re-read `references/layer-decision.md` when uncertain.
- **External `source_knowledge` paths** — `docs/agent_skills/governance.md` only accepts the surrounding Quark repo as upstream. URLs, sibling-repo paths, or absolute filesystem paths are rejected.
- **Silently overwriting** an existing skill with `--force` — always re-confirm with the maintainer.
- **Trigger-only evals for non-routing categories** — a planning eval whose only expectation is "the right skill was invoked" should be a routing eval. See `references/evals-schema.md`.
## Recovery
- **Layer ambiguous** — default to drafting at `l1-atomic` with a `TODO: layer review` note in `## Notes`, then surface the ambiguity to the maintainer for a second opinion before commit.From amd/Quark, MIT.
More from amd/Quark
- 0.679score
quark-torch-quant-plan
amd
Build a Quark Torch LLM PTQ quantization plan from model analysis and user intent.
SkillAFreshness: A★ 186Claude Code +9 - 0.679score
quark-torch-llm-eval
amd
End-to-end LLM accuracy evaluation on AMD ROCm (ROCm-only) — container setup, vLLM/SGLang/ATOM serving, lm-eval / lighteval / evalscope benchmarks.
SkillAFreshness: A★ 186Claude Code +9 - 0.679score
quark-install
amd
Install or verify the AMD Quark package and its dependencies.
SkillAFreshness: A★ 186Claude Code +9 - 0.679score
quark-torch-model-intake
amd
Inspect a target model and prepare metadata for Quark PTQ planning.
SkillAFreshness: A★ 186Claude Code +9 - 0.679score
quark-torch-export
amd
Prepare export and downstream evaluation handoff for a planned or completed Quark PTQ run.
SkillAFreshness: A★ 186Claude Code +9 - 0.679score
quark-torch-install
amd
Install or verify the correct PyTorch build for a user's accelerator backend before Quark installation.
SkillAFreshness: A★ 186Claude Code +9 - 0.679score
quark-env-preflight
amd
Collect and normalize environment facts (OS, Python, GPU, CUDA/ROCm, container state) before Quark installation or PTQ planning.
SkillAFreshness: A★ 186Claude Code +9 - 0.679score
quark-onnx-install
amd
Install or verify the correct ONNX Runtime build (and the `onnx` package) for a user's accelerator backend before Quark's ONNX-to-ONNX flow.
SkillAFreshness: A★ 186Claude Code +9 - 0.679score
quark-onnx-model-intake
amd
Inspect a target ONNX model and prepare metadata for Quark ONNX PTQ planning.
SkillAFreshness: A★ 186Claude Code +9 - 0.679score
quark-onnx-router
amd
Route Quark ONNX user goals to the correct atomic skill.
SkillAFreshness: A★ 186Claude Code +9 - 0.679score
quark-torch-debug
amd
Diagnose failed Quark installation, PTQ execution, script generation, or export attempts.
SkillAFreshness: A★ 186Claude Code +9 - 0.679score
quark-torch-result-validator
amd
Validate Quark quantization output using four lightweight checks: auxiliary file copy alignment, excluded tensor MD5 byte-identity, config.json deep…
SkillAFreshness: A★ 186Claude Code +9
Signals
- Stars
- 186
- Forks
- 36
- Open issues
- 3
- Last commit (this folder)
- Jul 9, 2026 (3 months ago)
- Last release
- Sep 28, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/amd/Quark
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from amd
- 0.700score
quark-torch-llm-ptq
amd
Runs an end-to-end AMD Quark post-training quantization workflow for PyTorch / Hugging Face LLMs: inspect a Hub or local model, choose a quantization plan…
SkillAFreshness: A★ 465Claude Code +9 - 0.700score
rocprofiler-pc-sampling
amd
Profiles a target application using rocprofv3 with program counter sampling enabled and then analyzes the results.
SkillAFreshness: A★ 465Claude Code +9 - 0.700score
lemonade-router-builder
amd
Turns a natural-language description of routing intent into a valid Lemonade `collection.router` policy JSON.
SkillAFreshness: A★ 465Claude Code +9 - 0.700score
quark-install
amd
Installs or verifies AMD Quark and ensures the selected Python environment has an accelerator-matched PyTorch.
SkillAFreshness: A★ 465Claude Code +9 - 0.700score
local-ai-use
amd
Makes this agent generate images, transcribe audio, and synthesize speech on the user's own machine through a local Lemonade Server instead of a paid cloud API.
SkillAFreshness: A★ 465Claude Code +9 - 0.700score
serving-llms-on-epyc
amd
Serves an LLM on a supported AMD EPYC server CPU using vLLM with zentorch, in Docker, Podman, or conda.
SkillAFreshness: A★ 465Claude Code +9
Cite this page
quark-skill-creator. Agent Mart. https://agentmart.dev/skills/amd-quark-skill-creator (last updated 2026-10-24)