@withmata/blueprints 0.2.0

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.
Files changed (77) hide show
  1. package/.claude/commands/audit.md +179 -0
  2. package/.claude/commands/discover.md +92 -0
  3. package/.claude/commands/new-blueprint.md +265 -0
  4. package/.claude/commands/new-project.md +230 -0
  5. package/.claude/commands/scaffold-auth.md +310 -0
  6. package/.claude/commands/scaffold-db.md +270 -0
  7. package/.claude/commands/scaffold-foundation.md +158 -0
  8. package/.cursor/commands/audit.md +179 -0
  9. package/.cursor/commands/discover.md +92 -0
  10. package/.cursor/commands/new-blueprint.md +265 -0
  11. package/.cursor/commands/new-project.md +230 -0
  12. package/.cursor/commands/scaffold-auth.md +310 -0
  13. package/.cursor/commands/scaffold-db.md +270 -0
  14. package/.cursor/commands/scaffold-foundation.md +158 -0
  15. package/.opencode/commands/audit.md +183 -0
  16. package/.opencode/commands/discover.md +96 -0
  17. package/.opencode/commands/new-blueprint.md +269 -0
  18. package/.opencode/commands/new-project.md +234 -0
  19. package/.opencode/commands/scaffold-auth.md +314 -0
  20. package/.opencode/commands/scaffold-db.md +274 -0
  21. package/.opencode/commands/scaffold-foundation.md +162 -0
  22. package/ENGINEERING.md +47 -0
  23. package/blueprints/discovery/product-discovery/BLUEPRINT.md +361 -0
  24. package/blueprints/discovery/product-discovery/templates/archetype-template.md +143 -0
  25. package/blueprints/discovery/product-discovery/templates/product-brief.md +65 -0
  26. package/blueprints/discovery/product-discovery/templates/product-thesis.md +64 -0
  27. package/blueprints/discovery/product-discovery/templates/research-summary.md +43 -0
  28. package/blueprints/features/auth-better-auth/BLUEPRINT.md +794 -0
  29. package/blueprints/features/auth-better-auth/files/client/auth-client.ts +31 -0
  30. package/blueprints/features/auth-better-auth/files/client/context/organization.ts +236 -0
  31. package/blueprints/features/auth-better-auth/files/client/hooks/use-create-organization.ts +45 -0
  32. package/blueprints/features/auth-better-auth/files/client/hooks/use-has-permission.ts +26 -0
  33. package/blueprints/features/auth-better-auth/files/client/hooks/use-organization.ts +64 -0
  34. package/blueprints/features/auth-better-auth/files/client/schema/auth.ts +21 -0
  35. package/blueprints/features/auth-better-auth/files/client/schema/organization.ts +51 -0
  36. package/blueprints/features/auth-better-auth/files/client/types/organization.ts +20 -0
  37. package/blueprints/features/auth-better-auth/files/db/auth-schema.ts +184 -0
  38. package/blueprints/features/auth-better-auth/files/db/drizzle.config.ts +21 -0
  39. package/blueprints/features/auth-better-auth/files/middleware/route-protection.ts +84 -0
  40. package/blueprints/features/auth-better-auth/files/server/auth-db.ts +18 -0
  41. package/blueprints/features/auth-better-auth/files/server/auth.ts +159 -0
  42. package/blueprints/features/auth-better-auth/files/server/env.ts +44 -0
  43. package/blueprints/features/auth-better-auth/files/server/middleware.ts +144 -0
  44. package/blueprints/features/db-drizzle-postgres/BLUEPRINT.md +596 -0
  45. package/blueprints/features/db-drizzle-postgres/files/db/drizzle.config.ts +18 -0
  46. package/blueprints/features/db-drizzle-postgres/files/db/env.example +3 -0
  47. package/blueprints/features/db-drizzle-postgres/files/db/package.json +33 -0
  48. package/blueprints/features/db-drizzle-postgres/files/db/src/client.ts +34 -0
  49. package/blueprints/features/db-drizzle-postgres/files/db/src/example-entity.ts +73 -0
  50. package/blueprints/features/db-drizzle-postgres/files/db/src/index.ts +8 -0
  51. package/blueprints/features/db-drizzle-postgres/files/db/src/scripts/seed.ts +50 -0
  52. package/blueprints/features/db-drizzle-postgres/files/db/tsconfig.json +13 -0
  53. package/blueprints/features/tailwind-v4/BLUEPRINT.md +29 -0
  54. package/blueprints/features/ui-shared-components/BLUEPRINT.md +35 -0
  55. package/blueprints/foundation/monorepo-turbo/BLUEPRINT.md +378 -0
  56. package/blueprints/foundation/monorepo-turbo/files/apps/web/app/globals.css +2 -0
  57. package/blueprints/foundation/monorepo-turbo/files/apps/web/app/layout.tsx +23 -0
  58. package/blueprints/foundation/monorepo-turbo/files/apps/web/app/page.tsx +7 -0
  59. package/blueprints/foundation/monorepo-turbo/files/apps/web/env.ts +13 -0
  60. package/blueprints/foundation/monorepo-turbo/files/apps/web/next.config.ts +12 -0
  61. package/blueprints/foundation/monorepo-turbo/files/apps/web/package.json +28 -0
  62. package/blueprints/foundation/monorepo-turbo/files/apps/web/postcss.config.mjs +5 -0
  63. package/blueprints/foundation/monorepo-turbo/files/apps/web/tsconfig.json +18 -0
  64. package/blueprints/foundation/monorepo-turbo/files/config/tailwind-config/package.json +14 -0
  65. package/blueprints/foundation/monorepo-turbo/files/config/tailwind-config/postcss.config.mjs +5 -0
  66. package/blueprints/foundation/monorepo-turbo/files/config/tailwind-config/shared-styles.css +88 -0
  67. package/blueprints/foundation/monorepo-turbo/files/config/typescript-config/base.json +19 -0
  68. package/blueprints/foundation/monorepo-turbo/files/config/typescript-config/nextjs.json +12 -0
  69. package/blueprints/foundation/monorepo-turbo/files/config/typescript-config/package.json +5 -0
  70. package/blueprints/foundation/monorepo-turbo/files/config/typescript-config/react-library.json +7 -0
  71. package/blueprints/foundation/monorepo-turbo/files/root/biome.json +46 -0
  72. package/blueprints/foundation/monorepo-turbo/files/root/gitignore +35 -0
  73. package/blueprints/foundation/monorepo-turbo/files/root/package.json +25 -0
  74. package/blueprints/foundation/monorepo-turbo/files/root/pnpm-workspace.yaml +5 -0
  75. package/blueprints/foundation/monorepo-turbo/files/root/turbo.json +30 -0
  76. package/dist/index.js +453 -0
  77. package/package.json +53 -0
