@anthropologies/claudestory 0.1.55 → 0.1.57
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/README.md +4 -2
- package/dist/cli.js +104 -7
- package/dist/index.d.ts +42 -42
- package/dist/mcp.js +37 -5
- package/package.json +8 -3
- package/src/skill/SKILL.md +7 -1
- package/src/skill/autonomous-mode.md +15 -1
- package/src/skill/design/design.md +311 -0
- package/src/skill/design/references/android.md +132 -0
- package/src/skill/design/references/ios.md +132 -0
- package/src/skill/design/references/macos.md +109 -0
- package/src/skill/design/references/web.md +104 -0
- package/src/skill/reference.md +14 -0
- package/src/skill/setup-flow.md +8 -0
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
# macOS / Desktop Platform Reference
|
|
2
|
+
|
|
3
|
+
Read this alongside the core design.md when building macOS native apps, Electron/Tauri desktop apps, or any interface intended for keyboard-and-pointer desktop use.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Desktop Interaction Model
|
|
8
|
+
|
|
9
|
+
Desktop users operate with a keyboard, mouse/trackpad, and large viewport. They expect precision, density, and simultaneous context.
|
|
10
|
+
|
|
11
|
+
Design for:
|
|
12
|
+
- Denser information display -- desktop users expect more content per screen
|
|
13
|
+
- Multi-pane layouts (sidebar + content + inspector where appropriate)
|
|
14
|
+
- Resizable, adaptable windows that reflow content intelligently
|
|
15
|
+
- Keyboard-first usage (shortcuts, tab order, arrow-key navigation within lists/tables)
|
|
16
|
+
- Hover precision (tooltips, hover states, right-click/context menus)
|
|
17
|
+
- Drag and drop where it serves the workflow (files, list reordering, canvas objects)
|
|
18
|
+
|
|
19
|
+
Desktop users tolerate and often expect more density and more direct control than mobile users.
|
|
20
|
+
|
|
21
|
+
## Layout Patterns
|
|
22
|
+
|
|
23
|
+
Desktop excels at showing multiple panels of related information simultaneously.
|
|
24
|
+
|
|
25
|
+
Common effective patterns:
|
|
26
|
+
- **Sidebar + content** -- navigation or filtering on the left, main content area
|
|
27
|
+
- **Sidebar + content + inspector** -- three-pane with detail panel (e.g., mail, Xcode, Finder column view)
|
|
28
|
+
- **Toolbar + canvas** -- creative/productivity apps with tools above a workspace
|
|
29
|
+
- **Source list + detail** -- master-detail for collections
|
|
30
|
+
- **Tab-based workspaces** -- for multi-document or multi-context workflows
|
|
31
|
+
|
|
32
|
+
Window resizing should degrade gracefully: inspector can collapse, sidebar can become compact icons, content can reflow.
|
|
33
|
+
|
|
34
|
+
Do not waste desktop space with oversized cards, giant padding, or mobile-like stacking unless the product explicitly calls for it.
|
|
35
|
+
|
|
36
|
+
## Keyboard and Shortcuts
|
|
37
|
+
|
|
38
|
+
Desktop interfaces must be navigable without a mouse.
|
|
39
|
+
|
|
40
|
+
- Tab moves between focusable elements in logical order
|
|
41
|
+
- Arrow keys navigate within lists, tables, menus, tab groups
|
|
42
|
+
- Enter/Return confirms, Escape cancels/dismisses
|
|
43
|
+
- Common shortcuts (Cmd+S, Cmd+Z, Cmd+F, Cmd+N) should work where semantically appropriate
|
|
44
|
+
- Display keyboard shortcuts in menus and tooltips where relevant
|
|
45
|
+
- Focus states must be clearly visible
|
|
46
|
+
|
|
47
|
+
For native macOS: respect the system menu bar, Cmd+Q, Cmd+W, Cmd+comma for preferences.
|
|
48
|
+
|
|
49
|
+
## Information Density
|
|
50
|
+
|
|
51
|
+
Desktop gives you viewport. Use it.
|
|
52
|
+
|
|
53
|
+
- Rows in tables can be compact (28-36px height)
|
|
54
|
+
- Lists can show metadata inline rather than requiring drill-down
|
|
55
|
+
- Sidebars can display tree structures and nested navigation
|
|
56
|
+
- Multi-column layouts are expected, not unusual
|
|
57
|
+
- Secondary information can coexist with primary content rather than hiding behind tabs or disclosure
|
|
58
|
+
|
|
59
|
+
Dense does not mean cluttered. Group related information, maintain consistent spacing, and use borders or subtle surface differences to separate regions.
|
|
60
|
+
|
|
61
|
+
## Context Menus and Direct Manipulation
|
|
62
|
+
|
|
63
|
+
- Right-click / context menu on actionable items (files, list rows, selections)
|
|
64
|
+
- Drag and drop for reordering, moving between panes, and file operations
|
|
65
|
+
- Double-click to open/edit where semantically appropriate
|
|
66
|
+
- Multi-select with Cmd+click and Shift+click in lists and tables
|
|
67
|
+
- Inline editing where it reduces friction (rename, quick value changes)
|
|
68
|
+
|
|
69
|
+
## Typography for Desktop
|
|
70
|
+
|
|
71
|
+
- For native macOS: SF Pro is often the correct choice for body text, labels, and dense data UI. It integrates with system rendering, supports Dynamic Type, and matches platform expectations.
|
|
72
|
+
- Reserve custom/characterful fonts for headings, branding, hero sections, or marketing surfaces within the app.
|
|
73
|
+
- Dense UI text can go smaller than mobile (13px body is comfortable on desktop, 11-12px for metadata).
|
|
74
|
+
- Use font weight variation (regular, medium, semibold) to create hierarchy within dense layouts rather than relying solely on size changes.
|
|
75
|
+
|
|
76
|
+
## Desktop-Specific Motion
|
|
77
|
+
|
|
78
|
+
- Sidebar reveal/collapse with smooth transitions
|
|
79
|
+
- Panel resize animations
|
|
80
|
+
- List item reorder with spring physics
|
|
81
|
+
- Sheet/dialog presentation with subtle scale or slide
|
|
82
|
+
- Avoid heavy page-level transitions -- desktop navigation should feel instant
|
|
83
|
+
- Respect system `prefers-reduced-motion`
|
|
84
|
+
|
|
85
|
+
For native macOS: use spring-style animation curves that match system behavior. Avoid web-style easing functions that feel foreign on the platform.
|
|
86
|
+
|
|
87
|
+
## macOS Native Considerations
|
|
88
|
+
|
|
89
|
+
When building for macOS specifically:
|
|
90
|
+
|
|
91
|
+
- Respect the traffic light window controls (close/minimize/fullscreen)
|
|
92
|
+
- Support full-screen mode gracefully
|
|
93
|
+
- Toolbar items should be appropriately sized and spaced for mouse precision
|
|
94
|
+
- Preferences/Settings should use the standard Cmd+comma shortcut
|
|
95
|
+
- Menu bar integration where appropriate
|
|
96
|
+
- NSToolbar patterns for native toolbar behavior
|
|
97
|
+
- Sidebar selection states should match system conventions (highlight color, rounded selection)
|
|
98
|
+
- Vibrancy and translucency are valid atmospheric tools on macOS -- use sparingly and purposefully
|
|
99
|
+
|
|
100
|
+
## Desktop Anti-Patterns
|
|
101
|
+
|
|
102
|
+
- Mobile-width content centered in a wide window with empty gutters
|
|
103
|
+
- Oversized touch-target buttons that waste space
|
|
104
|
+
- Single-column layouts that ignore available horizontal space
|
|
105
|
+
- Navigation patterns that require many clicks to access parallel information
|
|
106
|
+
- Hiding commonly-used actions behind hamburger menus
|
|
107
|
+
- Ignoring keyboard navigation entirely
|
|
108
|
+
- Modals that block all other interaction when a panel or inspector would serve better
|
|
109
|
+
- Toast notifications that stack up and obscure content
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
# Web Platform Reference
|
|
2
|
+
|
|
3
|
+
Read this alongside the core design.md when building web apps, websites, landing pages, dashboards, or any browser-rendered interface.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Web Interaction Model
|
|
8
|
+
|
|
9
|
+
Web is the most flexible platform. That flexibility must still feel intentional.
|
|
10
|
+
|
|
11
|
+
Design for:
|
|
12
|
+
- Responsive layout across breakpoints (mobile-first or desktop-first, but tested at both extremes)
|
|
13
|
+
- Semantic HTML (`<nav>`, `<main>`, `<section>`, `<article>`, proper heading hierarchy)
|
|
14
|
+
- Clear link vs. button distinction (links navigate, buttons act)
|
|
15
|
+
- Keyboard navigation and focus management
|
|
16
|
+
- Screen reader compatibility via semantic structure and ARIA where needed
|
|
17
|
+
- Efficient loading and progressive rendering
|
|
18
|
+
|
|
19
|
+
## Layout and Responsiveness
|
|
20
|
+
|
|
21
|
+
Web layouts must adapt gracefully across viewport sizes.
|
|
22
|
+
|
|
23
|
+
- Use flexible grids and content reflow -- not just stacking at breakpoints
|
|
24
|
+
- Define at least 3 breakpoints: compact (~375-640px), medium (~641-1024px), wide (~1025px+)
|
|
25
|
+
- Content should remain readable and scannable at every width
|
|
26
|
+
- Navigation should collapse or adapt rather than disappear
|
|
27
|
+
- Avoid horizontal scroll on content unless it serves a specific UX pattern (e.g., carousel, data table)
|
|
28
|
+
|
|
29
|
+
Do not make the web feel like a blown-up phone app. Desktop web should use horizontal space purposefully -- multi-column content, sidebars, split views where appropriate.
|
|
30
|
+
|
|
31
|
+
## Scroll Rhythm and Reading Flow
|
|
32
|
+
|
|
33
|
+
Web is a scrolling medium. Use that well.
|
|
34
|
+
|
|
35
|
+
- Structure content into clear visual sections with distinct rhythm
|
|
36
|
+
- Use scroll-triggered reveals and staggered entrances for editorial or marketing pages
|
|
37
|
+
- Keep utility/app-shell pages focused -- not everything needs scroll animation
|
|
38
|
+
- Anchor navigation or sticky headers for long-form content
|
|
39
|
+
- Manage scroll position on navigation and state changes
|
|
40
|
+
|
|
41
|
+
## Forms and Validation
|
|
42
|
+
|
|
43
|
+
Forms are one of the most common web patterns and one of the most neglected by AI-generated UI.
|
|
44
|
+
|
|
45
|
+
- Inline validation with specific, helpful error messages
|
|
46
|
+
- Clear visual distinction between valid, invalid, focused, and disabled states
|
|
47
|
+
- Logical tab order
|
|
48
|
+
- Submit button states: default, loading/submitting, disabled, success
|
|
49
|
+
- Accessible labels -- never rely on placeholder text alone as label
|
|
50
|
+
- Group related fields logically
|
|
51
|
+
- Support for keyboard submission (Enter key)
|
|
52
|
+
|
|
53
|
+
## Browser Behavior
|
|
54
|
+
|
|
55
|
+
Respect the browser as a platform:
|
|
56
|
+
- URLs should be meaningful and shareable where applicable
|
|
57
|
+
- Back/forward navigation should work predictably
|
|
58
|
+
- Opening in new tab should work for links
|
|
59
|
+
- Loading states should account for network latency
|
|
60
|
+
- Error states should offer recovery, not dead ends
|
|
61
|
+
- Favor progressive enhancement -- core functionality should survive missing JS where possible
|
|
62
|
+
|
|
63
|
+
## Web Visual Freedom
|
|
64
|
+
|
|
65
|
+
Web has creative latitude that native platforms constrain. Use it.
|
|
66
|
+
|
|
67
|
+
Web is well-suited for:
|
|
68
|
+
- Rich page composition and editorial storytelling
|
|
69
|
+
- Scroll-triggered structure and parallax (when purposeful)
|
|
70
|
+
- Custom cursors and hover effects
|
|
71
|
+
- Experimental typography and layout
|
|
72
|
+
- Full-bleed hero sections and atmospheric backgrounds
|
|
73
|
+
- Dashboard shells with flexible panel arrangements
|
|
74
|
+
- Marketing-to-app transitions on landing pages
|
|
75
|
+
|
|
76
|
+
This freedom does not override the priority order in design.md. Clarity and hierarchy still come first.
|
|
77
|
+
|
|
78
|
+
## Web-Specific Motion
|
|
79
|
+
|
|
80
|
+
- CSS transitions and animations preferred for performance
|
|
81
|
+
- Use Motion library for React when orchestration complexity justifies it
|
|
82
|
+
- Intersection Observer for scroll-triggered reveals
|
|
83
|
+
- Hover states should provide meaningful feedback, not just decoration
|
|
84
|
+
- Page transitions: keep fast for utility, allow cinematic for editorial/marketing
|
|
85
|
+
- Always include `prefers-reduced-motion` fallback
|
|
86
|
+
|
|
87
|
+
## Web Typography
|
|
88
|
+
|
|
89
|
+
- Import fonts from Google Fonts via `<link>` or `@import`
|
|
90
|
+
- Choose fonts that balance character with web performance (WOFF2, font-display: swap)
|
|
91
|
+
- Body text should be highly readable at all viewport sizes (16px minimum on mobile)
|
|
92
|
+
- Use clamp() or responsive type scales for fluid sizing
|
|
93
|
+
- Pair a distinctive display font with a refined, readable body font
|
|
94
|
+
- Do not default to the same web font every time -- the font should fit the product's tone
|
|
95
|
+
|
|
96
|
+
## Web Anti-Patterns
|
|
97
|
+
|
|
98
|
+
- Single-column phone-width layouts filling a 1440px screen
|
|
99
|
+
- Hover-only interactions with no touch/keyboard fallback
|
|
100
|
+
- Infinite scroll with no way to reach footer content
|
|
101
|
+
- Forms with no validation states
|
|
102
|
+
- Links that look like buttons and buttons that look like links
|
|
103
|
+
- Loading an entire SPA shell before showing any content
|
|
104
|
+
- Full-page overlays that break browser navigation
|
package/src/skill/reference.md
CHANGED
|
@@ -328,6 +328,20 @@ claudestory setup-skill
|
|
|
328
328
|
- **claudestory_lesson_reinforce** (id) — Reinforce lesson — increment count and update lastValidated
|
|
329
329
|
- **claudestory_selftest** — Integration smoke test — create/update/delete cycle
|
|
330
330
|
|
|
331
|
+
## /story design
|
|
332
|
+
|
|
333
|
+
Evaluate frontend code against platform-specific design best practices.
|
|
334
|
+
|
|
335
|
+
```
|
|
336
|
+
/story design # Auto-detect platform, evaluate frontend
|
|
337
|
+
/story design web # Evaluate against web best practices
|
|
338
|
+
/story design ios # Evaluate against iOS HIG
|
|
339
|
+
/story design macos # Evaluate against macOS HIG
|
|
340
|
+
/story design android # Evaluate against Material Design
|
|
341
|
+
```
|
|
342
|
+
|
|
343
|
+
Creates issues automatically when claudestory MCP tools or CLI are available. Checks for existing design issues to avoid duplicates on repeated runs. Outputs markdown checklist as fallback when neither MCP nor CLI is available.
|
|
344
|
+
|
|
331
345
|
## Common Workflows
|
|
332
346
|
|
|
333
347
|
### Session Start
|
package/src/skill/setup-flow.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
This file is referenced from SKILL.md when no `.story/` directory exists but project indicators are present. SKILL.md has already determined that setup is needed before routing here.
|
|
4
4
|
|
|
5
|
+
**Skill command name:** When this file references `/story` in user-facing output, use the actual command that invoked you (e.g., `/story` for standalone install, `/story:go` for plugin install). Same for `/story auto` -- use `/story:go auto` if invoked as a plugin.
|
|
6
|
+
|
|
5
7
|
**If arriving from Step 2b (scaffold detection):** The project already has an empty `.story/` scaffold but no tickets. Skip 1a and start at **1b. Existing Project -- Analyze**.
|
|
6
8
|
|
|
7
9
|
## Design Rules
|
|
@@ -568,6 +570,12 @@ Present a brief completion message and tell the user how to start:
|
|
|
568
570
|
|
|
569
571
|
Keep it to 2-3 sentences. The system teaches itself through use -- `/story` loads context, shows status, and suggests next work. No need for a manual.
|
|
570
572
|
|
|
573
|
+
**Design evaluation hint** (show only when project surface is Web app, Mobile app, or Desktop app):
|
|
574
|
+
|
|
575
|
+
Add one more line after the completion message: "Tip: Run `/story design` anytime to evaluate your frontend against [detected platform] best practices and generate improvement issues."
|
|
576
|
+
|
|
577
|
+
Note: Use the actual command that invoked this flow (e.g., `/story design` for standalone, `/story:go design` for plugin).
|
|
578
|
+
|
|
571
579
|
---
|
|
572
580
|
|
|
573
581
|
## Appendix: Default Stack Recommendations
|