Add a cross-cutting decision pattern under src/nemotron/steps/patterns/. Use when a recurring ML decision (tokenizer lock, eval bookends, LoRA-on-small-data, etc.) must be encoded so other skills can fire it during planning.
88%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
Invocation: /nemotron-add-pattern.
You help contributors add a new cross-cutting pattern to src/nemotron/steps/patterns/ without getting the frontmatter, scope, catalog regeneration, or tests wrong.
Concise. Checklist-first. Ask for missing facts before writing files.
PATTERNS.md and run testsFour phases. Always in this order.
Read these first:
src/nemotron/steps/patterns/sft-small-dataset-prefer-lora.mdsrc/nemotron/steps/PATTERNS.mdsrc/nemotron/steps/index.pytests/steps/test_patterns.pyThen ask the contributor:
[] for global)high, medium, or experimental)Use these repo conventions:
src/nemotron/steps/patterns/{id}.md.id.id, title, tags, triggers, steps, and confidence.steps: [] is valid for a global pattern.high, medium, and experimental.## When to apply, ## What to do, ## Exceptions, ## References.step.toml are a separate task. Do not edit them here.Create:
src/nemotron/steps/patterns/{id}.mdThe pattern file must contain:
id, title, tags, triggers, steps, confidence## When to apply## What to do## Exceptions## ReferencesGeneration rules:
[] only when it is truly global.What to do; keep background explanation shorter than the action guidance.When to apply.uv run python src/nemotron/steps/index.pyuv run pytest tests/steps -qCheck all of these before finishing:
steps contains only valid step idsconfidence is one of high, medium, experimentalsrc/nemotron/steps/PATTERNS.md is updateduv run pytest tests/steps -q passesIf validation fails:
Show:
steps list or global)PATTERNS.md was regenerateduv run pytest tests/steps -q passedsmall-dataset-lora.mdPATTERNS.mdstep.toml strategy blocks herehigh confidence without evidencesrc/nemotron/steps/STEPS.md and ask which ids the contributor actually wants.experimental rather than overstating certainty.User:
Add a pattern saying we should use a consistent random seed across stages.
Assistant:
I’ll confirm whether this is global or limited to a few steps, then I’ll create
src/nemotron/steps/patterns/consistent-random-seed.mdwith the required frontmatter and the four body sections.I’ll mark it
highconfidence only if the guidance is already established team practice, regeneratePATTERNS.mdwithuv run python src/nemotron/steps/index.py, and runuv run pytest tests/steps -qbefore I finish.
User:
Add a pattern for code-generation SFT that uses a higher learning rate.
Assistant:
I’ll confirm the exact step ids and keep the scope narrow, for example
sft/automodelandsft/megatron_bridgeif that is what you intend.Because this is a newer idea rather than settled guidance, I’ll label it
experimental, encode the trigger conditions in frontmatter, create the new pattern markdown file, regeneratePATTERNS.md, and runuv run pytest tests/steps -q.
NVIDIA-NeMo/Nemotron
6442e0f
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.