Claude-skill-registry create-an-edge-app
The recommended way to create an Edge App
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/create-an-edge-app" ~/.claude/skills/majiayu000-claude-skill-registry-create-an-edge-app && rm -rf "$T"
manifest:
skills/data/create-an-edge-app/SKILL.mdsource content
Creating an Edge App
When Creating an Edge App
- Create a new directory for a new Edge App inside the
directory.edge-apps/- The directory name should follow the
naming convention.kebab-case
- The directory name should follow the
- Consult Figma designs before starting implementation.
- Ensure the Figma MCP server is set up in Claude Code.
- Use the Figma MCP server to access design specifications, mockups, and UI requirements.
- Extract design tokens such as colors, spacing, typography, and component specifications from Figma.
- Ensure the implementation matches the approved designs in Figma before proceeding with development.
Directory Structure
The new Edge App directory structure should closely resemble that of the following Edge Apps:
- QR Code (
)edge-apps/qr-code/ - Menu Board (
)edge-apps/menu-board/ - Grafana (
)edge-apps/grafana/ - CAP Alerting (
)edge-apps/cap-alerting/
These Edge Apps heavily rely on the Edge Apps library, which lives inside the
edge-apps/edge-apps-library/ directory.
- Most of the scripts inside the
of each of these apps execute thepackage.json
command.edge-apps-scripts - All of these apps depend on the
library, which maps to@screenly/edge-apps
.workspace:../edge-apps-library
is a required file.edge-apps/[new-edge-app]/src/main.ts- Running
insidebun run build
will runedge-apps/[new-edge-app]
, which is very opinionated.edge-apps-scripts build
- Running
Refer to
edge-apps/qr-code/ as a complete working template to understand the full directory structure and configuration.
- While it still uses the
library, it features a simpler implementation with a lower code footprint compared to the other aforementioned Edge Apps, making it an excellent starting point for new projects.@screenly/edge-apps - The library abstracts much of the complexity, allowing developers to focus on core functionality with minimal boilerplate.
About the Manifest Files
The new app should have the following manifest files:
screenly.ymlscreenly_qc.yml
See
edge-apps/qr-code/screenly.yml for a working example. More information about the manifest files can be found in the Edge Apps documentation in the Screenly/cli repository.
When creating the manifest files, ensure to:
- Omit the
field, as it will be added later when the new app gets deployed.id
About index.html
index.htmlThe
index.html file should follow these best practices:
- Organize HTML code into templates and Web Components as the app grows in complexity.
- Use HTML content templates first for simpler structures.
- Consider using Web Components for more complex UI components that require encapsulation and reusability.
About README.md
README.md- Include instructions on how to create, build, test, format, lint, and deploy the app.
- Do not add details like the directory structure, as the code frequently changes.