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.
Instruction file imported from williamg97/vscode-superpowers (.github/instructions/tdd.instructions.md). Copyright stays with the author.
Test-Driven Development
When writing or modifying code in this file:
Write the failing test first — before any implementation code
Run it and watch it fail — confirm it fails because the feature is missing, not due to syntax errors
Write the minimal code to pass — no extras, no refactoring, no "while I'm here" improvements
Run tests and confirm green — all tests pass, not just the new one
Refactor if needed — clean up while keeping tests green
If you wrote implementation code before a test: stop, delete it, write the test first.
Thinking "skip TDD just this once"? That's rationalization. Write the test.
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.
{
"ocm": "1",
"id": "williamg97-vscode-superpowers-tdd-instructions",
"kind": "skill",
"name": "tdd",
"description": "When writing or modifying code in this file:",
"publisher": "williamg97",
"version": "1.0.0",
"capabilities": {
"domains": [
"coding"
],
"tags": [
"skill-md",
"github-instructions"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"When writing or modifying code in this file:"
],
"primary": false,
"metadata": {
"source": {
"provider": "github-instructions",
"repository": "https://github.com/williamg97/vscode-superpowers",
"path": ".github/instructions/tdd.instructions.md",
"ref": "f3380910886e5b044be403316bef693ed651393b",
"url": "https://github.com/williamg97/vscode-superpowers/blob/f3380910886e5b044be403316bef693ed651393b/.github/instructions/tdd.instructions.md",
"key": "williamg97/vscode-superpowers/.github/instructions/tdd.instructions.md"
},
"applies_to": "**/*.{ts,tsx,js,jsx,py,go,rs,java,rb,cs,swift,kt}"
},
"instructions": "# Test-Driven Development\n\nWhen writing or modifying code in this file:\n\n1. **Write the failing test first** — before any implementation code\n2. **Run it and watch it fail** — confirm it fails because the feature is missing, not due to syntax errors\n3. **Write the minimal code to pass** — no extras, no refactoring, no \"while I'm here\" improvements\n4. **Run tests and confirm green** — all tests pass, not just the new one\n5. **Refactor if needed** — clean up while keeping tests green\n\nIf you wrote implementation code before a test: stop, delete it, write the test first.\n\nThinking \"skip TDD just ",
"cost": {
"context_tokens": 162
}
}
Fetch it by URL: GET /api/v1/registry/williamg97-vscode-superpowers-tdd-instructions/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.