Chalk Labs
Need help deploying config-conventions?
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.
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/sajadn-config-conventions
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.
About
Reviews
Write a reviewNo 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. 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/config-conventions
What's inside
- Skill name
config-conventions- Description
- Configuration conventions for NeMo-RL. YAML is the single source of truth for defaults. Covers TypedDict usage, exemplar YAML updates, and forbidden default patterns. Auto-invoked during code review.
- License
- Apache-2.0
- Instructions
- 97 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# Configuration Conventions
## Core Rule
**YAML is the single source of truth for defaults.** Do not set non-`None` defaults in code for configuration values. The loaded YAML (and any user overrides) must supply required values.
## Access Config Directly
For required attributes, write code like `policy_cfg["precision"]` and assume it is present. Do not introduce hidden defaults deep in the code.
## Express Optionality via TypedDict
Use `typing.NotRequired` to mark optional attributes. Optional attributes may be absent/`None`; code may check for their presence.
## Where Defaults Live
- Exemplar configs under `examples/configs/*.yaml` include documented defaults.
- Recipe YAMLs under `examples/configs/recipes/**/*.yaml` are runnable snapshots and may omit documentation.
## Documenting New Config Keys
When adding a new config key to a `TypedDict` subclass, document:
- The key's purpose
- Valid values/types
- Recommended default (if applicable)
Reflect the default in the exemplar YAMLs under `examples/configs/*.yaml`.
## Recipe YAMLs Must Set `defaults`
Recipe YAMLs under `examples/configs/recipes/**/*.yaml` must set `defaults: <exemplar>.yaml` to inherit from one of the exemplar configs in `examples/configs/*.yaml`. This keeps recipes minimal — they only override what differs from the exemplar.
If a recipe YAML does not have a `defaults` key, run:
```bash
uv run ./tools/config_cli.py minimize <recipe.yaml>
```
This will minimize the config and assign the appropriate `defaults` key.
## Accessing NotRequired Fields
When accessing a `NotRequired` field, use an `in` check or `.get(key)` / `.get(key, None)`. Never provide a non-`None` default — that hides behavior and defeats the purpose of making the field optional.
**Do:**
```python
# .get() with None (not a hidden default)
stop_properly_penalty_coef = cfg.get("stop_properly_penalty_coef", None)
# Truthiness check for optional booleans
if master_config["grpo"].get("skip_reference_policy_logprobs_calculation"):
...
# Nested NotRequired: check presence at each level explicitly
if "megatron_cfg" in policy_config and policy_config["megatron_cfg"]["enabled"]:
...
```
**Don't:**
```python
# Hidden boolean default — should come from YAML
disable_ppo_ratio = cfg.get("disable_ppo_ratio", False)
# Hidden non-trivial default — caller has no idea True is the fallback
normalize_rewards = grpo_config.get("normalize_rewards", True)
# Chained .get() with hidden defaults at each level
megatron_enable = config.get("megatron_cfg", {}).get("enabled", False)
```
If a `NotRequired` field is absent, the code should handle that explicitly — not paper over it with a magic default.
## Forbidden Patterns
**Don't:**
```python
# Hidden default in code
precision = policy_cfg.get("precision", "bfloat16")
# Function parameter defaulting a config value
def build_policy(policy_cfg, precision: str = "bfloat16"):
...
```
**Do:**
```python
# Required attribute: expect it from YAML or user override
precision: str = policy_cfg["precision"]
# Optional attribute: check for presence
if "milestones" in scheduler_cfg:
configure_milestones(scheduler_cfg["milestones"])
```
See also: [TypedDict and Configuration Defaults](docs/design-docs/design-and-philosophy.md#typeddict-and-configuration-defaults).From sajadn/diffusion_RL, Apache-2.0.
More from sajadn/diffusion_RL
- 0.517score
benchmark-eval
sajadn
Run, monitor, or troubleshoot IFBench, LiveCodeBench, SciCode, and AA-LCR checkpoint evaluations on DFW using submit_benchmark_eval.sh.
SkillBFreshness: BClaude Code +9 - 0.504score
nemotron-experiment-submit
sajadn
Submit and monitor NeMo-RL NemotronLabsDiffusion GRPO-family experiments on dfw, including AR GRPO, JustGRPO, DiffuGRPO, and NeMo-Gym/NeMo-Skills tool…
SkillBFreshness: BClaude Code +9 - 0.471score
nemotron-environment-setup
sajadn
Set up or audit the dfw NeMo-RL/Nemotron diffusion training environment, including the Nemo-RL fork/worktree, Git submodules for Megatron-Bridge and…
SkillCFreshness: CClaude Code +9 - 0.468score
gsm8k-checkpoint-eval
sajadn
Evaluate native Nemotron Diffusion NeMo-RL Megatron checkpoints on math benchmarks such as GSM8K and AIME by converting them to Hugging Face format, then…
SkillCFreshness: CClaude Code +9 - 0.406score
code-style
sajadn
Code style guidelines for NeMo-RL (Python and shell).
SkillDFreshness: DClaude Code +9 - 0.406score
error-handling
sajadn
Error handling guidelines for NeMo-RL.
SkillDFreshness: DClaude Code +9 - 0.406score
copyright
sajadn
NVIDIA copyright header requirements for NeMo-RL.
SkillDFreshness: DClaude Code +9 - 0.406score
contributing
sajadn
Contribution conventions for NeMo-RL.
SkillDFreshness: DClaude Code +9 - 0.402score
docs
sajadn
Documentation conventions for NeMo-RL.
SkillDFreshness: DClaude Code +9 - 0.251score
dfw-cluster
sajadn
No description from the publisher yet.
SkillCFreshness: CClaude Code +9 - 0.226score
testing
sajadn
Testing conventions for NeMo-RL.
SkillDFreshness: DClaude Code +9 - 0.211score
review-pr
sajadn
No description from the publisher yet.
SkillDFreshness: DClaude Code +9
Signals
- Stars
- 0
- Forks
- 1
- Open issues
- 0
- Last commit (this folder)
- Apr 16, 2026 (6 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Repository
- github.com/sajadn/diffusion_RL
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from sajadn
- 0.517score
benchmark-eval
sajadn
Run, monitor, or troubleshoot IFBench, LiveCodeBench, SciCode, and AA-LCR checkpoint evaluations on DFW using submit_benchmark_eval.sh.
SkillBFreshness: BClaude Code +9 - 0.504score
nemotron-experiment-submit
sajadn
Submit and monitor NeMo-RL NemotronLabsDiffusion GRPO-family experiments on dfw, including AR GRPO, JustGRPO, DiffuGRPO, and NeMo-Gym/NeMo-Skills tool…
SkillBFreshness: BClaude Code +9 - 0.471score
nemotron-environment-setup
sajadn
Set up or audit the dfw NeMo-RL/Nemotron diffusion training environment, including the Nemo-RL fork/worktree, Git submodules for Megatron-Bridge and…
SkillCFreshness: CClaude Code +9 - 0.468score
gsm8k-checkpoint-eval
sajadn
Evaluate native Nemotron Diffusion NeMo-RL Megatron checkpoints on math benchmarks such as GSM8K and AIME by converting them to Hugging Face format, then…
SkillCFreshness: CClaude Code +9 - 0.406score
contributing
sajadn
Contribution conventions for NeMo-RL.
SkillDFreshness: DClaude Code +9 - 0.406score
error-handling
sajadn
Error handling guidelines for NeMo-RL.
SkillDFreshness: DClaude Code +9
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 config-conventions 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.
Cite this page
config-conventions skill. Agent Mart. https://agentmart.dev/skills/sajadn-config-conventions (last updated 2026-10-24)