redline-annotation
Produces precise redline annotations - spacing, sizing, type, color, radius, z-order, and behavior notes in a consistent, scannable notation - that engineers can build from without asking questions. Use when someone asks "redline this screen", "spec this component", "annotate the spacing for handoff", or is preparing design files for development. Do NOT use for the overall handoff document with flows, edge cases, and acceptance criteria - use design-handoff-doc instead; for animation timing and easing, use motion-spec; for breakpoint behavior, use responsive-spec.
- License 许可
- MIT
- 最近更新
- 2026-10-14
- Stars
- ★ 25
- Forks
- 3
01 前言 Front Matter
- name
- redline-annotation
- metadata
- { "title": "Redline Annotation" }
- description
- Produces precise redline annotations - spacing, sizing, type, color, radius, z-order, and behavior notes in a consistent, scannable notation - that engineers can build from without asking questions. Use when someone asks "redline this screen", "spec this component", "annotate the spacing for handoff", or is preparing design files for development. Do NOT use for the overall handoff document with flows, edge cases, and acceptance criteria - use design-handoff-doc instead; for animation timing and easing, use motion-spec; for breakpoint behavior, use responsive-spec.
03 SKILL.md 正文
Redline Annotation
Redlines eliminate guesswork. Annotate for the engineer who has never seen the design and cannot ask a question mid-sprint. The costly failure is the half-annotated file: the engineer eyeballs the missing values, QA files a stack of 2px-off tickets, and the fix cycle costs more than annotating properly would have.
Operating procedure
Step 1: Gather inputs
- Does a token system exist? If yes, annotate token names, not raw values.
- Is there a spacing grid convention (4px or 8px)? If yes, annotate exceptions to the grid, not the grid itself.
- Which frames and components are in scope, and does the engineer have inspect access to the design file and design system? Access changes how much must be written down.
Step 2: Establish the notation convention
Fix a compact notation before annotating and include it as a legend in the file. Consistency is what makes redlines scannable; ad-hoc phrasing forces engineers to re-parse every note.
Step 3: Annotate the always-list
- Spacing: all padding, margin, and gap values in pixels - or the token name if a token system exists. Internal padding as "p: 12 16" (top/bottom left/right), all four values if asymmetric. Draw a gap arrow between siblings and label the value.
- Sizing: width, height, and min/max constraints for every non-trivially-sized element. For auto widths, state "grows to fill container" vs. "shrinks to content".
- Type: font family, weight, size, line-height, letter-spacing, and color for every text style not covered by a named style.
- Color: token name first; raw hex only if no token exists. Include opacity when not 100%.
- Corner radius: per-corner values when they differ (top-left: 8, top-right: 8, bottom: 0).
- Z-order relationships for overlapping elements ("dropdown sits above modal overlay").
Never annotate only half of a symmetrical component - annotate fully so there is no ambiguity.
Step 4: Annotate behavior
Anything a developer cannot infer from a static frame:
- Hover, focus, active, and disabled states as deltas from default ("background shifts from surface-primary to surface-hover, 150ms ease-out"). Complex motion routes to motion-spec.
- Overflow: scroll direction, hidden vs. clipped vs. visible.
- Conditional visibility: what triggers show/hide, and whether the element is display:none or removed from the DOM.
- Truncation: max lines before ellipsis, tooltip on truncate yes/no.
Step 5: Skip what is already specified
- Values defined in a shared style or component the engineer can inspect - do not re-document every token.
- Structural markup and class names - annotate intent, not implementation; implementation is the engineer's domain.
- Every pixel that conforms to the stated grid convention - the grid is the rule, redlines mark the exceptions.
Step 6: Final delivery pass
Run the quality bar below before handing off.
Worked example
REDLINE CONVENTION + EXAMPLE - "Project card" component
Legend
p: 12 16 padding, top/bottom left/right (4 values if asymmetric)
g: 8 gap between siblings (arrow points between them)
r: 8 8 0 0 corner radius per corner when unequal
->fill / ->hug grows to fill container / shrinks to content
[token] token name; raw hex only when no token exists
Card container
w: ->fill, max 400 h: ->hug, min 96
p: 16 r: 12
bg: [surface-default] border: 1px [border-subtle]
shadow: [elevation-1]
Title row
g: 8 between avatar and title
Avatar: 32x32, r: full
Title: [text-primary], Inter 600 16/1.4, truncate 1 line, tooltip on truncate
States (deltas from default)
hover: bg [surface-default] -> [surface-hover], 150ms ease-out
focus: 2px [focus-ring] outline, 2px offset
disabled: opacity 0.4, no pointer events
Z-order: card menu sits above sibling cards, below modal overlay.
Grid: 4px convention; only exception here is avatar-to-edge 14px (optical).
Deliverable
Produce an annotated file or spec sheet containing: the notation legend, complete measurements for every in-scope element (spacing, sizing, type, color, radius, z-order), behavior notes for every state and conditional, an explicit list of grid exceptions, and the owner's name with a last-updated date on the file itself.
Do NOT
- Do not annotate half a component and let symmetry be assumed - assumed symmetry is where 2px bugs live.
- Do not write raw hex when a token exists; raw values silently fork the design system.
- Do not re-document the entire token library; engineers with system access need exceptions, not an echo.
- Do not annotate class names or markup structure - prescribing implementation creates friction and goes stale.
- Do not leave states unannotated because "hover is obvious" - the exact target color and duration are never obvious.
Quality bar
- All annotations are visible without clicking into layers.
- A legend is included whenever custom notation is used.
- The file carries a last-updated date and the design owner's name.
- Every interactive element has all four states (hover, focus, active, disabled) specified or explicitly marked not applicable.
- Responsive behavior is called out inline or linked to the responsive-spec.
- An engineer with no file access could build the component from the annotations alone.
04 同仓库更多 Skills
zone-2-cardio-plan
Use when someone asks to build a steady-state cardio plan, train an aerobic base or Zone 2, structure easy or endurance weekly cardio, train by heart-rate zones, or improve resting heart rate, VO2, or endurance. Builds a heart-rate-zone aerobic training block with session structure, modality choice, and progression. General fitness guidance, not medical advice. Do NOT use to design a strength or lifting program (use Strength Training Plan), high-intensity interval conditioning, HIIT, or circuits (use Conditioning & HIIT Program), or a mobility/flexibility routine (use Mobility Routine).
youtube-script-writer
Writes retention-engineered long-form YouTube scripts on a hook/body/payoff architecture - a first-30-seconds hook that survives the retention cliff, a beat-sheet body with mini-hooks and bridges, timed pattern interrupts, and a payoff that over-delivers - with B-roll and editing cues marked inline. Use when someone says "script my next video", "my retention graph dies at the start", "tighten this draft", or "outline a video on X". Do NOT use for the 3-second opener of TikTok, Reels, or Shorts - use video-hook-writer instead; do NOT use for spoken voiceover synced to on-screen tutorial actions - use narration-script instead; do NOT use for a sales demo built on a buyer's discovery notes - use demo-script instead; do NOT use to design the thumbnail and title - use thumbnail-concept instead.
win-back-campaign
Designs segmented win-back email sequences for dormant users - dormancy tiers, a three-beat sequence with a single proportional incentive, and a suppression rule - and measures success by re-activation, not opens. Use when someone says "our users went quiet", "design a win-back campaign", "how do I re-engage lapsed customers", "should we email people who haven't logged in for months", or lifecycle messaging has stopped landing with a lapsed segment. Do NOT use for recovering an unfinished checkout - use abandoned-cart-sequence instead. Do NOT use for diagnosing and fixing why active customers cancel - use churn-reduction instead. Do NOT use for building always-on onboarding or nurture flows - use email-drip-builder instead.
wikipedia-style
Writes neutral, verifiable, encyclopedic prose following Wikipedia's core content policies and manual of style - NPOV, inline citations, notability-backed claims, and a strict ban on promotional language. Use when someone asks "write this like a Wikipedia article", "draft a Wikipedia page for this company or person", "make this neutral and encyclopedic", or "why does my article draft keep getting rejected". Do NOT use for persuasive or opinion writing - use op-ed-writer instead; for thesis-driven academic papers, use academic-essay; for verifying claims in existing text, use fact-checker.
whitepapers
Structures and writes authoritative B2B whitepapers - a standalone executive summary, a data-sized problem statement, methodology, evidence-driven findings, recommendations, and a soft call to action - flagging every claim that needs a real citation. Use when a marketer asks "write a whitepaper on this topic", "turn our research into a lead-gen asset", "make this credible enough for executives", or a draft reads like a product pitch instead of analysis. Do NOT use for customer-story-driven proof - use case-study-builder instead; for policy audiences, use policy-brief.
white-space-analysis
Finds unmet market gaps by ranking jobs-to-be-done on importance versus satisfaction, overlaying them against current solutions and workarounds, and validating that each gap is real, winnable, and worth winning. Use when someone asks "where are the gaps in this market", "what's underserved here", "where should we play next", or is hunting for product, feature, or market-entry opportunities. Do NOT use for profiling competitors and building battle cards - use competitive-intelligence instead; for putting a dollar figure on an identified opportunity - use market-sizing instead; for extracting jobs-to-be-done from raw customer interviews - use jtbd-extractor instead.