Skip to content
Agentmart
Submit a tool

quark-workspace-validate

Validate workspace shape, model paths, output directories, and repo structure before downstream Quark skills proceed.

Skill by amd

IndexedMIT★ 186
Write a review

Chalk Labs

Need help deploying quark-workspace-validate?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

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-workspace-validate

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.

We use your email only for this newsletter. Privacy

About

Validate workspace shape, model paths, output directories, and repo structure before downstream Quark skills proceed. Use this skill whenever a skill needs confirmed file paths, when the user provides a model path or output directory, when you need to distinguish a local model from a HuggingFace ID, or when any path assumption is unverified. Also trigger for "where should I put outputs", "is my model path right", or before model-intake/export steps.

Use cases: ml

No 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 and code. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/quark-workspace-validate

What's inside

Skill name
quark-workspace-validate
Description
Validate workspace shape, model paths, output directories, and repo structure before downstream Quark skills proceed. Use this skill whenever a skill needs confirmed file paths, when the user provides a model path or output directory, when you need to distinguish a local model from a HuggingFace ID, or when any path assumption is unverified. Also trigger for "where should I put outputs", "is my model path right", or before model-intake/export steps.
License
MIT
Instructions
101 lines in SKILL.md · view on GitHub

Agent Skills spec issues

  • files: referenced but missing: examples/torch/language_modeling/llm_ptq/quantize_quark.py

Files (1)

  • SKILL.md

SKILL.md (first lines)

# quark-workspace-validate

## Purpose

Validate that file paths, model references, and output locations actually exist and are accessible before a downstream skill depends on them. This prevents silent failures where a PTQ run starts, spends time loading a model, and then crashes because the output directory does not exist or the model path has a typo.

## Inputs

- Model path and output directory from the user (typically forwarded by `quark-torch-router`)

## Outputs: workspace_context.json

Records validated model paths, output directory, and repo locations.

Schema: [`workspace_context.schema.json`](../../../shared/contracts/workspace_context.schema.json)

```json
{
  "model_path": "/models/Qwen3-8B",
  "model_source": "local",
  "trust_remote_code_required": false,
  "output_dir": "./output/qwen3-8b-fp8",
  "output_dir_exists": false,
  "output_dir_parent_writable": true,
  "disk_space_gb_free": 250,
  "quark_script_path": null
}
```

`workspace_context.json` is for path facts only. Unresolved questions (e.g., ambiguous local-vs-HuggingFace reference) belong in `session_context.json` (owned by `quark-torch-router`).

## What to Validate

### Model Path

A model reference can be one of three things:

1. **Local directory** — contains `config.json`, `*.safetensors` or `*.bin` files (e.g., `/models/Llama-2-7b-hf/`)
2. **HuggingFace ID** — format `org/model-name` (e.g., `Qwen/Qwen3-8B`)
3. **Ambiguous** — could be either (e.g., `./qwen3-8b` might be a local dir or a typo)

For local paths, check:

- Directory exists
- `config.json` is present (minimum requirement for HuggingFace-compatible model)
- At least one weight file exists (`.safetensors`, `.bin`, or `.pth`)
- Read permissions are adequate

For HuggingFace IDs, note:

- Cannot fully validate without network access
- Check format: should contain `/` separator
- Record whether `trust_remote_code` will be needed (some models like DeepSeek VL v2 require it)

### Output Directory

- Check that the parent directory exists and is writable
- If the output directory itself does not exist, note that it will be created (not an error)
- Warn if the directory already contains files (risk of overwriting previous results)

### Quark Repository (if applicable)

- If the user is running from source, check for `quantize_quark.py` at the expected location: `examples/torch/language_modeling/llm_ptq/quantize_quark.py`
- Check that `requirements.txt` dependencies are likely installed

## Validation Commands

```bash
# Check model directory
ls -la /path/to/model/config.json 2>/dev/null
ls /path/to/model/*.safetensors 2>/dev/null

# Check output directory parent
test -d /path/to/output/.. && echo "parent exists"
test -w /path/to/output/.. && echo "parent writable"

# Check disk space (rough)
df -h /path/to/output/..
```

## Rules

- **Only validate existence, accessibility, and shape.** Do not analyze model internals (that is `quark-torch-model-intake`) or choose install paths (that is `quark-install`).
- **Never invent replacement paths.** If `/data/models/llama` does not exist, say so — do not suggest `/data/models/llama-2` as an alternative unless the user asks.
- **Preserve ambiguity explicitly.** When a reference like `meta-llama/Llama-2-7b` could be local or remote, say: "This looks like a HuggingFace model ID. If you meant a local directory, the path does not exist at `./meta-llama/Llama-2-7b`."
- **Check disk space** when the downstream task is PTQ or export — quantized models can be large.

## Interaction Flow

1. **Collect**: Gather the paths the downstream skill needs — model path, output directory, any referenced config files.
2. **Validate**: Run existence and permission checks. Present results as a checklist with pass/fail for each item.
3. **Clarify**: For ambiguous references, ask the user. For missing paths, report the exact issue.
4. **Emit**: Write confirmed facts to `workspace_context.json`. Hand any unresolved items back to `quark-torch-router` so they land in `session_context.json`'s `open_questions`.

## Recovery

- If a required path is missing, report the exact path tested and what was expected. Suggest the smallest fix: "Directory `/data/models/llama` does not exist. Did you mean `/data/models/Llama-2-7b-hf`?"
- If a model reference is ambiguous between local and HuggingFace, keep it unresolved and ask — do not guess.
- If disk space is low for the intended output, warn with the estimated size needed.

From amd/Quark, MIT.

More from amd/Quark

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
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

Same skill elsewhere

Copies of this SKILL.md published by others; search shows only one of them.

More from amd

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get quark-workspace-validate running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying quark-workspace-validate?

CallGet help
Cite this page

quark-workspace-validate skill. Agent Mart. https://agentmart.dev/skills/amd-quark-workspace-validate (last updated 2026-10-24)