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.
coding-preferences - Skill - OpenSmartRoute
Skillv1.0.0
coding-preferences
Coding pattern preferences - Prefer simpler solutions - Extract complicated, potentially reusable functionality to individual functions - Avoid duplication of code whenever possible, which means check
Instruction file imported from jdlien/lbx-utils (.cursor/rules/coding-preferences.mdc). Copyright stays with the author.
Coding pattern preferences
Prefer simpler solutions
Extract complicated, potentially reusable functionality to individual functions
Avoid duplication of code whenever possible, which means checking for other areas of the codebase that might already have similar code and functionality
Use docstrings for functions that are over 10 lines.
Omit docstrings for trivial functions under five lines of code unless the functionality or purpose is not obvious
When fixing an issue or bug, do not introduce a new pattern or technology without first exhausting all options for the existing implementation. And if you finally do this, make sure to remove the old ipmlementation afterwards so we don't have duplicate logic.
Keep the codebase very clean and organized
Avoid having files over 200-300 lines of code. Refactor at that point.
Never overwrite my env file without first asking and confirming
Testing
When making non-trivial changes to a file, automatically run tests to ensure the changes didn't cause any regressions.
When adding significant new features, add required tests to provide good code coverage. If a test suite for the program being worked on doesn't exist, implore the user (me) to create such a test and concisely suggest a good name and approach for doing so.
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/jdlien-lbx-utils-coding-preferences-rule/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.
{
"ocm": "1",
"id": "jdlien-lbx-utils-coding-preferences-rule",
"kind": "skill",
"name": "coding-preferences",
"description": "Coding pattern preferences - Prefer simpler solutions - Extract complicated, potentially reusable functionality to individual functions - Avoid duplication of code whenever possible, which means checking for other areas of the codebase that might already have similar code and functionality - Use docstrings for functions that are over 10 lines. - Omit docstrings for trivial functions under five lines of code unless the functionality or purpose is not obvious - When fixing an issue or bug, do not introduce a new pattern or technology without first exhausting all options for the existing implementation. And if you finally do this, make sure to remove the old ipmlementation afterwards so we don't have duplicate logic. - Keep the codebase very clean and organized - Avoid having files over 200-300 lines of code. Refactor at that point. - Never overwrite my env file without first asking and confirming",
"publisher": "jdlien",
"version": "1.0.0",
"capabilities": {
"domains": [
"coding",
"math"
],
"tags": [
"skill-md",
"github-cursor-rules"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"Coding pattern preferences - Prefer simpler solutions - Extract complicated, potentially reusable functionality to individual functions - Avoid duplication of code whenever possible, which means checking for other areas of the codebase that might already have similar code and functionality - Use docstrings for functions that are over 10 lines. - Omit docstrings for trivial functions under five lines of code unless the functionality or purpose is not obvious - When fixing an issue or bug, do not introduce a new pattern or technology without first exhausting all options for the existing implementation. And if you finally do this, make sure to remove the old ipmlementation afterwards so we don't have duplicate logic. - Keep the codebase very clean and organized - Avoid having files over 200-300 lines of code. Refactor at that point. - Never overwrite my env file without first asking and confirming"
],
"primary": false,
"metadata": {
"source": {
"provider": "github-cursor-rules",
"repository": "https://github.com/jdlien/lbx-utils",
"path": ".cursor/rules/coding-preferences.mdc",
"ref": "2600c2c2361eb54dc0c4c404d0646494eb99147b",
"url": "https://github.com/jdlien/lbx-utils/blob/2600c2c2361eb54dc0c4c404d0646494eb99147b/.cursor/rules/coding-preferences.mdc",
"key": "jdlien/lbx-utils/.cursor/rules/coding-preferences.mdc"
}
},
"instructions": "# Coding pattern preferences\n- Prefer simpler solutions\n- Extract complicated, potentially reusable functionality to individual functions\n- Avoid duplication of code whenever possible, which means checking for other areas of the codebase that might already have similar code and functionality\n- Use docstrings for functions that are over 10 lines.\n- Omit docstrings for trivial functions under five lines of code unless the functionality or purpose is not obvious\n- When fixing an issue or bug, do not introduce a new pattern or technology without first exhausting all options for the existing implem",
"cost": {
"context_tokens": 325
}
}
Fetch it by URL: GET /api/v1/registry/jdlien-lbx-utils-coding-preferences-rule/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.