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.
pre-commit - Skill - OpenSmartRoute
Skillv1.0.0
pre-commit
Always run pre-commit hooks after making code changes
Instruction file imported from TruvetaPublic/OpenLinkToken (.github/instructions/pre-commit.instructions.md). Copyright stays with the author.
Pre-Commit Hook Enforcement
After making any code changes, always run pre-commit hooks before considering the task complete:
prek run --files <changed-files>
In this repository, prefer --files with the exact changed paths for the current task. Do not run prek run across all files unless the user explicitly asks for repo-wide verification.
If prek reports any failures (formatting, linting, type errors), fix them and re-run against the changed files until all hooks pass. Do not mark work as done while prek hooks are failing.
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/truvetapublic-openlinktoken-pre-commit-instructions/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": "truvetapublic-openlinktoken-pre-commit-instructions",
"kind": "skill",
"name": "pre-commit",
"description": "Always run pre-commit hooks after making code changes",
"publisher": "TruvetaPublic",
"version": "1.0.0",
"capabilities": {
"domains": [
"coding"
],
"tags": [
"skill-md",
"github-instructions"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"Always run pre-commit hooks after making code changes"
],
"primary": false,
"metadata": {
"source": {
"provider": "github-instructions",
"repository": "https://github.com/TruvetaPublic/OpenLinkToken",
"path": ".github/instructions/pre-commit.instructions.md",
"ref": "eb82166ec130d368ffed1e9a0a000aade04ca557",
"url": "https://github.com/TruvetaPublic/OpenLinkToken/blob/eb82166ec130d368ffed1e9a0a000aade04ca557/.github/instructions/pre-commit.instructions.md",
"key": "TruvetaPublic/OpenLinkToken/.github/instructions/pre-commit.instructions.md"
},
"applies_to": "**"
},
"instructions": "# Pre-Commit Hook Enforcement\n\nAfter making any code changes, always run pre-commit hooks before considering the task complete:\n\n```bash\nprek run --files <changed-files>\n```\n\nIn this repository, prefer `--files` with the exact changed paths for the current task. Do not run `prek run` across all files unless the user explicitly asks for repo-wide verification.\n\nIf prek reports any failures (formatting, linting, type errors), fix them and re-run against the changed files until all hooks pass. Do not mark work as done while prek hooks are failing.",
"cost": {
"context_tokens": 137
}
}
Fetch it by URL: GET /api/v1/registry/truvetapublic-openlinktoken-pre-commit-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.