Answers from the documentation; checking which model is on duty
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.
diffs - Skill - OpenSmartRoute
Skillv1.0.0
diffs
Use when an app uses @pierre/diffs to render or edit code files, diffs, patches, merge conflicts, or CodeView review surfaces, including React, vanilla JavaScript, SSR, workers, annotations…
Imported from pierrecomputer/pierre (skills/diffs/SKILL.md) via skills.sh. Install upstream with npx skills add pierrecomputer/pierre --skill diffs. Copyright stays with the author.
@pierre/diffs
Use @pierre/diffs to render syntax-highlighted files and diffs. Use its
optional editor, SSR, and worker entries for those capabilities.
For standalone HTML or token generation with @pierre/highlights, read the
highlights skill.
Install
pnpm add @pierre/diffs
Install react and react-dom when the app uses the React entry.
Install diffs and it becomes one more candidate the router can pick - when it fits.
A listing is a routing target with a manifest: what it does, which domains it covers, what it costs and who publishes it. Once installed it sits beside your own models and tools, is scored like any other candidate for each request, and shows up in the trace when it wins. Ratings come from workspaces that installed it, one per account.
When a provider is down or over quota the request moves on; the trace says it did.
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 slotcurl-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.
pierrecomputer-pierre-diffs.ocm.jsonjson
{
"ocm": "1",
"id": "pierrecomputer-pierre-diffs",
"kind": "skill",
"name": "diffs",
"description": "Use when an app uses @pierre/diffs to render or edit code files, diffs, patches, merge conflicts, or CodeView review surfaces, including React, vanilla JavaScript, SSR, workers, annotations, selection, and custom syntax languages or themes.",
"publisher": "pierrecomputer",
"version": "1.0.0",
"capabilities": {
"domains": [
"coding"
],
"tags": [
"skill-md",
"skills-sh"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"Use when an app uses @pierre/diffs to render or edit code files, diffs, patches, merge conflicts, or CodeView review surfaces, including React, vanilla JavaScript, SSR, workers, annotations, selection, and custom syntax languages or themes."
],
"primary": false,
"metadata": {
"source": {
"provider": "skills.sh",
"repository": "https://github.com/pierrecomputer/pierre",
"path": "skills/diffs/SKILL.md",
"ref": "HEAD",
"url": "https://www.skills.sh/pierrecomputer/pierre/diffs",
"key": "pierrecomputer/pierre/skills/diffs/SKILL.md"
}
},
"instructions": "# `@pierre/diffs`\n\nUse `@pierre/diffs` to render syntax-highlighted files and diffs. Use its\noptional editor, SSR, and worker entries for those capabilities.\n\nFor standalone HTML or token generation with `@pierre/highlights`, read the\n[highlights skill](../highlights/SKILL.md).\n\n## Install\n\n```bash\npnpm add @pierre/diffs\n```\n\nInstall `react` and `react-dom` when the app uses the React entry.\n\n## Select an API reference\n\n| Surface | Reference |\n| ------------------------------------------------------------ | ------------------------------------------------------ |\n| Root components, parsing, and file extension APIs | [Core API](references/api-core.md) |\n| Languages, themes, highlighter state, and streams | [Highlighting API](references/api-highlighting.md) |\n| Renderers, managers, DOM helpers, comparisons, and constants | [Low-level rendering API](references/api-rendering.md) |\n| Shared data, option, render, selection, and editor types | [Shared types](references/api-types.md) |\n| `@pierre/diffs/react` | [React API](references/api-react.md) |\n| `@pierre/diffs/edit` | [Editor API](references/api-editor.md) |\n| `@pierre/diffs/ssr` | [SSR API](references/api-ssr.md) |\n| `@pierre/diffs/worker` and worker scripts | [Worker API](references/api-worker.md) |\n\n## Select a recipe\n\n| Task | Recipe |\n| ----------------------------------- | ------------------------------------------------------------------------ |\n| Render a file or diff in React | [Render with React](references/recipe-react.md) |\n| Render a file or diff without React | [Render with vanilla JavaScript](references/recipe-vanilla.md) |\n| Build a virtualized review surface | [Use CodeView](references/recipe-code-view.md) |\n| Edit a React surface or CodeView | [Edit with React](references/recipe-edit-react.md) |\n| Edit a vanilla surface or CodeView | [Edit with vanilla JavaScript](references/recipe-edit-vanilla.md) |\n| Preload markup on the server | [Use SSR](references/recipe-ssr.md) |\n| Highlight through a worker pool | [Use workers](references/recipe-workers.md) |\n| Add line annotations and selection | [Add annotations and selection](references/recipe-annotations.md) |\n| Register a custom language or theme | [Register custom highlighting](references/recipe-custom-highlighting.md) |",
"cost": {
"context_tokens": 732
}
}
Fetch it by URL: GET /api/v1/registry/pierrecomputer-pierre-diffs/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.