CtrlK
BlogDocsLog inGet started
Tessl Logo

pantheon-ai/nx-plugin-toolkit

Complete Nx plugin development toolkit: create custom generators, executors, and extend Nx workspaces with reusable automation

93

1.00x
Quality

94%

Does it follow best practices?

Impact

92%

1.00x

Average score across 5 eval scenarios

SecuritybySnyk

Passed

No known issues

Overview
Quality
Evals
Security
Files

schema-design-patterns.mdnx-plugin-authoring/references/

Schema Design Patterns

Use this reference to design generator schemas that fail early and guide users clearly.

Baseline Schema Pattern

{
  "cli": "nx",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Artifact name"
    },
    "directory": {
      "type": "string",
      "description": "Target directory"
    }
  },
  "required": ["name"]
}

Conditional Schema Example

{
  "type": "object",
  "properties": {
    "publishable": { "type": "boolean" },
    "importPath": { "type": "string" }
  },
  "allOf": [
    {
      "if": { "properties": { "publishable": { "const": true } } },
      "then": { "required": ["importPath"] }
    }
  ]
}

Design Guidance

  • Use required for mandatory values.
  • Add clear description fields for CLI help readability.
  • Provide sane defaults for optional flags.
  • Avoid ambiguous option names across generators.

tile.json