Agent skill

Quark Skill Creator

by amd in amd/Quark

Author or restructure a Quark Agent Skill so it conforms to this project's template, contracts, and layer rules.

MITAuto-check passedAgent Workflows

Install Quark Skill Creator

skills CLI
$ npx skills add amd/Quark --skill quark-skill-creator -a claude-code

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

GitHub CLI
$ gh skill install amd/Quark quark-skill-creator --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/shared/quark-skill-creator .claude/skills/quark-skill-creator && 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-skill-creator
GitHub stars
181
Token cost
~3.1k tokens
SKILL.md length
1,367 words
Files
12 (incl. scripts, references)
Skills in repo
37
Repo updated
First seen
Licence
MIT

At a glance

Author or restructure a Quark Agent Skill so it conforms to this project's template, contracts, and layer rules.

  • Works in 6 steps: Capture Intent → Interview & Research → Draft → …
  • A maintainer says create a new skill
  • SKILL.md covers Purpose, Inputs, Outputs and Interaction Flow, plus 4 more sections
  • Runs Python scripts from its folder; calls python3

What it does

Quark Skill Creator is an agent skill from amd/Quark. 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.

Its SKILL.md is about 3.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 16 other files, including scripts and reference files (for example `agents/reviewer.md`, `evals/evals.json` and `references/evals-schema.md`).

It sits in Agent Workflows, covering Skill authoring. The licence is MIT.

When your agent uses it

  • A maintainer says create a new skill
  • Add a skill for X
  • Scaffold a skill
  • Draft a SKILL.md

Example prompts

  • “s template, contracts, and layer rules. Use when a maintainer says”
  • “add a skill for X”
  • “scaffold a skill”
  • “/quark-skill-creator”

Requirements

  • Python 3

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Capture Intent
  2. Interview & Research
  3. Draft
  4. Test Cases
  5. Iterate
  6. Governance Handoff

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

    Ships 3 files in scripts/ (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python3

    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 Skill Creator loads about 3.1k tokens when it runs, and up to ~8.3k if it reads all its reference files. Until then it costs about 118 tokens; SKILL.md has 1,367 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~118
When it runs · the whole SKILL.md, loaded when a task matches
~3.1k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~8.3k

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); the scripts in this folder are not scanned.

SKILL.md

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

