[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7FBTVCC71ZTYKC33BYX36YM":3,"skill-same:01M7FBTVCC71ZTYKC33BYX36YM":52},{"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":30,"commitSha":31,"skillDirectory":32,"forksCount":33,"repositoryHtmlUrl":34,"repositoryHomepageUrl":6,"ownerHtmlUrl":35,"ownerBlogUrl":6,"ownerDescription":36,"updatedAt":37,"install":38,"resources":51},"01M7FBTVCC71ZTYKC33BYX36YM","apply-consistent-spacing",null,"Use systematic spacing with 25% minimum jumps, start with excess whitespace","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Frefactoring-ui-plugin\u002Fskills\u002F04-apply-consistent-spacing\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: apply-consistent-spacing\ndescription: Use systematic spacing with 25% minimum jumps, start with excess whitespace\ndomain: ui-design\nskill-type: generative\nversion: 1.0.0\nauthor: refactoring-ui-expert\nprerequisites: []\ndependencies: []\n---\n\n# Skill: Apply Consistent Spacing\n\n## Purpose\nUse a systematic spacing scale to create rhythm, group related elements, and separate distinct sections while starting with generous whitespace and removing as needed.\n\n## Type\nGenerative + Evaluative\n\n## Input\n- UI layout or component structure\n- Content grouping (what belongs together)\n- Desired density (compact vs. airy)\n- Base unit (default: 16px)\n\n## Output\n- Spacing scale specification\n- Margin\u002Fpadding values for each element\n- Pass\u002FFail assessment of existing spacing\n\n## Transformation Performed\nMaps spatial relationships to a systematic spacing scale with minimum 25% differences between values, ensuring clear grouping and breathing room.\n\n## Decision Criteria\n\n### PASS (Good Spacing)\n- Uses systematic scale with minimum 25% jumps between values (12px → 16px → 24px → 32px)\n- Related elements have smaller gaps (4-16px within groups)\n- Unrelated sections have larger gaps (24-64px between groups)\n- **More space around groups than within groups** (ambiguous spacing avoided)\n- Consistent internal padding (cards, buttons, inputs)\n- White space creates breathing room (doesn't fill entire screen width)\n- Uses whitespace instead of borders for separation\n\n### FAIL (Poor Spacing)\n- Arbitrary values without system (13px, 27px, 41px)\n- Values too similar (\u003C25% difference - can't distinguish)\n- Related elements too far apart (weakens grouping)\n- Unrelated elements too close together (ambiguous relationships)\n- **Equal spacing everywhere** (within groups = between groups)\n- Content stretched to fill wide canvas unnecessarily\n- Using borders when whitespace would suffice\n\n## The Spacing Scale\n\n### Systematic Scale (25% minimum jumps)\nBase: 16px (browser default)\n```\n4px, 8px, 12px, 16px, 24px, 32px, 48px, 64px, 96px\n```\n\n**Why these values:**\n- 4px → 8px = 100% jump (small end needs bigger jumps)\n- 8px → 12px = 50% jump\n- 12px → 16px = 33% jump\n- 16px → 24px = 50% jump\n- 24px → 32px = 33% jump\n- 32px → 48px = 50% jump\n- 48px → 64px = 33% jump\n- 64px → 96px = 50% jump\n\n### Common Usage Patterns\n| Spacing | Usage |\n|---------|-------|\n| 4px | Icon gaps, tight internal padding |\n| 8px | Small component gaps, tight button padding |\n| 12px | Input padding, component internal spacing |\n| 16px | Standard gap, card padding |\n| 24px | Section internal padding, larger gaps |\n| 32px | Major section separation |\n| 48-64px | Page section breaks |\n| 96px | Hero sections, major page divisions |\n\n## The Proximity Principle\n- Elements closer together appear related\n- Elements farther apart appear unrelated\n- **More space around groups than within groups**\n- Use spacing to show relationships without borders\n\n## Key Principles\n\n### 1. Start With Too Much Whitespace\nInstead of adding space until something looks okay, start with way too much space and remove until it's right.\n\n**Why:** Elements given minimum breathing room look \"not actively bad\" but not great. Starting with excess ensures adequate whitespace in the final design.\n\n### 2. Avoid Ambiguous Spacing\nEnsure there is **more space around the entire group** than within the group.\n\n**Example - Form Labels:**\n- ❌ Label margin-bottom: 12px, Input margin-bottom: 12px (equal = ambiguous)\n- ✅ Label margin-bottom: 4px, Input margin-bottom: 24px (within \u003C around = clear)\n\n### 3. Don't Fill The Whole Screen\nJust because you have 1200-1400px of canvas doesn't mean content should stretch to fill it.\n\n- Give elements exactly the space they need\n- If you have extra room, leave it as whitespace\n- Paragraph max-width: 600px is fine even if nav is 1200px\n- Shrink the canvas if designing small interfaces\n\n### 4. Whitespace > Borders\nInstead of using borders to separate elements:\n- Add extra spacing between groups\n- Use different background colors\n- Use subtle box shadows (less distracting than borders)\n\n## Visual\u002FUX Signals Used\n1. **Proximity**: Closer elements = related\n2. **Ambiguity gap**: More space around groups than within\n3. **Breathing room**: Generous space = cleaner, more polished\n4. **Canvas utilization**: Don't stretch to fill; use what you need\n\n## Common Failure Modes\n\n| Failure | Description | Fix |\n|---------|-------------|-----|\n| **Arbitrary Values** | 15px here, 17px there | Use systematic scale exclusively |\n| **Weak Grouping** | Equal spacing within and between groups | Make between-group spacing significantly larger |\n| **Ambiguous Spacing** | Label and input have same margin | Reduce within-group, increase between-groups |\n| **Border-Dependence** | Using borders instead of space | Increase gap, remove border |\n| **Canvas Filling** | Content stretched to 1200px unnecessarily | Use only the space needed; let whitespace fill rest |\n| **Minimal Breathing Room** | Adding just enough space to not look bad | Start with excess, remove until right |\n| **Inconsistent Padding** | Some buttons 8px, others 12px | Pick one scale value, apply everywhere |\n\n## Prerequisites\n- Content grouped by relationship\n- Visual hierarchy established\n\n## Dependencies\n- `establish-visual-hierarchy` (spacing reinforces hierarchy)\n- `group-related-elements` (proximity shows relationships)\n\n## Refactoring UI References\n- \"Start with too much white space\"\n- \"Establish a spacing and sizing system\" (25% minimum jumps)\n- \"Avoid ambiguous spacing\"\n- \"Don't fill the whole screen\"\n- \"Use fewer borders\"\n- \"White space should be removed, not added\"\n\n## Example Assessment\n\n**Input:** Form with: Title (margin-bottom: 16px), Label (margin-bottom: 12px), Input (margin-bottom: 12px), next Label (margin-top: 12px)\n\n**Evaluation:** FAIL - Ambiguous spacing\n- Label to Input: 12px\n- Input to next Label: 12px\n- No clear grouping - user can't tell which label belongs to which input\n\n**Recommendation:**\n- Title margin-bottom: 24px (separate section)\n- Label margin-bottom: 4px (tight coupling to input)\n- Input margin-bottom: 24px (clear separation to next group)\n- Result: Within-group (4px) \u003C\u003C Between-groups (24px) = Clear relationship\n\n**Before:**\n```\nLabel A\n[Input A]\nLabel B    \u003C- Ambiguous: belongs to A or B?\n[Input B]\n```\n\n**After:**\n```\nLabel A\n[Input A]\n\nLabel B    \u003C- Clearly belongs to B\n[Input B]\n```\n","# Skill: Apply Consistent Spacing\n\n## Purpose\nUse a systematic spacing scale to create rhythm, group related elements, and separate distinct sections while starting with generous whitespace and removing as needed.\n\n## Type\nGenerative + Evaluative\n\n## Input\n- UI layout or component structure\n- Content grouping (what belongs together)\n- Desired density (compact vs. airy)\n- Base unit (default: 16px)\n\n## Output\n- Spacing scale specification\n- Margin\u002Fpadding values for each element\n- Pass\u002FFail assessment of existing spacing\n\n## Transformation Performed\nMaps spatial relationships to a systematic spacing scale with minimum 25% differences between values, ensuring clear grouping and breathing room.\n\n## Decision Criteria\n\n### PASS (Good Spacing)\n- Uses systematic scale with minimum 25% jumps between values (12px → 16px → 24px → 32px)\n- Related elements have smaller gaps (4-16px within groups)\n- Unrelated sections have larger gaps (24-64px between groups)\n- **More space around groups than within groups** (ambiguous spacing avoided)\n- Consistent internal padding (cards, buttons, inputs)\n- White space creates breathing room (doesn't fill entire screen width)\n- Uses whitespace instead of borders for separation\n\n### FAIL (Poor Spacing)\n- Arbitrary values without system (13px, 27px, 41px)\n- Values too similar (\u003C25% difference - can't distinguish)\n- Related elements too far apart (weakens grouping)\n- Unrelated elements too close together (ambiguous relationships)\n- **Equal spacing everywhere** (within groups = between groups)\n- Content stretched to fill wide canvas unnecessarily\n- Using borders when whitespace would suffice\n\n## The Spacing Scale\n\n### Systematic Scale (25% minimum jumps)\nBase: 16px (browser default)\n```\n4px, 8px, 12px, 16px, 24px, 32px, 48px, 64px, 96px\n```\n\n**Why these values:**\n- 4px → 8px = 100% jump (small end needs bigger jumps)\n- 8px → 12px = 50% jump\n- 12px → 16px = 33% jump\n- 16px → 24px = 50% jump\n- 24px → 32px = 33% jump\n- 32px → 48px = 50% jump\n- 48px → 64px = 33% jump\n- 64px → 96px = 50% jump\n\n### Common Usage Patterns\n| Spacing | Usage |\n|---------|-------|\n| 4px | Icon gaps, tight internal padding |\n| 8px | Small component gaps, tight button padding |\n| 12px | Input padding, component internal spacing |\n| 16px | Standard gap, card padding |\n| 24px | Section internal padding, larger gaps |\n| 32px | Major section separation |\n| 48-64px | Page section breaks |\n| 96px | Hero sections, major page divisions |\n\n## The Proximity Principle\n- Elements closer together appear related\n- Elements farther apart appear unrelated\n- **More space around groups than within groups**\n- Use spacing to show relationships without borders\n\n## Key Principles\n\n### 1. Start With Too Much Whitespace\nInstead of adding space until something looks okay, start with way too much space and remove until it's right.\n\n**Why:** Elements given minimum breathing room look \"not actively bad\" but not great. Starting with excess ensures adequate whitespace in the final design.\n\n### 2. Avoid Ambiguous Spacing\nEnsure there is **more space around the entire group** than within the group.\n\n**Example - Form Labels:**\n- ❌ Label margin-bottom: 12px, Input margin-bottom: 12px (equal = ambiguous)\n- ✅ Label margin-bottom: 4px, Input margin-bottom: 24px (within \u003C around = clear)\n\n### 3. Don't Fill The Whole Screen\nJust because you have 1200-1400px of canvas doesn't mean content should stretch to fill it.\n\n- Give elements exactly the space they need\n- If you have extra room, leave it as whitespace\n- Paragraph max-width: 600px is fine even if nav is 1200px\n- Shrink the canvas if designing small interfaces\n\n### 4. Whitespace > Borders\nInstead of using borders to separate elements:\n- Add extra spacing between groups\n- Use different background colors\n- Use subtle box shadows (less distracting than borders)\n\n## Visual\u002FUX Signals Used\n1. **Proximity**: Closer elements = related\n2. **Ambiguity gap**: More space around groups than within\n3. **Breathing room**: Generous space = cleaner, more polished\n4. **Canvas utilization**: Don't stretch to fill; use what you need\n\n## Common Failure Modes\n\n| Failure | Description | Fix |\n|---------|-------------|-----|\n| **Arbitrary Values** | 15px here, 17px there | Use systematic scale exclusively |\n| **Weak Grouping** | Equal spacing within and between groups | Make between-group spacing significantly larger |\n| **Ambiguous Spacing** | Label and input have same margin | Reduce within-group, increase between-groups |\n| **Border-Dependence** | Using borders instead of space | Increase gap, remove border |\n| **Canvas Filling** | Content stretched to 1200px unnecessarily | Use only the space needed; let whitespace fill rest |\n| **Minimal Breathing Room** | Adding just enough space to not look bad | Start with excess, remove until right |\n| **Inconsistent Padding** | Some buttons 8px, others 12px | Pick one scale value, apply everywhere |\n\n## Prerequisites\n- Content grouped by relationship\n- Visual hierarchy established\n\n## Dependencies\n- `establish-visual-hierarchy` (spacing reinforces hierarchy)\n- `group-related-elements` (proximity shows relationships)\n\n## Refactoring UI References\n- \"Start with too much white space\"\n- \"Establish a spacing and sizing system\" (25% minimum jumps)\n- \"Avoid ambiguous spacing\"\n- \"Don't fill the whole screen\"\n- \"Use fewer borders\"\n- \"White space should be removed, not added\"\n\n## Example Assessment\n\n**Input:** Form with: Title (margin-bottom: 16px), Label (margin-bottom: 12px), Input (margin-bottom: 12px), next Label (margin-top: 12px)\n\n**Evaluation:** FAIL - Ambiguous spacing\n- Label to Input: 12px\n- Input to next Label: 12px\n- No clear grouping - user can't tell which label belongs to which input\n\n**Recommendation:**\n- Title margin-bottom: 24px (separate section)\n- Label margin-bottom: 4px (tight coupling to input)\n- Input margin-bottom: 24px (clear separation to next group)\n- Result: Within-group (4px) \u003C\u003C Between-groups (24px) = Clear relationship\n\n**Before:**\n```\nLabel A\n[Input A]\nLabel B    \u003C- Ambiguous: belongs to A or B?\n[Input B]\n```\n\n**After:**\n```\nLabel A\n[Input A]\n\nLabel B    \u003C- Clearly belongs to B\n[Input B]\n```\n",{"name":5,"author":24,"domain":25,"version":26,"skill-type":27,"description":7,"dependencies":28,"prerequisites":29},"refactoring-ui-expert","ui-design","1.0.0","generative",[],[],"main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","06-前端与设计\u002Frefactoring-ui-plugin\u002Fskills\u002F04-apply-consistent-spacing",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":39,"prompt":49,"zipAvailable":50},[40,43,46],{"tool":41,"command":42},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill apply-consistent-spacing",{"tool":44,"command":45},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill apply-consistent-spacing",{"tool":47,"command":48},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill apply-consistent-spacing","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F06-前端与设计\u002Frefactoring-ui-plugin\u002Fskills\u002F04-apply-consistent-spacing\u002FSKILL.md",true,[],[53,60,65,72,79,86],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],{"skillNo":61,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":19},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":19},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"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":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]