[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7D907R3366XHZR6WYFZC17V":3,"skill-same:01M7D907R3366XHZR6WYFZC17V":85},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":63,"commitSha":64,"skillDirectory":65,"forksCount":14,"repositoryHtmlUrl":66,"repositoryHomepageUrl":6,"ownerHtmlUrl":67,"ownerBlogUrl":68,"ownerDescription":69,"updatedAt":70,"install":71,"resources":84},"01M7D907R3366XHZR6WYFZC17V","Negative Test Generator",null,"Systematically generate negative test cases covering invalid inputs, unauthorized actions, missing required fields, exceeded limits, and malformed request payloads","GrupoANDevelopment-m\u002Falberto-ai","GrupoANDevelopment-m","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F257455179?v=4","01M7D69X2N2KEVN0SJF6WGM6SH","Antônio  Ndombe","01M7D69X3P5JTT8H8S904N3888",0,"MIT","https:\u002F\u002Fgithub.com\u002FGrupoANDevelopment-m\u002Falberto-ai\u002Fblob\u002Fmain\u002Fskills\u002Fqa\u002Fnegative-test-generator\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: Negative Test Generator\ndescription: Systematically generate negative test cases covering invalid inputs, unauthorized actions, missing required fields, exceeded limits, and malformed request payloads\nversion: 1.0.0\nauthor: Pramod\nlicense: MIT\ntags: [negative-testing, error-handling, invalid-input, boundary-testing, validation-testing, robustness, fault-tolerance]\ntestingTypes: [unit, integration, security]\nframeworks: [jest, vitest, pytest]\nlanguages: [typescript, javascript, python, java]\ndomains: [web, api]\nagents: [claude-code, cursor, github-copilot, windsurf, codex, aider, continue, cline, zed, bolt, gemini-cli, amp]\n---\n\n# Negative Test Generator Skill\n\nYou are an expert QA engineer specializing in negative testing and robustness verification. When the user asks you to create, review, or improve negative test cases, follow these detailed instructions to systematically generate tests that verify the system correctly rejects invalid inputs, handles error conditions gracefully, and maintains data integrity under adversarial conditions.\n\n## Core Principles\n\n1. **Every input has an invalid twin** -- For every valid input a system accepts, there exists a family of invalid inputs that must be rejected. Negative testing maps this family systematically, not randomly.\n2. **Error messages are features** -- A good error message tells the user what went wrong, where, and how to fix it. Negative tests must verify not just that errors occur, but that the error response is actionable and accurate.\n3. **Validation boundaries are contract boundaries** -- The boundary between valid and invalid input is the most defect-dense region of any system. Test one step inside and one step outside every boundary.\n4. **Fail safely, never silently** -- A system that silently accepts invalid input is more dangerous than one that crashes. Negative tests verify that rejection is explicit, logged, and does not corrupt state.\n5. **Type violations are the first line of defense** -- Before testing business logic validation, test type-level violations. Sending a string where a number is expected should produce a type error, not a business logic error.\n6. **Absence is a value** -- null, undefined, empty string, missing field, and empty array are five distinct concepts. Each must be tested independently because systems handle them differently.\n7. **Composition multiplies invalid states** -- If a form has 5 fields and each has 4 invalid variants, the negative test space is not 20 but potentially exponential. Use pairwise testing to manage combinatorial explosion.\n8. **Security testing starts with negative testing** -- SQL injection, XSS, and path traversal are negative test cases with security implications. Every input field is a potential attack vector.\n9. **Concurrent invalid operations reveal race conditions** -- Sending two conflicting requests simultaneously is a negative test that most developers never write but production always executes.\n10. **Error handling must not leak internals** -- Stack traces, database names, file paths, and internal IDs in error responses are negative test findings with security implications.\n\n## Project Structure\n\n```\ntests\u002F\n  negative\u002F\n    generators\u002F\n      input-type-violations.ts\n      missing-fields.ts\n      boundary-violations.ts\n      format-violations.ts\n      injection-payloads.ts\n      concurrent-conflicts.ts\n    helpers\u002F\n      error-assertions.ts\n      payload-builder.ts\n      type-fuzzer.ts\n    tests\u002F\n      api\u002F\n        create-user.negative.test.ts\n        update-order.negative.test.ts\n        authentication.negative.test.ts\n        authorization.negative.test.ts\n      validation\u002F\n        email-validation.negative.test.ts\n        number-validation.negative.test.ts\n        date-validation.negative.test.ts\n        string-validation.negative.test.ts\n      payloads\u002F\n        malformed-json.negative.test.ts\n        oversized-payload.negative.test.ts\n        content-type-mismatch.negative.test.ts\n      concurrency\u002F\n        race-condition.negative.test.ts\n        duplicate-submission.negative.test.ts\n    config\u002F\n      negative-test.config.ts\n    data\u002F\n      injection-strings.json\n      boundary-values.json\n```\n\n## Input Type Violation Generator\n\nThe foundation of negative testing is systematically generating invalid type variants for every field.\n\n```typescript\n\u002F\u002F input-type-violations.ts\ntype FieldType = 'string' | 'number' | 'boolean' | 'email' | 'url' | 'date' | 'uuid' | 'enum' | 'array' | 'object';\n\ninterface FieldDefinition {\n  name: string;\n  type: FieldType;\n  required: boolean;\n  minLength?: number;\n  maxLength?: number;\n  min?: number;\n  max?: number;\n  pattern?: string;\n  enumValues?: string[];\n  format?: string;\n}\n\ninterface NegativeTestCase {\n  name: string;\n  field: string;\n  category: NegativeCategory;\n  input: any;\n  expectedError: {\n    status?: number;\n    code?: string;\n    messagePattern?: RegExp;\n    field?: string;\n  };\n}\n\ntype NegativeCategory =\n  | 'type_violation'\n  | 'missing_required'\n  | 'boundary_violation'\n  | 'format_violation'\n  | 'injection'\n  | 'null_undefined'\n  | 'empty_value'\n  | 'overflow'\n  | 'encoding'\n  | 'special_characters';\n\nfunction generateTypeViolations(field: FieldDefinition): NegativeTestCase[] {\n  const cases: NegativeTestCase[] = [];\n  const typeInvalids: Record\u003CFieldType, any[]> = {\n    string: [123, true, [], {}, 0, -1, NaN, Infinity],\n    number: ['abc', '', true, [], {}, 'NaN', '123abc', null],\n    boolean: ['yes', 'no', 1, 0, 'true', 'false', '', null],\n    email: [123, true, [], {}, null],\n    url: [123, true, [], {}, null],\n    date: [123, true, [], {}, 'not-a-date', null],\n    uuid: [123, true, [], {}, 'not-a-uuid', null],\n    enum: [123, true, [], {}, null],\n    array: ['string', 123, true, {}, null],\n    object: ['string', 123, true, [], null],\n  };\n\n  const invalids = typeInvalids[field.type] || [];\n\n  for (const invalidValue of invalids) {\n    cases.push({\n      name: `${field.name}: should reject ${typeof invalidValue} (${JSON.stringify(invalidValue)}) when ${field.type} expected`,\n      field: field.name,\n      category: 'type_violation',\n      input: invalidValue,\n      expectedError: {\n        status: 400,\n        code: 'VALIDATION_ERROR',\n        messagePattern: new RegExp(`${field.name}.*(?:invalid|expected|must be)`, 'i'),\n        field: field.name,\n      },\n    });\n  }\n\n  return cases;\n}\n\nfunction generateMissingFieldCases(fields: FieldDefinition[]): NegativeTestCase[] {\n  const cases: NegativeTestCase[] = [];\n\n  for (const field of fields.filter(f => f.required)) {\n    \u002F\u002F Missing entirely\n    cases.push({\n      name: `${field.name}: should reject when required field is missing entirely`,\n      field: field.name,\n      category: 'missing_required',\n      input: undefined,\n      expectedError: {\n        status: 400,\n        code: 'VALIDATION_ERROR',\n        messagePattern: new RegExp(`${field.name}.*required`, 'i'),\n        field: field.name,\n      },\n    });\n\n    \u002F\u002F Explicitly null\n    cases.push({\n      name: `${field.name}: should reject null for required field`,\n      field: field.name,\n      category: 'null_undefined',\n      input: null,\n      expectedError: {\n        status: 400,\n        code: 'VALIDATION_ERROR',\n        field: field.name,\n      },\n    });\n\n    \u002F\u002F Explicitly undefined\n    cases.push({\n      name: `${field.name}: should reject undefined for required field`,\n      field: field.name,\n      category: 'null_undefined',\n      input: undefined,\n      expectedError: {\n        status: 400,\n        code: 'VALIDATION_ERROR',\n        field: field.name,\n      },\n    });\n\n    \u002F\u002F Empty string (for string types)\n    if (field.type === 'string' || field.type === 'email' || field.type === 'url') {\n      cases.push({\n        name: `${field.name}: should reject empty string for required field`,\n        field: field.name,\n        category: 'empty_value',\n        input: '',\n        expectedError: {\n          status: 400,\n          code: 'VALIDATION_ERROR',\n          field: field.name,\n        },\n      });\n\n      cases.push({\n        name: `${field.name}: should reject whitespace-only string for required field`,\n        field: field.name,\n        category: 'empty_value',\n        input: '   ',\n        expectedError: {\n          status: 400,\n          code: 'VALIDATION_ERROR',\n          field: field.name,\n        },\n      });\n    }\n\n    \u002F\u002F Empty array (for array types)\n    if (field.type === 'array') {\n      cases.push({\n        name: `${field.name}: should reject empty array for required field`,\n        field: field.name,\n        category: 'empty_value',\n        input: [],\n        expectedError: {\n          status: 400,\n          code: 'VALIDATION_ERROR',\n          field: field.name,\n        },\n      });\n    }\n  }\n\n  return cases;\n}\n```\n\n## Boundary Violation Generator\n\n```typescript\n\u002F\u002F boundary-violations.ts\nfunction generateBoundaryViolations(field: FieldDefinition): NegativeTestCase[] {\n  const cases: NegativeTestCase[] = [];\n\n  \u002F\u002F String length boundaries\n  if (field.type === 'string' || field.type === 'email' || field.type === 'url') {\n    if (field.minLength !== undefined) {\n      cases.push({\n        name: `${field.name}: should reject string shorter than minLength (${field.minLength})`,\n        field: field.name,\n        category: 'boundary_violation',\n        input: 'a'.repeat(Math.max(0, field.minLength - 1)),\n        expectedError: {\n          status: 400,\n          code: 'VALIDATION_ERROR',\n          messagePattern: new RegExp(`${field.name}.*(?:min|short|least|minimum)`, 'i'),\n        },\n      });\n    }\n\n    if (field.maxLength !== undefined) {\n      cases.push({\n        name: `${field.name}: should reject string exceeding maxLength (${field.maxLength})`,\n        field: field.name,\n        category: 'boundary_violation',\n        input: 'a'.repeat(field.maxLength + 1),\n        expectedError: {\n          status: 400,\n          code: 'VALIDATION_ERROR',\n          messagePattern: new RegExp(`${field.name}.*(?:max|long|exceed|maximum)`, 'i'),\n        },\n      });\n\n      \u002F\u002F Significantly exceeding max length\n      cases.push({\n        name: `${field.name}: should reject extremely long string (10x maxLength)`,\n        field: field.name,\n        category: 'overflow',\n        input: 'a'.repeat(field.maxLength * 10),\n        expectedError: {\n          status: 400,\n          code: 'VALIDATION_ERROR',\n        },\n      });\n    }\n  }\n\n  \u002F\u002F Numeric boundaries\n  if (field.type === 'number') {\n    if (field.min !== undefined) {\n      cases.push({\n        name: `${field.name}: should reject number below minimum (${field.min})`,\n        field: field.name,\n        category: 'boundary_violation',\n        input: field.min - 1,\n        expectedError: {\n          status: 400,\n          code: 'VALIDATION_ERROR',\n          messagePattern: new RegExp(`${field.name}.*(?:min|least|greater)`, 'i'),\n        },\n      });\n\n      cases.push({\n        name: `${field.name}: should reject large negative number`,\n        field: field.name,\n        category: 'boundary_violation',\n        input: -Number.MAX_SAFE_INTEGER,\n        expectedError: { status: 400, code: 'VALIDATION_ERROR' },\n      });\n    }\n\n    if (field.max !== undefined) {\n      cases.push({\n        name: `${field.name}: should reject number above maximum (${field.max})`,\n        field: field.name,\n        category: 'boundary_violation',\n        input: field.max + 1,\n        expectedError: {\n          status: 400,\n          code: 'VALIDATION_ERROR',\n          messagePattern: new RegExp(`${field.name}.*(?:max|exceed|less)`, 'i'),\n        },\n      });\n    }\n\n    \u002F\u002F Special numeric values\n    cases.push({\n      name: `${field.name}: should reject NaN`,\n      field: field.name,\n      category: 'type_violation',\n      input: NaN,\n      expectedError: { status: 400, code: 'VALIDATION_ERROR' },\n    });\n\n    cases.push({\n      name: `${field.name}: should reject Infinity`,\n      field: field.name,\n      category: 'type_violation',\n      input: Infinity,\n      expectedError: { status: 400, code: 'VALIDATION_ERROR' },\n    });\n\n    cases.push({\n      name: `${field.name}: should reject -Infinity`,\n      field: field.name,\n      category: 'type_violation',\n      input: -Infinity,\n      expectedError: { status: 400, code: 'VALIDATION_ERROR' },\n    });\n\n    cases.push({\n      name: `${field.name}: should handle -0 correctly`,\n      field: field.name,\n      category: 'type_violation',\n      input: -0,\n      expectedError: { status: 400, code: 'VALIDATION_ERROR' },\n    });\n  }\n\n  return cases;\n}\n```\n\n## Format Violation Generator\n\n```typescript\n\u002F\u002F format-violations.ts\nfunction generateFormatViolations(field: FieldDefinition): NegativeTestCase[] {\n  const cases: NegativeTestCase[] = [];\n\n  if (field.type === 'email') {\n    const invalidEmails = [\n      { value: 'notanemail', reason: 'missing @ symbol' },\n      { value: '@domain.com', reason: 'missing local part' },\n      { value: 'user@', reason: 'missing domain' },\n      { value: 'user@.com', reason: 'domain starts with dot' },\n      { value: 'user@domain', reason: 'missing TLD' },\n      { value: 'user @domain.com', reason: 'contains space' },\n      { value: 'user@dom ain.com', reason: 'space in domain' },\n      { value: 'user@@domain.com', reason: 'double @ symbol' },\n      { value: 'user@domain..com', reason: 'consecutive dots in domain' },\n      { value: '\u003Cscript>@domain.com', reason: 'HTML in local part' },\n      { value: 'user@domain.com\\n', reason: 'trailing newline' },\n      { value: '', reason: 'empty string' },\n    ];\n\n    for (const { value, reason } of invalidEmails) {\n      cases.push({\n        name: `${field.name}: should reject invalid email -- ${reason}`,\n        field: field.name,\n        category: 'format_violation',\n        input: value,\n        expectedError: {\n          status: 400,\n          code: 'VALIDATION_ERROR',\n          messagePattern: \u002Femail.*invalid|invalid.*email\u002Fi,\n        },\n      });\n    }\n  }\n\n  if (field.type === 'url') {\n    const invalidUrls = [\n      { value: 'not-a-url', reason: 'no protocol' },\n      { value: 'htp:\u002F\u002Fexample.com', reason: 'invalid protocol' },\n      { value: 'http:\u002F\u002F', reason: 'missing host' },\n      { value: 'http:\u002F\u002Fexample', reason: 'no TLD' },\n      { value: ':\u002F\u002Fexample.com', reason: 'missing protocol name' },\n      { value: 'http:\u002F\u002Fexam ple.com', reason: 'space in host' },\n      { value: 'javascript:alert(1)', reason: 'javascript protocol' },\n      { value: 'data:text\u002Fhtml,\u003Cscript>alert(1)\u003C\u002Fscript>', reason: 'data URI with script' },\n    ];\n\n    for (const { value, reason } of invalidUrls) {\n      cases.push({\n        name: `${field.name}: should reject invalid URL -- ${reason}`,\n        field: field.name,\n        category: 'format_violation',\n        input: value,\n        expectedError: {\n          status: 400,\n          code: 'VALIDATION_ERROR',\n          messagePattern: \u002Furl.*invalid|invalid.*url\u002Fi,\n        },\n      });\n    }\n  }\n\n  if (field.type === 'date') {\n    const invalidDates = [\n      { value: '2024-13-01', reason: 'month 13' },\n      { value: '2024-02-30', reason: 'February 30th' },\n      { value: '2024-00-01', reason: 'month 0' },\n      { value: '2024-01-32', reason: 'day 32' },\n      { value: '2024-01-00', reason: 'day 0' },\n      { value: '24-01-15', reason: 'two-digit year' },\n      { value: 'January 15, 2024', reason: 'non-ISO format' },\n      { value: '01\u002F15\u002F2024', reason: 'US format slashes' },\n      { value: '2024\u002F01\u002F15', reason: 'forward slashes' },\n      { value: 'not-a-date', reason: 'non-date string' },\n      { value: '9999-12-31T23:59:59.999Z', reason: 'far future date' },\n      { value: '0000-01-01', reason: 'year zero' },\n    ];\n\n    for (const { value, reason } of invalidDates) {\n      cases.push({\n        name: `${field.name}: should reject invalid date -- ${reason}`,\n        field: field.name,\n        category: 'format_violation',\n        input: value,\n        expectedError: {\n          status: 400,\n          code: 'VALIDATION_ERROR',\n        },\n      });\n    }\n  }\n\n  if (field.type === 'uuid') {\n    const invalidUuids = [\n      { value: 'not-a-uuid', reason: 'non-UUID string' },\n      { value: '12345678-1234-1234-1234-12345678901', reason: 'too short' },\n      { value: '12345678-1234-1234-1234-1234567890123', reason: 'too long' },\n      { value: '12345678123412341234123456789012', reason: 'missing hyphens' },\n      { value: 'ZZZZZZZZ-ZZZZ-ZZZZ-ZZZZ-ZZZZZZZZZZZZ', reason: 'non-hex characters' },\n      { value: '00000000-0000-0000-0000-000000000000', reason: 'nil UUID (may be invalid in context)' },\n    ];\n\n    for (const { value, reason } of invalidUuids) {\n      cases.push({\n        name: `${field.name}: should reject invalid UUID -- ${reason}`,\n        field: field.name,\n        category: 'format_violation',\n        input: value,\n        expectedError: {\n          status: 400,\n          code: 'VALIDATION_ERROR',\n        },\n      });\n    }\n  }\n\n  if (field.type === 'enum' && field.enumValues) {\n    cases.push({\n      name: `${field.name}: should reject value not in enum`,\n      field: field.name,\n      category: 'format_violation',\n      input: 'INVALID_ENUM_VALUE',\n      expectedError: {\n        status: 400,\n        code: 'VALIDATION_ERROR',\n        messagePattern: new RegExp(`${field.name}.*(?:invalid|must be one of|enum)`, 'i'),\n      },\n    });\n\n    \u002F\u002F Case sensitivity\n    if (field.enumValues.length > 0) {\n      const firstValue = field.enumValues[0];\n      cases.push({\n        name: `${field.name}: should reject wrong-case enum value`,\n        field: field.name,\n        category: 'format_violation',\n        input: firstValue === firstValue.toLowerCase() ? firstValue.toUpperCase() : firstValue.toLowerCase(),\n        expectedError: { status: 400, code: 'VALIDATION_ERROR' },\n      });\n    }\n  }\n\n  return cases;\n}\n```\n\n## Injection Payload Generator\n\n```typescript\n\u002F\u002F injection-payloads.ts\nfunction generateInjectionPayloads(field: FieldDefinition): NegativeTestCase[] {\n  const cases: NegativeTestCase[] = [];\n\n  if (field.type === 'string' || field.type === 'email' || field.type === 'url') {\n    const injectionStrings = [\n      \u002F\u002F SQL injection\n      { value: \"'; DROP TABLE users; --\", category: 'SQL injection' },\n      { value: \"' OR '1'='1\", category: 'SQL injection' },\n      { value: \"' UNION SELECT * FROM passwords --\", category: 'SQL injection' },\n      { value: \"1; UPDATE users SET role='admin' WHERE '1'='1\", category: 'SQL injection' },\n\n      \u002F\u002F XSS\n      { value: '\u003Cscript>alert(\"XSS\")\u003C\u002Fscript>', category: 'XSS' },\n      { value: '\u003Cimg src=x onerror=alert(1)>', category: 'XSS' },\n      { value: '\">\u003Cscript>alert(document.cookie)\u003C\u002Fscript>', category: 'XSS' },\n      { value: \"javascript:alert('XSS')\", category: 'XSS' },\n      { value: '\u003Csvg onload=alert(1)>', category: 'XSS' },\n\n      \u002F\u002F Path traversal\n      { value: '..\u002F..\u002F..\u002Fetc\u002Fpasswd', category: 'Path traversal' },\n      { value: '..\\\\..\\\\..\\\\windows\\\\system32\\\\config\\\\sam', category: 'Path traversal' },\n      { value: '\u002Fetc\u002Fshadow', category: 'Path traversal' },\n\n      \u002F\u002F Command injection\n      { value: '; ls -la', category: 'Command injection' },\n      { value: '| cat \u002Fetc\u002Fpasswd', category: 'Command injection' },\n      { value: '$(whoami)', category: 'Command injection' },\n      { value: '`id`', category: 'Command injection' },\n\n      \u002F\u002F LDAP injection\n      { value: '*)(objectClass=*)', category: 'LDAP injection' },\n\n      \u002F\u002F XML injection\n      { value: '\u003C?xml version=\"1.0\"?>\u003C!DOCTYPE foo [\u003C!ENTITY xxe SYSTEM \"file:\u002F\u002F\u002Fetc\u002Fpasswd\">]>\u003Cfoo>&xxe;\u003C\u002Ffoo>', category: 'XXE' },\n\n      \u002F\u002F Header injection\n      { value: 'value\\r\\nInjected-Header: malicious', category: 'Header injection' },\n\n      \u002F\u002F Unicode and encoding attacks\n      { value: '\\u0000null_byte', category: 'Null byte injection' },\n      { value: '%00null_byte', category: 'URL-encoded null byte' },\n      { value: '\\uFEFFBOM_prefix', category: 'BOM injection' },\n    ];\n\n    for (const { value, category } of injectionStrings) {\n      cases.push({\n        name: `${field.name}: should safely handle ${category} attempt`,\n        field: field.name,\n        category: 'injection',\n        input: value,\n        expectedError: {\n          status: 400,\n          code: 'VALIDATION_ERROR',\n          \u002F\u002F The response should NOT contain the injected content reflected back\n        },\n      });\n    }\n  }\n\n  return cases;\n}\n```\n\n## API Negative Testing\n\n```typescript\n\u002F\u002F create-user.negative.test.ts\nimport { describe, it, expect, beforeAll, afterAll } from 'vitest';\n\nconst API_BASE = process.env.API_BASE_URL || 'http:\u002F\u002Flocalhost:3000\u002Fapi';\n\n\u002F\u002F Define the schema for test generation\nconst userFields: FieldDefinition[] = [\n  { name: 'email', type: 'email', required: true, maxLength: 255 },\n  { name: 'name', type: 'string', required: true, minLength: 1, maxLength: 100 },\n  { name: 'age', type: 'number', required: false, min: 0, max: 150 },\n  { name: 'role', type: 'enum', required: true, enumValues: ['admin', 'user', 'moderator'] },\n  { name: 'website', type: 'url', required: false, maxLength: 2048 },\n  { name: 'birthDate', type: 'date', required: false },\n];\n\nconst validUser = {\n  email: 'test@example.com',\n  name: 'Test User',\n  age: 25,\n  role: 'user',\n  website: 'https:\u002F\u002Fexample.com',\n  birthDate: '1998-06-15',\n};\n\ndescribe('POST \u002Fapi\u002Fusers -- Negative Tests', () => {\n  \u002F\u002F Generate and run type violation tests for every field\n  for (const field of userFields) {\n    const typeViolations = generateTypeViolations(field);\n\n    describe(`${field.name} -- type violations`, () => {\n      for (const testCase of typeViolations) {\n        it(testCase.name, async () => {\n          const payload = { ...validUser, [field.name]: testCase.input };\n          const response = await fetch(`${API_BASE}\u002Fusers`, {\n            method: 'POST',\n            headers: { 'Content-Type': 'application\u002Fjson' },\n            body: JSON.stringify(payload),\n          });\n\n          expect(response.status).toBe(testCase.expectedError.status);\n          const body = await response.json();\n          expect(body.code || body.error).toBeDefined();\n\n          \u002F\u002F Verify error does not leak internal details\n          const bodyText = JSON.stringify(body);\n          expect(bodyText).not.toMatch(\u002Fstack|trace|node_modules|internal\u002Fi);\n        });\n      }\n    });\n  }\n\n  \u002F\u002F Missing required fields\n  describe('Missing required fields', () => {\n    const missingFieldCases = generateMissingFieldCases(userFields);\n\n    for (const testCase of missingFieldCases) {\n      it(testCase.name, async () => {\n        const payload = { ...validUser };\n        if (testCase.input === undefined) {\n          delete (payload as any)[testCase.field];\n        } else {\n          (payload as any)[testCase.field] = testCase.input;\n        }\n\n        const response = await fetch(`${API_BASE}\u002Fusers`, {\n          method: 'POST',\n          headers: { 'Content-Type': 'application\u002Fjson' },\n          body: JSON.stringify(payload),\n        });\n\n        expect(response.status).toBe(400);\n      });\n    }\n  });\n\n  \u002F\u002F Boundary violations\n  describe('Boundary violations', () => {\n    for (const field of userFields) {\n      const boundaryViolations = generateBoundaryViolations(field);\n\n      for (const testCase of boundaryViolations) {\n        it(testCase.name, async () => {\n          const payload = { ...validUser, [field.name]: testCase.input };\n          const response = await fetch(`${API_BASE}\u002Fusers`, {\n            method: 'POST',\n            headers: { 'Content-Type': 'application\u002Fjson' },\n            body: JSON.stringify(payload),\n          });\n\n          expect(response.status).toBe(400);\n        });\n      }\n    }\n  });\n\n  \u002F\u002F Format violations\n  describe('Format violations', () => {\n    for (const field of userFields) {\n      const formatViolations = generateFormatViolations(field);\n\n      for (const testCase of formatViolations) {\n        it(testCase.name, async () => {\n          const payload = { ...validUser, [field.name]: testCase.input };\n          const response = await fetch(`${API_BASE}\u002Fusers`, {\n            method: 'POST',\n            headers: { 'Content-Type': 'application\u002Fjson' },\n            body: JSON.stringify(payload),\n          });\n\n          expect(response.status).toBe(400);\n        });\n      }\n    }\n  });\n\n  \u002F\u002F Injection attempts\n  describe('Injection attempts', () => {\n    for (const field of userFields) {\n      const injectionCases = generateInjectionPayloads(field);\n\n      for (const testCase of injectionCases) {\n        it(testCase.name, async () => {\n          const payload = { ...validUser, [field.name]: testCase.input };\n          const response = await fetch(`${API_BASE}\u002Fusers`, {\n            method: 'POST',\n            headers: { 'Content-Type': 'application\u002Fjson' },\n            body: JSON.stringify(payload),\n          });\n\n          \u002F\u002F Should either reject (400) or sanitize (200 with sanitized data)\n          expect(response.status).toBeOneOf([400, 200, 422]);\n\n          \u002F\u002F If accepted, verify the injection is not reflected back unsanitized\n          if (response.status === 200) {\n            const body = await response.json();\n            const bodyStr = JSON.stringify(body);\n            expect(bodyStr).not.toContain('\u003Cscript>');\n            expect(bodyStr).not.toContain('DROP TABLE');\n          }\n        });\n      }\n    }\n  });\n});\n```\n\n## Malformed Request Testing\n\n```typescript\n\u002F\u002F malformed-json.negative.test.ts\ndescribe('Malformed Request Handling', () => {\n  describe('Invalid JSON body', () => {\n    it('should reject malformed JSON', async () => {\n      const response = await fetch(`${API_BASE}\u002Fusers`, {\n        method: 'POST',\n        headers: { 'Content-Type': 'application\u002Fjson' },\n        body: '{\"email\": \"test@example.com\",}', \u002F\u002F trailing comma\n      });\n\n      expect(response.status).toBe(400);\n      const body = await response.json();\n      expect(body.message || body.error).toMatch(\u002Fjson|parse|syntax\u002Fi);\n    });\n\n    it('should reject truncated JSON', async () => {\n      const response = await fetch(`${API_BASE}\u002Fusers`, {\n        method: 'POST',\n        headers: { 'Content-Type': 'application\u002Fjson' },\n        body: '{\"email\": \"test@exam',\n      });\n\n      expect(response.status).toBe(400);\n    });\n\n    it('should reject empty body', async () => {\n      const response = await fetch(`${API_BASE}\u002Fusers`, {\n        method: 'POST',\n        headers: { 'Content-Type': 'application\u002Fjson' },\n        body: '',\n      });\n\n      expect(response.status).toBe(400);\n    });\n\n    it('should reject non-JSON content type with JSON body', async () => {\n      const response = await fetch(`${API_BASE}\u002Fusers`, {\n        method: 'POST',\n        headers: { 'Content-Type': 'text\u002Fplain' },\n        body: JSON.stringify(validUser),\n      });\n\n      expect(response.status).toBeOneOf([400, 415]); \u002F\u002F 415 Unsupported Media Type\n    });\n\n    it('should reject body with duplicate keys', async () => {\n      const response = await fetch(`${API_BASE}\u002Fusers`, {\n        method: 'POST',\n        headers: { 'Content-Type': 'application\u002Fjson' },\n        body: '{\"email\": \"good@test.com\", \"email\": \"evil@test.com\", \"name\": \"Test\", \"role\": \"user\"}',\n      });\n\n      \u002F\u002F At minimum, the last value should not silently override\n      if (response.status === 200) {\n        const body = await response.json();\n        \u002F\u002F Document which value wins\n        expect(body.email).toBeDefined();\n      }\n    });\n  });\n\n  describe('Oversized payloads', () => {\n    it('should reject payload exceeding size limit', async () => {\n      const oversizedPayload = {\n        ...validUser,\n        name: 'x'.repeat(10 * 1024 * 1024), \u002F\u002F 10MB string\n      };\n\n      const response = await fetch(`${API_BASE}\u002Fusers`, {\n        method: 'POST',\n        headers: { 'Content-Type': 'application\u002Fjson' },\n        body: JSON.stringify(oversizedPayload),\n      });\n\n      expect(response.status).toBeOneOf([400, 413]); \u002F\u002F 413 Payload Too Large\n    });\n\n    it('should reject deeply nested JSON', async () => {\n      let nested: any = { value: 'deep' };\n      for (let i = 0; i \u003C 100; i++) {\n        nested = { child: nested };\n      }\n\n      const response = await fetch(`${API_BASE}\u002Fusers`, {\n        method: 'POST',\n        headers: { 'Content-Type': 'application\u002Fjson' },\n        body: JSON.stringify({ ...validUser, metadata: nested }),\n      });\n\n      expect(response.status).toBeOneOf([400, 413, 422]);\n    });\n\n    it('should reject payload with excessive array elements', async () => {\n      const response = await fetch(`${API_BASE}\u002Fusers`, {\n        method: 'POST',\n        headers: { 'Content-Type': 'application\u002Fjson' },\n        body: JSON.stringify({\n          ...validUser,\n          tags: Array.from({ length: 100000 }, (_, i) => `tag_${i}`),\n        }),\n      });\n\n      expect(response.status).toBeOneOf([400, 413, 422]);\n    });\n  });\n});\n```\n\n## Authentication and Authorization Negative Tests\n\n```typescript\n\u002F\u002F authentication.negative.test.ts\ndescribe('Authentication Negative Tests', () => {\n  it('should reject request with no auth token', async () => {\n    const response = await fetch(`${API_BASE}\u002Fusers\u002Fme`, {\n      headers: { 'Content-Type': 'application\u002Fjson' },\n    });\n\n    expect(response.status).toBe(401);\n    const body = await response.json();\n    expect(body.message || body.error).toMatch(\u002Fauth|token|unauthorized\u002Fi);\n  });\n\n  it('should reject request with expired token', async () => {\n    const expiredToken = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwiZXhwIjoxNjAwMDAwMDAwfQ.invalid';\n    const response = await fetch(`${API_BASE}\u002Fusers\u002Fme`, {\n      headers: {\n        'Content-Type': 'application\u002Fjson',\n        'Authorization': `Bearer ${expiredToken}`,\n      },\n    });\n\n    expect(response.status).toBe(401);\n  });\n\n  it('should reject request with malformed token', async () => {\n    const response = await fetch(`${API_BASE}\u002Fusers\u002Fme`, {\n      headers: {\n        'Content-Type': 'application\u002Fjson',\n        'Authorization': 'Bearer not.a.valid.jwt',\n      },\n    });\n\n    expect(response.status).toBe(401);\n  });\n\n  it('should reject request with token signed by wrong key', async () => {\n    const wrongKeyToken = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c';\n    const response = await fetch(`${API_BASE}\u002Fusers\u002Fme`, {\n      headers: {\n        'Content-Type': 'application\u002Fjson',\n        'Authorization': `Bearer ${wrongKeyToken}`,\n      },\n    });\n\n    expect(response.status).toBe(401);\n  });\n\n  it('should reject non-Bearer auth scheme', async () => {\n    const response = await fetch(`${API_BASE}\u002Fusers\u002Fme`, {\n      headers: {\n        'Content-Type': 'application\u002Fjson',\n        'Authorization': 'Basic dXNlcjpwYXNz',\n      },\n    });\n\n    expect(response.status).toBeOneOf([401, 403]);\n  });\n});\n\n\u002F\u002F authorization.negative.test.ts\ndescribe('Authorization Negative Tests', () => {\n  it('should reject user accessing another user profile', async () => {\n    const response = await fetch(`${API_BASE}\u002Fusers\u002Fother-user-id`, {\n      headers: {\n        'Content-Type': 'application\u002Fjson',\n        'Authorization': `Bearer ${regularUserToken}`,\n      },\n    });\n\n    expect(response.status).toBe(403);\n  });\n\n  it('should reject non-admin accessing admin endpoints', async () => {\n    const response = await fetch(`${API_BASE}\u002Fadmin\u002Fusers`, {\n      headers: {\n        'Content-Type': 'application\u002Fjson',\n        'Authorization': `Bearer ${regularUserToken}`,\n      },\n    });\n\n    expect(response.status).toBe(403);\n  });\n\n  it('should reject deleted user token', async () => {\n    const response = await fetch(`${API_BASE}\u002Fusers\u002Fme`, {\n      headers: {\n        'Content-Type': 'application\u002Fjson',\n        'Authorization': `Bearer ${deletedUserToken}`,\n      },\n    });\n\n    expect(response.status).toBeOneOf([401, 403]);\n  });\n});\n```\n\n## Concurrent Conflict Testing\n\n```typescript\n\u002F\u002F race-condition.negative.test.ts\ndescribe('Concurrent Operation Conflicts', () => {\n  it('should handle duplicate creation requests', async () => {\n    const user = { email: 'unique@example.com', name: 'Race Test', role: 'user' };\n\n    const [response1, response2] = await Promise.all([\n      fetch(`${API_BASE}\u002Fusers`, {\n        method: 'POST',\n        headers: { 'Content-Type': 'application\u002Fjson' },\n        body: JSON.stringify(user),\n      }),\n      fetch(`${API_BASE}\u002Fusers`, {\n        method: 'POST',\n        headers: { 'Content-Type': 'application\u002Fjson' },\n        body: JSON.stringify(user),\n      }),\n    ]);\n\n    const statuses = [response1.status, response2.status].sort();\n    \u002F\u002F One should succeed (201), the other should fail (409 Conflict)\n    expect(statuses).toContain(201);\n    expect(statuses).toContain(409);\n  });\n\n  it('should handle concurrent updates with optimistic locking', async () => {\n    \u002F\u002F Create a resource first\n    const createResponse = await fetch(`${API_BASE}\u002Forders`, {\n      method: 'POST',\n      headers: { 'Content-Type': 'application\u002Fjson', 'Authorization': `Bearer ${token}` },\n      body: JSON.stringify({ items: [{ id: 'i1', quantity: 1 }] }),\n    });\n    const { id, version } = await createResponse.json();\n\n    \u002F\u002F Two concurrent updates with the same version\n    const [update1, update2] = await Promise.all([\n      fetch(`${API_BASE}\u002Forders\u002F${id}`, {\n        method: 'PATCH',\n        headers: {\n          'Content-Type': 'application\u002Fjson',\n          'Authorization': `Bearer ${token}`,\n          'If-Match': version,\n        },\n        body: JSON.stringify({ status: 'confirmed' }),\n      }),\n      fetch(`${API_BASE}\u002Forders\u002F${id}`, {\n        method: 'PATCH',\n        headers: {\n          'Content-Type': 'application\u002Fjson',\n          'Authorization': `Bearer ${token}`,\n          'If-Match': version,\n        },\n        body: JSON.stringify({ status: 'cancelled' }),\n      }),\n    ]);\n\n    const statuses = [update1.status, update2.status].sort();\n    expect(statuses).toContain(200);\n    expect(statuses).toContain(409); \u002F\u002F Optimistic locking conflict\n  });\n});\n```\n\n## Configuration\n\n```typescript\n\u002F\u002F negative-test.config.ts\ninterface NegativeTestConfig {\n  generation: {\n    includeTypeViolations: boolean;\n    includeMissingFields: boolean;\n    includeBoundaryViolations: boolean;\n    includeFormatViolations: boolean;\n    includeInjectionPayloads: boolean;\n    includeConcurrencyTests: boolean;\n    customInjectionPayloadsPath?: string;\n  };\n  execution: {\n    apiBaseUrl: string;\n    authToken?: string;\n    timeoutMs: number;\n    retryCount: number;\n    parallelRequests: number;\n  };\n  validation: {\n    requireActionableErrorMessages: boolean;\n    forbidInternalDetailsInErrors: boolean;\n    maxResponseTimeMs: number;\n    expectedErrorFormat: 'rfc7807' | 'custom' | 'any';\n  };\n  reporting: {\n    outputDirectory: string;\n    format: 'json' | 'markdown' | 'junit';\n    includePayloads: boolean;\n    includeResponseBodies: boolean;\n  };\n}\n\nconst defaultConfig: NegativeTestConfig = {\n  generation: {\n    includeTypeViolations: true,\n    includeMissingFields: true,\n    includeBoundaryViolations: true,\n    includeFormatViolations: true,\n    includeInjectionPayloads: true,\n    includeConcurrencyTests: true,\n  },\n  execution: {\n    apiBaseUrl: process.env.API_BASE_URL || 'http:\u002F\u002Flocalhost:3000\u002Fapi',\n    timeoutMs: 10000,\n    retryCount: 0,\n    parallelRequests: 5,\n  },\n  validation: {\n    requireActionableErrorMessages: true,\n    forbidInternalDetailsInErrors: true,\n    maxResponseTimeMs: 5000,\n    expectedErrorFormat: 'any',\n  },\n  reporting: {\n    outputDirectory: '.\u002Ftest-artifacts\u002Fnegative-tests',\n    format: 'json',\n    includePayloads: true,\n    includeResponseBodies: true,\n  },\n};\n```\n\n## Best Practices\n\n1. **Define your valid baseline first** -- Before generating negative tests, establish a known-good valid payload that passes all validation. Every negative test modifies exactly one aspect of this baseline.\n\n2. **Test one invalid field at a time** -- When testing field-level validation, keep all other fields valid. Testing multiple invalid fields simultaneously masks which validation triggered the error.\n\n3. **Verify the specific error, not just the status code** -- A 400 response is necessary but not sufficient. Verify that the error message identifies the correct field, the correct violation, and provides guidance for correction.\n\n4. **Test error response consistency** -- All error responses should follow the same format. If one endpoint returns `{ error: \"message\" }` and another returns `{ message: \"error\" }`, that inconsistency is a finding.\n\n5. **Verify no state mutation on rejected requests** -- After a rejected request, query the resource to confirm nothing changed. A system that returns 400 but partially applies the change has a critical bug.\n\n6. **Test error responses under load** -- Error handling paths that work under normal conditions may fail under load (connection pool exhaustion, memory pressure). Include negative tests in your load test suite.\n\n7. **Generate negative tests from your API schema** -- If you have OpenAPI, JSON Schema, or Zod definitions, generate negative tests programmatically. Manual enumeration is slow and incomplete.\n\n8. **Include negative tests in CI** -- Negative tests catch regressions in validation logic. A \"fix\" that removes validation because it was \"too strict\" should cause test failures.\n\n9. **Test the error response time** -- Error responses should be as fast as or faster than success responses. A slow error response suggests the system is doing work it should have rejected earlier.\n\n10. **Document expected behavior for each negative case** -- \"Should return an error\" is not a specification. Document the exact status code, error code, and message pattern expected for each negative case.\n\n11. **Test error handling at every layer** -- Validation errors (400), authentication errors (401), authorization errors (403), not found (404), conflict (409), rate limiting (429), and server errors (500) are all distinct negative test categories.\n\n12. **Verify idempotency of error responses** -- Sending the same invalid request twice should produce the same error. Non-deterministic error responses indicate shared mutable state in the validation layer.\n\n## Anti-Patterns to Avoid\n\n1. **Only testing the happy path and calling it done** -- If your test suite has 50 positive tests and 2 negative tests, your validation coverage is likely below 10%. The ratio should be at least 1:1 positive to negative.\n\n2. **Using generic assertions like expect(response.ok).toBe(false)** -- This tells you nothing about whether the right error was returned. Assert the specific status code, error code, and affected field.\n\n3. **Hardcoding injection strings instead of generating them** -- Injection payloads evolve. Use a maintained payload list (OWASP, SecLists) rather than a static list that becomes outdated.\n\n4. **Testing validation only at the API boundary** -- Validation should exist at multiple layers: client-side, API handler, service layer, and database constraints. Negative tests should verify defense in depth.\n\n5. **Ignoring error response body content** -- An error response that contains a stack trace, database connection string, or internal file path is a security vulnerability. Always assert that error responses do not leak internals.\n\n6. **Treating all 4xx errors as equivalent** -- 400 (bad request), 401 (unauthorized), 403 (forbidden), 404 (not found), 409 (conflict), 422 (unprocessable), and 429 (rate limited) all mean different things. Test for the specific code.\n\n7. **Skipping null\u002Fundefined\u002Fempty string distinctions** -- In JavaScript, these are three different values with three different behaviors. A field that accepts null but rejects undefined has a bug or a design decision that must be documented.\n\n8. **Not testing error recovery** -- After receiving an error, the system should accept the next valid request normally. A system that enters a broken state after handling an error has a state management bug.\n\n## Debugging Tips\n\n1. **Test returns 500 instead of 400** -- The validation layer is not catching the invalid input before it reaches the business logic or database. Add validation middleware or schema validation at the API handler level.\n\n2. **Error message does not identify the invalid field** -- The validation library may be returning a generic message. Configure it to include field paths. With Zod, use `.safeParse()` and inspect `.error.issues[].path`.\n\n3. **Injection string is accepted without sanitization** -- Check whether the system relies on client-side validation only. Server-side validation must exist independently. Also verify that parameterized queries are used for database access.\n\n4. **Same invalid input produces different errors on retry** -- This indicates non-deterministic validation order or shared state. Ensure validation is stateless and processes fields in a deterministic order.\n\n5. **Error response is slower than success response** -- The error path may be triggering exception handling, stack trace generation, or logging overhead. Profile the error handler and optimize.\n\n6. **Concurrent duplicate requests both succeed** -- The uniqueness constraint may not be enforced at the database level. Add a UNIQUE constraint or use INSERT ... ON CONFLICT to ensure atomicity.\n\n7. **Unicode characters cause encoding errors instead of validation errors** -- Ensure the application correctly handles UTF-8 throughout the stack. The error should be a validation rejection, not an encoding crash.\n\n8. **Test passes locally but fails in CI** -- Check environment differences: database collation settings, locale configurations, and time zone settings all affect validation behavior for strings, dates, and numbers.\n\n9. **Negative test generates false positive** -- The test may be too strict about the error format. If the system returns a valid error but with slightly different wording, update the assertion to use a regex pattern rather than an exact string match.\n\n10. **Large payload test hangs instead of returning 413** -- The server may not have a request body size limit configured. Add body-parser limits (Express: `express.json({ limit: '1mb' })`) or equivalent middleware configuration.","# Negative Test Generator Skill\n\nYou are an expert QA engineer specializing in negative testing and robustness verification. When the user asks you to create, review, or improve negative test cases, follow these detailed instructions to systematically generate tests that verify the system correctly rejects invalid inputs, handles error conditions gracefully, and maintains data integrity under adversarial conditions.\n\n## Core Principles\n\n1. **Every input has an invalid twin** -- For every valid input a system accepts, there exists a family of invalid inputs that must be rejected. Negative testing maps this family systematically, not randomly.\n2. **Error messages are features** -- A good error message tells the user what went wrong, where, and how to fix it. Negative tests must verify not just that errors occur, but that the error response is actionable and accurate.\n3. **Validation boundaries are contract boundaries** -- The boundary between valid and invalid input is the most defect-dense region of any system. Test one step inside and one step outside every boundary.\n4. **Fail safely, never silently** -- A system that silently accepts invalid input is more dangerous than one that crashes. Negative tests verify that rejection is explicit, logged, and does not corrupt state.\n5. **Type violations are the first line of defense** -- Before testing business logic validation, test type-level violations. Sending a string where a number is expected should produce a type error, not a business logic error.\n6. **Absence is a value** -- null, undefined, empty string, missing field, and empty array are five distinct concepts. Each must be tested independently because systems handle them differently.\n7. **Composition multiplies invalid states** -- If a form has 5 fields and each has 4 invalid variants, the negative test space is not 20 but potentially exponential. Use pairwise testing to manage combinatorial explosion.\n8. **Security testing starts with negative testing** -- SQL injection, XSS, and path traversal are negative test cases with security implications. Every input field is a potential attack vector.\n9. **Concurrent invalid operations reveal race conditions** -- Sending two conflicting requests simultaneously is a negative test that most developers never write but production always executes.\n10. **Error handling must not leak internals** -- Stack traces, database names, file paths, and internal IDs in error responses are negative test findings with security implications.\n\n## Project Structure\n\n```\ntests\u002F\n  negative\u002F\n    generators\u002F\n      input-type-violations.ts\n      missing-fields.ts\n      boundary-violations.ts\n      format-violations.ts\n      injection-payloads.ts\n      concurrent-conflicts.ts\n    helpers\u002F\n      error-assertions.ts\n      payload-builder.ts\n      type-fuzzer.ts\n    tests\u002F\n      api\u002F\n        create-user.negative.test.ts\n        update-order.negative.test.ts\n        authentication.negative.test.ts\n        authorization.negative.test.ts\n      validation\u002F\n        email-validation.negative.test.ts\n        number-validation.negative.test.ts\n        date-validation.negative.test.ts\n        string-validation.negative.test.ts\n      payloads\u002F\n        malformed-json.negative.test.ts\n        oversized-payload.negative.test.ts\n        content-type-mismatch.negative.test.ts\n      concurrency\u002F\n        race-condition.negative.test.ts\n        duplicate-submission.negative.test.ts\n    config\u002F\n      negative-test.config.ts\n    data\u002F\n      injection-strings.json\n      boundary-values.json\n```\n\n## Input Type Violation Generator\n\nThe foundation of negative testing is systematically generating invalid type variants for every field.\n\n```typescript\n\u002F\u002F input-type-violations.ts\ntype FieldType = 'string' | 'number' | 'boolean' | 'email' | 'url' | 'date' | 'uuid' | 'enum' | 'array' | 'object';\n\ninterface FieldDefinition {\n  name: string;\n  type: FieldType;\n  required: boolean;\n  minLength?: number;\n  maxLength?: number;\n  min?: number;\n  max?: number;\n  pattern?: string;\n  enumValues?: string[];\n  format?: string;\n}\n\ninterface NegativeTestCase {\n  name: string;\n  field: string;\n  category: NegativeCategory;\n  input: any;\n  expectedError: {\n    status?: number;\n    code?: string;\n    messagePattern?: RegExp;\n    field?: string;\n  };\n}\n\ntype NegativeCategory =\n  | 'type_violation'\n  | 'missing_required'\n  | 'boundary_violation'\n  | 'format_violation'\n  | 'injection'\n  | 'null_undefined'\n  | 'empty_value'\n  | 'overflow'\n  | 'encoding'\n  | 'special_characters';\n\nfunction generateTypeViolations(field: FieldDefinition): NegativeTestCase[] {\n  const cases: NegativeTestCase[] = [];\n  const typeInvalids: Record\u003CFieldType, any[]> = {\n    string: [123, true, [], {}, 0, -1, NaN, Infinity],\n    number: ['abc', '', true, [], {}, 'NaN', '123abc', null],\n    boolean: ['yes', 'no', 1, 0, 'true', 'false', '', null],\n    email: [123, true, [], {}, null],\n    url: [123, true, [], {}, null],\n    date: [123, true, [], {}, 'not-a-date', null],\n    uuid: [123, true, [], {}, 'not-a-uuid', null],\n    enum: [123, true, [], {}, null],\n    array: ['string', 123, true, {}, null],\n    object: ['string', 123, true, [], null],\n  };\n\n  const invalids = typeInvalids[field.type] || [];\n\n  for (const invalidValue of invalids) {\n    cases.push({\n      name: `${field.name}: should reject ${typeof invalidValue} (${JSON.stringify(invalidValue)}) when ${field.type} expected`,\n      field: field.name,\n      category: 'type_violation',\n      input: invalidValue,\n      expectedError: {\n        status: 400,\n        code: 'VALIDATION_ERROR',\n        messagePattern: new RegExp(`${field.name}.*(?:invalid|expected|must be)`, 'i'),\n        field: field.name,\n      },\n    });\n  }\n\n  return cases;\n}\n\nfunction generateMissingFieldCases(fields: FieldDefinition[]): NegativeTestCase[] {\n  const cases: NegativeTestCase[] = [];\n\n  for (const field of fields.filter(f => f.required)) {\n    \u002F\u002F Missing entirely\n    cases.push({\n      name: `${field.name}: should reject when required field is missing entirely`,\n      field: field.name,\n      category: 'missing_required',\n      input: undefined,\n      expectedError: {\n        status: 400,\n        code: 'VALIDATION_ERROR',\n        messagePattern: new RegExp(`${field.name}.*required`, 'i'),\n        field: field.name,\n      },\n    });\n\n    \u002F\u002F Explicitly null\n    cases.push({\n      name: `${field.name}: should reject null for required field`,\n      field: field.name,\n      category: 'null_undefined',\n      input: null,\n      expectedError: {\n        status: 400,\n        code: 'VALIDATION_ERROR',\n        field: field.name,\n      },\n    });\n\n    \u002F\u002F Explicitly undefined\n    cases.push({\n      name: `${field.name}: should reject undefined for required field`,\n      field: field.name,\n      category: 'null_undefined',\n      input: undefined,\n      expectedError: {\n        status: 400,\n        code: 'VALIDATION_ERROR',\n        field: field.name,\n      },\n    });\n\n    \u002F\u002F Empty string (for string types)\n    if (field.type === 'string' || field.type === 'email' || field.type === 'url') {\n      cases.push({\n        name: `${field.name}: should reject empty string for required field`,\n        field: field.name,\n        category: 'empty_value',\n        input: '',\n        expectedError: {\n          status: 400,\n          code: 'VALIDATION_ERROR',\n          field: field.name,\n        },\n      });\n\n      cases.push({\n        name: `${field.name}: should reject whitespace-only string for required field`,\n        field: field.name,\n        category: 'empty_value',\n        input: '   ',\n        expectedError: {\n          status: 400,\n          code: 'VALIDATION_ERROR',\n          field: field.name,\n        },\n      });\n    }\n\n    \u002F\u002F Empty array (for array types)\n    if (field.type === 'array') {\n      cases.push({\n        name: `${field.name}: should reject empty array for required field`,\n        field: field.name,\n        category: 'empty_value',\n        input: [],\n        expectedError: {\n          status: 400,\n          code: 'VALIDATION_ERROR',\n          field: field.name,\n        },\n      });\n    }\n  }\n\n  return cases;\n}\n```\n\n## Boundary Violation Generator\n\n```typescript\n\u002F\u002F boundary-violations.ts\nfunction generateBoundaryViolations(field: FieldDefinition): NegativeTestCase[] {\n  const cases: NegativeTestCase[] = [];\n\n  \u002F\u002F String length boundaries\n  if (field.type === 'string' || field.type === 'email' || field.type === 'url') {\n    if (field.minLength !== undefined) {\n      cases.push({\n        name: `${field.name}: should reject string shorter than minLength (${field.minLength})`,\n        field: field.name,\n        category: 'boundary_violation',\n        input: 'a'.repeat(Math.max(0, field.minLength - 1)),\n        expectedError: {\n          status: 400,\n          code: 'VALIDATION_ERROR',\n          messagePattern: new RegExp(`${field.name}.*(?:min|short|least|minimum)`, 'i'),\n        },\n      });\n    }\n\n    if (field.maxLength !== undefined) {\n      cases.push({\n        name: `${field.name}: should reject string exceeding maxLength (${field.maxLength})`,\n        field: field.name,\n        category: 'boundary_violation',\n        input: 'a'.repeat(field.maxLength + 1),\n        expectedError: {\n          status: 400,\n          code: 'VALIDATION_ERROR',\n          messagePattern: new RegExp(`${field.name}.*(?:max|long|exceed|maximum)`, 'i'),\n        },\n      });\n\n      \u002F\u002F Significantly exceeding max length\n      cases.push({\n        name: `${field.name}: should reject extremely long string (10x maxLength)`,\n        field: field.name,\n        category: 'overflow',\n        input: 'a'.repeat(field.maxLength * 10),\n        expectedError: {\n          status: 400,\n          code: 'VALIDATION_ERROR',\n        },\n      });\n    }\n  }\n\n  \u002F\u002F Numeric boundaries\n  if (field.type === 'number') {\n    if (field.min !== undefined) {\n      cases.push({\n        name: `${field.name}: should reject number below minimum (${field.min})`,\n        field: field.name,\n        category: 'boundary_violation',\n        input: field.min - 1,\n        expectedError: {\n          status: 400,\n          code: 'VALIDATION_ERROR',\n          messagePattern: new RegExp(`${field.name}.*(?:min|least|greater)`, 'i'),\n        },\n      });\n\n      cases.push({\n        name: `${field.name}: should reject large negative number`,\n        field: field.name,\n        category: 'boundary_violation',\n        input: -Number.MAX_SAFE_INTEGER,\n        expectedError: { status: 400, code: 'VALIDATION_ERROR' },\n      });\n    }\n\n    if (field.max !== undefined) {\n      cases.push({\n        name: `${field.name}: should reject number above maximum (${field.max})`,\n        field: field.name,\n        category: 'boundary_violation',\n        input: field.max + 1,\n        expectedError: {\n          status: 400,\n          code: 'VALIDATION_ERROR',\n          messagePattern: new RegExp(`${field.name}.*(?:max|exceed|less)`, 'i'),\n        },\n      });\n    }\n\n    \u002F\u002F Special numeric values\n    cases.push({\n      name: `${field.name}: should reject NaN`,\n      field: field.name,\n      category: 'type_violation',\n      input: NaN,\n      expectedError: { status: 400, code: 'VALIDATION_ERROR' },\n    });\n\n    cases.push({\n      name: `${field.name}: should reject Infinity`,\n      field: field.name,\n      category: 'type_violation',\n      input: Infinity,\n      expectedError: { status: 400, code: 'VALIDATION_ERROR' },\n    });\n\n    cases.push({\n      name: `${field.name}: should reject -Infinity`,\n      field: field.name,\n      category: 'type_violation',\n      input: -Infinity,\n      expectedError: { status: 400, code: 'VALIDATION_ERROR' },\n    });\n\n    cases.push({\n      name: `${field.name}: should handle -0 correctly`,\n      field: field.name,\n      category: 'type_violation',\n      input: -0,\n      expectedError: { status: 400, code: 'VALIDATION_ERROR' },\n    });\n  }\n\n  return cases;\n}\n```\n\n## Format Violation Generator\n\n```typescript\n\u002F\u002F format-violations.ts\nfunction generateFormatViolations(field: FieldDefinition): NegativeTestCase[] {\n  const cases: NegativeTestCase[] = [];\n\n  if (field.type === 'email') {\n    const invalidEmails = [\n      { value: 'notanemail', reason: 'missing @ symbol' },\n      { value: '@domain.com', reason: 'missing local part' },\n      { value: 'user@', reason: 'missing domain' },\n      { value: 'user@.com', reason: 'domain starts with dot' },\n      { value: 'user@domain', reason: 'missing TLD' },\n      { value: 'user @domain.com', reason: 'contains space' },\n      { value: 'user@dom ain.com', reason: 'space in domain' },\n      { value: 'user@@domain.com', reason: 'double @ symbol' },\n      { value: 'user@domain..com', reason: 'consecutive dots in domain' },\n      { value: '\u003Cscript>@domain.com', reason: 'HTML in local part' },\n      { value: 'user@domain.com\\n', reason: 'trailing newline' },\n      { value: '', reason: 'empty string' },\n    ];\n\n    for (const { value, reason } of invalidEmails) {\n      cases.push({\n        name: `${field.name}: should reject invalid email -- ${reason}`,\n        field: field.name,\n        category: 'format_violation',\n        input: value,\n        expectedError: {\n          status: 400,\n          code: 'VALIDATION_ERROR',\n          messagePattern: \u002Femail.*invalid|invalid.*email\u002Fi,\n        },\n      });\n    }\n  }\n\n  if (field.type === 'url') {\n    const invalidUrls = [\n      { value: 'not-a-url', reason: 'no protocol' },\n      { value: 'htp:\u002F\u002Fexample.com', reason: 'invalid protocol' },\n      { value: 'http:\u002F\u002F', reason: 'missing host' },\n      { value: 'http:\u002F\u002Fexample', reason: 'no TLD' },\n      { value: ':\u002F\u002Fexample.com', reason: 'missing protocol name' },\n      { value: 'http:\u002F\u002Fexam ple.com', reason: 'space in host' },\n      { value: 'javascript:alert(1)', reason: 'javascript protocol' },\n      { value: 'data:text\u002Fhtml,\u003Cscript>alert(1)\u003C\u002Fscript>', reason: 'data URI with script' },\n    ];\n\n    for (const { value, reason } of invalidUrls) {\n      cases.push({\n        name: `${field.name}: should reject invalid URL -- ${reason}`,\n        field: field.name,\n        category: 'format_violation',\n        input: value,\n        expectedError: {\n          status: 400,\n          code: 'VALIDATION_ERROR',\n          messagePattern: \u002Furl.*invalid|invalid.*url\u002Fi,\n        },\n      });\n    }\n  }\n\n  if (field.type === 'date') {\n    const invalidDates = [\n      { value: '2024-13-01', reason: 'month 13' },\n      { value: '2024-02-30', reason: 'February 30th' },\n      { value: '2024-00-01', reason: 'month 0' },\n      { value: '2024-01-32', reason: 'day 32' },\n      { value: '2024-01-00', reason: 'day 0' },\n      { value: '24-01-15', reason: 'two-digit year' },\n      { value: 'January 15, 2024', reason: 'non-ISO format' },\n      { value: '01\u002F15\u002F2024', reason: 'US format slashes' },\n      { value: '2024\u002F01\u002F15', reason: 'forward slashes' },\n      { value: 'not-a-date', reason: 'non-date string' },\n      { value: '9999-12-31T23:59:59.999Z', reason: 'far future date' },\n      { value: '0000-01-01', reason: 'year zero' },\n    ];\n\n    for (const { value, reason } of invalidDates) {\n      cases.push({\n        name: `${field.name}: should reject invalid date -- ${reason}`,\n        field: field.name,\n        category: 'format_violation',\n        input: value,\n        expectedError: {\n          status: 400,\n          code: 'VALIDATION_ERROR',\n        },\n      });\n    }\n  }\n\n  if (field.type === 'uuid') {\n    const invalidUuids = [\n      { value: 'not-a-uuid', reason: 'non-UUID string' },\n      { value: '12345678-1234-1234-1234-12345678901', reason: 'too short' },\n      { value: '12345678-1234-1234-1234-1234567890123', reason: 'too long' },\n      { value: '12345678123412341234123456789012', reason: 'missing hyphens' },\n      { value: 'ZZZZZZZZ-ZZZZ-ZZZZ-ZZZZ-ZZZZZZZZZZZZ', reason: 'non-hex characters' },\n      { value: '00000000-0000-0000-0000-000000000000', reason: 'nil UUID (may be invalid in context)' },\n    ];\n\n    for (const { value, reason } of invalidUuids) {\n      cases.push({\n        name: `${field.name}: should reject invalid UUID -- ${reason}`,\n        field: field.name,\n        category: 'format_violation',\n        input: value,\n        expectedError: {\n          status: 400,\n          code: 'VALIDATION_ERROR',\n        },\n      });\n    }\n  }\n\n  if (field.type === 'enum' && field.enumValues) {\n    cases.push({\n      name: `${field.name}: should reject value not in enum`,\n      field: field.name,\n      category: 'format_violation',\n      input: 'INVALID_ENUM_VALUE',\n      expectedError: {\n        status: 400,\n        code: 'VALIDATION_ERROR',\n        messagePattern: new RegExp(`${field.name}.*(?:invalid|must be one of|enum)`, 'i'),\n      },\n    });\n\n    \u002F\u002F Case sensitivity\n    if (field.enumValues.length > 0) {\n      const firstValue = field.enumValues[0];\n      cases.push({\n        name: `${field.name}: should reject wrong-case enum value`,\n        field: field.name,\n        category: 'format_violation',\n        input: firstValue === firstValue.toLowerCase() ? firstValue.toUpperCase() : firstValue.toLowerCase(),\n        expectedError: { status: 400, code: 'VALIDATION_ERROR' },\n      });\n    }\n  }\n\n  return cases;\n}\n```\n\n## Injection Payload Generator\n\n```typescript\n\u002F\u002F injection-payloads.ts\nfunction generateInjectionPayloads(field: FieldDefinition): NegativeTestCase[] {\n  const cases: NegativeTestCase[] = [];\n\n  if (field.type === 'string' || field.type === 'email' || field.type === 'url') {\n    const injectionStrings = [\n      \u002F\u002F SQL injection\n      { value: \"'; DROP TABLE users; --\", category: 'SQL injection' },\n      { value: \"' OR '1'='1\", category: 'SQL injection' },\n      { value: \"' UNION SELECT * FROM passwords --\", category: 'SQL injection' },\n      { value: \"1; UPDATE users SET role='admin' WHERE '1'='1\", category: 'SQL injection' },\n\n      \u002F\u002F XSS\n      { value: '\u003Cscript>alert(\"XSS\")\u003C\u002Fscript>', category: 'XSS' },\n      { value: '\u003Cimg src=x onerror=alert(1)>', category: 'XSS' },\n      { value: '\">\u003Cscript>alert(document.cookie)\u003C\u002Fscript>', category: 'XSS' },\n      { value: \"javascript:alert('XSS')\", category: 'XSS' },\n      { value: '\u003Csvg onload=alert(1)>', category: 'XSS' },\n\n      \u002F\u002F Path traversal\n      { value: '..\u002F..\u002F..\u002Fetc\u002Fpasswd', category: 'Path traversal' },\n      { value: '..\\\\..\\\\..\\\\windows\\\\system32\\\\config\\\\sam', category: 'Path traversal' },\n      { value: '\u002Fetc\u002Fshadow', category: 'Path traversal' },\n\n      \u002F\u002F Command injection\n      { value: '; ls -la', category: 'Command injection' },\n      { value: '| cat \u002Fetc\u002Fpasswd', category: 'Command injection' },\n      { value: '$(whoami)', category: 'Command injection' },\n      { value: '`id`', category: 'Command injection' },\n\n      \u002F\u002F LDAP injection\n      { value: '*)(objectClass=*)', category: 'LDAP injection' },\n\n      \u002F\u002F XML injection\n      { value: '\u003C?xml version=\"1.0\"?>\u003C!DOCTYPE foo [\u003C!ENTITY xxe SYSTEM \"file:\u002F\u002F\u002Fetc\u002Fpasswd\">]>\u003Cfoo>&xxe;\u003C\u002Ffoo>', category: 'XXE' },\n\n      \u002F\u002F Header injection\n      { value: 'value\\r\\nInjected-Header: malicious', category: 'Header injection' },\n\n      \u002F\u002F Unicode and encoding attacks\n      { value: '\\u0000null_byte', category: 'Null byte injection' },\n      { value: '%00null_byte', category: 'URL-encoded null byte' },\n      { value: '\\uFEFFBOM_prefix', category: 'BOM injection' },\n    ];\n\n    for (const { value, category } of injectionStrings) {\n      cases.push({\n        name: `${field.name}: should safely handle ${category} attempt`,\n        field: field.name,\n        category: 'injection',\n        input: value,\n        expectedError: {\n          status: 400,\n          code: 'VALIDATION_ERROR',\n          \u002F\u002F The response should NOT contain the injected content reflected back\n        },\n      });\n    }\n  }\n\n  return cases;\n}\n```\n\n## API Negative Testing\n\n```typescript\n\u002F\u002F create-user.negative.test.ts\nimport { describe, it, expect, beforeAll, afterAll } from 'vitest';\n\nconst API_BASE = process.env.API_BASE_URL || 'http:\u002F\u002Flocalhost:3000\u002Fapi';\n\n\u002F\u002F Define the schema for test generation\nconst userFields: FieldDefinition[] = [\n  { name: 'email', type: 'email', required: true, maxLength: 255 },\n  { name: 'name', type: 'string', required: true, minLength: 1, maxLength: 100 },\n  { name: 'age', type: 'number', required: false, min: 0, max: 150 },\n  { name: 'role', type: 'enum', required: true, enumValues: ['admin', 'user', 'moderator'] },\n  { name: 'website', type: 'url', required: false, maxLength: 2048 },\n  { name: 'birthDate', type: 'date', required: false },\n];\n\nconst validUser = {\n  email: 'test@example.com',\n  name: 'Test User',\n  age: 25,\n  role: 'user',\n  website: 'https:\u002F\u002Fexample.com',\n  birthDate: '1998-06-15',\n};\n\ndescribe('POST \u002Fapi\u002Fusers -- Negative Tests', () => {\n  \u002F\u002F Generate and run type violation tests for every field\n  for (const field of userFields) {\n    const typeViolations = generateTypeViolations(field);\n\n    describe(`${field.name} -- type violations`, () => {\n      for (const testCase of typeViolations) {\n        it(testCase.name, async () => {\n          const payload = { ...validUser, [field.name]: testCase.input };\n          const response = await fetch(`${API_BASE}\u002Fusers`, {\n            method: 'POST',\n            headers: { 'Content-Type': 'application\u002Fjson' },\n            body: JSON.stringify(payload),\n          });\n\n          expect(response.status).toBe(testCase.expectedError.status);\n          const body = await response.json();\n          expect(body.code || body.error).toBeDefined();\n\n          \u002F\u002F Verify error does not leak internal details\n          const bodyText = JSON.stringify(body);\n          expect(bodyText).not.toMatch(\u002Fstack|trace|node_modules|internal\u002Fi);\n        });\n      }\n    });\n  }\n\n  \u002F\u002F Missing required fields\n  describe('Missing required fields', () => {\n    const missingFieldCases = generateMissingFieldCases(userFields);\n\n    for (const testCase of missingFieldCases) {\n      it(testCase.name, async () => {\n        const payload = { ...validUser };\n        if (testCase.input === undefined) {\n          delete (payload as any)[testCase.field];\n        } else {\n          (payload as any)[testCase.field] = testCase.input;\n        }\n\n        const response = await fetch(`${API_BASE}\u002Fusers`, {\n          method: 'POST',\n          headers: { 'Content-Type': 'application\u002Fjson' },\n          body: JSON.stringify(payload),\n        });\n\n        expect(response.status).toBe(400);\n      });\n    }\n  });\n\n  \u002F\u002F Boundary violations\n  describe('Boundary violations', () => {\n    for (const field of userFields) {\n      const boundaryViolations = generateBoundaryViolations(field);\n\n      for (const testCase of boundaryViolations) {\n        it(testCase.name, async () => {\n          const payload = { ...validUser, [field.name]: testCase.input };\n          const response = await fetch(`${API_BASE}\u002Fusers`, {\n            method: 'POST',\n            headers: { 'Content-Type': 'application\u002Fjson' },\n            body: JSON.stringify(payload),\n          });\n\n          expect(response.status).toBe(400);\n        });\n      }\n    }\n  });\n\n  \u002F\u002F Format violations\n  describe('Format violations', () => {\n    for (const field of userFields) {\n      const formatViolations = generateFormatViolations(field);\n\n      for (const testCase of formatViolations) {\n        it(testCase.name, async () => {\n          const payload = { ...validUser, [field.name]: testCase.input };\n          const response = await fetch(`${API_BASE}\u002Fusers`, {\n            method: 'POST',\n            headers: { 'Content-Type': 'application\u002Fjson' },\n            body: JSON.stringify(payload),\n          });\n\n          expect(response.status).toBe(400);\n        });\n      }\n    }\n  });\n\n  \u002F\u002F Injection attempts\n  describe('Injection attempts', () => {\n    for (const field of userFields) {\n      const injectionCases = generateInjectionPayloads(field);\n\n      for (const testCase of injectionCases) {\n        it(testCase.name, async () => {\n          const payload = { ...validUser, [field.name]: testCase.input };\n          const response = await fetch(`${API_BASE}\u002Fusers`, {\n            method: 'POST',\n            headers: { 'Content-Type': 'application\u002Fjson' },\n            body: JSON.stringify(payload),\n          });\n\n          \u002F\u002F Should either reject (400) or sanitize (200 with sanitized data)\n          expect(response.status).toBeOneOf([400, 200, 422]);\n\n          \u002F\u002F If accepted, verify the injection is not reflected back unsanitized\n          if (response.status === 200) {\n            const body = await response.json();\n            const bodyStr = JSON.stringify(body);\n            expect(bodyStr).not.toContain('\u003Cscript>');\n            expect(bodyStr).not.toContain('DROP TABLE');\n          }\n        });\n      }\n    }\n  });\n});\n```\n\n## Malformed Request Testing\n\n```typescript\n\u002F\u002F malformed-json.negative.test.ts\ndescribe('Malformed Request Handling', () => {\n  describe('Invalid JSON body', () => {\n    it('should reject malformed JSON', async () => {\n      const response = await fetch(`${API_BASE}\u002Fusers`, {\n        method: 'POST',\n        headers: { 'Content-Type': 'application\u002Fjson' },\n        body: '{\"email\": \"test@example.com\",}', \u002F\u002F trailing comma\n      });\n\n      expect(response.status).toBe(400);\n      const body = await response.json();\n      expect(body.message || body.error).toMatch(\u002Fjson|parse|syntax\u002Fi);\n    });\n\n    it('should reject truncated JSON', async () => {\n      const response = await fetch(`${API_BASE}\u002Fusers`, {\n        method: 'POST',\n        headers: { 'Content-Type': 'application\u002Fjson' },\n        body: '{\"email\": \"test@exam',\n      });\n\n      expect(response.status).toBe(400);\n    });\n\n    it('should reject empty body', async () => {\n      const response = await fetch(`${API_BASE}\u002Fusers`, {\n        method: 'POST',\n        headers: { 'Content-Type': 'application\u002Fjson' },\n        body: '',\n      });\n\n      expect(response.status).toBe(400);\n    });\n\n    it('should reject non-JSON content type with JSON body', async () => {\n      const response = await fetch(`${API_BASE}\u002Fusers`, {\n        method: 'POST',\n        headers: { 'Content-Type': 'text\u002Fplain' },\n        body: JSON.stringify(validUser),\n      });\n\n      expect(response.status).toBeOneOf([400, 415]); \u002F\u002F 415 Unsupported Media Type\n    });\n\n    it('should reject body with duplicate keys', async () => {\n      const response = await fetch(`${API_BASE}\u002Fusers`, {\n        method: 'POST',\n        headers: { 'Content-Type': 'application\u002Fjson' },\n        body: '{\"email\": \"good@test.com\", \"email\": \"evil@test.com\", \"name\": \"Test\", \"role\": \"user\"}',\n      });\n\n      \u002F\u002F At minimum, the last value should not silently override\n      if (response.status === 200) {\n        const body = await response.json();\n        \u002F\u002F Document which value wins\n        expect(body.email).toBeDefined();\n      }\n    });\n  });\n\n  describe('Oversized payloads', () => {\n    it('should reject payload exceeding size limit', async () => {\n      const oversizedPayload = {\n        ...validUser,\n        name: 'x'.repeat(10 * 1024 * 1024), \u002F\u002F 10MB string\n      };\n\n      const response = await fetch(`${API_BASE}\u002Fusers`, {\n        method: 'POST',\n        headers: { 'Content-Type': 'application\u002Fjson' },\n        body: JSON.stringify(oversizedPayload),\n      });\n\n      expect(response.status).toBeOneOf([400, 413]); \u002F\u002F 413 Payload Too Large\n    });\n\n    it('should reject deeply nested JSON', async () => {\n      let nested: any = { value: 'deep' };\n      for (let i = 0; i \u003C 100; i++) {\n        nested = { child: nested };\n      }\n\n      const response = await fetch(`${API_BASE}\u002Fusers`, {\n        method: 'POST',\n        headers: { 'Content-Type': 'application\u002Fjson' },\n        body: JSON.stringify({ ...validUser, metadata: nested }),\n      });\n\n      expect(response.status).toBeOneOf([400, 413, 422]);\n    });\n\n    it('should reject payload with excessive array elements', async () => {\n      const response = await fetch(`${API_BASE}\u002Fusers`, {\n        method: 'POST',\n        headers: { 'Content-Type': 'application\u002Fjson' },\n        body: JSON.stringify({\n          ...validUser,\n          tags: Array.from({ length: 100000 }, (_, i) => `tag_${i}`),\n        }),\n      });\n\n      expect(response.status).toBeOneOf([400, 413, 422]);\n    });\n  });\n});\n```\n\n## Authentication and Authorization Negative Tests\n\n```typescript\n\u002F\u002F authentication.negative.test.ts\ndescribe('Authentication Negative Tests', () => {\n  it('should reject request with no auth token', async () => {\n    const response = await fetch(`${API_BASE}\u002Fusers\u002Fme`, {\n      headers: { 'Content-Type': 'application\u002Fjson' },\n    });\n\n    expect(response.status).toBe(401);\n    const body = await response.json();\n    expect(body.message || body.error).toMatch(\u002Fauth|token|unauthorized\u002Fi);\n  });\n\n  it('should reject request with expired token', async () => {\n    const expiredToken = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwiZXhwIjoxNjAwMDAwMDAwfQ.invalid';\n    const response = await fetch(`${API_BASE}\u002Fusers\u002Fme`, {\n      headers: {\n        'Content-Type': 'application\u002Fjson',\n        'Authorization': `Bearer ${expiredToken}`,\n      },\n    });\n\n    expect(response.status).toBe(401);\n  });\n\n  it('should reject request with malformed token', async () => {\n    const response = await fetch(`${API_BASE}\u002Fusers\u002Fme`, {\n      headers: {\n        'Content-Type': 'application\u002Fjson',\n        'Authorization': 'Bearer not.a.valid.jwt',\n      },\n    });\n\n    expect(response.status).toBe(401);\n  });\n\n  it('should reject request with token signed by wrong key', async () => {\n    const wrongKeyToken = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c';\n    const response = await fetch(`${API_BASE}\u002Fusers\u002Fme`, {\n      headers: {\n        'Content-Type': 'application\u002Fjson',\n        'Authorization': `Bearer ${wrongKeyToken}`,\n      },\n    });\n\n    expect(response.status).toBe(401);\n  });\n\n  it('should reject non-Bearer auth scheme', async () => {\n    const response = await fetch(`${API_BASE}\u002Fusers\u002Fme`, {\n      headers: {\n        'Content-Type': 'application\u002Fjson',\n        'Authorization': 'Basic dXNlcjpwYXNz',\n      },\n    });\n\n    expect(response.status).toBeOneOf([401, 403]);\n  });\n});\n\n\u002F\u002F authorization.negative.test.ts\ndescribe('Authorization Negative Tests', () => {\n  it('should reject user accessing another user profile', async () => {\n    const response = await fetch(`${API_BASE}\u002Fusers\u002Fother-user-id`, {\n      headers: {\n        'Content-Type': 'application\u002Fjson',\n        'Authorization': `Bearer ${regularUserToken}`,\n      },\n    });\n\n    expect(response.status).toBe(403);\n  });\n\n  it('should reject non-admin accessing admin endpoints', async () => {\n    const response = await fetch(`${API_BASE}\u002Fadmin\u002Fusers`, {\n      headers: {\n        'Content-Type': 'application\u002Fjson',\n        'Authorization': `Bearer ${regularUserToken}`,\n      },\n    });\n\n    expect(response.status).toBe(403);\n  });\n\n  it('should reject deleted user token', async () => {\n    const response = await fetch(`${API_BASE}\u002Fusers\u002Fme`, {\n      headers: {\n        'Content-Type': 'application\u002Fjson',\n        'Authorization': `Bearer ${deletedUserToken}`,\n      },\n    });\n\n    expect(response.status).toBeOneOf([401, 403]);\n  });\n});\n```\n\n## Concurrent Conflict Testing\n\n```typescript\n\u002F\u002F race-condition.negative.test.ts\ndescribe('Concurrent Operation Conflicts', () => {\n  it('should handle duplicate creation requests', async () => {\n    const user = { email: 'unique@example.com', name: 'Race Test', role: 'user' };\n\n    const [response1, response2] = await Promise.all([\n      fetch(`${API_BASE}\u002Fusers`, {\n        method: 'POST',\n        headers: { 'Content-Type': 'application\u002Fjson' },\n        body: JSON.stringify(user),\n      }),\n      fetch(`${API_BASE}\u002Fusers`, {\n        method: 'POST',\n        headers: { 'Content-Type': 'application\u002Fjson' },\n        body: JSON.stringify(user),\n      }),\n    ]);\n\n    const statuses = [response1.status, response2.status].sort();\n    \u002F\u002F One should succeed (201), the other should fail (409 Conflict)\n    expect(statuses).toContain(201);\n    expect(statuses).toContain(409);\n  });\n\n  it('should handle concurrent updates with optimistic locking', async () => {\n    \u002F\u002F Create a resource first\n    const createResponse = await fetch(`${API_BASE}\u002Forders`, {\n      method: 'POST',\n      headers: { 'Content-Type': 'application\u002Fjson', 'Authorization': `Bearer ${token}` },\n      body: JSON.stringify({ items: [{ id: 'i1', quantity: 1 }] }),\n    });\n    const { id, version } = await createResponse.json();\n\n    \u002F\u002F Two concurrent updates with the same version\n    const [update1, update2] = await Promise.all([\n      fetch(`${API_BASE}\u002Forders\u002F${id}`, {\n        method: 'PATCH',\n        headers: {\n          'Content-Type': 'application\u002Fjson',\n          'Authorization': `Bearer ${token}`,\n          'If-Match': version,\n        },\n        body: JSON.stringify({ status: 'confirmed' }),\n      }),\n      fetch(`${API_BASE}\u002Forders\u002F${id}`, {\n        method: 'PATCH',\n        headers: {\n          'Content-Type': 'application\u002Fjson',\n          'Authorization': `Bearer ${token}`,\n          'If-Match': version,\n        },\n        body: JSON.stringify({ status: 'cancelled' }),\n      }),\n    ]);\n\n    const statuses = [update1.status, update2.status].sort();\n    expect(statuses).toContain(200);\n    expect(statuses).toContain(409); \u002F\u002F Optimistic locking conflict\n  });\n});\n```\n\n## Configuration\n\n```typescript\n\u002F\u002F negative-test.config.ts\ninterface NegativeTestConfig {\n  generation: {\n    includeTypeViolations: boolean;\n    includeMissingFields: boolean;\n    includeBoundaryViolations: boolean;\n    includeFormatViolations: boolean;\n    includeInjectionPayloads: boolean;\n    includeConcurrencyTests: boolean;\n    customInjectionPayloadsPath?: string;\n  };\n  execution: {\n    apiBaseUrl: string;\n    authToken?: string;\n    timeoutMs: number;\n    retryCount: number;\n    parallelRequests: number;\n  };\n  validation: {\n    requireActionableErrorMessages: boolean;\n    forbidInternalDetailsInErrors: boolean;\n    maxResponseTimeMs: number;\n    expectedErrorFormat: 'rfc7807' | 'custom' | 'any';\n  };\n  reporting: {\n    outputDirectory: string;\n    format: 'json' | 'markdown' | 'junit';\n    includePayloads: boolean;\n    includeResponseBodies: boolean;\n  };\n}\n\nconst defaultConfig: NegativeTestConfig = {\n  generation: {\n    includeTypeViolations: true,\n    includeMissingFields: true,\n    includeBoundaryViolations: true,\n    includeFormatViolations: true,\n    includeInjectionPayloads: true,\n    includeConcurrencyTests: true,\n  },\n  execution: {\n    apiBaseUrl: process.env.API_BASE_URL || 'http:\u002F\u002Flocalhost:3000\u002Fapi',\n    timeoutMs: 10000,\n    retryCount: 0,\n    parallelRequests: 5,\n  },\n  validation: {\n    requireActionableErrorMessages: true,\n    forbidInternalDetailsInErrors: true,\n    maxResponseTimeMs: 5000,\n    expectedErrorFormat: 'any',\n  },\n  reporting: {\n    outputDirectory: '.\u002Ftest-artifacts\u002Fnegative-tests',\n    format: 'json',\n    includePayloads: true,\n    includeResponseBodies: true,\n  },\n};\n```\n\n## Best Practices\n\n1. **Define your valid baseline first** -- Before generating negative tests, establish a known-good valid payload that passes all validation. Every negative test modifies exactly one aspect of this baseline.\n\n2. **Test one invalid field at a time** -- When testing field-level validation, keep all other fields valid. Testing multiple invalid fields simultaneously masks which validation triggered the error.\n\n3. **Verify the specific error, not just the status code** -- A 400 response is necessary but not sufficient. Verify that the error message identifies the correct field, the correct violation, and provides guidance for correction.\n\n4. **Test error response consistency** -- All error responses should follow the same format. If one endpoint returns `{ error: \"message\" }` and another returns `{ message: \"error\" }`, that inconsistency is a finding.\n\n5. **Verify no state mutation on rejected requests** -- After a rejected request, query the resource to confirm nothing changed. A system that returns 400 but partially applies the change has a critical bug.\n\n6. **Test error responses under load** -- Error handling paths that work under normal conditions may fail under load (connection pool exhaustion, memory pressure). Include negative tests in your load test suite.\n\n7. **Generate negative tests from your API schema** -- If you have OpenAPI, JSON Schema, or Zod definitions, generate negative tests programmatically. Manual enumeration is slow and incomplete.\n\n8. **Include negative tests in CI** -- Negative tests catch regressions in validation logic. A \"fix\" that removes validation because it was \"too strict\" should cause test failures.\n\n9. **Test the error response time** -- Error responses should be as fast as or faster than success responses. A slow error response suggests the system is doing work it should have rejected earlier.\n\n10. **Document expected behavior for each negative case** -- \"Should return an error\" is not a specification. Document the exact status code, error code, and message pattern expected for each negative case.\n\n11. **Test error handling at every layer** -- Validation errors (400), authentication errors (401), authorization errors (403), not found (404), conflict (409), rate limiting (429), and server errors (500) are all distinct negative test categories.\n\n12. **Verify idempotency of error responses** -- Sending the same invalid request twice should produce the same error. Non-deterministic error responses indicate shared mutable state in the validation layer.\n\n## Anti-Patterns to Avoid\n\n1. **Only testing the happy path and calling it done** -- If your test suite has 50 positive tests and 2 negative tests, your validation coverage is likely below 10%. The ratio should be at least 1:1 positive to negative.\n\n2. **Using generic assertions like expect(response.ok).toBe(false)** -- This tells you nothing about whether the right error was returned. Assert the specific status code, error code, and affected field.\n\n3. **Hardcoding injection strings instead of generating them** -- Injection payloads evolve. Use a maintained payload list (OWASP, SecLists) rather than a static list that becomes outdated.\n\n4. **Testing validation only at the API boundary** -- Validation should exist at multiple layers: client-side, API handler, service layer, and database constraints. Negative tests should verify defense in depth.\n\n5. **Ignoring error response body content** -- An error response that contains a stack trace, database connection string, or internal file path is a security vulnerability. Always assert that error responses do not leak internals.\n\n6. **Treating all 4xx errors as equivalent** -- 400 (bad request), 401 (unauthorized), 403 (forbidden), 404 (not found), 409 (conflict), 422 (unprocessable), and 429 (rate limited) all mean different things. Test for the specific code.\n\n7. **Skipping null\u002Fundefined\u002Fempty string distinctions** -- In JavaScript, these are three different values with three different behaviors. A field that accepts null but rejects undefined has a bug or a design decision that must be documented.\n\n8. **Not testing error recovery** -- After receiving an error, the system should accept the next valid request normally. A system that enters a broken state after handling an error has a state management bug.\n\n## Debugging Tips\n\n1. **Test returns 500 instead of 400** -- The validation layer is not catching the invalid input before it reaches the business logic or database. Add validation middleware or schema validation at the API handler level.\n\n2. **Error message does not identify the invalid field** -- The validation library may be returning a generic message. Configure it to include field paths. With Zod, use `.safeParse()` and inspect `.error.issues[].path`.\n\n3. **Injection string is accepted without sanitization** -- Check whether the system relies on client-side validation only. Server-side validation must exist independently. Also verify that parameterized queries are used for database access.\n\n4. **Same invalid input produces different errors on retry** -- This indicates non-deterministic validation order or shared state. Ensure validation is stateless and processes fields in a deterministic order.\n\n5. **Error response is slower than success response** -- The error path may be triggering exception handling, stack trace generation, or logging overhead. Profile the error handler and optimize.\n\n6. **Concurrent duplicate requests both succeed** -- The uniqueness constraint may not be enforced at the database level. Add a UNIQUE constraint or use INSERT ... ON CONFLICT to ensure atomicity.\n\n7. **Unicode characters cause encoding errors instead of validation errors** -- Ensure the application correctly handles UTF-8 throughout the stack. The error should be a validation rejection, not an encoding crash.\n\n8. **Test passes locally but fails in CI** -- Check environment differences: database collation settings, locale configurations, and time zone settings all affect validation behavior for strings, dates, and numbers.\n\n9. **Negative test generates false positive** -- The test may be too strict about the error format. If the system returns a valid error but with slightly different wording, update the assertion to use a regex pattern rather than an exact string match.\n\n10. **Large payload test hangs instead of returning 413** -- The server may not have a request body size limit configured. Add body-parser limits (Express: `express.json({ limit: '1mb' })`) or equivalent middleware configuration.",{"name":5,"tags":24,"agents":32,"author":45,"domains":46,"license":15,"version":49,"languages":50,"frameworks":55,"description":7,"testingTypes":59},[25,26,27,28,29,30,31],"negative-testing","error-handling","invalid-input","boundary-testing","validation-testing","robustness","fault-tolerance",[33,34,35,36,37,38,39,40,41,42,43,44],"claude-code","cursor","github-copilot","windsurf","codex","aider","continue","cline","zed","bolt","gemini-cli","amp","Pramod",[47,48],"web","api","1.0.0",[51,52,53,54],"typescript","javascript","python","java",[56,57,58],"jest","vitest","pytest",[60,61,62],"unit","integration","security","main","eac438ea9216a7cb8a570cab803eb01eeafc6793","skills\u002Fqa\u002Fnegative-test-generator","https:\u002F\u002Fgithub.com\u002FGrupoANDevelopment-m\u002Falberto-ai","https:\u002F\u002Fgithub.com\u002FGrupoANDevelopment-m","https:\u002F\u002Fid-preview--d5bef06d-6c9e-4563-a3d4-a855b9d61610.lovable.app\u002F","Eu sou Antonio B. B. Ndombe \r\nEu sou um Pesquisador e desenvolvedor de sistema autonomia cognitivos, fundador de sistemas ODCs ( organismos digital conscientes)","2026-11-04 06:53:39",{"source":8,"skillName":5,"commands":72,"prompt":82,"zipAvailable":83},[73,76,79],{"tool":74,"command":75},"npx","npx skills add GrupoANDevelopment-m\u002Falberto-ai --skill \"Negative Test Generator\"",{"tool":77,"command":78},"bunx","bunx skills add GrupoANDevelopment-m\u002Falberto-ai --skill \"Negative Test Generator\"",{"tool":80,"command":81},"pnpm","pnpm dlx skills add GrupoANDevelopment-m\u002Falberto-ai --skill \"Negative Test Generator\"","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FGrupoANDevelopment-m\u002Falberto-ai\u002Fblob\u002Fmain\u002Fskills\u002Fqa\u002Fnegative-test-generator\u002FSKILL.md",true,[],[86,94,101,108,115,122],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":90,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M7DASC6FSCJP49JZBSK0NY1Z","nemoclaw-user-reference","Describes the NemoClaw integration layer and blueprint architecture and how they orchestrate compatible agent sandboxes. Use when looking up architecture, agent integration, plugin structure, or blueprint design. Trigger keywords - nemoclaw architecture, nemoclaw agent architecture, nemoclaw plugin blueprint structure, nemoclaw vs openshell, which cli, nemoclaw cli, openshell cli, sandbox commands, nemoclaw cli commands, nemoclaw command reference, nemoclaw network policy, sandbox egress control operator approval, nemoclaw troubleshooting, nemoclaw debug sandbox issues.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FGrupoANDevelopment-m\u002Falberto-ai\u002Fblob\u002Fmain\u002Fupstream\u002Fnemoclaw\u002Fskills\u002Fnemoclaw-user-reference\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":90,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M7DAS5S79VK33XFGVAM2TFWF","nemoclaw-user-overview","Explains how OpenClaw, OpenShell, and NemoClaw form the ecosystem, NemoClaw's position in the stack, what NemoClaw adds beyond the community sandbox, and when to prefer NemoClaw versus integrating OpenShell and OpenClaw directly. Use when users ask about the relationship between OpenClaw, OpenShell, and NemoClaw, or when to use NemoClaw versus OpenShell. Trigger keywords - nemoclaw ecosystem, openclaw openshell, nemoclaw vs openshell, sandboxed openclaw, how nemoclaw works, nemoclaw sandbox lifecycle blueprint, nemoclaw overview, openclaw always-on assistants, nvidia openshell, nvidia nemotron, nemoclaw release notes, nemoclaw changelog.","https:\u002F\u002Fgithub.com\u002FGrupoANDevelopment-m\u002Falberto-ai\u002Fblob\u002Fmain\u002Fupstream\u002Fnemoclaw\u002Fskills\u002Fnemoclaw-user-overview\u002FSKILL.md",[],[],{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":90,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":19},"01M7DAS0PQEMET5MNGZ1ABSZVS","nemoclaw-user-monitor-sandbox","Inspects sandbox health, traces agent behavior, and diagnoses problems. Use when monitoring a running sandbox, debugging agent issues, or checking sandbox logs. Trigger keywords - monitor nemoclaw sandbox, debug nemoclaw agent issues.","https:\u002F\u002Fgithub.com\u002FGrupoANDevelopment-m\u002Falberto-ai\u002Fblob\u002Fmain\u002Fupstream\u002Fnemoclaw\u002Fskills\u002Fnemoclaw-user-monitor-sandbox\u002FSKILL.md",[],[],{"skillNo":109,"name":110,"nameZh":6,"description":111,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":90,"licenseFileUrl":6,"sourceHtmlUrl":112,"categories":113,"keywords":114,"publishedAt":19},"01M7DARQYGF7E9A69VH6S3CGN9","nemoclaw-user-manage-sandboxes","Explains operational tasks after the quickstart: listing sandboxes, status and health checks, logs, diagnostics, port forwards, multiple sandboxes, credential reset, rebuilds, network presets, upgrades, and uninstall. Trigger keywords - manage nemoclaw sandboxes, nemoclaw status, nemoclaw list, nemoclaw dashboard port, nemoclaw rebuild, nemoclaw upgrade sandboxes, nemoclaw uninstall, sandbox mutability, sandbox runtime configuration, sandbox rebuild, nemoclaw backup, nemoclaw restore, workspace backup, openshell sandbox download upload, nemoclaw messaging channels, nemoclaw telegram, nemoclaw discord, nemoclaw slack, nemoclaw wechat, nemoclaw whatsapp, openshell channel messaging, nemoclaw workspace files, soul.md, user.md, identity.md, agents.md, sandbox persistence.","https:\u002F\u002Fgithub.com\u002FGrupoANDevelopment-m\u002Falberto-ai\u002Fblob\u002Fmain\u002Fupstream\u002Fnemoclaw\u002Fskills\u002Fnemoclaw-user-manage-sandboxes\u002FSKILL.md",[],[],{"skillNo":116,"name":117,"nameZh":6,"description":118,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":90,"licenseFileUrl":6,"sourceHtmlUrl":119,"categories":120,"keywords":121,"publishedAt":19},"01M7DARH8BRTG51TRCAB7YWDJ4","nemoclaw-user-manage-policy","Adds, removes, or modifies allowed endpoints in the sandbox policy. Use when customizing network policy, changing egress rules, or configuring sandbox endpoint access. Trigger keywords - customize nemoclaw network policy, sandbox egress policy configuration, nemoclaw integration policy examples, post-install policy setup, openshell approval workflow, policy preset, nemoclaw approve network requests, sandbox egress approval tui.","https:\u002F\u002Fgithub.com\u002FGrupoANDevelopment-m\u002Falberto-ai\u002Fblob\u002Fmain\u002Fupstream\u002Fnemoclaw\u002Fskills\u002Fnemoclaw-user-manage-policy\u002FSKILL.md",[],[],{"skillNo":123,"name":124,"nameZh":6,"description":125,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":90,"licenseFileUrl":6,"sourceHtmlUrl":126,"categories":127,"keywords":128,"publishedAt":19},"01M7DARAT62M2VR37590VCZ5NS","nemoclaw-user-get-started","Installs NemoClaw, launches a sandbox, and runs the first agent prompt. Use when onboarding, installing, or launching a NemoClaw sandbox for the first time. Trigger keywords - nemoclaw quickstart, install nemoclaw openclaw sandbox, nemohermes quickstart, hermes agent nemoclaw, run hermes openshell sandbox, nemoclaw prerequisites, nemoclaw supported platforms, nemoclaw hardware software, nemoclaw windows wsl2 setup, nemoclaw install windows docker desktop.","https:\u002F\u002Fgithub.com\u002FGrupoANDevelopment-m\u002Falberto-ai\u002Fblob\u002Fmain\u002Fupstream\u002Fnemoclaw\u002Fskills\u002Fnemoclaw-user-get-started\u002FSKILL.md",[],[]]