Skip to content
SlashClone

Create brand guidelines for your product

@slashclone/brand-book

Create brand guidelines for your product: one shareable HTML brand book covering logo, colors, type, icons, share images, and voice. It follows your real design tokens in light and dark themes, and a checker confirms contrast in both themes, icon and image sizes, and banned copy such as em dashes. Writes only to brand/ and public/brand/.

SkillContentv0.1.0Tested
Activity
New: be the first to try it
  1. 1{
  2. 2 "name": "brand-book",
  3. 3 "owner": "slashclone",
  4. 4 "version": "0.1.0",
  5. 5 "type": "skill",
  6. 6 "description": "Build and keep up a full brand kit as one self-contained HTML brand book: logo and wordmark (sizes, clear space, misuse), color tokens in light and dark, type, imagery rules, share images, favicon and app icons, voice and copy rules, and a downloads chapter. Includes a template, an example spec, and a checker for contrast in both themes, asset sizes, and banned copy such as em dashes. Writes only to brand/ and public/brand/.",
  7. 7 "category": "content",
  8. 8 "license": "MIT",
  9. 9 "compat": ["claude-code"],
  10. 10 "permissions": {
  11. 11 "shell": ["node scripts/check-brand.mjs"],
  12. 12 "files": {
  13. 13 "read": ["./brand/**", "./public/brand/**", "./data/**"],
  14. 14 "write": ["./brand/**", "./public/brand/**"]
  15. 15 }
  16. 16 },
  17. 17 "tests": {
  18. 18 "cases": [
  19. 19 {
  20. 20 "name": "the example spec passes contrast in both themes",
  21. 21 "inputs": {
  22. 22 "brand/brand.json": "{\"name\":\"Example\",\"edition\":1,\"tokens\":{\"light\":{\"page\":\"#FFFFFF\",\"text\":\"#1B1D22\",\"mark\":\"#2D5BD3\"},\"dark\":{\"page\":\"#0F1115\",\"text\":\"#ECEEF2\",\"mark\":\"#4C78E6\"}},\"pairs\":[{\"fg\":\"text\",\"bg\":\"page\",\"min\":4.5},{\"fg\":\"mark\",\"bg\":\"page\",\"min\":3}],\"assets\":[{\"path\":\"icons/favicon.svg\"}],\"copy\":[\"voice.md\"]}",
  23. 23 "brand/icons/favicon.svg": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 64 64\"><rect width=\"64\" height=\"64\"/></svg>\n",
  24. 24 "brand/voice.md": "# Voice\n\nPlain, short sentences. Use a period or a colon.\n"
  25. 25 },
  26. 26 "checks": [
  27. 27 {
  28. 28 "type": "command_exits_zero",
  29. 29 "command": "node scripts/check-brand.mjs --dir brand --out out/check.json"
  30. 30 },
  31. 31 {
  32. 32 "type": "output_matches_schema",
  33. 33 "path": "out/check.json",
  34. 34 "schema": {
  35. 35 "type": "object",
  36. 36 "required": ["failing", "contrast", "assets", "copyChecked"],
  37. 37 "properties": {
  38. 38 "failing": { "const": 0 },
  39. 39 "copyChecked": { "const": 1 },
  40. 40 "contrast": { "type": "array", "minItems": 4, "maxItems": 4 }
  41. 41 }
  42. 42 }
  43. 43 }
  44. 44 ]
  45. 45 },
  46. 46 {
  47. 47 "name": "reports an em dash, a missing dark token, and a missing icon",
  48. 48 "inputs": {
  49. 49 "brand/brand.json": "{\"name\":\"Broken\",\"tokens\":{\"light\":{\"page\":\"#FFFFFF\",\"text\":\"#1B1D22\",\"accent\":\"#2D5BD3\"},\"dark\":{\"page\":\"#0F1115\",\"text\":\"#ECEEF2\"}},\"pairs\":[{\"fg\":\"text\",\"bg\":\"page\",\"min\":4.5}],\"assets\":[{\"path\":\"icons/icon-512.png\",\"width\":512,\"height\":512}],\"copy\":[\"voice.md\"]}",
  50. 50 "brand/voice.md": "One line \u2014 with a dash.\n"
  51. 51 },
  52. 52 "checks": [
  53. 53 {
  54. 54 "type": "command_exits_zero",
  55. 55 "command": "node scripts/check-brand.mjs --dir brand --out out/check.json --report-only"
  56. 56 },
  57. 57 {
  58. 58 "type": "output_matches_schema",
  59. 59 "path": "out/check.json",
  60. 60 "schema": {
  61. 61 "type": "object",
  62. 62 "properties": { "failing": { "const": 3 } }
  63. 63 }
  64. 64 },
  65. 65 { "type": "file_contains", "path": "out/check.json", "text": "uses an em dash" }
  66. 66 ]
  67. 67 }
  68. 68 ]
  69. 69 }

Cookies that keep you signed in and remember these choices are always on. Everything else is off until you turn it on.