@@ -0,0 +1,143 @@
1
+ # Customer Archetype: [Name]
2
+
3
+ > [One sentence that captures the essence of this archetype]
4
+
5
+ ## Their World
6
+
7
+ ### Where They Live & Work
8
+
9
+ [Paint a picture. Not just "San Francisco" but the texture of their environment.]
10
+
11
+ - **Geography**: [Cities/regions where they're concentrated. Be specific.]
12
+ - **Work Environment**: [Office? Remote? Co-working? What does their desk look like? What's open on their screen?]
13
+ - **Company Context**: [What kind of companies? What stage? What's the culture like?]
14
+
15
+ ### The Pressures They're Under
16
+
17
+ [What forces are shaping their daily reality? What keeps them up at night?]
18
+
19
+ - [Pressure 1 — be specific and visceral]
20
+ - [Pressure 2]
21
+ - [Pressure 3]
22
+
23
+ ### Their Culture & Community
24
+
25
+ [Who do they talk to? What do they read? What do they believe?]
26
+
27
+ - **Communities**: [Slack groups, subreddits, Twitter circles, conferences]
28
+ - **Influencers**: [Who do they trust? What blogs/podcasts do they follow?]
29
+ - **Shared Beliefs**: [What does this tribe believe about their craft?]
30
+
31
+ ### A Day in Their Life
32
+
33
+ [Walk through a typical day. Make it specific enough to visualize.]
34
+
35
+ ---
36
+
37
+ ## Their Relationship to the Problem
38
+
39
+ ### The Problem in Their Words
40
+
41
+ > "[A real quote that captures how they talk about this problem]"
42
+
43
+ ### What They're Trying to Achieve
44
+
45
+ [Not features. The underlying goal in their life/career.]
46
+
47
+ ### What They've Tried
48
+
49
+ [Tools, workarounds, hacks. What's in their current toolkit?]
50
+
51
+ | Solution Tried | What Worked | What Didn't |
52
+ |---------------|-------------|-------------|
53
+ | [Tool/approach] | [Benefit] | [Frustration] |
54
+
55
+ ### Why It's Not Working
56
+
57
+ [The gap. Why current solutions fail them.]
58
+
59
+ ### How They Make Decisions
60
+
61
+ [How do they evaluate and adopt new tools? Who's involved?]
62
+
63
+ - **Discovery**: [How do they find new solutions?]
64
+ - **Evaluation**: [What do they look for? How do they test?]
65
+ - **Adoption**: [Who needs to approve? What's the process?]
66
+
67
+ ---
68
+
69
+ ## How Our Product Fits Into Their World
70
+
71
+ ### The Core Value We Provide
72
+
73
+ [One sentence: What do we do for this archetype?]
74
+
75
+ ### What They Care About Most
76
+
77
+ [Rank the 3-4 things that matter most to this archetype, in order]
78
+
79
+ 1. **[Priority 1]** — [Why this matters to them]
80
+ 2. **[Priority 2]** — [Why this matters to them]
81
+ 3. **[Priority 3]** — [Why this matters to them]
82
+
83
+ ### How Our Product Metrics Translate to Their Value
84
+
85
+ | Our Metric | What It Means for Them |
86
+ |-----------|----------------------|
87
+ | [Product metric 1] | [Concrete value in their life] |
88
+ | [Product metric 2] | [Concrete value in their life] |
89
+ | [Product metric 3] | [Concrete value in their life] |
90
+
91
+ ### The Moment We Win Them
92
+
93
+ [What's the "aha moment"? When do they realize this is different?]
94
+
95
+ ---
96
+
97
+ ## Personas Within This Archetype
98
+
99
+ [These are the specific roles/variations within this archetype. They share the world above but differ in their position, decision-making power, and specific needs.]
100
+
101
+ ### Persona: [Role Name] — [First Name]
102
+
103
+ **The Role**: [One sentence describing their position]
104
+
105
+ | Attribute | Detail |
106
+ |-----------|--------|
107
+ | **Typical Title** | [Job title(s)] |
108
+ | **Age Range** | [Range] |
109
+ | **Experience** | [Years in role/industry] |
110
+ | **Decision Power** | [Buyer / Approver / User / Influencer] |
111
+ | **Budget Authority** | [What can they spend without approval?] |
112
+
113
+ **What Makes Them Different**:
114
+ [2-3 sentences on how this persona differs from others in the archetype]
115
+
116
+ **Their Specific JTBD**:
117
+ > When [specific situation for this role], I want to [action], so I can [outcome].
118
+
119
+ **What They Care About Most**:
120
+ - [Specific priority for this persona]
121
+ - [Specific priority for this persona]
122
+
123
+ **How the Product Creates Value for Them Specifically**:
124
+ - [Product goal/metric] -> [What it means for this person's life/job]
125
+ - [Product goal/metric] -> [What it means for this person's life/job]
126
+
127
+ **In Their Voice**:
128
+ > "[A quote that captures how this specific persona would describe their situation]"
129
+
130
+ ---
131
+
132
+ ### Persona: [Role Name] — [First Name]
133
+
134
+ [Repeat structure for each persona variation]
135
+
136
+ ---
137
+
138
+ ## Research Sources
139
+
140
+ [Where did this archetype understanding come from?]
141
+
142
+ - [Source 1 — interviews, forums, reviews, etc.]
143
+ - [Source 2]
@@ -0,0 +1,65 @@
1
+ # [Product Name] - Product Brief
2
+
3
+ > **Note**: This document contains supporting research and detailed analysis.
4
+ > For the distilled thesis, see `product-thesis.md`.
5
+
6
+ ## Market Context
7
+
8
+ ### Market Size (Directional)
9
+
10
+ [TAM/SAM/SOM if available, but explicitly labeled as estimates/assumptions]
11
+
12
+ **Note**: These are directional estimates based on [sources]. Actual market validation will come from customer conversations.
13
+
14
+ ### Market Trends
15
+
16
+ [What's changing that makes this the right time?]
17
+
18
+ ## Detailed Competitive Analysis
19
+
20
+ ### Competitor Deep Dives
21
+
22
+ [For each major competitor:]
23
+
24
+ **[Competitor Name]**
25
+ - **What they do**: [Description]
26
+ - **Pricing**: [Model and price points]
27
+ - **Strengths**: [What they do well]
28
+ - **Weaknesses**: [Where they fall short]
29
+ - **Customer sentiment**: [Summary of reviews/feedback]
30
+
31
+ ### Competitive Positioning Map
32
+
33
+ [Where do competitors sit? Where do we fit?]
34
+
35
+ ## Detailed Positioning
36
+
37
+ ### Positioning Statement
38
+
39
+ For [target user] who [need], [Product] is a [category] that [key benefit]. Unlike [competitors], we [key differentiator].
40
+
41
+ ### What We Are
42
+
43
+ [Detailed description of the product vision]
44
+
45
+ ### What We Are NOT
46
+
47
+ [Explicit boundaries — what we won't do]
48
+
49
+ ### Why Now?
50
+
51
+ [Market timing: What's changed that makes this possible/necessary now?]
52
+
53
+ ## Risks & Mitigations
54
+
55
+ | Risk | Likelihood | Impact | Mitigation |
56
+ |------|-----------|--------|------------|
57
+ | [Risk 1] | [H/M/L] | [H/M/L] | [Strategy] |
58
+
59
+ ## Open Questions
60
+
61
+ [Things that still need to be figured out]
62
+
63
+ ## Research Sources
64
+
65
+ [All links and sources referenced in research]
@@ -0,0 +1,64 @@
1
+ # [Product Name] - Product Thesis
2
+
3
+ ## Executive Summary
4
+
5
+ [2-3 sentences: What is this product and why does it matter?]
6
+
7
+ ## Problem Statement
8
+
9
+ [Clear articulation of the problem. Who has it, why it exists, what's at stake.]
10
+
11
+ ## Core Product Pillars
12
+
13
+ **The 3-5 essential things that make this product what it is:**
14
+
15
+ 1. **[Pillar 1]** — [One sentence explanation]
16
+ 2. **[Pillar 2]** — [One sentence explanation]
17
+ 3. **[Pillar 3]** — [One sentence explanation]
18
+
19
+ [Up to 5 max — force distillation]
20
+
21
+ ## Competitive Reality
22
+
23
+ ### Direct Competitors
24
+
25
+ | Competitor | What They Do | Key Weakness |
26
+ |------------|-------------|--------------|
27
+ | [Name] | [Brief description] | [Specific gap] |
28
+
29
+ ### What Customers Are Actually Saying
30
+
31
+ [Real quotes and complaints from reviews, forums, social media. This is the evidence that the gap exists.]
32
+
33
+ - **[Competitor]**: "[Actual quote]" — [Source]
34
+ - **[Competitor]**: "[Actual quote]" — [Source]
35
+
36
+ ### The Gap We're Filling
37
+
38
+ [1-2 sentences: What are competitors NOT solving that we will?]
39
+
40
+ ## Success Metrics
41
+
42
+ **How we'll know if the product is working:**
43
+
44
+ | Metric | Target | Why This Matters |
45
+ |--------|--------|-----------------|
46
+ | [Metric 1] | [Target] | [Rationale] |
47
+ | [Metric 2] | [Target] | [Rationale] |
48
+ | [Metric 3] | [Target] | [Rationale] |
49
+
50
+ [These are PRODUCT metrics only — not business/revenue metrics. Focus on: Does the product actually solve the problem?]
51
+
52
+ ## Target Users
53
+
54
+ [Brief description of primary user type(s). Link to detailed archetypes.]
55
+
56
+ See detailed archetypes: `users/archetype-[name].md`
57
+
58
+ ## Critical Assumptions
59
+
60
+ [3-5 bullets: What must be true for this to work? These are the things to validate first.]
61
+
62
+ ---
63
+
64
+ *Supporting research and detailed analysis: See `product-brief.md`*
@@ -0,0 +1,43 @@
1
+ # User Research Summary
2
+
3
+ ## Key Insights
4
+
5
+ | Insight | Evidence | Implication for Product |
6
+ |---------|----------|----------------------|
7
+ | [Pattern observed] | [Source/quote] | [What this means for what we build] |
8
+
9
+ ## User Quotes
10
+
11
+ [Direct quotes from forums, reviews, social media, interviews — organized by theme]
12
+
13
+ ### On [Problem/Theme 1]
14
+
15
+ - "[Quote]" — [Source]
16
+ - "[Quote]" — [Source]
17
+
18
+ ### On [Current Solutions]
19
+
20
+ - "[Quote]" — [Source]
21
+
22
+ ### On [What They Want]
23
+
24
+ - "[Quote]" — [Source]
25
+
26
+ ## Behavioral Patterns
27
+
28
+ [Consistent behaviors observed across research]
29
+
30
+ - [Pattern 1 — with evidence]
31
+ - [Pattern 2 — with evidence]
32
+
33
+ ## Open Questions
34
+
35
+ [What still needs validation through customer conversations?]
36
+
37
+ | Question | Why It Matters | How to Test |
38
+ |----------|---------------|-------------|
39
+ | [Question 1] | [Impact on product] | [Method] |
40
+
41
+ ## Research Sources
42
+
43
+ [All links and sources referenced]