commandby pchambless

PageConfig Generation

Installs: 0
Used in: 1 repos
Updated: 2d ago
$npx ai-builder add command pchambless/pageconfig

Installs to .claude/commands/pageconfig.md

---
description: "Generate pageConfig.json for WhatsFresh apps using database-driven architecture"
allowed-tools: ["Bash"]
---

# PageConfig Generation

Generate complete pageConfig.json and pageMermaid.mmd files for any app/page combination.

## Usage:
- `/pageconfig [app] [page]` - Generate pageConfig for specific app/page
- `/pageconfig` - Generate for current context (uses context_store app/page values)

## Implementation:

```bash
if [ -n "$1" ] && [ -n "$2" ]; then
  echo "šŸ—ļø Generating pageConfig for app: $1, page: $2"
  curl -s "http://localhost:3001/api/studio/genPageConfig?app=$1&page=$2"
else
  echo "šŸ—ļø Generating pageConfig using current context..."
  curl -s "http://localhost:3001/api/studio/genPageConfig"
fi

echo "\nšŸ“ Files created in: /apps/wf-studio/src/apps/[app]/[page]/"
echo "   - pageConfig.json"
echo "   - pageMermaid.mmd"
```

Leverages the sp_hier_page stored procedure and auto-context resolution system.

Quick Install

$npx ai-builder add command pchambless/pageconfig

Details

Type
command
Slug
pchambless/pageconfig
Created
6d ago