Skip to content
exergy-connectPublic

About

Public repository for publishing high-performance, minified AI Agent Skills optimized for the xFrame data modeling specification.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

xFrame.ai

Public repository of Cursor agent skills for xFrame: model-driven data consolidation and related workflows.

Live demo: Fabric-A Clos concept lab — compiled Containerlab topology and static lab UI. GitHub Pages has no Docker daemon, so Deploy will not launch containers.

Skills

Skill Description
xframe-model Create or edit model and data files for xFrame consolidation (entity schemas, model YAML/JSON, data JSON).
xframe-consolidate Normalize and consolidate JSON model and data into validated JSON Schema plus consolidated data (optional JS output, FK enum closure, data path filters). Run from the command line or let the agent consolidate when you ask to validate model/data.
xframe-present Compile .xp authoring documents through normalized IR into HTML, PNG, and/or PowerPoint. Supports presentations (slidedeck, poster, readout, cover-letter), themes/styles, layouts, graphs, Jinja, and consolidated xFrame data.
xform-author Author and edit xForm .xp / .xpt semantic documents (concepts, shapes, Jinja body segments, includes, templates, capability contracts). Compile with xform-run.
xform-run Compile composable .xp documents into deterministic outputs (compile-tree JSON, finalized HTML/YAML/text, multi-file artifacts). Also scaffolds an xForm Dev Container. Requires Node.js ≥24.
xframe-code Program-structure schema (packages, classes, methods, fields) using the xYang JSON Schema profile. Manual install only (see below).

Install (Cursor)

Install script (recommended)

Run from your project root:

