agentleFS
NVIDIAKnown publisherNVIDIA/physicsnemo/.cursor/rules/mod-003h-parameters-must-be-documented-on-single-line.mdc

physicsnemo / rules

Cursor rule3.3k starsChanged 12 months agoApache-2.0View on GitHub

All parameters must be documented with their type and default values on a single line following NumPy docstring style format.

Trending

Quiet since September.about the whole repository

Dec 2025: 0 mentionsJan 2026: 3 mentionsFeb 2026: 1 mentionMar 2026: 1 mentionApr 2026: 0 mentionsMay 2026: 1 mentionJun 2026: 3 mentionsJul 2026: 3 mentionsAug 2026: 0 mentionsSep 2026: 2 mentionsOct 2026: 0 mentionsNov 2026: 0 mentions
Dec 2025Jun 2026Nov 2026
Mentions a month of the NVIDIA/physicsnemo repository that our weekly crawl found. There is no adoption data for this file yet.

Who's talking about NVIDIA/physicsnemo

The biggest 5 of 15 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 15

Talked about on GitHub (15 times).

On GitHub · 15

10 more on GitHub

The file

We split this mod-003h-parameters-must-be-documented-on-single-line.mdc into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    When documenting parameters, rule MOD-003h must be followed.

    line 6
  2. Distinctive:

    All parameters should be documented with their type and default values on a single line, following the NumPy docstring style format:

    line 12

≈ “Common” is an estimate: at least 1 in 5 of the 3,030 Cursor rule files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
mod-003h-parameters-must-be-documented-on-single-line.mdc
---
description: All parameters must be documented with their type and default values on a single line following NumPy docstring style format.
alwaysApply: false
---

When documenting parameters, rule MOD-003h must be followed. Explicitly reference "Following rule MOD-003h, which requires parameters to be documented with type and default on a single line..." when formatting parameter documentation.

## MOD-003h: Parameters must be documented on single line

**Description:**

All parameters should be documented with their type and default values on a
single line, following the NumPy docstring style format:

```
parameter_name : type, optional, default=value
```

The description then follows on the next line(s), indented.

**Rationale:**

This standardized format makes parameter documentation consistent and easy to
parse. It provides all key information (name, type, optionality, default) at a
glance, improving readability.

**Example:**

```python
class MyModel(Module):
    r"""
    Model with properly documented parameters.

    Parameters
    ----------
    input_dim : int
        Dimension of input features.
    hidden_dim : int, optional, default=128
        Dimension of hidden layer.
    dropout : float, optional, default=0.1
        Dropout probability.
    activation : str, optional, default="relu"
        Activation function to use.
    """
    pass
```

**Anti-pattern:**

```python
# WRONG: Type and default not on same line
class MyModel(Module):
    r"""
    Parameters
    ----------
    hidden_dim : int
        optional, default=128  # WRONG: should be on line above
        Dimension of hidden layer.
    """
    pass
```

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.