cursor-kit-cli 1.2.0-beta → 1.2.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.cjs +333 -56
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +334 -57
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +39 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +33 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/templates/commands/docs.md +5 -3
- package/templates/commands/explain.md +5 -3
- package/templates/commands/fix.md +5 -3
- package/templates/commands/implement.md +5 -3
- package/templates/commands/refactor.md +5 -3
- package/templates/commands/review.md +5 -3
- package/templates/commands/test.md +5 -3
- package/templates/manifest.json +11 -8
- package/templates/rules/git.mdc +0 -2
- package/templates/rules/toc.mdc +17 -9
- package/templates/skills/aesthetic/SKILL.md +121 -0
- package/templates/skills/aesthetic/assets/design-guideline-template.md +163 -0
- package/templates/skills/aesthetic/assets/design-story-template.md +135 -0
- package/templates/skills/aesthetic/references/design-principles.md +62 -0
- package/templates/skills/aesthetic/references/design-resources.md +75 -0
- package/templates/skills/aesthetic/references/micro-interactions.md +53 -0
- package/templates/skills/aesthetic/references/storytelling-design.md +50 -0
- package/templates/skills/backend-development/SKILL.mdc +95 -0
- package/templates/skills/backend-development/references/backend-api-design.md +495 -0
- package/templates/skills/backend-development/references/backend-architecture.md +454 -0
- package/templates/skills/backend-development/references/backend-authentication.md +338 -0
- package/templates/skills/backend-development/references/backend-code-quality.md +659 -0
- package/templates/skills/backend-development/references/backend-debugging.md +904 -0
- package/templates/skills/backend-development/references/backend-devops.md +494 -0
- package/templates/skills/backend-development/references/backend-mindset.md +387 -0
- package/templates/skills/backend-development/references/backend-performance.md +397 -0
- package/templates/skills/backend-development/references/backend-security.md +290 -0
- package/templates/skills/backend-development/references/backend-technologies.md +256 -0
- package/templates/skills/backend-development/references/backend-testing.md +429 -0
- package/templates/skills/frontend-design/SKILL.mdc +41 -0
- package/templates/skills/frontend-design/references/animejs.md +396 -0
- package/templates/skills/frontend-development/SKILL.mdc +399 -0
- package/templates/skills/frontend-development/resources/common-patterns.md +331 -0
- package/templates/skills/frontend-development/resources/complete-examples.md +872 -0
- package/templates/skills/frontend-development/resources/component-patterns.md +502 -0
- package/templates/skills/frontend-development/resources/data-fetching.md +767 -0
- package/templates/skills/frontend-development/resources/file-organization.md +502 -0
- package/templates/skills/frontend-development/resources/loading-and-error-states.md +501 -0
- package/templates/skills/frontend-development/resources/performance.md +406 -0
- package/templates/skills/frontend-development/resources/routing-guide.md +364 -0
- package/templates/skills/frontend-development/resources/styling-guide.md +428 -0
- package/templates/skills/frontend-development/resources/typescript-standards.md +418 -0
- package/templates/skills/problem-solving/SKILL.mdc +96 -0
- package/templates/skills/problem-solving/references/attribution.md +69 -0
- package/templates/skills/problem-solving/references/collision-zone-thinking.md +79 -0
- package/templates/skills/problem-solving/references/inversion-exercise.md +91 -0
- package/templates/skills/problem-solving/references/meta-pattern-recognition.md +87 -0
- package/templates/skills/problem-solving/references/scale-game.md +95 -0
- package/templates/skills/problem-solving/references/simplification-cascades.md +80 -0
- package/templates/skills/problem-solving/references/when-stuck.md +72 -0
- package/templates/skills/research/SKILL.mdc +168 -0
- package/templates/skills/sequential-thinking/.env.example +8 -0
- package/templates/skills/sequential-thinking/README.md +183 -0
- package/templates/skills/sequential-thinking/SKILL.mdc +94 -0
- package/templates/skills/sequential-thinking/package.json +31 -0
- package/templates/skills/sequential-thinking/references/advanced-strategies.md +79 -0
- package/templates/skills/sequential-thinking/references/advanced-techniques.md +76 -0
- package/templates/skills/sequential-thinking/references/core-patterns.md +95 -0
- package/templates/skills/sequential-thinking/references/examples-api.md +88 -0
- package/templates/skills/sequential-thinking/references/examples-architecture.md +94 -0
- package/templates/skills/sequential-thinking/references/examples-debug.md +90 -0
- package/templates/skills/sequential-thinking/scripts/format-thought.js +159 -0
- package/templates/skills/sequential-thinking/scripts/process-thought.js +236 -0
- package/templates/skills/sequential-thinking/tests/format-thought.test.js +133 -0
- package/templates/skills/sequential-thinking/tests/process-thought.test.js +215 -0
- package/templates/skills/ui-styling/LICENSE.txt +202 -0
- package/templates/skills/ui-styling/SKILL.mdc +321 -0
- package/templates/skills/ui-styling/references/canvas-design-system.md +320 -0
- package/templates/skills/ui-styling/references/shadcn-accessibility.md +471 -0
- package/templates/skills/ui-styling/references/shadcn-components.md +424 -0
- package/templates/skills/ui-styling/references/shadcn-theming.md +373 -0
- package/templates/skills/ui-styling/references/tailwind-customization.md +483 -0
- package/templates/skills/ui-styling/references/tailwind-responsive.md +382 -0
- package/templates/skills/ui-styling/references/tailwind-utilities.md +455 -0
- package/templates/rules/frontend-design.mdc +0 -48
- package/templates/rules/performance.mdc +0 -54
- package/templates/rules/react.mdc +0 -58
- package/templates/rules/security.mdc +0 -50
- package/templates/rules/testing.mdc +0 -54
- package/templates/rules/typescript.mdc +0 -36
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
# Design Story: [Project Name]
|
|
2
|
+
|
|
3
|
+
_Generated: [Date]_
|
|
4
|
+
|
|
5
|
+
## Project Context
|
|
6
|
+
|
|
7
|
+
### Purpose
|
|
8
|
+
[What problem does this design solve?]
|
|
9
|
+
|
|
10
|
+
### Target Audience
|
|
11
|
+
[Who is this design for?]
|
|
12
|
+
|
|
13
|
+
### Key Objectives
|
|
14
|
+
1. [Objective 1]
|
|
15
|
+
2. [Objective 2]
|
|
16
|
+
3. [Objective 3]
|
|
17
|
+
|
|
18
|
+
## Design Narrative
|
|
19
|
+
|
|
20
|
+
### Core Message
|
|
21
|
+
[What story does this design tell?]
|
|
22
|
+
|
|
23
|
+
### Emotional Journey
|
|
24
|
+
[What should users feel as they interact?]
|
|
25
|
+
|
|
26
|
+
### Visual Metaphor
|
|
27
|
+
[What metaphor or theme unifies the design?]
|
|
28
|
+
|
|
29
|
+
## User Journey
|
|
30
|
+
|
|
31
|
+
### Entry Point
|
|
32
|
+
**First Impression**: [What users see first]
|
|
33
|
+
**Goal**: [What should users understand immediately]
|
|
34
|
+
**Design Choices**: [How design supports this]
|
|
35
|
+
|
|
36
|
+
### Exploration Phase
|
|
37
|
+
**User Actions**: [What users do next]
|
|
38
|
+
**Design Response**: [How interface responds]
|
|
39
|
+
**Micro-Interactions**: [Subtle feedback provided]
|
|
40
|
+
|
|
41
|
+
### Engagement Phase
|
|
42
|
+
**Key Interactions**: [Main user activities]
|
|
43
|
+
**Visual Feedback**: [How design reinforces actions]
|
|
44
|
+
**Storytelling Elements**: [Narrative reinforcement]
|
|
45
|
+
|
|
46
|
+
### Peak Moment
|
|
47
|
+
**Highlight**: [Most memorable interaction]
|
|
48
|
+
**Implementation**: [How it's achieved technically]
|
|
49
|
+
**Purpose**: [Why this moment matters]
|
|
50
|
+
|
|
51
|
+
## Thematic Elements
|
|
52
|
+
|
|
53
|
+
### Visual Theme
|
|
54
|
+
[Description of consistent visual approach]
|
|
55
|
+
|
|
56
|
+
### Narrative Devices
|
|
57
|
+
- **Parallax**: [How depth is used]
|
|
58
|
+
- **Transitions**: [How sections connect]
|
|
59
|
+
- **Progressive Disclosure**: [How information unfolds]
|
|
60
|
+
- **Motion**: [How animation tells the story]
|
|
61
|
+
|
|
62
|
+
### Symbolism
|
|
63
|
+
[Meaning behind design choices]
|
|
64
|
+
|
|
65
|
+
## Design Decisions
|
|
66
|
+
|
|
67
|
+
### Why This Style?
|
|
68
|
+
[Rationale for design style choice]
|
|
69
|
+
|
|
70
|
+
### Why These Colors?
|
|
71
|
+
[Reasoning behind color palette]
|
|
72
|
+
|
|
73
|
+
### Why This Layout?
|
|
74
|
+
[Logic behind structure and flow]
|
|
75
|
+
|
|
76
|
+
### Why These Interactions?
|
|
77
|
+
[Purpose of micro-interactions chosen]
|
|
78
|
+
|
|
79
|
+
## Technical Storytelling
|
|
80
|
+
|
|
81
|
+
### Performance Story
|
|
82
|
+
[How fast loading enhances narrative]
|
|
83
|
+
|
|
84
|
+
### Responsive Story
|
|
85
|
+
[How design adapts across devices]
|
|
86
|
+
|
|
87
|
+
### Accessibility Story
|
|
88
|
+
[How inclusive design supports everyone]
|
|
89
|
+
|
|
90
|
+
## Evolution
|
|
91
|
+
|
|
92
|
+
### Initial Concepts
|
|
93
|
+
[Early ideas explored]
|
|
94
|
+
|
|
95
|
+
### Key Iterations
|
|
96
|
+
[Major changes and why]
|
|
97
|
+
|
|
98
|
+
### Final Direction
|
|
99
|
+
[Ultimate design rationale]
|
|
100
|
+
|
|
101
|
+
## Inspiration
|
|
102
|
+
|
|
103
|
+
### Design References
|
|
104
|
+
- [Source 1]: [What inspired]
|
|
105
|
+
- [Source 2]: [What inspired]
|
|
106
|
+
- [Source 3]: [What inspired]
|
|
107
|
+
|
|
108
|
+
### Cultural Context
|
|
109
|
+
[Broader design trends considered]
|
|
110
|
+
|
|
111
|
+
## Impact
|
|
112
|
+
|
|
113
|
+
### Intended Effect
|
|
114
|
+
[What users should take away]
|
|
115
|
+
|
|
116
|
+
### Success Metrics
|
|
117
|
+
[How to measure if story resonates]
|
|
118
|
+
|
|
119
|
+
### Future Chapters
|
|
120
|
+
[How design can evolve]
|
|
121
|
+
|
|
122
|
+
## Reflections
|
|
123
|
+
|
|
124
|
+
### What Worked
|
|
125
|
+
[Successful narrative elements]
|
|
126
|
+
|
|
127
|
+
### What We Learned
|
|
128
|
+
[Insights gained from process]
|
|
129
|
+
|
|
130
|
+
### What's Next
|
|
131
|
+
[Future storytelling opportunities]
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
|
|
135
|
+
**Remember**: Every design tells a story. Make it intentional, coherent, and meaningful.
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# Design Principles: Beautiful & Right
|
|
2
|
+
|
|
3
|
+
## BEAUTIFUL: Understanding Aesthetic Principles
|
|
4
|
+
|
|
5
|
+
### Study Process
|
|
6
|
+
Analyze high-quality designs on Dribbble, Mobbin, Behance. Ask AI to identify:
|
|
7
|
+
- Design styles (Memphis, Flat Design, Glassmorphism, Neo-brutalism, Minimalism)
|
|
8
|
+
- Layout structures & applications
|
|
9
|
+
- Typography systems (font pairing, hierarchy, scaling)
|
|
10
|
+
- Color systems (palettes, contrasts, psychology)
|
|
11
|
+
|
|
12
|
+
### Visual Hierarchy
|
|
13
|
+
Guide users through interfaces effectively:
|
|
14
|
+
- **Size**: Larger elements draw attention first
|
|
15
|
+
- **Contrast**: High contrast (text/background) boosts readability
|
|
16
|
+
- **Typography**: Use weight, size, style for hierarchy
|
|
17
|
+
- **Placement**: F-pattern (web), Z-pattern (landing pages)
|
|
18
|
+
- **Spacing**: White space improves clarity, reduces cognitive load
|
|
19
|
+
|
|
20
|
+
### Typography Best Practices
|
|
21
|
+
- Stick to 2-3 typefaces max
|
|
22
|
+
- Clear font hierarchy with proper spacing, sizes, alignment
|
|
23
|
+
- Appropriate font sizes for readability across devices
|
|
24
|
+
- Short, scannable paragraphs
|
|
25
|
+
|
|
26
|
+
### Color Theory Applications
|
|
27
|
+
- **Blue**: Trust, security, calmness
|
|
28
|
+
- **Red**: Urgency, passion, excitement
|
|
29
|
+
- **Warm colors**: Drive urgency
|
|
30
|
+
- **Cool colors**: Create trust
|
|
31
|
+
- Use color intentionally to direct attention & evoke emotion
|
|
32
|
+
- Ensure WCAG AA contrast ratios (4.5:1 text, 3:1 large text)
|
|
33
|
+
|
|
34
|
+
### White Space
|
|
35
|
+
Not empty—essential for clarity. Proper spacing between sections, buttons, text improves readability & gives visual breathing room.
|
|
36
|
+
|
|
37
|
+
## RIGHT: Ensuring Functionality
|
|
38
|
+
|
|
39
|
+
### Design Systems Research
|
|
40
|
+
Search "Figma Design System + [style]" to understand:
|
|
41
|
+
- Component architecture (atomic design: atoms → molecules → organisms)
|
|
42
|
+
- Layout principles (grid systems, responsive breakpoints)
|
|
43
|
+
- UX patterns & interactions
|
|
44
|
+
|
|
45
|
+
### Component Library Standards
|
|
46
|
+
- Semantic HTML first (button > div with ARIA roles)
|
|
47
|
+
- Built-in accessibility, focus handling, keyboard interaction
|
|
48
|
+
- Each component tested for accessibility before adding
|
|
49
|
+
- Documentation includes structure, focus order, keyboard expectations, screen reader announcements
|
|
50
|
+
|
|
51
|
+
### Accessibility Requirements
|
|
52
|
+
- WCAG 2.1 AA minimum (work toward 2.2)
|
|
53
|
+
- Color contrast ratios meet/exceed minimums
|
|
54
|
+
- Alt text for images
|
|
55
|
+
- Color-blind-friendly palettes
|
|
56
|
+
- Keyboard navigation support
|
|
57
|
+
- Screen reader compatibility
|
|
58
|
+
|
|
59
|
+
### Testing Protocol
|
|
60
|
+
- Automated tools catch 30-50% of issues
|
|
61
|
+
- Manual testing crucial for comprehensive coverage
|
|
62
|
+
- Test with real users when possible
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
# Design Resources & Tools
|
|
2
|
+
|
|
3
|
+
## Inspiration Platforms
|
|
4
|
+
|
|
5
|
+
### Design Galleries
|
|
6
|
+
- **Dribbble**: High-quality UI/UX designs, trending styles
|
|
7
|
+
- **Mobbin**: Mobile app design patterns, real-world examples
|
|
8
|
+
- **Behance**: Creative portfolios, comprehensive projects
|
|
9
|
+
- **Awwwards**: Award-winning web experiences
|
|
10
|
+
- **21st.dev**: Component animations, micro-interactions
|
|
11
|
+
- **CSS Design Awards**: Cutting-edge web designs
|
|
12
|
+
|
|
13
|
+
### Design Systems
|
|
14
|
+
Search pattern: "Figma Design System + [style name]"
|
|
15
|
+
- Material Design (Google)
|
|
16
|
+
- Human Interface Guidelines (Apple)
|
|
17
|
+
- Carbon Design System (IBM)
|
|
18
|
+
- Ant Design
|
|
19
|
+
- Shadcn UI
|
|
20
|
+
- Atlassian Design System
|
|
21
|
+
|
|
22
|
+
## AI Tools for Design
|
|
23
|
+
|
|
24
|
+
### Generation
|
|
25
|
+
- **Gemini**: Image generation via ai-multimodal skill
|
|
26
|
+
- **Claude**: Design variations, component code
|
|
27
|
+
|
|
28
|
+
### Prompt Structure
|
|
29
|
+
Include in prompts:
|
|
30
|
+
- Task description
|
|
31
|
+
- Preferred design style
|
|
32
|
+
- Color palette
|
|
33
|
+
- Typography preferences
|
|
34
|
+
- Target audience/user story
|
|
35
|
+
- Animation specifications
|
|
36
|
+
|
|
37
|
+
## MCP Integrations
|
|
38
|
+
|
|
39
|
+
### Available MCPs
|
|
40
|
+
- **Chrome MCP**: Research designs, analyze trends from Dribbble/Mobbin
|
|
41
|
+
- **Figma MCP**: Code based on community designs
|
|
42
|
+
- **Freepik MCP**: Access stock imagery
|
|
43
|
+
- **ChatGPT-Image MCP**: Image resources
|
|
44
|
+
- **gallery-dl**: Download reference images via bash
|
|
45
|
+
|
|
46
|
+
### Usage
|
|
47
|
+
Connect MCPs for enhanced capabilities when researching, analyzing, or implementing designs.
|
|
48
|
+
|
|
49
|
+
## Development Approach
|
|
50
|
+
|
|
51
|
+
### Git Worktrees Strategy
|
|
52
|
+
Maintain separate branches for different design style variations during development.
|
|
53
|
+
Allows parallel exploration of Minimalist, Modern, Glassmorphism interpretations.
|
|
54
|
+
|
|
55
|
+
### Parallel Agents
|
|
56
|
+
Use multiple agents to generate design style variations simultaneously, compare approaches.
|
|
57
|
+
|
|
58
|
+
## Documentation Standards
|
|
59
|
+
|
|
60
|
+
### Required Files
|
|
61
|
+
Create in `./docs/` directory:
|
|
62
|
+
- **design-guideline.md**: Color patterns, typography, layout principles, component styling, design highlights
|
|
63
|
+
- **design-story.md**: Narrative elements, thematic decisions, user journey considerations
|
|
64
|
+
|
|
65
|
+
### Content
|
|
66
|
+
Document:
|
|
67
|
+
- Rationale for design decisions
|
|
68
|
+
- Style guide (colors, fonts, spacing)
|
|
69
|
+
- Component patterns & usage
|
|
70
|
+
- Responsive breakpoints
|
|
71
|
+
- Accessibility considerations
|
|
72
|
+
- Brand alignment
|
|
73
|
+
|
|
74
|
+
### Maintenance
|
|
75
|
+
Update during development. Use development rules to remind Claude Code to follow guidelines consistently.
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
# Micro-Interactions: Satisfying Experience
|
|
2
|
+
|
|
3
|
+
## SATISFYING: Adding Micro-Interactions
|
|
4
|
+
|
|
5
|
+
### Duration Guidelines
|
|
6
|
+
- **General micro-interactions**: 150-300ms (avoid interrupting flow)
|
|
7
|
+
- **Button presses**: Start within 16ms of click
|
|
8
|
+
- **Standard animations**: 200-500ms
|
|
9
|
+
- **UI motions**: 0.5-2s typically
|
|
10
|
+
- **Rule**: A tenth of a second makes big difference; half second wrong feels jarring
|
|
11
|
+
|
|
12
|
+
### Basic Effects
|
|
13
|
+
- **Fade**: Smooth opacity transitions
|
|
14
|
+
- **Slide**: Directional movement (left/right/up/down)
|
|
15
|
+
- **Scale**: Size changes (grow/shrink)
|
|
16
|
+
- **Rotate**: Angular transformations
|
|
17
|
+
- Sequential timing with 0.1s delays between elements
|
|
18
|
+
|
|
19
|
+
### Easing Curves
|
|
20
|
+
Linear motion = robotic. Use easing for natural feel:
|
|
21
|
+
|
|
22
|
+
**Ease-out** (starts fast, slows down):
|
|
23
|
+
- Best for: Elements entering screen
|
|
24
|
+
- Makes animation feel responsive
|
|
25
|
+
- Allows eye time to focus as element settles
|
|
26
|
+
- Most common for UI micro-interactions
|
|
27
|
+
|
|
28
|
+
**Ease-in** (starts slow, speeds up):
|
|
29
|
+
- Best for: Elements leaving screen
|
|
30
|
+
- Natural exit motion
|
|
31
|
+
|
|
32
|
+
**Spring/bounce**:
|
|
33
|
+
- Playful, energetic feel
|
|
34
|
+
- Use sparingly for emphasis
|
|
35
|
+
|
|
36
|
+
**Cubic-bezier**:
|
|
37
|
+
- Fine-tuned control over motion curves
|
|
38
|
+
- Custom easing for specific needs
|
|
39
|
+
|
|
40
|
+
### Motion Characteristics
|
|
41
|
+
- Follow real-world physics (objects speed up when starting, slow down when stopping)
|
|
42
|
+
- Subtle curves for micro-interactions
|
|
43
|
+
- Bolder curves for attention-grabbing transitions
|
|
44
|
+
- Always have purpose—guide users or give feedback
|
|
45
|
+
|
|
46
|
+
### Performance
|
|
47
|
+
- Aim for smooth 60fps
|
|
48
|
+
- Prefer hardware-accelerated properties (transforms, opacity)
|
|
49
|
+
- Avoid fancy effects causing frame drops or battery drain
|
|
50
|
+
- Provide motion-reduced alternatives for accessibility
|
|
51
|
+
|
|
52
|
+
### Resources
|
|
53
|
+
Study 21st.dev for component animations & subtle effects worth emulating.
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# Storytelling Design: Peak Experience
|
|
2
|
+
|
|
3
|
+
## PEAK: Storytelling Through Design
|
|
4
|
+
|
|
5
|
+
### Narrative Elements
|
|
6
|
+
Elevate designs by incorporating story-driven interactions:
|
|
7
|
+
- **Parallax effects**: Different scroll speeds create depth
|
|
8
|
+
- **Particle systems**: Dynamic, living background elements
|
|
9
|
+
- **Thematic consistency**: Every element reinforces the narrative
|
|
10
|
+
- **Progressive disclosure**: Reveal information as user explores
|
|
11
|
+
|
|
12
|
+
### Key Principle
|
|
13
|
+
"Too much of anything isn't good"—use restraint. Peak moments should be intentional, not overwhelming.
|
|
14
|
+
|
|
15
|
+
### Implementation Approaches
|
|
16
|
+
|
|
17
|
+
**Scroll-Based Storytelling**:
|
|
18
|
+
- Reveal content in meaningful sequences
|
|
19
|
+
- Use scroll position to trigger animations
|
|
20
|
+
- Create depth with parallax layers
|
|
21
|
+
- Build anticipation through pacing
|
|
22
|
+
|
|
23
|
+
**Interactive Elements**:
|
|
24
|
+
- Hover states that reveal additional context
|
|
25
|
+
- Click interactions that unfold stories
|
|
26
|
+
- Drag interactions that manipulate narrative elements
|
|
27
|
+
- Gesture-based reveals on mobile
|
|
28
|
+
|
|
29
|
+
**Visual Narrative**:
|
|
30
|
+
- Hero sections that set tone
|
|
31
|
+
- Consistent visual metaphors throughout
|
|
32
|
+
- Imagery that supports the message
|
|
33
|
+
- Typography that reinforces brand personality
|
|
34
|
+
|
|
35
|
+
### Technical Considerations
|
|
36
|
+
- Ensure storytelling enhances, not hinders, usability
|
|
37
|
+
- Maintain performance (60fps) during narrative elements
|
|
38
|
+
- Provide accessibility alternatives
|
|
39
|
+
- Test across devices & screen sizes
|
|
40
|
+
- Graceful degradation for older browsers
|
|
41
|
+
|
|
42
|
+
### Inspiration Sources
|
|
43
|
+
Study award-winning sites like:
|
|
44
|
+
- Awwwards.com winners
|
|
45
|
+
- CSS Design Awards
|
|
46
|
+
- FWA (Favourite Website Awards)
|
|
47
|
+
- Brand campaign sites
|
|
48
|
+
|
|
49
|
+
### Balance
|
|
50
|
+
Strong storytelling + solid functionality = peak experience. Neither should sacrifice the other.
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: backend-development
|
|
3
|
+
description: Build robust backend systems with modern technologies (Node.js, Python, Go, Rust), frameworks (NestJS, FastAPI, Django), databases (PostgreSQL, MongoDB, Redis), APIs (REST, GraphQL, gRPC), authentication (OAuth 2.1, JWT), testing strategies, security best practices (OWASP Top 10), performance optimization, scalability patterns (microservices, caching, sharding), DevOps practices (Docker, Kubernetes, CI/CD), and monitoring. Use when designing APIs, implementing authentication, optimizing database queries, setting up CI/CD pipelines, handling security vulnerabilities, building microservices, or developing production-ready backend systems.
|
|
4
|
+
license: MIT
|
|
5
|
+
version: 1.0.0
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Backend Development Skill
|
|
9
|
+
|
|
10
|
+
Production-ready backend development with modern technologies, best practices, and proven patterns.
|
|
11
|
+
|
|
12
|
+
## When to Use
|
|
13
|
+
|
|
14
|
+
- Designing RESTful, GraphQL, or gRPC APIs
|
|
15
|
+
- Building authentication/authorization systems
|
|
16
|
+
- Optimizing database queries and schemas
|
|
17
|
+
- Implementing caching and performance optimization
|
|
18
|
+
- OWASP Top 10 security mitigation
|
|
19
|
+
- Designing scalable microservices
|
|
20
|
+
- Testing strategies (unit, integration, E2E)
|
|
21
|
+
- CI/CD pipelines and deployment
|
|
22
|
+
- Monitoring and debugging production systems
|
|
23
|
+
|
|
24
|
+
## Technology Selection Guide
|
|
25
|
+
|
|
26
|
+
**Languages:** Node.js/TypeScript (full-stack), Python (data/ML), Go (concurrency), Rust (performance)
|
|
27
|
+
**Frameworks:** NestJS, FastAPI, Django, Express, Gin
|
|
28
|
+
**Databases:** PostgreSQL (ACID), MongoDB (flexible schema), Redis (caching)
|
|
29
|
+
**APIs:** REST (simple), GraphQL (flexible), gRPC (performance)
|
|
30
|
+
|
|
31
|
+
See: `references/backend-technologies.md` for detailed comparisons
|
|
32
|
+
|
|
33
|
+
## Reference Navigation
|
|
34
|
+
|
|
35
|
+
**Core Technologies:**
|
|
36
|
+
- `backend-technologies.md` - Languages, frameworks, databases, message queues, ORMs
|
|
37
|
+
- `backend-api-design.md` - REST, GraphQL, gRPC patterns and best practices
|
|
38
|
+
|
|
39
|
+
**Security & Authentication:**
|
|
40
|
+
- `backend-security.md` - OWASP Top 10 2025, security best practices, input validation
|
|
41
|
+
- `backend-authentication.md` - OAuth 2.1, JWT, RBAC, MFA, session management
|
|
42
|
+
|
|
43
|
+
**Performance & Architecture:**
|
|
44
|
+
- `backend-performance.md` - Caching, query optimization, load balancing, scaling
|
|
45
|
+
- `backend-architecture.md` - Microservices, event-driven, CQRS, saga patterns
|
|
46
|
+
|
|
47
|
+
**Quality & Operations:**
|
|
48
|
+
- `backend-testing.md` - Testing strategies, frameworks, tools, CI/CD testing
|
|
49
|
+
- `backend-code-quality.md` - SOLID principles, design patterns, clean code
|
|
50
|
+
- `backend-devops.md` - Docker, Kubernetes, deployment strategies, monitoring
|
|
51
|
+
- `backend-debugging.md` - Debugging strategies, profiling, logging, production debugging
|
|
52
|
+
- `backend-mindset.md` - Problem-solving, architectural thinking, collaboration
|
|
53
|
+
|
|
54
|
+
## Key Best Practices (2025)
|
|
55
|
+
|
|
56
|
+
**Security:** Argon2id passwords, parameterized queries (98% SQL injection reduction), OAuth 2.1 + PKCE, rate limiting, security headers
|
|
57
|
+
|
|
58
|
+
**Performance:** Redis caching (90% DB load reduction), database indexing (30% I/O reduction), CDN (50%+ latency cut), connection pooling
|
|
59
|
+
|
|
60
|
+
**Testing:** 70-20-10 pyramid (unit-integration-E2E), Vitest 50% faster than Jest, contract testing for microservices, 83% migrations fail without tests
|
|
61
|
+
|
|
62
|
+
**DevOps:** Blue-green/canary deployments, feature flags (90% fewer failures), Kubernetes 84% adoption, Prometheus/Grafana monitoring, OpenTelemetry tracing
|
|
63
|
+
|
|
64
|
+
## Quick Decision Matrix
|
|
65
|
+
|
|
66
|
+
| Need | Choose |
|
|
67
|
+
|------|--------|
|
|
68
|
+
| Fast development | Node.js + NestJS |
|
|
69
|
+
| Data/ML integration | Python + FastAPI |
|
|
70
|
+
| High concurrency | Go + Gin |
|
|
71
|
+
| Max performance | Rust + Axum |
|
|
72
|
+
| ACID transactions | PostgreSQL |
|
|
73
|
+
| Flexible schema | MongoDB |
|
|
74
|
+
| Caching | Redis |
|
|
75
|
+
| Internal services | gRPC |
|
|
76
|
+
| Public APIs | GraphQL/REST |
|
|
77
|
+
| Real-time events | Kafka |
|
|
78
|
+
|
|
79
|
+
## Implementation Checklist
|
|
80
|
+
|
|
81
|
+
**API:** Choose style → Design schema → Validate input → Add auth → Rate limiting → Documentation → Error handling
|
|
82
|
+
|
|
83
|
+
**Database:** Choose DB → Design schema → Create indexes → Connection pooling → Migration strategy → Backup/restore → Test performance
|
|
84
|
+
|
|
85
|
+
**Security:** OWASP Top 10 → Parameterized queries → OAuth 2.1 + JWT → Security headers → Rate limiting → Input validation → Argon2id passwords
|
|
86
|
+
|
|
87
|
+
**Testing:** Unit 70% → Integration 20% → E2E 10% → Load tests → Migration tests → Contract tests (microservices)
|
|
88
|
+
|
|
89
|
+
**Deployment:** Docker → CI/CD → Blue-green/canary → Feature flags → Monitoring → Logging → Health checks
|
|
90
|
+
|
|
91
|
+
## Resources
|
|
92
|
+
|
|
93
|
+
- OWASP Top 10: https://owasp.org/www-project-top-ten/
|
|
94
|
+
- OAuth 2.1: https://oauth.net/2.1/
|
|
95
|
+
- OpenTelemetry: https://opentelemetry.io/
|