Download SKILL.mdSave it as .claude/skills/quark-skill-creator/SKILL.md (or your agent's skills folder). This skill also uses 11 other files; get the full folder from GitHub.
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.
layer
meta
primary_artifact
validation_report.md
source_knowledge
.claude/skills-impl/CONTRIBUTING.md, .claude/skills-impl/shared/templates/skill-template.md, docs/agent_skills/skill-format-contract.md…

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.

Show full SKILL.md (529 more words)Show less
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.
  • Proposed artifact not in the canonical list — stop. Suggest the closest existing artifact (validation_report.md, model_analysis.json, etc.). If a new one is genuinely needed, write the schema in shared/contracts/ and the doc entry in docs/agent_skills/artifact-contracts.md first, then return to the skill.
  • Description blows past 100 words — return the draft to the maintainer with the word count and the over-budget portions highlighted; do not silently truncate.
  • Target directory exists — refuse the write, list existing files, ask whether the maintainer wants --force or a different name.
  • source_knowledge path missing in repo and not matching the upstream Quark layout — block. The path is the basis of governance; phantom references cannot be committed. (Paths under docs/source/, quark/, examples/, tools/ are warned but not blocked, since they live in the Quark host repo where the skills are deployed.)
  • Validator or reviewer reports blocking findings — fix the skill, do not bypass the check. The cost of a one-time fix is far less than the cost of inconsistent skills compounding across the system.

Notes

  • Worked examples to read before authoring: meta/torch/quark-torch-skill-sync/SKILL.md, meta/torch/quark-torch-doc-drift-check/SKILL.md, meta/torch/quark-torch-eval-runner/SKILL.md, and any L1 atomic skill (e.g., quark-torch-quant-plan) for input/output discipline.
  • Bundled resources:
    • references/format-rules.md — frontmatter / length / artifact rules
    • references/layer-decision.md — layer admission tree with rubrics and examples
    • references/writing-patterns.md — template / examples / workflow / conditional / feedback patterns
    • references/evals-schema.md — per-skill evals.json schema and integration with quark-torch-eval-runner
    • agents/reviewer.md — sub-agent prompt for structural + contract review
    • scripts/scaffold_skill.py — generate skill directory + SKILL.md (+ optional stub, evals)
    • scripts/scaffold_evals.py — generate evals/evals.json standalone
    • scripts/validate_skill.py — mechanical validation (frontmatter, length, sections)
  • Governance is not auto-triggered. After creating a skill that touches new upstream Quark files, run quark-torch-doc-drift-check manually.
  • This skill itself is scaffolded against and validated by the rules it enforces — eat your own dog food when modifying it.

© 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

SKILL.md and 11 other files (scripts, references) in .claude/skills-impl/meta/shared/quark-skill-creator of amd/Quark.

  • SKILL.md
  • agents/reviewer.md
  • evals/evals.json
  • evals/inputs/.gitkeep
  • references/evals-schema.md
  • references/format-rules.md
  • references/layer-decision.md
  • references/writing-patterns.md
  • scripts/scaffold_evals.py
  • scripts/scaffold_skill.py
  • scripts/validate_skill.py
  • validation_report.md

Open the folder on GitHubat commit 313cb0b

Compare with similar skills

Quark Skill Creator 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 Skill Creator compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Quark Skill Creator this skillamd/Quark181—~3.1kAutomated safety check: PassMIT
Skill CreatorAzure/azqr79489 repos~8.2kAutomated safety check: PassApache-2.0
Claude Code Skill Developer Guidediet103/claude-code-infrastructure-showcase10k10 repos~3.5kAutomated safety check: PassMIT
Darwin Skill Optimizeralchaincyf/darwin-skill6.2k1 repos~4.7kAutomated safety check: PassMIT
Claude Code Command Developmentanthropics/claude-plugins-official37k10 repos~4.8kAutomated safety check: PassApache-2.0
Claude Code Plugin Structureanthropics/claude-plugins-official37k10 repos~3.4kAutomated safety check: PassApache-2.0

Similar skills

  • Skill Creator

    Azure/azqr

    Official

    Create new skills, modify and improve existing skills, and measure skill performance.

    794 GitHub starsUsed in 89 repos~8.2k tokens
    Agent WorkflowsAuto-check passed
  • Claude Code Skill Developer Guide

    diet103/claude-code-infrastructure-showcase

    A guide to creating and managing Claude Code skills with auto-activation: skill-rules.json triggers, hooks, enforcement levels, YAML frontmatter and progressive disclosure.

    10k GitHub starsUsed in 10 repos~3.5k tokens
    Agent WorkflowsAuto-check passed
  • Darwin Skill Optimizer

    alchaincyf/darwin-skill

    Scores SKILL.md files on a nine-dimension rubric, then improves them in a keep-or-revert loop with independent judge agents, test prompts, git history and human checkpoints.

    6.2k GitHub starsUsed in 1 repo~4.7k tokens
    Agent WorkflowsAuto-check passed
  • Claude Code Command Development

    anthropics/claude-plugins-official

    Official

    Explains how to write Claude Code slash commands: Markdown files with YAML frontmatter, arguments, file references, bash context and interactive prompts.

    37k GitHub starsUsed in 10 repos~4.8k tokens
    Agent WorkflowsAuto-check passed
  • Claude Code Plugin Structure

    anthropics/claude-plugins-official

    Official

    Explains the directory layout, plugin.json manifest and component organization of a Claude Code plugin, including auto-discovery and portable paths.

    37k GitHub starsUsed in 10 repos~3.4k tokens
    Agent WorkflowsAuto-check passed
  • Skill Release Gate

    rohitg00/ai-engineering-from-scratch

    Evaluates an Agent Skill bundle before release for structure, trigger quality, artifact improvement, script correctness, safety, installed-tree integrity and host portability.

    65k GitHub stars~1k tokensUpdated today
    Agent WorkflowsAuto-check passed

More from amd/Quark

All 37 skills in this repo
  • Run, resume, monitor, diagnose, and report Quark Quant-Perf workflows for PyTorch and HuggingFace transformers models.

    181 GitHub stars~3k tokensUpdated 9 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 9 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 9 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 9 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 9 days ago
    Auto-check passed
  • Diagnose failed Quark ONNX installation, calibration, quantization, custom-op compilation, or export attempts.

    181 GitHub stars~4.8k tokensUpdated 9 days ago
    Auto-check passed

Categories

Questions about Quark Skill Creator

What does Quark Skill Creator do?

Author or restructure a Quark Agent Skill so it conforms to this project's template, contracts, and layer rules. Quark Skill Creator is an agent skill from amd/Quark. Author or restructure a Quark Agent Skill so it conforms to this project's template, contracts, and layer rules.

When should I use Quark Skill Creator?

Quark Skill Creator fits situations like: A maintainer says create a new skill; add a skill for X; scaffold a skill; draft a SKILL.md.

How do I install Quark Skill Creator in Claude Code?

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

How do I install Quark Skill Creator in Codex?

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

Can I use Quark Skill Creator 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-skill-creator -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-skill-creator, .gemini/skills/quark-skill-creator, .github/skills/quark-skill-creator and .opencode/skills/quark-skill-creator in your project.

What does Quark Skill Creator need to run?

Going by SKILL.md and its folder, Quark Skill Creator needs Python for the scripts in its folder and the command-line tools its instructions call (python3). Our summary lists: Python 3.

Does Quark Skill Creator 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 Skill Creator 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. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.

What licence does Quark Skill Creator use?

Quark Skill Creator 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 Skill Creator use?

About 3.1k tokens (SKILL.md is roughly 13k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 5.2k tokens, read only when the agent opens those files.

What are the alternatives to Quark Skill Creator?

Skills that share tags, products or a category with Quark Skill Creator: Skill Creator (Azure/azqr, 794 stars), Claude Code Skill Developer Guide (diet103/claude-code-infrastructure-showcase, 10k stars), Darwin Skill Optimizer (alchaincyf/darwin-skill, 6.2k stars) and Claude Code Command Development (anthropics/claude-plugins-official, 37k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Quark Skill Creator?

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.