MertCapkin-GraphCraft 0.1.1__tar.gz
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.
- mertcapkin_graphcraft-0.1.1/LICENSE +21 -0
- mertcapkin_graphcraft-0.1.1/MANIFEST.in +2 -0
- mertcapkin_graphcraft-0.1.1/PKG-INFO +237 -0
- mertcapkin_graphcraft-0.1.1/README.md +207 -0
- mertcapkin_graphcraft-0.1.1/pyproject.toml +62 -0
- mertcapkin_graphcraft-0.1.1/scripts/MertCapkin_GraphCraft.egg-info/PKG-INFO +237 -0
- mertcapkin_graphcraft-0.1.1/scripts/MertCapkin_GraphCraft.egg-info/SOURCES.txt +53 -0
- mertcapkin_graphcraft-0.1.1/scripts/MertCapkin_GraphCraft.egg-info/dependency_links.txt +1 -0
- mertcapkin_graphcraft-0.1.1/scripts/MertCapkin_GraphCraft.egg-info/entry_points.txt +2 -0
- mertcapkin_graphcraft-0.1.1/scripts/MertCapkin_GraphCraft.egg-info/requires.txt +13 -0
- mertcapkin_graphcraft-0.1.1/scripts/MertCapkin_GraphCraft.egg-info/top_level.txt +1 -0
- mertcapkin_graphcraft-0.1.1/scripts/graphcraft/__init__.py +8 -0
- mertcapkin_graphcraft-0.1.1/scripts/graphcraft/__main__.py +4 -0
- mertcapkin_graphcraft-0.1.1/scripts/graphcraft/assets/.cursor/commands/graphcraft.md +24 -0
- mertcapkin_graphcraft-0.1.1/scripts/graphcraft/assets/.cursor/rules/graphcraft.mdc +106 -0
- mertcapkin_graphcraft-0.1.1/scripts/graphcraft/assets/.cursor/skills/design-strategist/DESIGN_STRATEGIST.md +23 -0
- mertcapkin_graphcraft-0.1.1/scripts/graphcraft/assets/.cursor/skills/designer/DESIGNER.md +26 -0
- mertcapkin_graphcraft-0.1.1/scripts/graphcraft/assets/.cursor/skills/mobile-app/MOBILE_APP.md +15 -0
- mertcapkin_graphcraft-0.1.1/scripts/graphcraft/assets/.cursor/skills/mobile-game/MOBILE_GAME.md +19 -0
- mertcapkin_graphcraft-0.1.1/scripts/graphcraft/assets/.cursor/skills/stitch-import/STITCH_IMPORT.md +25 -0
- mertcapkin_graphcraft-0.1.1/scripts/graphcraft/assets/.cursor/skills/visual-review/VISUAL_REVIEW.md +20 -0
- mertcapkin_graphcraft-0.1.1/scripts/graphcraft/assets/.graphcraft-assets-version +1 -0
- mertcapkin_graphcraft-0.1.1/scripts/graphcraft/assets/.stitch/metadata.template.json +20 -0
- mertcapkin_graphcraft-0.1.1/scripts/graphcraft/assets/design/screens/login.example.yaml +14 -0
- mertcapkin_graphcraft-0.1.1/scripts/graphcraft/assets/design-system/components/button.example.yaml +20 -0
- mertcapkin_graphcraft-0.1.1/scripts/graphcraft/assets/design-system/tokens.base.json +27 -0
- mertcapkin_graphcraft-0.1.1/scripts/graphcraft/assets/design-system/tokens.json +27 -0
- mertcapkin_graphcraft-0.1.1/scripts/graphcraft/assets/graphcraft.config.yaml +47 -0
- mertcapkin_graphcraft-0.1.1/scripts/graphcraft/assets/handoff/AESTHETIC_BRIEF.md +52 -0
- mertcapkin_graphcraft-0.1.1/scripts/graphcraft/assets/handoff/DESIGN_BRIEF.md +47 -0
- mertcapkin_graphcraft-0.1.1/scripts/graphcraft/assets/orchestrator/GRAPHCRAFT.md +87 -0
- mertcapkin_graphcraft-0.1.1/scripts/graphcraft/assets/packages/assets/README.md +22 -0
- mertcapkin_graphcraft-0.1.1/scripts/graphcraft/assets/packages/ui-core/README.md +23 -0
- mertcapkin_graphcraft-0.1.1/scripts/graphcraft/assets/packs/mobile-app/STACKS.md +28 -0
- mertcapkin_graphcraft-0.1.1/scripts/graphcraft/assets/packs/mobile-game/STACKS.md +30 -0
- mertcapkin_graphcraft-0.1.1/scripts/graphcraft/assets/packs/stitch/README.md +20 -0
- mertcapkin_graphcraft-0.1.1/scripts/graphcraft/assets/packs/styles/minimal-dark/style.yaml +18 -0
- mertcapkin_graphcraft-0.1.1/scripts/graphcraft/bootstrap.py +68 -0
- mertcapkin_graphcraft-0.1.1/scripts/graphcraft/cli.py +63 -0
- mertcapkin_graphcraft-0.1.1/scripts/graphcraft/constants.py +21 -0
- mertcapkin_graphcraft-0.1.1/scripts/graphcraft/design_graph/__init__.py +1 -0
- mertcapkin_graphcraft-0.1.1/scripts/graphcraft/design_graph/builder.py +218 -0
- mertcapkin_graphcraft-0.1.1/scripts/graphcraft/design_graph/cli.py +83 -0
- mertcapkin_graphcraft-0.1.1/scripts/graphcraft/design_graph/harmony.py +47 -0
- mertcapkin_graphcraft-0.1.1/scripts/graphcraft/design_graph/query.py +81 -0
- mertcapkin_graphcraft-0.1.1/scripts/graphcraft/design_graph/report.py +36 -0
- mertcapkin_graphcraft-0.1.1/scripts/graphcraft/design_graph/schema.py +69 -0
- mertcapkin_graphcraft-0.1.1/scripts/graphcraft/design_graph/stitch_adapter.py +83 -0
- mertcapkin_graphcraft-0.1.1/scripts/graphcraft/doctor.py +104 -0
- mertcapkin_graphcraft-0.1.1/scripts/graphcraft/init_cmd.py +78 -0
- mertcapkin_graphcraft-0.1.1/scripts/graphcraft/installer.py +204 -0
- mertcapkin_graphcraft-0.1.1/scripts/graphcraft/stitch/__init__.py +1 -0
- mertcapkin_graphcraft-0.1.1/scripts/graphcraft/stitch/cli.py +3 -0
- mertcapkin_graphcraft-0.1.1/scripts/graphcraft/stitch/import_cmd.py +68 -0
- mertcapkin_graphcraft-0.1.1/setup.cfg +4 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 GraphStack Contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: MertCapkin_GraphCraft
|
|
3
|
+
Version: 0.1.1
|
|
4
|
+
Summary: Mobile game/app design layer on GraphStack — design graph, style packs, aesthetic engine
|
|
5
|
+
Author: GraphCraft contributors
|
|
6
|
+
License: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/MertCapkin/GraphCraft
|
|
8
|
+
Project-URL: Repository, https://github.com/MertCapkin/GraphCraft
|
|
9
|
+
Project-URL: Documentation, https://github.com/MertCapkin/GraphCraft#readme
|
|
10
|
+
Keywords: graphcraft,graphstack,mobile,ui,design-system,cursor,ai
|
|
11
|
+
Classifier: Development Status :: 4 - Beta
|
|
12
|
+
Classifier: Environment :: Console
|
|
13
|
+
Classifier: Intended Audience :: Developers
|
|
14
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
15
|
+
Classifier: Programming Language :: Python :: 3
|
|
16
|
+
Classifier: Topic :: Software Development :: Build Tools
|
|
17
|
+
Requires-Python: >=3.8
|
|
18
|
+
Description-Content-Type: text/markdown
|
|
19
|
+
License-File: LICENSE
|
|
20
|
+
Requires-Dist: pyyaml>=6
|
|
21
|
+
Provides-Extra: graphstack
|
|
22
|
+
Requires-Dist: MertCapkin_GraphStack[graphify]<5,>=4.7; extra == "graphstack"
|
|
23
|
+
Provides-Extra: graphify
|
|
24
|
+
Requires-Dist: graphifyy<0.9,>=0.7; extra == "graphify"
|
|
25
|
+
Provides-Extra: dev
|
|
26
|
+
Requires-Dist: pytest>=7; extra == "dev"
|
|
27
|
+
Provides-Extra: full
|
|
28
|
+
Requires-Dist: MertCapkin_GraphCraft[dev,graphify,graphstack]; extra == "full"
|
|
29
|
+
Dynamic: license-file
|
|
30
|
+
|
|
31
|
+
<div align="center">
|
|
32
|
+
|
|
33
|
+
# GraphCraft 🎨📱
|
|
34
|
+
|
|
35
|
+
**Mobile game & app design layer on GraphStack.**
|
|
36
|
+
Design graph · style packs · aesthetic engine · Stitch import · wide mobile stack support.
|
|
37
|
+
|
|
38
|
+
[](LICENSE)
|
|
39
|
+
[](https://cursor.sh)
|
|
40
|
+
|
|
41
|
+
</div>
|
|
42
|
+
|
|
43
|
+
GraphCraft is the **product you install and use**. [GraphStack](https://github.com/MertCapkin/GraphStack) is a **dependency** that provides orchestration (cycle, gate, roles, code graph). GraphCraft adds the **design layer** without forking or patching GraphStack.
|
|
44
|
+
|
|
45
|
+
```
|
|
46
|
+
Graphify → code graph (graphify-out/)
|
|
47
|
+
GraphStack → orchestration (cycle, gate, roles) ← dependency
|
|
48
|
+
GraphCraft → design layer (graphcraft-out/, design-system/)
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
> **Important:** GraphCraft never modifies GraphStack source. Integration is **overlay-only**: extra rules, skills, `orchestrator/GRAPHCRAFT.md`, and `graphcraft` CLI. GraphStack files come from the `MertCapkin_GraphStack` package unchanged.
|
|
52
|
+
|
|
53
|
+
---
|
|
54
|
+
|
|
55
|
+
## Quick Start
|
|
56
|
+
|
|
57
|
+
**Requirements:** Python 3.8+, Git, [Cursor](https://cursor.sh)
|
|
58
|
+
|
|
59
|
+
### Install (PyPI — after v0.1.1 release)
|
|
60
|
+
|
|
61
|
+
```powershell
|
|
62
|
+
pip install "MertCapkin_GraphCraft[graphstack]"
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### Install (GitHub — works now)
|
|
66
|
+
|
|
67
|
+
```powershell
|
|
68
|
+
pip install "MertCapkin_GraphCraft[graphstack] @ git+https://github.com/MertCapkin/GraphCraft.git@v0.1.1"
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
GraphStack + Graphify install automatically via the `[graphstack]` extra from PyPI.
|
|
72
|
+
|
|
73
|
+
### 2. Initialize your project
|
|
74
|
+
|
|
75
|
+
Open your **app/game repo** in Cursor, then in terminal:
|
|
76
|
+
|
|
77
|
+
```powershell
|
|
78
|
+
graphcraft init . -y --install-deps
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
This runs **`graphstack init`** first (GraphStack overlay), then **`graphcraft install`** (GraphCraft overlay). Both rule sets load in Cursor automatically.
|
|
82
|
+
|
|
83
|
+
### 3. Build graphs
|
|
84
|
+
|
|
85
|
+
```powershell
|
|
86
|
+
graphcraft design update . # design graph
|
|
87
|
+
# In Cursor chat: /graphify . # code graph (or: graphstack graph update .)
|
|
88
|
+
graphcraft doctor .
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### 4. Start working
|
|
92
|
+
|
|
93
|
+
Describe your mobile app or game in Cursor chat. GraphCraft orchestrator activates first; GraphStack handles cycle/gate mechanics.
|
|
94
|
+
|
|
95
|
+
---
|
|
96
|
+
|
|
97
|
+
## Install from source (this repo — contributors)
|
|
98
|
+
|
|
99
|
+
```powershell
|
|
100
|
+
git clone https://github.com/MertCapkin/GraphCraft.git
|
|
101
|
+
cd GraphCraft
|
|
102
|
+
pip install -e ".[full]"
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
Initialize a **consumer project** (not this framework repo):
|
|
106
|
+
|
|
107
|
+
```powershell
|
|
108
|
+
cd C:\path\to\your-mobile-app
|
|
109
|
+
graphcraft init . -y --install-deps
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
See [docs/GRAPHSTACK.md](docs/GRAPHSTACK.md) for dependency details.
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
## What runs when you open a task?
|
|
117
|
+
|
|
118
|
+
GraphCraft uses an **overlay orchestrator** — GraphStack is not edited, but GraphCraft is not skipped.
|
|
119
|
+
|
|
120
|
+
| Step | What loads | Purpose |
|
|
121
|
+
|------|------------|---------|
|
|
122
|
+
| 1 | `.cursor/rules/graphcraft.mdc` | **Primary** greeting, design routing |
|
|
123
|
+
| 2 | `.cursor/rules/graphstack.mdc` | Cycle, gate, token discipline (unchanged) |
|
|
124
|
+
| 3 | `orchestrator/GRAPHCRAFT.md` | Design lifecycle extension |
|
|
125
|
+
| 4 | `orchestrator/ORCHESTRATOR.md` | GraphStack cycle mechanics |
|
|
126
|
+
| 5 | `graphcraft-out/DESIGN_REPORT.md` | Design graph summary |
|
|
127
|
+
| 6 | `graphify-out/GRAPH_REPORT.md` | Code graph summary |
|
|
128
|
+
|
|
129
|
+
### User request flow (UI/mobile task)
|
|
130
|
+
|
|
131
|
+
```
|
|
132
|
+
User goal in chat
|
|
133
|
+
→ [GRAPHCRAFT] greet + read design context
|
|
134
|
+
→ ARCHITECT (GraphStack cycle start + BRIEF.md)
|
|
135
|
+
→ DESIGN STRATEGIST (AESTHETIC_BRIEF.md) ← GraphCraft adds
|
|
136
|
+
→ DESIGNER (design graph, screens, tokens) ← GraphCraft adds
|
|
137
|
+
→ DESIGN AUDIT (validate + harmony) ← GraphCraft adds
|
|
138
|
+
→ BUILDER (GraphStack — requires brief + design ready)
|
|
139
|
+
→ VISUAL REVIEW ← GraphCraft adds
|
|
140
|
+
→ REVIEWER → QA → SHIP (GraphStack unchanged)
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
Pure backend tasks (no UI): GraphStack flow only — design phases skipped.
|
|
144
|
+
|
|
145
|
+
Full detail: [docs/FLOW.md](docs/FLOW.md) · [orchestrator/GRAPHCRAFT.md](orchestrator/GRAPHCRAFT.md)
|
|
146
|
+
|
|
147
|
+
---
|
|
148
|
+
|
|
149
|
+
## Commands
|
|
150
|
+
|
|
151
|
+
| Command | Layer | Purpose |
|
|
152
|
+
|---------|-------|---------|
|
|
153
|
+
| `graphcraft init .` | GraphCraft | GraphStack init + GraphCraft overlay |
|
|
154
|
+
| `graphcraft doctor .` | GraphCraft | Health check (both layers) |
|
|
155
|
+
| `graphcraft design update .` | GraphCraft | Build design graph |
|
|
156
|
+
| `graphcraft design query "screens"` | GraphCraft | Query design graph |
|
|
157
|
+
| `graphcraft design validate` | GraphCraft | Validate design graph |
|
|
158
|
+
| `graphcraft design harmony` | GraphCraft | Component harmony check |
|
|
159
|
+
| `graphcraft stitch import .` | GraphCraft | Import Stitch prototype |
|
|
160
|
+
| `python -m graphstack cycle start …` | GraphStack | Start dev cycle |
|
|
161
|
+
| `python -m graphstack graph query "…"` | GraphStack | Query code graph |
|
|
162
|
+
|
|
163
|
+
---
|
|
164
|
+
|
|
165
|
+
## Configuration
|
|
166
|
+
|
|
167
|
+
Edit `graphcraft.config.yaml`:
|
|
168
|
+
|
|
169
|
+
```yaml
|
|
170
|
+
profile: mobile-app # mobile-app | mobile-game
|
|
171
|
+
design_source: native # native | stitch | hybrid
|
|
172
|
+
active_stack: react-native # see packs/mobile-app/STACKS.md
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
---
|
|
176
|
+
|
|
177
|
+
## Mobile stacks
|
|
178
|
+
|
|
179
|
+
| Profile | Targets |
|
|
180
|
+
|---------|---------|
|
|
181
|
+
| **mobile-app** | React Native, Expo, Flutter, SwiftUI, Jetpack Compose, KMP, Ionic, Capacitor |
|
|
182
|
+
| **mobile-game** | Unity UGUI, Unity UI Toolkit, Godot, Unreal UMG, Defold, Cocos |
|
|
183
|
+
|
|
184
|
+
Pack docs: `packs/mobile-app/STACKS.md` · `packs/mobile-game/STACKS.md`
|
|
185
|
+
|
|
186
|
+
---
|
|
187
|
+
|
|
188
|
+
## Project layout (after init)
|
|
189
|
+
|
|
190
|
+
```
|
|
191
|
+
your-project/
|
|
192
|
+
├── graphcraft.config.yaml
|
|
193
|
+
├── design-system/ # tokens, components
|
|
194
|
+
├── design/screens/ # screen specs
|
|
195
|
+
├── graphcraft-out/ # design-graph.json
|
|
196
|
+
├── graphify-out/ # code graph (Graphify)
|
|
197
|
+
├── handoff/ # BRIEF, DESIGN_BRIEF, AESTHETIC_BRIEF
|
|
198
|
+
├── orchestrator/
|
|
199
|
+
│ ├── GRAPHCRAFT.md # GraphCraft extension
|
|
200
|
+
│ └── ORCHESTRATOR.md # GraphStack (from dependency)
|
|
201
|
+
├── .cursor/rules/
|
|
202
|
+
│ ├── graphcraft.mdc # GraphCraft overlay (primary)
|
|
203
|
+
│ └── graphstack.mdc # GraphStack (from dependency)
|
|
204
|
+
└── scripts/
|
|
205
|
+
├── graphcraft/ # GraphCraft CLI copy
|
|
206
|
+
└── graphstack/ # GraphStack CLI copy
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
---
|
|
210
|
+
|
|
211
|
+
## Design sources
|
|
212
|
+
|
|
213
|
+
| Mode | Use when |
|
|
214
|
+
|------|----------|
|
|
215
|
+
| `native` | YAML design-system + screens from scratch |
|
|
216
|
+
| `stitch` | Google [Stitch](https://stitch.withgoogle.com/) prototype import |
|
|
217
|
+
| `hybrid` | Stitch visual reference + native refinement |
|
|
218
|
+
|
|
219
|
+
---
|
|
220
|
+
|
|
221
|
+
## Documentation
|
|
222
|
+
|
|
223
|
+
| Doc | Content |
|
|
224
|
+
|-----|---------|
|
|
225
|
+
| [docs/GRAPHSTACK.md](docs/GRAPHSTACK.md) | GraphStack dependency — install, what it provides |
|
|
226
|
+
| [docs/FLOW.md](docs/FLOW.md) | Orchestrator overlay — who runs first |
|
|
227
|
+
| [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md) | Layer model — why GraphStack is untouched |
|
|
228
|
+
| [CHANGELOG_GRAPHCRAFT.md](CHANGELOG_GRAPHCRAFT.md) | GraphCraft releases |
|
|
229
|
+
| [docs/PYPI.md](docs/PYPI.md) | PyPI publish + install |
|
|
230
|
+
|
|
231
|
+
---
|
|
232
|
+
|
|
233
|
+
## License
|
|
234
|
+
|
|
235
|
+
MIT — see [LICENSE](LICENSE).
|
|
236
|
+
|
|
237
|
+
GraphStack is © its contributors, installed as a separate dependency under MIT.
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
|
|
3
|
+
# GraphCraft 🎨📱
|
|
4
|
+
|
|
5
|
+
**Mobile game & app design layer on GraphStack.**
|
|
6
|
+
Design graph · style packs · aesthetic engine · Stitch import · wide mobile stack support.
|
|
7
|
+
|
|
8
|
+
[](LICENSE)
|
|
9
|
+
[](https://cursor.sh)
|
|
10
|
+
|
|
11
|
+
</div>
|
|
12
|
+
|
|
13
|
+
GraphCraft is the **product you install and use**. [GraphStack](https://github.com/MertCapkin/GraphStack) is a **dependency** that provides orchestration (cycle, gate, roles, code graph). GraphCraft adds the **design layer** without forking or patching GraphStack.
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
Graphify → code graph (graphify-out/)
|
|
17
|
+
GraphStack → orchestration (cycle, gate, roles) ← dependency
|
|
18
|
+
GraphCraft → design layer (graphcraft-out/, design-system/)
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
> **Important:** GraphCraft never modifies GraphStack source. Integration is **overlay-only**: extra rules, skills, `orchestrator/GRAPHCRAFT.md`, and `graphcraft` CLI. GraphStack files come from the `MertCapkin_GraphStack` package unchanged.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## Quick Start
|
|
26
|
+
|
|
27
|
+
**Requirements:** Python 3.8+, Git, [Cursor](https://cursor.sh)
|
|
28
|
+
|
|
29
|
+
### Install (PyPI — after v0.1.1 release)
|
|
30
|
+
|
|
31
|
+
```powershell
|
|
32
|
+
pip install "MertCapkin_GraphCraft[graphstack]"
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Install (GitHub — works now)
|
|
36
|
+
|
|
37
|
+
```powershell
|
|
38
|
+
pip install "MertCapkin_GraphCraft[graphstack] @ git+https://github.com/MertCapkin/GraphCraft.git@v0.1.1"
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
GraphStack + Graphify install automatically via the `[graphstack]` extra from PyPI.
|
|
42
|
+
|
|
43
|
+
### 2. Initialize your project
|
|
44
|
+
|
|
45
|
+
Open your **app/game repo** in Cursor, then in terminal:
|
|
46
|
+
|
|
47
|
+
```powershell
|
|
48
|
+
graphcraft init . -y --install-deps
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
This runs **`graphstack init`** first (GraphStack overlay), then **`graphcraft install`** (GraphCraft overlay). Both rule sets load in Cursor automatically.
|
|
52
|
+
|
|
53
|
+
### 3. Build graphs
|
|
54
|
+
|
|
55
|
+
```powershell
|
|
56
|
+
graphcraft design update . # design graph
|
|
57
|
+
# In Cursor chat: /graphify . # code graph (or: graphstack graph update .)
|
|
58
|
+
graphcraft doctor .
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
### 4. Start working
|
|
62
|
+
|
|
63
|
+
Describe your mobile app or game in Cursor chat. GraphCraft orchestrator activates first; GraphStack handles cycle/gate mechanics.
|
|
64
|
+
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
## Install from source (this repo — contributors)
|
|
68
|
+
|
|
69
|
+
```powershell
|
|
70
|
+
git clone https://github.com/MertCapkin/GraphCraft.git
|
|
71
|
+
cd GraphCraft
|
|
72
|
+
pip install -e ".[full]"
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
Initialize a **consumer project** (not this framework repo):
|
|
76
|
+
|
|
77
|
+
```powershell
|
|
78
|
+
cd C:\path\to\your-mobile-app
|
|
79
|
+
graphcraft init . -y --install-deps
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
See [docs/GRAPHSTACK.md](docs/GRAPHSTACK.md) for dependency details.
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
## What runs when you open a task?
|
|
87
|
+
|
|
88
|
+
GraphCraft uses an **overlay orchestrator** — GraphStack is not edited, but GraphCraft is not skipped.
|
|
89
|
+
|
|
90
|
+
| Step | What loads | Purpose |
|
|
91
|
+
|------|------------|---------|
|
|
92
|
+
| 1 | `.cursor/rules/graphcraft.mdc` | **Primary** greeting, design routing |
|
|
93
|
+
| 2 | `.cursor/rules/graphstack.mdc` | Cycle, gate, token discipline (unchanged) |
|
|
94
|
+
| 3 | `orchestrator/GRAPHCRAFT.md` | Design lifecycle extension |
|
|
95
|
+
| 4 | `orchestrator/ORCHESTRATOR.md` | GraphStack cycle mechanics |
|
|
96
|
+
| 5 | `graphcraft-out/DESIGN_REPORT.md` | Design graph summary |
|
|
97
|
+
| 6 | `graphify-out/GRAPH_REPORT.md` | Code graph summary |
|
|
98
|
+
|
|
99
|
+
### User request flow (UI/mobile task)
|
|
100
|
+
|
|
101
|
+
```
|
|
102
|
+
User goal in chat
|
|
103
|
+
→ [GRAPHCRAFT] greet + read design context
|
|
104
|
+
→ ARCHITECT (GraphStack cycle start + BRIEF.md)
|
|
105
|
+
→ DESIGN STRATEGIST (AESTHETIC_BRIEF.md) ← GraphCraft adds
|
|
106
|
+
→ DESIGNER (design graph, screens, tokens) ← GraphCraft adds
|
|
107
|
+
→ DESIGN AUDIT (validate + harmony) ← GraphCraft adds
|
|
108
|
+
→ BUILDER (GraphStack — requires brief + design ready)
|
|
109
|
+
→ VISUAL REVIEW ← GraphCraft adds
|
|
110
|
+
→ REVIEWER → QA → SHIP (GraphStack unchanged)
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
Pure backend tasks (no UI): GraphStack flow only — design phases skipped.
|
|
114
|
+
|
|
115
|
+
Full detail: [docs/FLOW.md](docs/FLOW.md) · [orchestrator/GRAPHCRAFT.md](orchestrator/GRAPHCRAFT.md)
|
|
116
|
+
|
|
117
|
+
---
|
|
118
|
+
|
|
119
|
+
## Commands
|
|
120
|
+
|
|
121
|
+
| Command | Layer | Purpose |
|
|
122
|
+
|---------|-------|---------|
|
|
123
|
+
| `graphcraft init .` | GraphCraft | GraphStack init + GraphCraft overlay |
|
|
124
|
+
| `graphcraft doctor .` | GraphCraft | Health check (both layers) |
|
|
125
|
+
| `graphcraft design update .` | GraphCraft | Build design graph |
|
|
126
|
+
| `graphcraft design query "screens"` | GraphCraft | Query design graph |
|
|
127
|
+
| `graphcraft design validate` | GraphCraft | Validate design graph |
|
|
128
|
+
| `graphcraft design harmony` | GraphCraft | Component harmony check |
|
|
129
|
+
| `graphcraft stitch import .` | GraphCraft | Import Stitch prototype |
|
|
130
|
+
| `python -m graphstack cycle start …` | GraphStack | Start dev cycle |
|
|
131
|
+
| `python -m graphstack graph query "…"` | GraphStack | Query code graph |
|
|
132
|
+
|
|
133
|
+
---
|
|
134
|
+
|
|
135
|
+
## Configuration
|
|
136
|
+
|
|
137
|
+
Edit `graphcraft.config.yaml`:
|
|
138
|
+
|
|
139
|
+
```yaml
|
|
140
|
+
profile: mobile-app # mobile-app | mobile-game
|
|
141
|
+
design_source: native # native | stitch | hybrid
|
|
142
|
+
active_stack: react-native # see packs/mobile-app/STACKS.md
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
---
|
|
146
|
+
|
|
147
|
+
## Mobile stacks
|
|
148
|
+
|
|
149
|
+
| Profile | Targets |
|
|
150
|
+
|---------|---------|
|
|
151
|
+
| **mobile-app** | React Native, Expo, Flutter, SwiftUI, Jetpack Compose, KMP, Ionic, Capacitor |
|
|
152
|
+
| **mobile-game** | Unity UGUI, Unity UI Toolkit, Godot, Unreal UMG, Defold, Cocos |
|
|
153
|
+
|
|
154
|
+
Pack docs: `packs/mobile-app/STACKS.md` · `packs/mobile-game/STACKS.md`
|
|
155
|
+
|
|
156
|
+
---
|
|
157
|
+
|
|
158
|
+
## Project layout (after init)
|
|
159
|
+
|
|
160
|
+
```
|
|
161
|
+
your-project/
|
|
162
|
+
├── graphcraft.config.yaml
|
|
163
|
+
├── design-system/ # tokens, components
|
|
164
|
+
├── design/screens/ # screen specs
|
|
165
|
+
├── graphcraft-out/ # design-graph.json
|
|
166
|
+
├── graphify-out/ # code graph (Graphify)
|
|
167
|
+
├── handoff/ # BRIEF, DESIGN_BRIEF, AESTHETIC_BRIEF
|
|
168
|
+
├── orchestrator/
|
|
169
|
+
│ ├── GRAPHCRAFT.md # GraphCraft extension
|
|
170
|
+
│ └── ORCHESTRATOR.md # GraphStack (from dependency)
|
|
171
|
+
├── .cursor/rules/
|
|
172
|
+
│ ├── graphcraft.mdc # GraphCraft overlay (primary)
|
|
173
|
+
│ └── graphstack.mdc # GraphStack (from dependency)
|
|
174
|
+
└── scripts/
|
|
175
|
+
├── graphcraft/ # GraphCraft CLI copy
|
|
176
|
+
└── graphstack/ # GraphStack CLI copy
|
|
177
|
+
```
|
|
178
|
+
|
|
179
|
+
---
|
|
180
|
+
|
|
181
|
+
## Design sources
|
|
182
|
+
|
|
183
|
+
| Mode | Use when |
|
|
184
|
+
|------|----------|
|
|
185
|
+
| `native` | YAML design-system + screens from scratch |
|
|
186
|
+
| `stitch` | Google [Stitch](https://stitch.withgoogle.com/) prototype import |
|
|
187
|
+
| `hybrid` | Stitch visual reference + native refinement |
|
|
188
|
+
|
|
189
|
+
---
|
|
190
|
+
|
|
191
|
+
## Documentation
|
|
192
|
+
|
|
193
|
+
| Doc | Content |
|
|
194
|
+
|-----|---------|
|
|
195
|
+
| [docs/GRAPHSTACK.md](docs/GRAPHSTACK.md) | GraphStack dependency — install, what it provides |
|
|
196
|
+
| [docs/FLOW.md](docs/FLOW.md) | Orchestrator overlay — who runs first |
|
|
197
|
+
| [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md) | Layer model — why GraphStack is untouched |
|
|
198
|
+
| [CHANGELOG_GRAPHCRAFT.md](CHANGELOG_GRAPHCRAFT.md) | GraphCraft releases |
|
|
199
|
+
| [docs/PYPI.md](docs/PYPI.md) | PyPI publish + install |
|
|
200
|
+
|
|
201
|
+
---
|
|
202
|
+
|
|
203
|
+
## License
|
|
204
|
+
|
|
205
|
+
MIT — see [LICENSE](LICENSE).
|
|
206
|
+
|
|
207
|
+
GraphStack is © its contributors, installed as a separate dependency under MIT.
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=61", "wheel"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "MertCapkin_GraphCraft"
|
|
7
|
+
version = "0.1.1"
|
|
8
|
+
description = "Mobile game/app design layer on GraphStack — design graph, style packs, aesthetic engine"
|
|
9
|
+
readme = "README.md"
|
|
10
|
+
license = { text = "MIT" }
|
|
11
|
+
requires-python = ">=3.8"
|
|
12
|
+
authors = [{ name = "GraphCraft contributors" }]
|
|
13
|
+
keywords = ["graphcraft", "graphstack", "mobile", "ui", "design-system", "cursor", "ai"]
|
|
14
|
+
classifiers = [
|
|
15
|
+
"Development Status :: 4 - Beta",
|
|
16
|
+
"Environment :: Console",
|
|
17
|
+
"Intended Audience :: Developers",
|
|
18
|
+
"License :: OSI Approved :: MIT License",
|
|
19
|
+
"Programming Language :: Python :: 3",
|
|
20
|
+
"Topic :: Software Development :: Build Tools",
|
|
21
|
+
]
|
|
22
|
+
dependencies = ["pyyaml>=6"]
|
|
23
|
+
|
|
24
|
+
[project.optional-dependencies]
|
|
25
|
+
graphstack = ["MertCapkin_GraphStack[graphify]>=4.7,<5"]
|
|
26
|
+
graphify = ["graphifyy>=0.7,<0.9"]
|
|
27
|
+
dev = ["pytest>=7"]
|
|
28
|
+
full = ["MertCapkin_GraphCraft[graphstack,graphify,dev]"]
|
|
29
|
+
|
|
30
|
+
[project.urls]
|
|
31
|
+
Homepage = "https://github.com/MertCapkin/GraphCraft"
|
|
32
|
+
Repository = "https://github.com/MertCapkin/GraphCraft"
|
|
33
|
+
Documentation = "https://github.com/MertCapkin/GraphCraft#readme"
|
|
34
|
+
|
|
35
|
+
[project.scripts]
|
|
36
|
+
graphcraft = "graphcraft.cli:main"
|
|
37
|
+
|
|
38
|
+
[tool.setuptools.packages.find]
|
|
39
|
+
where = ["scripts"]
|
|
40
|
+
include = ["graphcraft*"]
|
|
41
|
+
exclude = ["graphcraft.tests*"]
|
|
42
|
+
|
|
43
|
+
[tool.setuptools]
|
|
44
|
+
include-package-data = true
|
|
45
|
+
|
|
46
|
+
[tool.setuptools.package-data]
|
|
47
|
+
graphcraft = [
|
|
48
|
+
"assets/.cursor/rules/graphcraft.mdc",
|
|
49
|
+
"assets/.cursor/commands/graphcraft.md",
|
|
50
|
+
"assets/.cursor/skills/designer/DESIGNER.md",
|
|
51
|
+
"assets/.cursor/skills/design-strategist/DESIGN_STRATEGIST.md",
|
|
52
|
+
"assets/.cursor/skills/stitch-import/STITCH_IMPORT.md",
|
|
53
|
+
"assets/.cursor/skills/visual-review/VISUAL_REVIEW.md",
|
|
54
|
+
"assets/.cursor/skills/mobile-app/MOBILE_APP.md",
|
|
55
|
+
"assets/.cursor/skills/mobile-game/MOBILE_GAME.md",
|
|
56
|
+
"assets/.graphcraft-assets-version",
|
|
57
|
+
"assets/**/*",
|
|
58
|
+
]
|
|
59
|
+
|
|
60
|
+
[tool.pytest.ini_options]
|
|
61
|
+
testpaths = ["scripts/graphstack/tests", "scripts/graphcraft/tests"]
|
|
62
|
+
pythonpath = ["scripts"]
|