{
  "name": "Bright Design System",
  "version": "0.6.13",
  "language": "ru",
  "status": "foundation",
  "purpose": "Единая система правил и компонентов для интерфейсов, презентаций, схем, видео и других материалов группы компаний.",
  "instructions": [
    "Use semantic tokens; never hardcode brand colors in components.",
    "For company identity, read resources.logos and use only the canonical SVG variant for the selected company: english, monochrome, onBlack, or mark. Preserve aspect ratio, clear space, contrast, and the minimum digital height; never distort, crop, recolor, or decorate the logo.",
    "For React applications, read resources.reactPackage, install `@bright-ds/react`, import `@bright-ds/react/styles.css` once at the application entry point, and import documented Bright components from `@bright-ds/react`. Do not recreate their markup or styles manually. If the release status is ready-to-publish, do not rely on its new API until the package is published.",
    "All spatial dimensions must be multiples of 4 px.",
    "All font sizes must be even numbers.",
    "Compose interfaces using atomic design: atoms, molecules, organisms, templates, pages.",
    "If Bright already publishes a component for the responsibility, importing that canonical implementation is mandatory in products, pages, documentation and examples; copied DOM or CSS lookalikes are forbidden. Before creating a genuinely missing component, follow resources.componentPolicy in order: reuse, extend, compose, then create.",
    "When Bright audit compliance is enabled, inventory every native or ARIA control and resolve its nearest data-bright-component marker. Missing markers and values absent from resources.componentCatalog are critical failures under BRIGHT-013 and BRIGHT-020.",
    "Pages in the same family must use one shared content-grid template. Any alignment or container-width exception requires an explicit functional rationale and must be documented.",
    "Use the Bright Select composition instead of a native system popup when search, multiple selection, tabs, custom controls, large datasets, or mobile bottom-sheet behavior is required. Virtualize large lists and keep only the visible window in the DOM.",
    "Use Lucide icons and pair unfamiliar icon-only actions with accessible labels.",
    "Chart palettes are independent of company brand colors. Use charts.palettes from the theme token resource and select pastel, contrast, or gradient by data-visualization needs.",
    "Validate every output against every applicable general UX/UI rule and Bright-specific rule before delivery.",
    "For UX/UI audits, follow resources.audit.instructions and return exactly one self-contained HTML report based on resources.audit.template."
    ,"For documents, slides, presentations, diagrams, forms, web pages and application screens, read resources.creation and return one self-contained HTML artifact using the selected visual format and template."
  ],
  "tasks": {
    "uxUiAudit": {
      "instruction": "/ai/check",
      "legacyProtocol": "/audit/agent-instructions.md",
      "directive": "Request an adaptive instruction from /ai/check using the exact query profile, then follow only the sections returned.",
      "query": {
        "useBrightDS": "boolean, default false",
        "visualReview": "boolean, default false",
        "viewports": "comma-separated desktop,tablet,mobile; default desktop",
        "scope": "page or site; default page",
        "targetUrl": "repeatable absolute HTTP(S) URL, up to 8",
        "scenario": "repeatable user task, up to 6",
        "formInteraction": "observe-only, fill-without-submit, or submit-allowed",
        "confirmSubmit": "must be true when formInteraction=submit-allowed"
      },
      "input": {
        "targetUrls": "Required list of 1–8 absolute HTTP or HTTPS entry URLs",
        "profileSchema": "/audit/profile-schema.json",
        "visualExpertReview": "Optional evidence-based visual assessment and static redesign concept",
        "userScenarios": "Optional ordered user tasks",
        "formInteraction": "Required form-interaction permission"
      },
      "output": "Exactly one self-contained HTML report"
    },
    "materialCreation": {
      "instruction": "/ai/create",
      "humanBuilder": "/#/services/create",
      "directive": "Request an adaptive instruction from /ai/create with the artifact type, idea and applicable design-system mode.",
      "query": {
        "type": "slide, presentation, diagram, form, web-page, or app-screen",
        "useBrightDS": "boolean, default true",
        "idea": "material goal",
        "audience": "target audience",
        "constraints": "length, language and other limits",
        "template": "optional template id"
      },
      "artifactTypes": ["slide", "presentation", "diagram", "form", "web-page", "app-screen"],
      "output": "Exactly one self-contained HTML material"
    }
  },
  "resources": {
    "tokens": ["/tokens/core.json", "/tokens/themes.json", "/tokens/gradients.json"],
    "gradients": "/tokens/gradients.json",
    "icons": "/data/icon-guidelines.json",
    "logos": "/data/logos.json",
    "visualFormats": "/data/visual-formats.json",
    "creationTemplates": "/data/creation-templates.json",
    "creation": {
      "builder": "/#/services/create",
      "templates": "/data/creation-templates.json",
      "formTemplates": "/data/form-templates.json",
      "visualFormats": "/data/visual-formats.json",
      "iconGuidelines": "/data/icon-guidelines.json",
      "logos": "/data/logos.json",
      "gradientTokens": "/tokens/gradients.json",
      "output": "self-contained-html",
      "fileName": "material.html"
    },
    "uxRules": "/data/ux-rules.json",
    "designSystemRules": "/data/bright-rules.json",
    "selfAudit": "/data/self-audit.json",
    "uxRulePageTemplate": "/#/guidelines/{ruleId}",
    "aiGuide": "/ai",
    "aiServices": {
      "index": "/ai",
      "uxAudit": "/ai/check",
      "materialCreation": "/ai/create",
      "responseType": "text/plain; charset=utf-8"
    },
    "skill": "/.well-known/skills/bright/SKILL.md",
    "skills": {
      "index": "/.well-known/skills/index.json",
      "base": "/.well-known/skills/bright/SKILL.md",
      "audit": "/.well-known/skills/bright-audit/SKILL.md",
      "create": "/.well-known/skills/bright-create/SKILL.md",
      "slides": "/.well-known/skills/bright-slides/SKILL.md",
      "diagrams": "/.well-known/skills/bright-diagrams/SKILL.md",
      "forms": "/.well-known/skills/bright-forms/SKILL.md",
      "pages": "/.well-known/skills/bright-pages/SKILL.md",
      "appInterfaces": "/.well-known/skills/bright-app-interfaces/SKILL.md",
      "logos": "/.well-known/skills/bright-logos/SKILL.md"
    },
    "llmsIndex": "/llms.txt",
    "componentIndex": "/#/components",
    "componentCatalog": "/data/components.json",
    "componentApi": "/data/component-api.json",
    "componentSchemas": "/schemas/index.json",
    "componentTreeSchema": "/schemas/component-tree.schema.json",
    "packageRegistry": "/registry/packages.json",
    "reactPackage": {
      "name": "@bright-ds/react",
      "version": "0.6.13",
      "status": "ready-to-publish",
      "publishedVersion": "0.6.12",
      "install": "npm install @bright-ds/react",
      "styles": "@bright-ds/react/styles.css",
      "imports": "@bright-ds/react"
    },
    "componentPolicy": "/data/component-policy.json",
    "audit": {
      "instructions": "/audit/agent-instructions.md",
      "requirements": "/audit/report-requirements.md",
      "template": "/audit/report-template.html",
      "profileSchema": "/audit/profile-schema.json",
      "defaultProfile": {
        "generalUxUi": true,
        "designSystemCompliance": false,
        "visualExpertReview": false,
        "viewports": ["desktop"],
        "scope": "page",
        "userScenarios": [],
        "formInteraction": "observe-only"
      },
      "output": "self-contained-html",
      "storage": "user-local-file",
      "allowedEvidenceImageTypes": ["image/png", "image/jpeg", "image/webp"],
      "maxOutputBytes": 26214400
    }
  },
  "preferredFramework": "react",
  "plannedFrameworks": ["vue", "angular"],
  "iconLibrary": {"name":"Lucide","url":"https://lucide.dev/icons/","license":"ISC"},
  "qualityGate": {"required":true,"matrices":["/data/ux-rules.json","/data/bright-rules.json"],"auditInstructions":"/audit/agent-instructions.md","reportTemplate":"/audit/report-template.html","blockingSeverities":["critical"]}
}
