# SKU naming generator

- Human page: https://happytails.ai/en/data-tools/sku-naming-generator/
- Markdown: https://happytails.ai/en/data-tools/sku-naming-generator.md
- Structured JSON: https://happytails.ai/agents/en/data-tools/sku-naming-generator/index.json
- Visibility: public

## Tool capabilities

| Property | Value |
| --- | --- |
| Tool ID | `sku-naming-generator` |
| Category | data-tools |
| Implementation | Registered implementation. Registration alone is not a production-quality guarantee. |
| Browser execution | Automatic updates after valid input or file selection. |
| Browser processing | Browser; see tool notes for network behavior. |
| HTTP API | Not callable through HTTP. |
| Browser-agent interface | run_current_tool |

### Implementation notes

Paste CSV attribute rows with a unique header. Up to 1,000,000 characters, 10,000 records and 100,000 cells including added columns. Values and leading zeros are preserved. Padding applies to the sequence placeholder only. Empty, oversized and colliding codes are reported without overwrites, truncation or automatic suffixes. Omitted attributes and ambiguous abbreviation dictionaries are visible in reports. Runs on your device.

### Inputs and settings

Text input: Product attributes.

Example or placeholder shown in the interface (not a validated fixture):

```text
CSV with a header
```

Template placeholders must match exact attribute headers. {sep} is the separator and {n} is the sequence. Results update as you type. Up to 1,000,000 characters.

| Setting | Meaning | Control type | Default | Constraints |
| --- | --- | --- | --- | --- |
| `delimiter` | Input CSV separator | select | "," | Allowed: ,, ;, 	 |
| `template` | SKU template | text | "{brand}{sep}{colour}{sep}{n}" |  |
| `abbreviations` | Attribute abbreviations | textarea | "{}" |  |
| `separator` | SKU separator | text | "-" |  |
| `padding` | Sequence zero padding | number | 3 | min=0 max=12 step=1 |
| `maxLength` | Maximum SKU length | number | 100 | min=1 max=500 step=1 |
| `exportMode` | Spreadsheet formula handling | select | "Protect formulas" | Allowed: Protect formulas, Preserve original cells |

### Browser-agent workflow

1. Open the human page in a browser that supports WebMCP.
2. Discover the interface exposed by that page; use its actual schema.
3. Select files on the page first when the tool requires files.
4. Call `run_current_tool` with valid input and settings.
5. Inspect the returned result or error and the displayed output. Retrieve files from the displayed download links.

Calls do not automatically copy or download results. Browser permissions still apply. Interface availability alone is not proof of successful execution.

### Planning specification

No value is silently overwritten, truncated or renamed. Padding applies to {n}; attribute strings and leading zeros are preserved. n, sep, sku and source_record are reserved headers. Maximum 1,000,000 input characters, 10,000 records and 100,000 result cells. CSV output is bounded to 4,000,000 characters.

This describes intended requirements. Use the implementation notes, interface schema and observed output to determine current support.

### Complete machine-readable capability record

```json
{
  "id": "sku-naming-generator",
  "category": "data-tools",
  "built": true,
  "requirements": "No value is silently overwritten, truncated or renamed. Padding applies to {n}; attribute strings and leading zeros are preserved. n, sep, sku and source_record are reserved headers. Maximum 1,000,000 input characters, 10,000 records and 100,000 result cells. CSV output is bounded to 4,000,000 characters.",
  "implementation": {
    "fields": [
      {
        "key": "delimiter",
        "label": "Input CSV separator",
        "value": ",",
        "type": "select",
        "values": [
          ",",
          ";",
          "\t"
        ]
      },
      {
        "key": "template",
        "label": "SKU template",
        "value": "{brand}{sep}{colour}{sep}{n}",
        "type": "text",
        "help": "Exact CSV headers in braces; {sep} inserts the separator and {n} the one-based sequence. Column names n, sep, sku and source_record are reserved."
      },
      {
        "key": "abbreviations",
        "label": "Attribute abbreviations",
        "value": "{}",
        "type": "textarea",
        "help": "JSON object mapping column names to exact replacements, for example {\"colour\":{\"Red\":\"RD\",\"Blue\":\"BL\"}}. Unmapped values remain unchanged. Many-to-one abbreviations are reported as ambiguous."
      },
      {
        "key": "separator",
        "label": "SKU separator",
        "value": "-",
        "type": "text"
      },
      {
        "key": "padding",
        "label": "Sequence zero padding",
        "value": 3,
        "type": "number",
        "min": 0,
        "max": 12,
        "step": 1
      },
      {
        "key": "maxLength",
        "label": "Maximum SKU length",
        "value": 100,
        "type": "number",
        "min": 1,
        "max": 500,
        "step": 1
      },
      {
        "key": "exportMode",
        "label": "Spreadsheet formula handling",
        "value": "Protect formulas",
        "type": "select",
        "values": [
          "Protect formulas",
          "Preserve original cells"
        ]
      }
    ],
    "live": true,
    "background": true,
    "presentation": "metrics",
    "note": "Paste CSV attribute rows with a unique header. Up to 1,000,000 characters, 10,000 records and 100,000 cells including added columns. Values and leading zeros are preserved. Padding applies to the sequence placeholder only. Empty, oversized and colliding codes are reported without overwrites, truncation or automatic suffixes. Omitted attributes and ambiguous abbreviation dictionaries are visible in reports. Runs on your device.",
    "experience": {
      "automatic": true,
      "single": false,
      "inputMaxLength": 1000000,
      "inputMode": "text",
      "label": "Product attributes",
      "placeholder": "CSV with a header",
      "help": "Template placeholders must match exact attribute headers. {sep} is the separator and {n} is the sequence. Results update as you type. Up to 1,000,000 characters.",
      "action": null
    },
    "mode": "automatic",
    "interactive": false
  },
  "execution": "Browser interface",
  "api": null,
  "browser_agent": {
    "supported": true,
    "name": "run_current_tool",
    "discovery": "WebMCP on the human page in a supporting browser",
    "verification": "See audit/API-AUDIT.md; availability is not verification"
  }
}
```

## Page guide

Create SKU strings from CSV attributes, exact templates and abbreviation maps, with collision and ambiguity reports.

### How to use SKU naming generator

1. Paste attribute CSV with a unique header.
2. Set placeholders, exact abbreviation dictionaries, separator, sequence padding and maximum SKU length.
3. Review every generated code and the findings report before exporting CSV and JSON.

How can we improve this tool?

Report a problem or share an idea.

Please leave out private information. Your message and the tool name go to our team via PostHog.

## Useful next steps

- [GTIN check digit calculator](https://happytails.ai/en/data-tools/gtin-check-digit-calculator/) ([Markdown](https://happytails.ai/en/data-tools/gtin-check-digit-calculator.md))

- [Product feed validator](https://happytails.ai/en/data-tools/product-feed-validator/) ([Markdown](https://happytails.ai/en/data-tools/product-feed-validator.md))

- [Product variant matrix generator](https://happytails.ai/en/data-tools/product-variant-matrix-generator/) ([Markdown](https://happytails.ai/en/data-tools/product-variant-matrix-generator.md))

## Detect ambiguous naming rules

Every record sharing a generated SKU appears in the collision report. The JSON report identifies many-to-one abbreviation dictionaries, and the findings CSV identifies attributes omitted from a template. Unmapped abbreviation values remain literal.

### Local processing and exports

Processing runs on your device. CSV downloads quote every cell and protect formula prefixes by default. JSON preserves original strings and includes the report and result tables. Spreadsheet import settings can still change identifiers; import them as text.