bash <(curl -fsSL https://exergy-connect.github.io/xFrame.ai/install-skills.sh)

Installs xframe-model, xframe-consolidate, xframe-present, xform-author, and xform-run into .cursor/skills/ and records the suite version.

Check for updates

bash <(curl -fsSL https://exergy-connect.github.io/xFrame.ai/install-skills.sh) --check

Update

Re-run the install script. Existing skills are replaced with the latest version.

Manual install

mkdir -p .cursor/skills
cp -r path/to/xFrame.ai/skills/xframe-model .cursor/skills/
cp -r path/to/xFrame.ai/skills/xframe-consolidate .cursor/skills/
cp -r path/to/xFrame.ai/skills/xframe-present .cursor/skills/
cp -r path/to/xFrame.ai/skills/xform-author .cursor/skills/
cp -r path/to/xFrame.ai/skills/xform-run .cursor/skills/
# optional:
cp -r path/to/xFrame.ai/skills/xframe-code .cursor/skills/

Dev Container

This repository includes .devcontainer/devcontainer.json for Cursor / VS Code Dev Containers. It builds from .devcontainer/Dockerfile (Debian Trixie plus the skill installer).

  • Name: xFrame.ai
  • Reopen the folder in the container (Command Palette: Dev Containers: Reopen in Container).
  • postStart runs the skill installer into .cursor/skills/ (same suite as the install script above).

Examples

End-to-end samples:

Path Description
examples/consolidate/ Subsea tieback portfolio — JSON model, sample data, and consolidated output. See README for entity layout and how to run the consolidator.
docs/examples/conceptlab/ Compiled Fabric-A Clos lab snapshot (Containerlab package + static UI). See README.

CI on main reconsolidates examples/consolidate/ via .github/workflows/examples-ci.yml and commits refreshed output/ when the model or data change.

GitHub Pages

GitHub Pages serves files from docs/ at https://exergy-connect.github.io/xFrame.ai/<path>. Pushes that touch other paths (skills sync, action metadata, README, and so on) do not trigger a Pages rebuild.

Path under docs/ Served URL
install-skills.sh /install-skills.sh
latest /latest
examples/conceptlab/output/ui/index.html /examples/conceptlab/output/ui/
examples/resume/index.html /examples/resume/
goa_field_of_dreams.html /goa_field_of_dreams.html
xform/xform.browser.min.js /xform/xform.browser.min.js
LICENSE /LICENSE

Root wrangler.jsonc deploys the xframe-ai Worker: static résumé assets under docs/examples/resume plus the Gemini proxy API (/v1/*, /health) from cloudflare-proxy/.

npm run deploy
npx wrangler secret put GEMINI_API_KEY

npm run deploy runs cloudflare-proxy/scripts/check-config.js first so deploy fails if INVITE_MAX_KV_CONTEXT_CHARS is not at least 25000 below MAX_INPUT_CHARS.

Cloudflare Gemini proxy

cloudflare-proxy/ is the API module bundled into xframe-ai (keeps the Gemini key off the client for runtime LLM and Live TTS). See cloudflare-proxy/README.md. Deploy the combined Worker from the repo root with npm run deploy.

GitHub Actions

This repo publishes composite GitHub Actions that wrap the bundled minified CLIs. The Cursor skill and GitHub Action for each tool are the same package. Node.js ≥24 is required on the job runner. Pin a branch, tag, or SHA (for example @main).

Source repositories (public or private) copy built actions and skills into this repo with .github/actions/publish-to-xframe-ai:

- uses: exergy-connect/xFrame.ai/.github/actions/publish-to-xframe-ai@main
  with:
    token: ${{ secrets.XFRAME_AI_TOKEN }}
    dirs_mapping: |
      action-dist|actions/my-tool
      skill|skills/my-tool
    commit_message: 'chore: sync my-tool from my-repo [skip ci]'

Store a token with push access to this repository as XFRAME_AI_TOKEN in the caller. Directory mappings replace the destination tree.

Action uses Skill CLI
xFrame consolidate exergy-connect/xFrame.ai/actions/consolidate@main actions/consolidate/consolidate.min.js (copied into the skill on install)
xFrame present exergy-connect/xFrame.ai/actions/present@main actions/present/present.min.js (copied into the skill on install)
xForm exergy-connect/xFrame.ai/actions/xform@main actions/xform/xform.min.js (copied into the skill on install)

.github/workflows/examples-ci.yml uses the in-repo consolidate action (./actions/consolidate) and is intended as a copyable template. External workflows pin the published refs below.

xFrame consolidate

Expects JSON model fragments and entity data under <working-dir>/data and <working-dir>/model (same contract as the xframe-consolidate skill). Writes to <working-dir>/output. The CLI bundle is actions/consolidate/consolidate.min.js. install-skills.sh copies that file into .cursor/skills/xframe-consolidate/scripts/ locally.

on:
  push:
    branches: [main]

jobs:
  consolidate:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v6
      - uses: exergy-connect/xFrame.ai/actions/consolidate@main
        with:
          working-dir: examples/consolidate
          note: 'Reconsolidate after model or data change'
          clean: 'true'

Inputs

Input Required Description
note yes Non-empty change note stored in consolidated metadata.
working-dir no Project root with data/ and model/ subdirs (default xframe).
author no Change author; if omitted, GITHUB_ACTOR is used.
git-commit-hash no Commit on the change record; if omitted, GITHUB_SHA is used.
log-level no DEBUG, INFO, WARNING, or ERROR.
js no Set to true to pass --js (boolean inputs are strings true / false).
clean no Set to true to pass --clean.
close-fk-enums no Set to true to pass --close-fk-enums.

Outputs

consolidated.schema.json, consolidated_data.json, and logs under <working-dir>/output/ (optional .js artifacts when js: true).

xFrame present

The published present action compiles a .xp or Markdown source to IR, HTML, PNG, and/or PowerPoint. The CLI bundle is actions/present/present.min.js. install-skills.sh copies that file into .cursor/skills/xframe-present/scripts/ locally.

jobs:
  present:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v6
      - uses: exergy-connect/xFrame.ai/actions/present@main
        with:
          source: deck.xp
          formats: ir,html
          output_dir: dist

Inputs

Input Required Description
source yes Path to the .xp or Markdown source.
formats no Comma-separated outputs: ir, html, png, pptx (default ir,html).
output_dir no Output directory (default: the source file's directory).
presentation no Active presentation template name.
format no Format qualifier (desktop, tablet, mobile, poster, cover-letter, video).
theme no Override themes (comma-separated).
style no Override document styles (comma-separated).
evaluation no static or dynamic.
positioning no static or dynamic.
templates no Custom templates directory.
content_plugin no Content plugin modules (comma-separated).
embed_images no Set to true to inline local images as data URIs.
llm no Set to true to enable compile-time llm() evaluation.
llm_model no Compile-time LLM model override.
screenshots no Set to true with pptx to photograph each HTML slide.
snapshot_width no PNG viewport width (default 1440).
snapshot_height no PNG viewport height (default 900).
snapshot_canvas no Set to true to size PNG to the canvas and strip chrome.
skip_audio / force_audio / combined_audio no Narrative TTS flags (true / false).

Outputs

Action outputs ir, html, png, and pptx are absolute paths for the formats that were requested.

Requirements

  • xframe-consolidate / consolidate action, xframe-present / present action, and xform-run / xForm action: Node.js ≥24. Bundled scripts are self-contained; no npm install required.

License

See LICENSE.

About

Public repository for publishing high-performance, minified AI Agent Skills optimized for the xFrame data modeling specification.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages