Fix design-build output: use ./designs/ (per-project) instead of hardcoded path

This commit is contained in:
2026-06-27 12:37:31 +10:00
parent 8e531e506f
commit e2afe5862a

View File

@@ -77,10 +77,10 @@ Be specific in the agent prompt about what file to create. The agent should:
### Step 5: Save the output
Create an output directory and save:
Create an output directory in the current project and save:
```bash
mkdir -p /home/sam/chats/sys_config/docker/penpot_designs/<project-name>
mkdir -p ./designs/<project-name>
```
Write the generated code to `index.html` in that directory.
@@ -88,16 +88,16 @@ Write the generated code to `index.html` in that directory.
Also save a `README.md` with:
- The original design spec
- The DESIGN.md URL used
- How to preview: `cd <dir> && python3 -m http.server 3000`
- How to preview: `cd ./designs/<project-name> && python3 -m http.server 3000`
### Step 6: Show the result
Tell the user:
```
Code generated → /home/sam/chats/sys_config/docker/penpot_designs/<project>/index.html
Code generated → ./designs/<project>/index.html
To preview:
cd /home/sam/chats/sys_config/docker/penpot_designs/<project>/
cd ./designs/<project>/
python3 -m http.server 3000
→ Open http://localhost:3000
@@ -120,9 +120,9 @@ Same format as design-explore. See `~/.agents/skills/design-explore/SKILL.md` fo
## Output Location
All generated projects go to:
All generated projects go to the current working directory:
```
/home/sam/chats/sys_config/docker/penpot_designs/<project-name>/
./designs/<project-name>/
```
This keeps designs organized and previewable. Create the parent directory if it doesn't exist.
This keeps designs with the project — they can be rsync'd to servers, committed to git, or referenced by other tools. The parent `./designs/` directory is created if it doesn't exist.