pmf-initlisted
Install: claude install-skill noory-code/noory-ai
# Init — App Design Guide
> Before executing this workflow, read and apply `../HOST_CONTRACT.md`.
Creates a per-app design guide `.lib.pen` file.
The `.lib.pen` extension is required so Pencil can import it as a library in other `.pen` files.
`material-design-guide.lib.pen` is kept as a shared library, and a separate file is created for each app.
## Step 0 — Environment Verification
Verification is split into two groups. **Group A** is required for file operations, and **Group B** is required for Pencil/Dart operations.
If Group A fails, stop immediately. Group B is verified after Step 2 completes (just before opening the Pencil file).
### Group A — File Operation Prerequisites (verified in Step 0)
#### A-1. Verify Python 3.9+ Installation
```bash
python3 --version
```
- Python 3.9 or higher → proceed to next verification
- Missing or version too low → **stop**:
> "Python 3.9 or higher is required. Please install it and try again."
#### A-2. Verify materialyoucolor Package
```bash
python3 -c "import materialyoucolor; print('ok')"
```
- `ok` output → proceed to next verification
- ImportError → **stop**:
> "Please run pip install materialyoucolor and try again."
#### A-3. Verify Python Script Files Exist
Resolve `<plugin-root>` from the shared host contract, then run:
```bash
python3 -c "import pathlib; root=pathlib.Path('<plugin-root>'); [exit(1) for p in ['pencil/md3calc/hct_palette.py','pencil/md3calc/gen_dart.py'] if not (root/p).exists()]"
```
- Both fi