simready-foundation-add-capability

作者: nvidia

添加SimReady能力文档、需求索引、验证存根以及新需求族的注册信息。

npx skills add https://github.com/nvidia/simready-foundation --skill simready-foundation-add-capability

SimReady Add Capability

Purpose

Use this skill when a new requirement does not fit an existing capability. A capability groups related requirements and validators under its owning package in nv_core/tiers/.

After creating the capability, use simready-foundation-add-requirement for each requirement and simready-foundation-add-validator for executable checks.

Prerequisites

Before editing, read:

  • AGENTS.md
  • nv_core/sr_specs/docs/guides/guides.md
  • nv_core/sr_specs/docs/guides/naming_conventions.md
  • nv_core/sr_specs/docs/guides/features_expansion_workflow.md
  • existing neighboring capability folders
  • nv_core/sr_specs/docs/shared/rules_and_reqs/rules_and_reqs.md
  • the owning tier's rules_and_reqs/__init__.py

No network access, API key, or external service is required for the authoring pass.

Inputs

Collect or infer:

InputRequirement
capability_groupExisting top-level group such as physics_bodies, visualization, or a new group if justified.
capability_idStable CAP-prefixed catalog ID, such as CAP006_Materials.0-1-0.
owning_tierTier package that owns the capability, requirements, and validators.
capability_slugSnake_case folder name.
display_nameHuman-readable capability name.
scopeWhat requirement family belongs here.
requirement_prefixRequirement code prefix, if new.
initial_requirementsOptional first requirement docs to add.
validator_scopeWhether validation is objective, manual, runtime, or deferred.

Instructions

Use this checklist when changing the repository:

  1. Confirm no existing capability already covers the scope.
  2. Choose names using the naming guide:
    • group folder: snake_case
    • folder: snake_case
    • overview: capability-<folder_name>.md
    • requirement docs: kebab-case
  3. Create the capability folder in the appropriate group; if the group is new, add the group landing page too.
  4. Add a machine-readable capability definition with its CAP-prefixed ID, requirements, and exact CAP dependencies.
  5. Add capability-<slug>.md with purpose, scope, requirement table, related capabilities, and validation notes.
  6. Add requirements.md with {requirements-table} and a toctree for requirement docs.
  7. Add an empty or initial requirements/ folder content only for real requirements.
  8. Add validation.py with imports and placeholder structure only when validators are planned; otherwise document deferred validation in the capability overview.
  9. Update parent group toctrees, group landing pages, and the shared global capability hub when needed.
  10. Update the owning tier's rules_and_reqs/__init__.py when a new validation module must be registered. Keep the shared legacy aggregate import hub in sync until simready-foundation-core is retired.
  11. Validate consistency:
    • the catalog ID begins with CAP
    • folder and overview names match
    • requirements index builds conceptually
    • validator registration path is documented
    • no duplicate requirement prefix or capability slug exists

Examples

Example request:

Add a SimReady capability for factory connection points, with requirement index registration and a validation plan.

Expected result summary:

capability_path: nv_core/tiers/<owning-tier>/simready/foundation/<tier-module>/rules_and_reqs/<group>/<capability_slug>
overview_doc: capability-<capability_slug>.md
requirements_index: requirements.md
validation_module: validation.py or deferred
next_step: add concrete requirements with simready-foundation-add-requirement

Policies

  • Protect unrelated local work: before editing shared repository files (spec markdown, requirement/feature JSON, profile TOML, validators, skills, or docs), check git status for unrelated in-progress changes and scope edits to the requested task. Never revert, overwrite, discard, stash, or commit a user's uncommitted or unrelated changes; if a file you must edit already carries pending unrelated edits, surface it and confirm before proceeding.
  • Keep secrets out of the repo and evidence: never write user-provided tokens, credentials, API keys, or other secrets into files, source, logs, validation or evaluation reports, commit messages, or bug/Jira/Confluence attachments, and do not echo them in full; read them from environment variables or an existing credential store and redact them from any output you preserve.
  • Prefer adding requirements to an existing capability when the domain already exists.
  • Convert a feature without runtime tests into a capability unless it is the source of tested derived FETs. Preserve reusable static requirements under the appropriate CAP- or source-FET identity.
  • Keep capability docs about requirement families, not profile workflows.
  • Make validation status explicit; incomplete validators are acceptable only when called out.

Limitations

  • Do not create new feature or profile versions from this skill; hand off to the relevant add/update feature or profile skill.
  • Do not invent requirement IDs when the capability scope is still ambiguous; record the naming question instead.
  • Do not add executable validators unless the objective checks and registration path are clear.

Troubleshooting

  • Error: an existing capability already owns the scope. Solution: update that capability instead of creating a parallel one.
  • Error: the validator registration path is unclear. Solution: document deferred validation in the overview and list the exact follow-up.
  • Error: indexes and folder names disagree. Solution: re-check the naming guide, then align folder, overview, requirements index, and imports.

Resources

  • assets/openai.yaml preserves optional UI metadata for clients that read skill display hints. It is not required for the authoring workflow.

Summary Format

Report:

FieldMeaning
capability_pathNew capability folder.
overview_docCapability overview path.
requirements_indexRequirements index path.
validation_moduleValidator path or deferred.
initial_requirementsRequirement IDs added, if any.
indexes_changedGlobal/group index files changed.
next_stepAdd requirements, validators, features, or review.