skills/azureml-scaffolding/SKILL.md
Scaffold, structure, and manage AI/ML projects that run on AzureML. Covers project initialization (uv workspaces, devcontainers, Makefile), Python packaging with explicit dependencies, local and cloud execution, experiment reproducibility, and extensibility patterns (pipelines, datasets, linting). Use this skill whenever the user asks to create, modify, run, test, or deploy an AzureML-based ML project — or when they need guidance on project layout, dependency management, or cloud job submission with Azure Machine Learning.
npx skillsauth add kilo-org/kilo-marketplace azureml-scaffoldingInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
A battle-tested structure for AI projects that require reproducible experimentation, leveraging AzureML for cloud execution. It ensures reproducibility from day one without sacrificing the path to production — and without breaking the ability to keep experimenting once you're there. Code, environments, specs, and dependencies are wired so that what runs locally runs on AzureML, with no surprises.
These principles are foundational. Every decision about project structure, tooling, or workflow must be evaluated against them.
Three layers — Each layer depends only on inner layers:
Litmus test — If Python code imports or shells out to anything platform-specific (az,
mlflow.register_model, endpoint APIs), it has escaped the Code layer. If a job YAML knows about
scheduling, version registration, or what happens after the job finishes, it has escaped the
Specification layer. Push the concern up to the next layer. Every generated or modified file must
respect this layering — never merge concerns across layers even when it seems expedient.
One mental model — Everything is a package: a uv workspace member with its
own pyproject.toml, [build-system],
src layout, source, tests, and dependencies. Same structure, same commands,
everywhere.
src/my_package/
├── pyproject.toml # deps, metadata, [build-system]
├── aml-job.yaml # aml spec (if executable, optional)
├── src/my_package/ # package source (src layout)
│ ├── __init__.py
│ └── __main__.py # entry point (if executable, optional)
└── tests/
Same structure for every package — no special cases, nothing to restructure later. A package is for computation — read from paths, do work, write to paths. If a task doesn't compute (registering assets, deploying models, downloading data via platform tools), it isn't a package — it's orchestration.
Explicit deps — Each package declares its own dependencies — including other workspace
packages via [tool.uv.sources] — in its pyproject.toml. Runs are isolated per
package, so undeclared imports fail by design. This keeps cloud jobs lean and makes deploying a
subset of packages straightforward.
Colocation — Everything needed to understand and run a piece of work lives together in one folder. Easy to find, easy to reason about.
Run anywhere the same — Same command, same lockfile, same result — whether on your laptop, a colleague's machine, a VM, or AzureML. One Dockerfile serves as both devcontainer and cloud runner. Python deps installed at runtime by uv, not baked in.
Complexity must be earned — Start with the simplest correct thing. Add structure only when a specific need demands it. But respect what exists: if the project has grown beyond the basics, that complexity was earned and should not be regressed without understanding why it was introduced.
A lean Makefile orchestrates everything: self-documenting (make help), the single entry point
for running, testing, and managing the project. All packages are uv workspace members resolved by
one lockfile at the root. Keep one target per concept (run/test/aml); avoid package-specific aliases
unless explicitly requested.
A complete minimal project lives in assets/ — use it as the reference for every file's exact
content and structure. Contents match project tree outlined below and package trees outlined above.
pyproject.toml (workspace
declaration, dev deps only), Makefile, AGENTS.md, .devcontainer/ (Dockerfile +
devcontainer.json), and .env.src/ with its own pyproject.toml,
src/<name>/ (with __init__.py and __main__.py), and tests/. Adapt from the mypkg
package in assets/ and rename — grep for mypkg and replace with your package name everywhere
(pyproject.toml, imports, etc.). Treat __main__.py as starter sample logic..env.local. Copy from .env and substitute placeholders.make sync — this creates uv.lock. Commit it.<project>/
├── .devcontainer/ # Dockerfile + devcontainer.json
├── .env # Azure config (safe defaults, committed)
├── AGENTS.md # project context for AI agents
├── Makefile # single entry point
├── pyproject.toml # workspace root, dev deps only
├── uv.lock # committed — reproducibility anchor
└── src/
└── <package>/ # one package to start
All three must exit 0 before proceeding. Fix and re-run from make sync until they do.
make sync # uv.lock exists at root
make run pkg=<package_name> # produces expected stdout/files
make test # all tests pass
pyproject.toml declares
members = ["src/*"] and has no runtime deps — only dev tools in [dependency-groups].uv.lock is committed. Created/updated automatically by uv run and make sync
(which runs uv sync --all-packages under the hood). Always use make sync instead of bare
uv sync — the flag ensures every workspace member is installed, so make test and imports work.uv-managed) → pyproject.toml / uv.lock.Dockerfile.ml) → .devcontainer/devcontainer.json
features..env is committed with empty/safe defaults. Per-developer overrides go in .env.local
(gitignored).target-version and
type-checker Python version) aligned with requires-python in root and package pyproject.toml
files.Map each independently runnable piece to a package under src/, extract its deps into a
pyproject.toml, and follow the same steps above. Get one package working end-to-end first, then
migrate the rest. If clashes exist (e.g., existing AGENTS.md), make sure to merge gracefully.
Keep cloud as a separate step: first make run, then make aml to submit to AzureML.
aml-job.yaml to the package folder if it doesn't exist yet. Copy from
./assets/src/mypkg/aml-job.yaml and rename mypkg references. For the full schema, see the
$schema link inside the file.__main__.py. The command, inputs in aml-job.yaml must match the
current entry point and any arguments it expects. If __main__.py changed since the YAML was
created, update the YAML to reflect the current state..env / .env.local are populated. Cloud submission requires valid Azure
configuration (subscription, resource group, workspace). Ask the human to verify .env.local has
all values filled in before proceeding.<azure-ml-cluster-name>), dataset references, etc.make aml pkg=<package_name> from the project root.Ask the human to confirm in Azure ML Studio: job completed, tags/metrics visible, outputs/
contains expected artifacts.
This skill covers what runs inside a job and how to submit it. What happens after — registering outputs as versioned data or model assets, deploying models to endpoints, scheduling recurring runs — is orchestration that lives outside the job, typically in CI pipelines or operational scripts. The same layer rule applies: those concerns never leak into Python code or job YAML. How they're implemented varies by project; where they live does not — always the outermost layer.
./assets/src/mypkg/aml-job.yaml: command, inputs, code path, environment build context, compute../assets/src/mypkg/src/mypkg/__main__.py how to persist in AzureML:
./outputs = persisted job artifacts.Keep the core scaffold minimal. Add these only when the project needs them. Each reference file
includes an AGENTS.md section — merge it to the project's AGENTS.md when applying the
extension so new agent sessions discover the added capabilities.
runs/ for local runs, cloud-job output
download, and git-linked experiment commits for diff-from-main traceability:
details.development
Oracle Database guidance for SQL, PL/SQL, SQLcl, ORDS, administration, app development, performance, security, migrations, and agent-safe database workflows. Use when the user asks to write, edit, rewrite, review, format, debug, tune, or explain SQL; create or refactor PL/SQL; use SQLcl, Liquibase, ORDS, JDBC, node-oracledb, Python, Java, .NET, or database frameworks; troubleshoot queries, sessions, locks, waits, indexes, optimizer plans, AWR, ASH, migrations, schemas, users, roles, privileges, backup, recovery, Data Guard, RAC, multitenant, containers, monitoring, auditing, encryption, VPD, or safe agent database operations.
documentation
Patterns for reading and writing oleander Iceberg catalog tables in Spark jobs, including naming conventions, write modes, and catalog hierarchy.
data-ai
Integrate Okta for enterprise identity workflows including OIDC login, group claims, and policy-based access controls. Use when implementing workforce or B2B identity scenarios.
documentation
Use when arranging Apache NiFi processors, process groups, ports, comments, numbering, crossing connections, dense fan-in/fan-out, or reusable readable canvas layouts.