Universal NL Programming Conventions
The cross-tool floor for all artifact schemas. Use this skill when scoring or writing any NL programming artifact regardless of which tool (Claude Code / Codex CLI / Antigravity) it targets.
Notation: $+{CLAUDE_PLUGIN_ROOT} in this file is Claude Code's plugin-root variable, split by a + so Claude Code does not replace it with a path when it loads this skill; the real token has no + (nlpm:conventions-claude §2.4).
Tool-specific overlays load on top of this universal floor:
nlpm:conventions-claude— Claude Code artifacts (.claude/,plugin.json, etc.)nlpm:conventions-codex— Codex CLI artifacts (.codex/,.agents/,AGENTS.md)nlpm:conventions-antigravity— Antigravity (and legacy Gemini CLI) artifacts (.gemini/,.agent/)
The scorer loads the matching overlay per tier classification — see agents/scorer.md step 3.
Design rationale: analysis/multi-tool-design-2026-05.md.
1. SKILL.md — Cross-Tool Open Standard
SKILL.md is the Agent Skills open spec, stewarded by the Agentic AI Foundation under the Linux Foundation. Anthropic published the spec on 2025-12-18; OpenAI, Microsoft, Google adopted within 48 hours. By 2026-03, 32+ tools read the same SKILL.md format (Claude Code, Codex, Gemini CLI / Antigravity, Cursor, Kiro, Continue, etc.).
Authoritative reference: <https://agentskills.io/specification>
Required frontmatter (per the open spec):
name— string; 1-64 chars, lowercase + hyphens only, MUST match parent directory name (no leading/trailing/consecutive hyphens).description— string; 1-1024 chars; should describe what the skill does AND when to use it.
Optional frontmatter (per the open spec):
license— license name or reference to a bundled file.compatibility— environment requirements, max 500 chars (e.g., "Designed for Claude Code", "Requires Python 3.14+ and uv").metadata— arbitrary key-value mapping (author,version, etc. go here, NOT as top-level fields).allowed-tools— space-separated tool list (experimental in spec; tool-specific in practice — e.g.,Bash(git:*) Read).
Tool-specific extensions to SKILL.md frontmatter live in the per-tool overlay skills. The scorer applies the universal spec rules to ALL SKILL.md files. Tool-specific overlay rules apply ONLY to files at the matching tool's canonical paths.
Skill paths (canonical, per tool):
| Tool | Path |
|---|---|
| Open-spec (cross-tool) | .agents/skills/<name>/SKILL.md |
| Claude Code | .claude/skills/<name>/SKILL.md |
| Codex CLI | .agents/skills/<name>/SKILL.md |
| Antigravity | <workspace>/.agent/skills/<name>/SKILL.md (singular) AND .agents/skills/<name>/SKILL.md (cross-tool alias) |
| Gemini CLI (legacy) | .gemini/skills/<name>/SKILL.md |
| Continue, Cursor, Kiro | .<tool>/skills/<name>/SKILL.md |
Body rules (recommendations, not spec requirements):
- Keep under 500 lines — exceeding creates context bloat (spec recommends under 5000 tokens for the body, with overflow in
references/). - Reference material — imperatives belong in commands/agents.
- Include a scope note: what this skill covers and what it does NOT cover.
- Cross-reference related skills with their
plugin:skillidentifiers.
The spec explicitly says "no format restrictions" on the body — do NOT penalize SKILL.md files for missing ## Output or other section conventions. Those are tool-specific style preferences, not spec violations.
Supporting directories (per the spec):
scripts/— executable code (Python, Bash, JavaScript)references/— additional docs loaded on demandassets/— templates, images, data files
Progressive disclosure:
- Metadata (~100 tokens): name + description loaded at startup for ALL skills.
- Instructions (<5000 tokens): full SKILL.md body loaded when activated.
- Resources: scripts/references/assets loaded only when needed.
2. AGENTS.md — Canonical Universal Memory File
Per nlpm decision (analysis/multi-tool-design-2026-05.md §5), AGENTS.md is the canonical universal memory file across all tools nlpm supports.
Tool-native support:
- Codex CLI: reads AGENTS.md natively. Hierarchical (root→cwd; closer overrides earlier). 32 KiB cap.
~/.codex/AGENTS.override.mdfor personal overlays. - Antigravity (and Gemini CLI): reads
GEMINI.mdnatively, butcontext.fileNamesetting accepts an array — set to["AGENTS.md", "GEMINI.md"]to make it read AGENTS.md. - Claude Code: reads
AGENTS.mdnatively from 2.1.277, but only when noCLAUDE.md,.claude/CLAUDE.md, orCLAUDE.local.mdexists in the working directory or any directory above it (~/.claude/CLAUDE.mddoes not count). Older versions read onlyCLAUDE.md, which supports@file.mdimports — there the compatibility pattern is a one-lineCLAUDE.mdcontaining@AGENTS.md. Plugin repositories shipAGENTS.mdalone:claude plugin validatewarns that aCLAUDE.mdat the plugin root is not loaded as plugin context.
Recommended pattern for multi-tool projects:
project-root/
├── AGENTS.md # canonical content — all instructions live here
├── CLAUDE.md # only for Claude Code < 2.1.277: one line, @AGENTS.md (omit in plugin repos)
├── GEMINI.md # one line: @AGENTS.md (only if Gemini-native @-import works)
└── .gemini/settings.json # set context.fileName: ["AGENTS.md"]
This is exactly how nlpm itself is structured: AGENTS.md alone, which Claude Code reads natively.
Body conventions (universal):
- Open with a one-line project description.
## Architectureor## Project Structure— what lives where.## Build/## Run/## Test— verifiable commands.## Prerequisites— required tools / versions / setup.## Conventions— naming, style, patterns.
Tool-specific memory-file extensions (e.g., Claude Code's @-import syntax, Gemini's @{path} injection, Codex's project_doc_fallback_filenames) live in the per-tool overlays.
Agent workflow programs (recognized variant, no penalty rubric yet)
An agent workflow program is a single project-root Markdown file that drives an autonomous agent loop — imperative numbered steps with output formats and error paths, sitting between a memory file (AGENTS.md-shaped context) and a slash command (workflow with verifiable side effects). Karpathy's program.md in