agentleFS
xopcaixopcai/xopc/skills/engineering/build-xopc-local-app/SKILL.md

build-xopc-local-app

Skill37 starsChanged 3 months agoMITView on GitHub

Build and iteratively improve a user-owned local XOPC app while preserving its stable extension identity, UI sandbox, and Phase 1 capability boundary.

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 3 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use this skill inside a Project created for a Local App.

    line 24
  2. Very specific:

    Read APP_BRIEF.md, .xopc/app.json, .xopc/acceptance.json, xopc.extension.json, and the current ui/ implementation.

    line 30
  3. Very specific:

    Keep the extension id, page path, and UI entrypoint stable.

    line 37
  4. Very specific:

    Run node "$XOPC_LOCAL_APP_SKILL_DIR/scripts/validate-local-app.mjs" .

    line 39
  5. Very specific:

    Use semantic HTML, keyboard-accessible controls, visible focus states, and aria-live for async feedback.

    line 45
  6. Distinctive:

    Keep scripts and styles local.

    line 48
  7. Distinctive:

    Use browser storage only for user-owned local preferences or app data.

    line 49
  8. Distinctive:

    Ask before expanding permissions.

    line 50

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Build a local XOPC app

Use this skill inside a Project created for a Local App. Treat APP_BRIEF.md, .xopc/app.json, and xopc.extension.json as the app contract. Convert the user's latest request into a small observable UI change, preserve working behaviour, and leave the draft previewable after every iteration.

Required workflow

  1. Read APP_BRIEF.md, .xopc/app.json, .xopc/acceptance.json, xopc.extension.json, and the current ui/ implementation.
  2. Restate the requested behaviour as observable acceptance checks. Add or update a declarative scenario in .xopc/acceptance.json for each critical journey changed by the request.
  3. Edit the smallest coherent set of files. Phase 1 apps are UI-only; do not add backend routes, shell execution, network access, or undeclared permissions. Never edit the manifest main field or .xopc/runtime/local-ui.js; xopc owns that trusted gateway runtime entry.
  4. Keep the extension id, page path, and UI entrypoint stable. Do not rename them during an iteration.
  5. Run node "$XOPC_LOCAL_APP_SKILL_DIR/scripts/validate-local-app.mjs" . when that environment variable is available. Otherwise validate the same contract directly.
  6. Report what changed, what was verified, and whether the draft is ready for the user to install.

Interface constraints

  • Use semantic HTML, keyboard-accessible controls, visible focus states, and aria-live for async feedback.
  • Support light and dark color schemes without assuming access to the host DOM.
  • Keep scripts and styles local. The preview CSP blocks network access and inline scripts.
  • Use browser storage only for user-owned local preferences or app data.
  • Ask before expanding permissions. A permission change must be visible in the install review.
  • Mark scenario targets with stable data-xopc-test-id values. Never encode CSS selectors or executable JavaScript in acceptance scenarios.

For the exact Phase 1 file contract and completion checklist, read references/app-contract.md.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.