diff --git a/.agents/README.md b/.agents/README.md index d24fce1d4a2..9b907b1b9be 100644 --- a/.agents/README.md +++ b/.agents/README.md @@ -1,24 +1,30 @@ -# `.agents/` — agent-agnostic source of truth +# `.agents/` — agent compatibility and shared config -This directory is the canonical location for assets shared by AI coding agents -working in this repository (Claude Code, Codex, Cursor, …). +This directory exposes the ModelOpt plugin skills to repository-local agents +and holds shared configuration. ## Layout ```text .agents/ -├── skills/ # SKILL.md files (canonical) -│ └── /SKILL.md +├── skills → ../plugins/modelopt/skills +├── plugins/ +│ └── marketplace.json # Codex marketplace ├── scripts/ # shared helper scripts (sync-upstream-skills.sh, …) └── clusters.yaml.example # remote-cluster config template + +plugins/modelopt/ +├── .claude-plugin/ +├── .codex-plugin/ +└── skills/ # canonical SKILL.md files + ├── common/ # shared skill support files + └── /SKILL.md ``` ## Why this exists -Different agents look for skills/config in vendor-specific directories. Rather -than maintaining N copies that drift out of sync, **`.agents/` is the single -source of truth** — each agent's guidance or install mechanism points here -directly. +The installable plugin owns its skills, as required by the plugin format. +Repository-local agent discovery uses relative symlinks to the same files. ## How each agent finds these @@ -26,21 +32,18 @@ Each agent points at `.agents/` through whatever mechanism it supports — never a copy: - **Claude Code** only auto-discovers skills under `.claude/skills/`, so - `.claude/` holds relative in-repo symlinks back into `.agents/`: - `.claude/skills → ../.agents/skills`, `.claude/scripts → ../.agents/scripts`, - and `.claude/clusters.yaml.example → ../.agents/clusters.yaml.example`. These - follow the same committed-symlink pattern already used elsewhere in this repo - (e.g. `CLAUDE.md`, `tools/launcher/modules/Model-Optimizer`). -- **Future agents** (Codex, Cursor, …) add their own symlink or config pointing - at `.agents/`. + `.claude/skills/` holds relative symlinks into `.agents/skills/`. +- **Repository agents** use `.agents/skills`, a relative symlink into the + plugin. +- **Claude Code and Codex plugins** load `plugins/modelopt/skills` directly. ## Editing rules -- **Always edit files under `.agents/`**. +- **Always edit skills under `plugins/modelopt/skills/`**. - Vendored-verbatim skills (`launching-evals`, `accessing-mlflow`) are managed by `.agents/scripts/sync-upstream-skills.sh` — do not modify by hand. -- New skills go in `.agents/skills//SKILL.md` following the - conventions of existing skills (e.g. `.agents/skills/monitor/SKILL.md`). +- New skills go in `plugins/modelopt/skills//SKILL.md`. +- Shared support files go in `plugins/modelopt/skills/common/`. ## Project-level cluster config diff --git a/.agents/TOOLING.md b/.agents/TOOLING.md index ecef150f4ec..caadc9d70cf 100644 --- a/.agents/TOOLING.md +++ b/.agents/TOOLING.md @@ -8,6 +8,11 @@ of the always-loaded agent instructions. Update `AGENTS.md` for repository-wide agent instructions. `CLAUDE.md` is symlinked to `AGENTS.md`, so changes there apply to both Codex and Claude Code. +## Installable Skills + +The `modelopt` plugin packages the repository skills for use from any +workspace. Installation commands are in the [README](../README.md#ai-agents). + ## Local Overrides For private local instructions, use the tool-specific override file: diff --git a/.agents/plugins/marketplace.json b/.agents/plugins/marketplace.json new file mode 100644 index 00000000000..ff27684af67 --- /dev/null +++ b/.agents/plugins/marketplace.json @@ -0,0 +1,20 @@ +{ + "name": "modelopt", + "interface": { + "displayName": "NVIDIA Model Optimizer" + }, + "plugins": [ + { + "name": "modelopt", + "source": { + "source": "local", + "path": "./plugins/modelopt" + }, + "policy": { + "installation": "AVAILABLE", + "authentication": "ON_INSTALL" + }, + "category": "Productivity" + } + ] +} diff --git a/.agents/scripts/sync-upstream-skills.sh b/.agents/scripts/sync-upstream-skills.sh index 616643d322c..1828bbff1aa 100755 --- a/.agents/scripts/sync-upstream-skills.sh +++ b/.agents/scripts/sync-upstream-skills.sh @@ -26,13 +26,14 @@ # # Requires: gh, base64, awk. Run from the repo root. # -# The script overwrites .agents/skills// with upstream contents and +# The script overwrites plugins/modelopt/skills// through the +# .agents/skills compatibility symlink and # re-applies our provenance lines into each SKILL.md frontmatter. If you have # local changes to a vendored skill, they will be lost — that is expected, # since vendored-verbatim skills should not be modified locally. # # Note: .claude/skills/ (and other agent-specific skill dirs) are symlinks to -# .agents/skills/ — see .agents/README.md. +# plugins/modelopt/skills/ — see .agents/README.md. set -euo pipefail diff --git a/.agents/skills b/.agents/skills new file mode 120000 index 00000000000..c3f0b779e13 --- /dev/null +++ b/.agents/skills @@ -0,0 +1 @@ +../plugins/modelopt/skills \ No newline at end of file diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json new file mode 100644 index 00000000000..38a471ff876 --- /dev/null +++ b/.claude-plugin/marketplace.json @@ -0,0 +1,21 @@ +{ + "$schema": "https://json.schemastore.org/claude-code-marketplace.json", + "name": "modelopt", + "version": "0.1.0", + "description": "Model Optimizer agent plugins.", + "owner": { + "name": "NVIDIA Corporation" + }, + "plugins": [ + { + "name": "modelopt", + "source": "./plugins/modelopt", + "description": "Skills for Model Optimizer development, quantization, deployment, and evaluation.", + "version": "0.1.0", + "author": { + "name": "NVIDIA Corporation" + }, + "category": "development" + } + ] +} diff --git a/.markdownlint-cli2.yaml b/.markdownlint-cli2.yaml index 86a0387160b..c1d0da5fab3 100644 --- a/.markdownlint-cli2.yaml +++ b/.markdownlint-cli2.yaml @@ -14,5 +14,5 @@ config: # Vendored upstream skills — kept byte-identical to upstream via # .agents/scripts/sync-upstream-skills.sh; do not reformat. ignores: - - ".agents/skills/launching-evals/**" - - ".agents/skills/accessing-mlflow/**" + - "plugins/modelopt/skills/launching-evals/**" + - "plugins/modelopt/skills/accessing-mlflow/**" diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 43b869800d7..4270046cb01 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -70,10 +70,10 @@ repos: exclude: ^modelopt_recipes/configs/ - id: sync-claude-skills - name: sync .claude/skills/ symlinks from .agents/skills/ + name: sync .claude/skills/ symlinks from plugin skills entry: bash tools/precommit/sync_claude_skills.sh language: system - files: ^\.agents/skills/ + files: ^plugins/modelopt/skills/ pass_filenames: false - id: check-launcher-yaml diff --git a/AGENTS.md b/AGENTS.md index a1dda56be7a..d8310fb1b06 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -7,12 +7,10 @@ These instructions apply to AI-assisted work in this repository. - Start with `README.md` for project overview and install. - Use `modelopt/` for source, `tests/` for focused test coverage, and `examples/` or `docs/` for usage patterns. -- **Agent skills and shared config live under `.agents/`** — the canonical, - agent-agnostic source of truth (`.agents/skills//SKILL.md`, - `.agents/scripts/`, `.agents/clusters.yaml.example`). Claude Code's - `.claude/skills`, `.claude/scripts`, and `.claude/clusters.yaml.example` are - relative symlinks into `.agents/`. Always edit files under `.agents/`, not the - symlink path. See `.agents/README.md` for the convention. +- **Agent skills live under `plugins/modelopt/skills/`**, the installable + plugin's canonical skill tree. `.agents/skills` and `.claude/skills` expose + those skills through relative symlinks. Shared agent config and scripts + remain under `.agents/`. See `.agents/README.md` for the convention. ## Coding guidelines diff --git a/README.md b/README.md index d9b9744b3a5..16b1ae14f8b 100644 --- a/README.md +++ b/README.md @@ -170,7 +170,25 @@ Please read our [Contributing](./CONTRIBUTING.md) guidelines for details on how ## AI Agents -For AI-assisted development setup, see the [agent tooling notes](./.agents/TOOLING.md). +ModelOpt's agent skills can be installed from this repository and used in any +workspace. + +### Claude Code + +```bash +claude plugin marketplace add https://github.com/NVIDIA/Model-Optimizer.git +claude plugin install modelopt@modelopt +``` + +### Codex + +```bash +codex plugin marketplace add https://github.com/NVIDIA/Model-Optimizer.git +``` + +Then open `/plugins`, select the `modelopt` marketplace, and install `modelopt`. +Contributors can also use the skills directly from a checkout. See the +[agent tooling notes](./.agents/TOOLING.md). ### Top Contributors diff --git a/plugins/modelopt/.claude-plugin/plugin.json b/plugins/modelopt/.claude-plugin/plugin.json new file mode 100644 index 00000000000..47393444cfe --- /dev/null +++ b/plugins/modelopt/.claude-plugin/plugin.json @@ -0,0 +1,20 @@ +{ + "$schema": "https://json.schemastore.org/claude-code-plugin-manifest.json", + "name": "modelopt", + "displayName": "ModelOpt", + "version": "0.1.0", + "description": "Skills for Model Optimizer development, quantization, deployment, and evaluation.", + "author": { + "name": "NVIDIA Corporation" + }, + "homepage": "https://github.com/NVIDIA/Model-Optimizer", + "repository": "https://github.com/NVIDIA/Model-Optimizer", + "license": "Apache-2.0", + "keywords": [ + "modelopt", + "quantization", + "evaluation", + "deployment", + "llm" + ] +} diff --git a/plugins/modelopt/.codex-plugin/plugin.json b/plugins/modelopt/.codex-plugin/plugin.json new file mode 100644 index 00000000000..f8faa0b1555 --- /dev/null +++ b/plugins/modelopt/.codex-plugin/plugin.json @@ -0,0 +1,37 @@ +{ + "name": "modelopt", + "version": "0.1.0", + "description": "Skills for Model Optimizer development, quantization, deployment, and evaluation.", + "author": { + "name": "NVIDIA Corporation", + "url": "https://github.com/NVIDIA/Model-Optimizer" + }, + "homepage": "https://github.com/NVIDIA/Model-Optimizer", + "repository": "https://github.com/NVIDIA/Model-Optimizer", + "license": "Apache-2.0", + "keywords": [ + "modelopt", + "quantization", + "evaluation", + "deployment", + "llm" + ], + "skills": "./skills/", + "interface": { + "displayName": "ModelOpt", + "shortDescription": "Optimize, deploy, and evaluate models.", + "longDescription": "Provides Model Optimizer workflows for post-training quantization, deployment, evaluation, result comparison, and release validation.", + "developerName": "NVIDIA", + "category": "Developer Tools", + "capabilities": [ + "Interactive", + "Write" + ], + "defaultPrompt": [ + "Quantize this model with ModelOpt.", + "Deploy and evaluate this checkpoint.", + "Compare the baseline and quantized results." + ], + "brandColor": "#76B900" + } +} diff --git a/.agents/skills/accessing-mlflow/SKILL.md b/plugins/modelopt/skills/accessing-mlflow/SKILL.md similarity index 100% rename from .agents/skills/accessing-mlflow/SKILL.md rename to plugins/modelopt/skills/accessing-mlflow/SKILL.md diff --git a/plugins/modelopt/skills/common/SKILL.md b/plugins/modelopt/skills/common/SKILL.md new file mode 100644 index 00000000000..a75c58f6b93 --- /dev/null +++ b/plugins/modelopt/skills/common/SKILL.md @@ -0,0 +1,10 @@ +--- +name: common +description: Shared ModelOpt support files. Use only when another ModelOpt skill directs you here. +--- + +# Shared ModelOpt Support + +This skill is a placeholder required for Codex plugin validation. + +Read only the file named by the calling ModelOpt skill. diff --git a/.agents/skills/common/credentials.md b/plugins/modelopt/skills/common/credentials.md similarity index 100% rename from .agents/skills/common/credentials.md rename to plugins/modelopt/skills/common/credentials.md diff --git a/.agents/skills/common/environment-setup.md b/plugins/modelopt/skills/common/environment-setup.md similarity index 100% rename from .agents/skills/common/environment-setup.md rename to plugins/modelopt/skills/common/environment-setup.md diff --git a/.agents/skills/common/remote-execution.md b/plugins/modelopt/skills/common/remote-execution.md similarity index 100% rename from .agents/skills/common/remote-execution.md rename to plugins/modelopt/skills/common/remote-execution.md diff --git a/.agents/skills/common/remote_exec.sh b/plugins/modelopt/skills/common/remote_exec.sh similarity index 100% rename from .agents/skills/common/remote_exec.sh rename to plugins/modelopt/skills/common/remote_exec.sh diff --git a/.agents/skills/common/slurm-setup.md b/plugins/modelopt/skills/common/slurm-setup.md similarity index 100% rename from .agents/skills/common/slurm-setup.md rename to plugins/modelopt/skills/common/slurm-setup.md diff --git a/.agents/skills/common/workspace-management.md b/plugins/modelopt/skills/common/workspace-management.md similarity index 100% rename from .agents/skills/common/workspace-management.md rename to plugins/modelopt/skills/common/workspace-management.md diff --git a/.agents/skills/compare-results/SKILL.md b/plugins/modelopt/skills/compare-results/SKILL.md similarity index 100% rename from .agents/skills/compare-results/SKILL.md rename to plugins/modelopt/skills/compare-results/SKILL.md diff --git a/.agents/skills/compare-results/tests/evals.json b/plugins/modelopt/skills/compare-results/tests/evals.json similarity index 100% rename from .agents/skills/compare-results/tests/evals.json rename to plugins/modelopt/skills/compare-results/tests/evals.json diff --git a/.agents/skills/day0-release/SKILL.md b/plugins/modelopt/skills/day0-release/SKILL.md similarity index 100% rename from .agents/skills/day0-release/SKILL.md rename to plugins/modelopt/skills/day0-release/SKILL.md diff --git a/.agents/skills/day0-release/scripts/gate_compare.py b/plugins/modelopt/skills/day0-release/scripts/gate_compare.py similarity index 100% rename from .agents/skills/day0-release/scripts/gate_compare.py rename to plugins/modelopt/skills/day0-release/scripts/gate_compare.py diff --git a/.agents/skills/day0-release/scripts/gate_ptq.py b/plugins/modelopt/skills/day0-release/scripts/gate_ptq.py similarity index 100% rename from .agents/skills/day0-release/scripts/gate_ptq.py rename to plugins/modelopt/skills/day0-release/scripts/gate_ptq.py diff --git a/.agents/skills/day0-release/scripts/gate_run.py b/plugins/modelopt/skills/day0-release/scripts/gate_run.py similarity index 100% rename from .agents/skills/day0-release/scripts/gate_run.py rename to plugins/modelopt/skills/day0-release/scripts/gate_run.py diff --git a/.agents/skills/day0-release/tests/evals.json b/plugins/modelopt/skills/day0-release/tests/evals.json similarity index 100% rename from .agents/skills/day0-release/tests/evals.json rename to plugins/modelopt/skills/day0-release/tests/evals.json diff --git a/.agents/skills/day0-release/tests/test_gates.py b/plugins/modelopt/skills/day0-release/tests/test_gates.py similarity index 100% rename from .agents/skills/day0-release/tests/test_gates.py rename to plugins/modelopt/skills/day0-release/tests/test_gates.py diff --git a/.agents/skills/debug/SKILL.md b/plugins/modelopt/skills/debug/SKILL.md similarity index 100% rename from .agents/skills/debug/SKILL.md rename to plugins/modelopt/skills/debug/SKILL.md diff --git a/.agents/skills/deployment/SKILL.md b/plugins/modelopt/skills/deployment/SKILL.md similarity index 100% rename from .agents/skills/deployment/SKILL.md rename to plugins/modelopt/skills/deployment/SKILL.md diff --git a/.agents/skills/deployment/references/benchmarking.md b/plugins/modelopt/skills/deployment/references/benchmarking.md similarity index 100% rename from .agents/skills/deployment/references/benchmarking.md rename to plugins/modelopt/skills/deployment/references/benchmarking.md diff --git a/.agents/skills/deployment/references/setup.md b/plugins/modelopt/skills/deployment/references/setup.md similarity index 100% rename from .agents/skills/deployment/references/setup.md rename to plugins/modelopt/skills/deployment/references/setup.md diff --git a/.agents/skills/deployment/references/sglang.md b/plugins/modelopt/skills/deployment/references/sglang.md similarity index 100% rename from .agents/skills/deployment/references/sglang.md rename to plugins/modelopt/skills/deployment/references/sglang.md diff --git a/.agents/skills/deployment/references/support-matrix.md b/plugins/modelopt/skills/deployment/references/support-matrix.md similarity index 100% rename from .agents/skills/deployment/references/support-matrix.md rename to plugins/modelopt/skills/deployment/references/support-matrix.md diff --git a/.agents/skills/deployment/references/trtllm.md b/plugins/modelopt/skills/deployment/references/trtllm.md similarity index 100% rename from .agents/skills/deployment/references/trtllm.md rename to plugins/modelopt/skills/deployment/references/trtllm.md diff --git a/.agents/skills/deployment/references/unsupported-models.md b/plugins/modelopt/skills/deployment/references/unsupported-models.md similarity index 100% rename from .agents/skills/deployment/references/unsupported-models.md rename to plugins/modelopt/skills/deployment/references/unsupported-models.md diff --git a/.agents/skills/deployment/references/vllm.md b/plugins/modelopt/skills/deployment/references/vllm.md similarity index 100% rename from .agents/skills/deployment/references/vllm.md rename to plugins/modelopt/skills/deployment/references/vllm.md diff --git a/.agents/skills/deployment/scripts/deploy.sh b/plugins/modelopt/skills/deployment/scripts/deploy.sh similarity index 100% rename from .agents/skills/deployment/scripts/deploy.sh rename to plugins/modelopt/skills/deployment/scripts/deploy.sh diff --git a/.agents/skills/deployment/tests/evals.json b/plugins/modelopt/skills/deployment/tests/evals.json similarity index 100% rename from .agents/skills/deployment/tests/evals.json rename to plugins/modelopt/skills/deployment/tests/evals.json diff --git a/.agents/skills/eagle3-new-model/SKILL.md b/plugins/modelopt/skills/eagle3-new-model/SKILL.md similarity index 100% rename from .agents/skills/eagle3-new-model/SKILL.md rename to plugins/modelopt/skills/eagle3-new-model/SKILL.md diff --git a/.agents/skills/eagle3-review-logs/SKILL.md b/plugins/modelopt/skills/eagle3-review-logs/SKILL.md similarity index 100% rename from .agents/skills/eagle3-review-logs/SKILL.md rename to plugins/modelopt/skills/eagle3-review-logs/SKILL.md diff --git a/.agents/skills/eagle3-triage/SKILL.md b/plugins/modelopt/skills/eagle3-triage/SKILL.md similarity index 100% rename from .agents/skills/eagle3-triage/SKILL.md rename to plugins/modelopt/skills/eagle3-triage/SKILL.md diff --git a/.agents/skills/eagle3-validate/SKILL.md b/plugins/modelopt/skills/eagle3-validate/SKILL.md similarity index 100% rename from .agents/skills/eagle3-validate/SKILL.md rename to plugins/modelopt/skills/eagle3-validate/SKILL.md diff --git a/.agents/skills/evaluation/SKILL.md b/plugins/modelopt/skills/evaluation/SKILL.md similarity index 100% rename from .agents/skills/evaluation/SKILL.md rename to plugins/modelopt/skills/evaluation/SKILL.md diff --git a/.agents/skills/evaluation/recipes/env.example b/plugins/modelopt/skills/evaluation/recipes/env.example similarity index 100% rename from .agents/skills/evaluation/recipes/env.example rename to plugins/modelopt/skills/evaluation/recipes/env.example diff --git a/.agents/skills/evaluation/recipes/examples/example_eval.yaml b/plugins/modelopt/skills/evaluation/recipes/examples/example_eval.yaml similarity index 100% rename from .agents/skills/evaluation/recipes/examples/example_eval.yaml rename to plugins/modelopt/skills/evaluation/recipes/examples/example_eval.yaml diff --git a/.agents/skills/evaluation/recipes/examples/example_eval_next.yaml b/plugins/modelopt/skills/evaluation/recipes/examples/example_eval_next.yaml similarity index 100% rename from .agents/skills/evaluation/recipes/examples/example_eval_next.yaml rename to plugins/modelopt/skills/evaluation/recipes/examples/example_eval_next.yaml diff --git a/.agents/skills/evaluation/recipes/tasks/aa/gpqa_diamond.md b/plugins/modelopt/skills/evaluation/recipes/tasks/aa/gpqa_diamond.md similarity index 100% rename from .agents/skills/evaluation/recipes/tasks/aa/gpqa_diamond.md rename to plugins/modelopt/skills/evaluation/recipes/tasks/aa/gpqa_diamond.md diff --git a/.agents/skills/evaluation/recipes/tasks/aa/hle.md b/plugins/modelopt/skills/evaluation/recipes/tasks/aa/hle.md similarity index 100% rename from .agents/skills/evaluation/recipes/tasks/aa/hle.md rename to plugins/modelopt/skills/evaluation/recipes/tasks/aa/hle.md diff --git a/.agents/skills/evaluation/recipes/tasks/aa/ifbench.md b/plugins/modelopt/skills/evaluation/recipes/tasks/aa/ifbench.md similarity index 100% rename from .agents/skills/evaluation/recipes/tasks/aa/ifbench.md rename to plugins/modelopt/skills/evaluation/recipes/tasks/aa/ifbench.md diff --git a/.agents/skills/evaluation/recipes/tasks/aa/lcr.md b/plugins/modelopt/skills/evaluation/recipes/tasks/aa/lcr.md similarity index 100% rename from .agents/skills/evaluation/recipes/tasks/aa/lcr.md rename to plugins/modelopt/skills/evaluation/recipes/tasks/aa/lcr.md diff --git a/.agents/skills/evaluation/recipes/tasks/aa/mmmu_pro.md b/plugins/modelopt/skills/evaluation/recipes/tasks/aa/mmmu_pro.md similarity index 100% rename from .agents/skills/evaluation/recipes/tasks/aa/mmmu_pro.md rename to plugins/modelopt/skills/evaluation/recipes/tasks/aa/mmmu_pro.md diff --git a/.agents/skills/evaluation/recipes/tasks/aa/omniscience.md b/plugins/modelopt/skills/evaluation/recipes/tasks/aa/omniscience.md similarity index 100% rename from .agents/skills/evaluation/recipes/tasks/aa/omniscience.md rename to plugins/modelopt/skills/evaluation/recipes/tasks/aa/omniscience.md diff --git a/.agents/skills/evaluation/recipes/tasks/aa/scicode.md b/plugins/modelopt/skills/evaluation/recipes/tasks/aa/scicode.md similarity index 100% rename from .agents/skills/evaluation/recipes/tasks/aa/scicode.md rename to plugins/modelopt/skills/evaluation/recipes/tasks/aa/scicode.md diff --git a/.agents/skills/evaluation/recipes/tasks/aa/tau2_bench_telecom.md b/plugins/modelopt/skills/evaluation/recipes/tasks/aa/tau2_bench_telecom.md similarity index 100% rename from .agents/skills/evaluation/recipes/tasks/aa/tau2_bench_telecom.md rename to plugins/modelopt/skills/evaluation/recipes/tasks/aa/tau2_bench_telecom.md diff --git a/.agents/skills/evaluation/recipes/tasks/aa_next/swebench_verified.md b/plugins/modelopt/skills/evaluation/recipes/tasks/aa_next/swebench_verified.md similarity index 100% rename from .agents/skills/evaluation/recipes/tasks/aa_next/swebench_verified.md rename to plugins/modelopt/skills/evaluation/recipes/tasks/aa_next/swebench_verified.md diff --git a/.agents/skills/evaluation/recipes/tasks/aa_next/terminal_bench_2_1.md b/plugins/modelopt/skills/evaluation/recipes/tasks/aa_next/terminal_bench_2_1.md similarity index 100% rename from .agents/skills/evaluation/recipes/tasks/aa_next/terminal_bench_2_1.md rename to plugins/modelopt/skills/evaluation/recipes/tasks/aa_next/terminal_bench_2_1.md diff --git a/.agents/skills/evaluation/recipes/tasks/aime_2025.md b/plugins/modelopt/skills/evaluation/recipes/tasks/aime_2025.md similarity index 100% rename from .agents/skills/evaluation/recipes/tasks/aime_2025.md rename to plugins/modelopt/skills/evaluation/recipes/tasks/aime_2025.md diff --git a/.agents/skills/evaluation/recipes/tasks/livecodebench.md b/plugins/modelopt/skills/evaluation/recipes/tasks/livecodebench.md similarity index 100% rename from .agents/skills/evaluation/recipes/tasks/livecodebench.md rename to plugins/modelopt/skills/evaluation/recipes/tasks/livecodebench.md diff --git a/.agents/skills/evaluation/recipes/tasks/mmlu_pro.md b/plugins/modelopt/skills/evaluation/recipes/tasks/mmlu_pro.md similarity index 100% rename from .agents/skills/evaluation/recipes/tasks/mmlu_pro.md rename to plugins/modelopt/skills/evaluation/recipes/tasks/mmlu_pro.md diff --git a/.agents/skills/evaluation/references/model-card-research.md b/plugins/modelopt/skills/evaluation/references/model-card-research.md similarity index 100% rename from .agents/skills/evaluation/references/model-card-research.md rename to plugins/modelopt/skills/evaluation/references/model-card-research.md diff --git a/.agents/skills/evaluation/references/multi-node.md b/plugins/modelopt/skills/evaluation/references/multi-node.md similarity index 100% rename from .agents/skills/evaluation/references/multi-node.md rename to plugins/modelopt/skills/evaluation/references/multi-node.md diff --git a/.agents/skills/evaluation/references/nel-next.md b/plugins/modelopt/skills/evaluation/references/nel-next.md similarity index 100% rename from .agents/skills/evaluation/references/nel-next.md rename to plugins/modelopt/skills/evaluation/references/nel-next.md diff --git a/.agents/skills/evaluation/references/parallelism.md b/plugins/modelopt/skills/evaluation/references/parallelism.md similarity index 100% rename from .agents/skills/evaluation/references/parallelism.md rename to plugins/modelopt/skills/evaluation/references/parallelism.md diff --git a/.agents/skills/evaluation/references/quantization-benchmarks.md b/plugins/modelopt/skills/evaluation/references/quantization-benchmarks.md similarity index 100% rename from .agents/skills/evaluation/references/quantization-benchmarks.md rename to plugins/modelopt/skills/evaluation/references/quantization-benchmarks.md diff --git a/.agents/skills/evaluation/references/run-validation.md b/plugins/modelopt/skills/evaluation/references/run-validation.md similarity index 100% rename from .agents/skills/evaluation/references/run-validation.md rename to plugins/modelopt/skills/evaluation/references/run-validation.md diff --git a/.agents/skills/evaluation/references/slurm.md b/plugins/modelopt/skills/evaluation/references/slurm.md similarity index 100% rename from .agents/skills/evaluation/references/slurm.md rename to plugins/modelopt/skills/evaluation/references/slurm.md diff --git a/.agents/skills/evaluation/tests/evals.json b/plugins/modelopt/skills/evaluation/tests/evals.json similarity index 100% rename from .agents/skills/evaluation/tests/evals.json rename to plugins/modelopt/skills/evaluation/tests/evals.json diff --git a/.agents/skills/launching-evals/SKILL.md b/plugins/modelopt/skills/launching-evals/SKILL.md similarity index 100% rename from .agents/skills/launching-evals/SKILL.md rename to plugins/modelopt/skills/launching-evals/SKILL.md diff --git a/.agents/skills/launching-evals/references/analyze-results.md b/plugins/modelopt/skills/launching-evals/references/analyze-results.md similarity index 100% rename from .agents/skills/launching-evals/references/analyze-results.md rename to plugins/modelopt/skills/launching-evals/references/analyze-results.md diff --git a/.agents/skills/launching-evals/references/benchmarks/swebench-general-info.md b/plugins/modelopt/skills/launching-evals/references/benchmarks/swebench-general-info.md similarity index 100% rename from .agents/skills/launching-evals/references/benchmarks/swebench-general-info.md rename to plugins/modelopt/skills/launching-evals/references/benchmarks/swebench-general-info.md diff --git a/.agents/skills/launching-evals/references/benchmarks/terminal-bench-general-info.md b/plugins/modelopt/skills/launching-evals/references/benchmarks/terminal-bench-general-info.md similarity index 100% rename from .agents/skills/launching-evals/references/benchmarks/terminal-bench-general-info.md rename to plugins/modelopt/skills/launching-evals/references/benchmarks/terminal-bench-general-info.md diff --git a/.agents/skills/launching-evals/references/benchmarks/terminal-bench-trace-analysis.md b/plugins/modelopt/skills/launching-evals/references/benchmarks/terminal-bench-trace-analysis.md similarity index 100% rename from .agents/skills/launching-evals/references/benchmarks/terminal-bench-trace-analysis.md rename to plugins/modelopt/skills/launching-evals/references/benchmarks/terminal-bench-trace-analysis.md diff --git a/.agents/skills/launching-evals/references/check-progress.md b/plugins/modelopt/skills/launching-evals/references/check-progress.md similarity index 100% rename from .agents/skills/launching-evals/references/check-progress.md rename to plugins/modelopt/skills/launching-evals/references/check-progress.md diff --git a/.agents/skills/launching-evals/references/debug-failed-runs.md b/plugins/modelopt/skills/launching-evals/references/debug-failed-runs.md similarity index 100% rename from .agents/skills/launching-evals/references/debug-failed-runs.md rename to plugins/modelopt/skills/launching-evals/references/debug-failed-runs.md diff --git a/.agents/skills/launching-evals/references/run-evaluation.md b/plugins/modelopt/skills/launching-evals/references/run-evaluation.md similarity index 100% rename from .agents/skills/launching-evals/references/run-evaluation.md rename to plugins/modelopt/skills/launching-evals/references/run-evaluation.md diff --git a/.agents/skills/launching-evals/tests.json b/plugins/modelopt/skills/launching-evals/tests.json similarity index 100% rename from .agents/skills/launching-evals/tests.json rename to plugins/modelopt/skills/launching-evals/tests.json diff --git a/.agents/skills/monitor/SKILL.md b/plugins/modelopt/skills/monitor/SKILL.md similarity index 100% rename from .agents/skills/monitor/SKILL.md rename to plugins/modelopt/skills/monitor/SKILL.md diff --git a/.agents/skills/ptq/SKILL.md b/plugins/modelopt/skills/ptq/SKILL.md similarity index 100% rename from .agents/skills/ptq/SKILL.md rename to plugins/modelopt/skills/ptq/SKILL.md diff --git a/.agents/skills/ptq/references/checkpoint-validation.md b/plugins/modelopt/skills/ptq/references/checkpoint-validation.md similarity index 100% rename from .agents/skills/ptq/references/checkpoint-validation.md rename to plugins/modelopt/skills/ptq/references/checkpoint-validation.md diff --git a/.agents/skills/ptq/references/launcher-guide.md b/plugins/modelopt/skills/ptq/references/launcher-guide.md similarity index 100% rename from .agents/skills/ptq/references/launcher-guide.md rename to plugins/modelopt/skills/ptq/references/launcher-guide.md diff --git a/.agents/skills/ptq/references/slurm-setup-ptq.md b/plugins/modelopt/skills/ptq/references/slurm-setup-ptq.md similarity index 100% rename from .agents/skills/ptq/references/slurm-setup-ptq.md rename to plugins/modelopt/skills/ptq/references/slurm-setup-ptq.md diff --git a/.agents/skills/ptq/references/unsupported-models.md b/plugins/modelopt/skills/ptq/references/unsupported-models.md similarity index 100% rename from .agents/skills/ptq/references/unsupported-models.md rename to plugins/modelopt/skills/ptq/references/unsupported-models.md diff --git a/.agents/skills/ptq/tests.json b/plugins/modelopt/skills/ptq/tests.json similarity index 100% rename from .agents/skills/ptq/tests.json rename to plugins/modelopt/skills/ptq/tests.json diff --git a/.agents/skills/quant-recipe-search/SKILL.md b/plugins/modelopt/skills/quant-recipe-search/SKILL.md similarity index 100% rename from .agents/skills/quant-recipe-search/SKILL.md rename to plugins/modelopt/skills/quant-recipe-search/SKILL.md diff --git a/.agents/skills/quant-recipe-search/references/qwen36_case_study.md b/plugins/modelopt/skills/quant-recipe-search/references/qwen36_case_study.md similarity index 100% rename from .agents/skills/quant-recipe-search/references/qwen36_case_study.md rename to plugins/modelopt/skills/quant-recipe-search/references/qwen36_case_study.md diff --git a/.agents/skills/quant-recipe-search/references/recipe_iteration.md b/plugins/modelopt/skills/quant-recipe-search/references/recipe_iteration.md similarity index 100% rename from .agents/skills/quant-recipe-search/references/recipe_iteration.md rename to plugins/modelopt/skills/quant-recipe-search/references/recipe_iteration.md diff --git a/.agents/skills/release-cherry-pick/SKILL.md b/plugins/modelopt/skills/release-cherry-pick/SKILL.md similarity index 100% rename from .agents/skills/release-cherry-pick/SKILL.md rename to plugins/modelopt/skills/release-cherry-pick/SKILL.md diff --git a/pyproject.toml b/pyproject.toml index ccec4e1b82b..54aa7d678d6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -211,7 +211,7 @@ extend-ignore = [ "examples/*" = ["D"] "noxfile.py" = ["D", "E501"] "tests/*" = ["B017", "D", "E402", "PT012"] -".agents/skills/*/tests/test_*.py" = ["D", "E402"] # Skill test scripts: docstring (D) + sys.path import-order (E402) exemptions +"plugins/modelopt/skills/*/tests/test_*.py" = ["D", "E402"] # Skill test scripts: docstring (D) + sys.path import-order (E402) exemptions "*/_[a-zA-Z]*" = ["D"] # Private packages (_abc/*.py) or modules (_xyz.py) "*.ipynb" = ["D", "E501"] # Ignore missing docstrings or line length for Jupyter notebooks "modelopt/torch/kernels/*" = ["N803", "N806", "E731"] # triton style