Skip to content
Skillv1.0.0

js

JavaScript Guidelines

by GreyNV(0) 0 installs
Free
Sign in to install

Free account. Installing gives you the manifest plus copy-paste snippets.

See reviews

About

Imported from GreyNV/progress-realm (js/AGENTS.md). Install upstream with npx skills add GreyNV/progress-realm --skill js. Copyright stays with the author.

JavaScript Guidelines

  • Each file should define a single module focused on one system (e.g. AgeSystem, SaveSystem).
  • Use object literals or classes and export them with module.exports when running under Node so tests can import them.
  • Document dependencies and exported functions at the top of the file.
  • Interact with other modules via the PubSub event bus. Avoid global variables other than the State object.
  • Non-UI modules must not manipulate the DOM directly; UI logic lives in ui.js, ui_handler.js, or other UI modules.
  • Keep functions short and prefer pure functions where possible.
  • Use 4-space indentation, semicolons, and camelCase naming for variables and functions.
  • Include or update tests in tests/ whenever modules change.

Use it

Copy one of these into your project. Installing also returns the manifest and these snippets.

yaml
targets:
  - https://api.opensmartroute.ai/api/v1/registry/greynv-progress-realm-js/manifest   # or paste the manifest below

Manifest

An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.

greynv-progress-realm-js.ocm.jsonjson
{
  "ocm": "1",
  "id": "greynv-progress-realm-js",
  "kind": "skill",
  "name": "js",
  "description": "JavaScript Guidelines",
  "publisher": "GreyNV",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "coding"
    ],
    "tags": [
      "skill-md",
      "github-agents"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "JavaScript Guidelines"
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "github-agents",
      "repository": "https://github.com/GreyNV/progress-realm",
      "path": "js/AGENTS.md",
      "ref": "9988d15cbacc06250ca2c7fe1f9b476a416cc1ab",
      "url": "https://github.com/GreyNV/progress-realm/blob/9988d15cbacc06250ca2c7fe1f9b476a416cc1ab/js/AGENTS.md",
      "key": "GreyNV/progress-realm/js/AGENTS.md"
    }
  },
  "instructions": "# JavaScript Guidelines\n\n- Each file should define a single module focused on one system (e.g. AgeSystem, SaveSystem).\n- Use object literals or classes and export them with `module.exports` when running under Node so tests can import them.\n- Document dependencies and exported functions at the top of the file.\n- Interact with other modules via the `PubSub` event bus. Avoid global variables other than the `State` object.\n- Non-UI modules must not manipulate the DOM directly; UI logic lives in `ui.js`, `ui_handler.js`, or other UI modules.\n- Keep functions short and prefer pure functions where po",
  "cost": {
    "context_tokens": 189
  }
}

Fetch it by URL: GET /api/v1/registry/greynv-progress-realm-js/manifest?version=1.0.0

Reviews

Star ratings from people who tried it. One review per account; edit yours any time.

No reviews yet. Install it, try it, and be the first to rate it.