Hi - I answer from the OpenSmartRoute documentation: routing, the API, plans and quotas, self-hosting. Ask away, or open a support ticket if you need a person.
Grounded in the docs - follow a source before acting on it.
bash-style - Skill - OpenSmartRoute
Skillv1.0.0
bash-style
Shell script style and safety rules. Use when writing, editing, or reviewing bash or shell scripts.
Imported from Viterkim/hva (skills/auto/bash-style/SKILL.md). Install upstream with npx skills add Viterkim/hva --skill bash-style. Copyright stays with the author.
Basics
no inline comments
Always start with
#!/usr/bin/env bashset -euo pipefail`
Quote all variable expansions
[[ ]] not [ ]
local all function variables
Arrays and paths
Use "${arr[@]}" not $arr. Use -print0 with read -d '' when paths might have spaces.
Gotchas
set -e doesn't fire inside conditions. For local var=$(cmd) the exit code is swallowed, so declare first and assign second.
Use it
Copy one of these into your project. Installing also returns the manifest and these snippets.
# after Install: the listing is in your workspace's routing pool - a plan picks it for its slot
curl -s -X POST https://api.opensmartroute.ai/api/v1/route -H 'Authorization: Bearer $OSR_API_KEY' -H 'Content-Type: application/json' -d '{"text": "...", "plan": true}'
Manifest
An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.
viterkim-hva-bash-style.ocm.jsonjson
{
"ocm": "1",
"id": "viterkim-hva-bash-style",
"kind": "skill",
"name": "bash-style",
"description": "Shell script style and safety rules. Use when writing, editing, or reviewing bash or shell scripts.",
"publisher": "Viterkim",
"version": "1.0.0",
"capabilities": {
"domains": [
"general"
],
"tags": [
"skill-md",
"github"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"Shell script style and safety rules. Use when writing, editing, or reviewing bash or shell scripts."
],
"primary": false,
"metadata": {
"source": {
"provider": "github",
"repository": "https://github.com/Viterkim/hva",
"path": "skills/auto/bash-style/SKILL.md",
"ref": "658be0257fba4624ad39576f28746bea84067a5c",
"url": "https://github.com/Viterkim/hva/blob/658be0257fba4624ad39576f28746bea84067a5c/skills/auto/bash-style/SKILL.md",
"key": "Viterkim/hva/skills/auto/bash-style/SKILL.md"
}
},
"instructions": "# Basics\n\n- no inline comments\n- Always start with\n\n```bash\n#!/usr/bin/env bash\nset -euo pipefail`\n```\n\n- Quote all variable expansions\n- `[[ ]]` not `[ ]`\n- `local` all function variables\n\n## Arrays and paths\n\nUse `\"${arr[@]}\"` not `$arr`. Use `-print0` with `read -d ''` when paths might have spaces.\n\n## Gotchas\n\n`set -e` doesn't fire inside conditions. For `local var=$(cmd)` the exit code is swallowed, so declare first and assign second.",
"cost": {
"context_tokens": 110
}
}
Fetch it by URL: GET /api/v1/registry/viterkim-hva-bash-style/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.