Skip to content
Skillv1.0.0

infusion-6

Code style

by fluid-project(0) 0 installs
Free
Sign in to install

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

See reviews

About

Imported from fluid-project/infusion-6 (AGENTS.md). Install upstream with npx skills add fluid-project/infusion-6. Copyright stays with the author.

Code style

  • Plain JavaScript with JSDocs
  • All strings double-quoted
  • No one-line if or else blocks - e.g. always use
   if (condition) {
   ...
   } else {
   ...
   }
  • Do not return early from functions, use long if instead.
  • If possible, first branch of if statement condition should not be negated.
  • JSDocs using @return, with capitalised built-ins, e.g. String, Number, Any, with [] for array syntax
  • Do not use Void return type
  • Assume an eslint environment, and begin all node.js files with
   /* eslint-env node */
   "use strict";

Testing instructions

  • Run tests/framework-tests/core/html/*.html in the browser

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/fluid-project-infusion-6-infusion-6/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.

fluid-project-infusion-6-infusion-6.ocm.jsonjson
{
  "ocm": "1",
  "id": "fluid-project-infusion-6-infusion-6",
  "kind": "skill",
  "name": "infusion-6",
  "description": "Code style",
  "publisher": "fluid-project",
  "version": "1.0.0",
  "capabilities": {
    "domains": [
      "coding"
    ],
    "tags": [
      "skill-md",
      "github-agents"
    ],
    "languages": [
      "en"
    ]
  },
  "quality_prior": 0.6,
  "examples": [
    "Code style"
  ],
  "primary": false,
  "metadata": {
    "source": {
      "provider": "github-agents",
      "repository": "https://github.com/fluid-project/infusion-6",
      "path": "AGENTS.md",
      "ref": "ffc0281e27366525554b6bdef7b8a3fa0f3bbba5",
      "url": "https://github.com/fluid-project/infusion-6/blob/ffc0281e27366525554b6bdef7b8a3fa0f3bbba5/AGENTS.md",
      "key": "fluid-project/infusion-6/AGENTS.md"
    }
  },
  "instructions": "## Code style\n\n - Plain JavaScript with JSDocs\n - All strings double-quoted\n - No one-line if or else blocks - e.g. always use\n```\n   if (condition) {\n   ...\n   } else {\n   ...\n   }\n```\n  - Do not return early from functions, use long if instead.\n  - If possible, first branch of if statement condition should not be negated.\n  - JSDocs using @return, with capitalised built-ins, e.g. String, Number, Any, with [] for array syntax\n  - Do not use Void return type\n  - Assume an eslint environment, and begin all node.js files with\n```\n   /* eslint-env node */\n   \"use strict\";\n```\n\n## Testing instruct",
  "cost": {
    "context_tokens": 166
  }
}

Fetch it by URL: GET /api/v1/registry/fluid-project-infusion-6-infusion-6/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.