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.
trees - Skill - OpenSmartRoute
Skillv1.0.0
trees
Use when an app uses @pierre/trees to render or control a file tree, including React, vanilla JavaScript, SSR, web components, selection, search, rename, drag and drop, icons, git status, and themes.
Imported from pierrecomputer/pierre (skills/trees/SKILL.md). Install upstream with npx skills add pierrecomputer/pierre --skill trees. Copyright stays with the author.
@pierre/trees
Use @pierre/trees for an interactive file tree. Public state and callbacks use
path strings.
Install
pnpm add @pierre/trees
Install react and react-dom when the app uses the React entry.
Install trees 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.
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-trees.ocm.jsonjson
{
"ocm": "1",
"id": "pierrecomputer-pierre-trees",
"kind": "skill",
"name": "trees",
"description": "Use when an app uses @pierre/trees to render or control a file tree, including React, vanilla JavaScript, SSR, web components, selection, search, rename, drag and drop, icons, git status, and 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/trees to render or control a file tree, including React, vanilla JavaScript, SSR, web components, selection, search, rename, drag and drop, icons, git status, and themes."
],
"primary": false,
"metadata": {
"source": {
"provider": "skills.sh",
"repository": "https://github.com/pierrecomputer/pierre",
"path": "skills/trees/SKILL.md",
"ref": "HEAD",
"url": "https://github.com/pierrecomputer/pierre/blob/HEAD/skills/trees/SKILL.md",
"key": "pierrecomputer/pierre/skills/trees/SKILL.md"
}
},
"instructions": "# `@pierre/trees`\n\nUse `@pierre/trees` for an interactive file tree. Public state and callbacks use\npath strings.\n\n## Install\n\n```bash\npnpm add @pierre/trees\n```\n\nInstall `react` and `react-dom` when the app uses the React entry.\n\n## Select an API reference\n\n| Entry | Reference |\n| ------------------------------ | ------------------------------------------------------ |\n| `@pierre/trees` | [Core API](references/api-core.md) |\n| `@pierre/trees/react` | [React API](references/api-react.md) |\n| `@pierre/trees/ssr` | [SSR API](references/api-ssr.md) |\n| `@pierre/trees/web-components` | [Web components API](references/api-web-components.md) |\n\n## Select a recipe\n\n| Task | Recipe |\n| ------------------------------------------------------- | ------------------------------------------------------ |\n| Render and update a tree in React | [Use React](references/recipe-react.md) |\n| Render and update a tree without React | [Use vanilla JavaScript](references/recipe-vanilla.md) |\n| Preload a tree on the server | [Use SSR](references/recipe-ssr.md) |\n| Apply a resolved Shiki or VS Code theme | [Apply a theme](references/recipe-theme.md) |\n| Configure search, rename, drag and drop, and git status | [Add interactions](references/recipe-interactions.md) |",
"cost": {
"context_tokens": 412
}
}
Fetch it by URL: GET /api/v1/registry/pierrecomputer-pierre-trees/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.