A portable, reproducible UI/UX spec standard: scan a frontend repo for UI sources and scaffold a ui-ux-spec documentation bundle (tokens, global styles, components, patterns, pages, a11y). Also supports plan-driven UI-only refactors based on an existing ui-ux-spec. Excludes business logic and domain workflows.
Build a portable, reproducible UI/UX spec “genome”: scan a frontend repo for UI-related sources and scaffold a ui-ux-spec/ documentation bundle (tokens, global styles, components, patterns, pages, a11y). Also supports plan-driven UI-only refactors based on an existing ui-ux-spec/.
SKILL.md: workflow + prompt templatesscripts/scan_ui_sources.sh: heuristically scan a repo for UI sources (globs + keyword hits)scripts/generate_output_skeleton.sh: scaffold a standard ui-ux-spec/ doc folderscripts/lint_replica_spec.sh: lint for replication-grade specs (no placeholders)references/design-extraction-checklist.md: detailed extraction checklistThis folder is the “skill package”. Installing it means your coding tool/agent runner can discover the
SKILL.mdinside it (commonly by placing the directory into askills/folder, or by using the tool’s “install from Git” feature).
From this repo root, set SKILLS_DIR to whatever skills folder your tool scans (e.g. ~/.codex/skills, ~/.claude/skills, ~/.config/opencode/skills, etc):
SKILLS_DIR=~/.codex/skills
case "$SKILLS_DIR" in
""|"/") echo "Refusing: SKILLS_DIR is empty or /" >&2; exit 2 ;;
esac
case "$SKILLS_DIR" in
*/skills|*/skills/) ;;
*) echo "Refusing: SKILLS_DIR should usually end with /skills (got: $SKILLS_DIR)" >&2; exit 2 ;;
esac
mkdir -p "$SKILLS_DIR"
rm -rf -- "$SKILLS_DIR/ui-ux-spec-genome"
cp -R agent/skills/ui-ux-spec-genome "$SKILLS_DIR/ui-ux-spec-genome"
SKILLS_DIR=~/.codex/skills
case "$SKILLS_DIR" in
""|"/") echo "Refusing: SKILLS_DIR is empty or /" >&2; exit 2 ;;
esac
case "$SKILLS_DIR" in
*/skills|*/skills/) ;;
*) echo "Refusing: SKILLS_DIR should usually end with /skills (got: $SKILLS_DIR)" >&2; exit 2 ;;
esac
mkdir -p "$SKILLS_DIR"
rm -rf -- "$SKILLS_DIR/ui-ux-spec-genome"
ln -s "$(pwd)/agent/skills/ui-ux-spec-genome" "$SKILLS_DIR/ui-ux-spec-genome"
Prereqs for openskills:
npx openskills ... (it will download and run).npm i -g openskills (or pnpm add -g openskills).Install from a cloneable repo URL (do not use a GitHub .../tree/... subdirectory link):
# Recommended: pin a version to reduce supply-chain drift.
# Example pinned version: 1.5.0
npx openskills@1.5.0 install https://github.com/okwinds/miscellany
When prompted, select ui-ux-spec-genome (repo path: agent/skills/ui-ux-spec-genome).
Verify / read back:
npx openskills@1.5.0 list
npx openskills@1.5.0 read ui-ux-spec-genome
Many coding tools can install/load skills directly from a GitHub/Git URL. If yours supports it, point it at this repo and select/target agent/skills/ui-ux-spec-genome. If it doesn’t, use copy/symlink or openskills install.
Restart / open a new session so your tool re-scans skills.
bashrg (ripgrep) is required by scripts/scan_ui_sources.shgit (used to resolve repo root)python3 (used by scripts/lint_replica_spec.sh)bash ./scripts/scan_ui_sources.sh --root /path/to/repo --out /tmp/ui_sources.md
ui-ux-spec/bash ./scripts/generate_output_skeleton.sh ./ui-ux-spec
For replication-grade (“pixel-clone”) specs:
bash ./scripts/generate_output_skeleton.sh ./ui-ux-spec --replica
# During drafting, templates will be empty: use non-strict first.
bash ./scripts/lint_replica_spec.sh --root ./ui-ux-spec --non-strict
# Before claiming "replica-grade done", strict lint must pass.
bash ./scripts/lint_replica_spec.sh --root ./ui-ux-spec
scripts/scan_ui_sources.sh --out ... refuses to overwrite an existing file unless --force is provided.Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer