Skip to content

Commit 8a3bdca

Browse files
committed
first commit
0 parents  commit 8a3bdca

133 files changed

Lines changed: 22502 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/sync-skills.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Sync skills from render-oss/skills
2+
3+
on:
4+
schedule:
5+
- cron: "0 6 * * *"
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
12+
jobs:
13+
sync:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout plugin repo
17+
uses: actions/checkout@v4
18+
19+
- name: Sync skills
20+
run: ./scripts/sync-skills.sh --repo "https://github.com/render-oss/skills"
21+
env:
22+
GIT_TERMINAL_PROMPT: "0"
23+
24+
- name: Create pull request
25+
uses: peter-evans/create-pull-request@v7
26+
with:
27+
commit-message: "Sync skills from render-oss/skills"
28+
title: "Sync skills from render-oss/skills"
29+
body: |
30+
Automated sync of skill files from [render-oss/skills](https://github.com/render-oss/skills).
31+
32+
This PR was created by the `sync-skills` workflow. Review the changes and merge when ready.
33+
branch: sync-skills
34+
labels: skills-sync
35+
delete-branch: true

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/dist
2+
/node_modules

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2026 Render
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 152 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,152 @@
1+
# Render OpenCode Plugin
2+
3+
Use Render from OpenCode to deploy apps, validate Blueprints, debug failed deploys, monitor services, and work through common platform workflows.
4+
5+
## What you get
6+
7+
- An npm-installable OpenCode plugin with a `render_validate_blueprint` tool
8+
- Automatic validation when an agent edits `render.yaml` or `render.yml`
9+
- Bundled Render skills for deploys, debugging, monitoring, migrations, and service configuration
10+
- OpenCode commands for `/deploy-to-render` and `/check-render-status`
11+
- A Render-focused `@render` subagent
12+
- Optional Render MCP server configuration
13+
14+
## Installing the plugin
15+
16+
Add the npm package to your OpenCode config:
17+
18+
```json
19+
{
20+
"$schema": "https://opencode.ai/config.json",
21+
"plugin": ["@render/opencode-plugin"]
22+
}
23+
```
24+
25+
OpenCode installs npm plugins with Bun at startup and caches them in `~/.cache/opencode/node_modules/`.
26+
27+
## Installing skills, commands, and the agent
28+
29+
OpenCode npm plugins can provide tools and hooks, but they don't automatically register bundled skills, commands, or agents. OpenCode discovers those files from your OpenCode config directory.
30+
31+
Run the explicit setup command after adding the plugin:
32+
33+
```bash
34+
npx @render/opencode-plugin setup
35+
```
36+
37+
This opt-in step writes files to `~/.config/opencode/`:
38+
39+
- `skills/render-*/SKILL.md`
40+
- `commands/deploy-to-render.md`
41+
- `commands/check-render-status.md`
42+
- `agents/render.md`
43+
44+
The setup command doesn't overwrite existing files unless you pass `--force`.
45+
46+
```bash
47+
npx @render/opencode-plugin setup --force
48+
```
49+
50+
To preview changes without writing files:
51+
52+
```bash
53+
npx @render/opencode-plugin setup --dry-run
54+
```
55+
56+
To install into a different OpenCode config directory:
57+
58+
```bash
59+
npx @render/opencode-plugin setup --config-dir ./tmp-opencode
60+
```
61+
62+
## Configuring Render MCP
63+
64+
If you want OpenCode to use Render MCP tools, run setup with `--enable-mcp`:
65+
66+
```bash
67+
npx @render/opencode-plugin setup --enable-mcp
68+
```
69+
70+
This merges the following server into `opencode.json`:
71+
72+
```json
73+
{
74+
"mcp": {
75+
"render": {
76+
"type": "remote",
77+
"url": "https://mcp.render.com/mcp",
78+
"enabled": true,
79+
"oauth": false,
80+
"headers": {
81+
"Authorization": "Bearer {env:RENDER_API_KEY}"
82+
}
83+
}
84+
}
85+
}
86+
```
87+
88+
Set `RENDER_API_KEY` in your environment before using Render MCP.
89+
90+
## Setting up the Render CLI
91+
92+
The plugin can validate Blueprints with the Render CLI.
93+
94+
1. Install the Render CLI:
95+
96+
```bash
97+
brew install render
98+
```
99+
100+
2. Authenticate:
101+
102+
```bash
103+
render login
104+
```
105+
106+
3. Verify access:
107+
108+
```bash
109+
render whoami -o json
110+
```
111+
112+
If `render whoami -o json` fails, fix authentication before relying on live Render workflows in OpenCode.
113+
114+
## Using the plugin
115+
116+
Good first prompts:
117+
118+
- `Help me deploy this project to Render.`
119+
- `Validate my render.yaml for Render.`
120+
- `Debug a failed Render deployment.`
121+
- `How are my Render services doing?`
122+
123+
You can also run:
124+
125+
```text
126+
/deploy-to-render
127+
/check-render-status
128+
```
129+
130+
## Maintainer workflow
131+
132+
Refresh bundled skills from `render-oss/skills`:
133+
134+
```bash
135+
./scripts/sync-skills.sh
136+
```
137+
138+
Use a different source repo or subdirectory:
139+
140+
```bash
141+
./scripts/sync-skills.sh --repo https://github.com/render-oss/skills --subdir skills
142+
```
143+
144+
Verify the package before publishing:
145+
146+
```bash
147+
npm run check
148+
```
149+
150+
## License
151+
152+
MIT. See [LICENSE](LICENSE).

assets/logo/logo.svg

Lines changed: 29 additions & 0 deletions
Loading

assets/opencode/agents/render.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
description: Render deployment specialist that helps deploy, configure, debug, and monitor applications on Render.
3+
mode: subagent
4+
permission:
5+
skill:
6+
render-*: allow
7+
---
8+
9+
# Render Assistant
10+
11+
You are a deployment specialist for Render. Use the available Render skills for detailed workflows.
12+
13+
Core Render constraints:
14+
15+
- Bind HTTP servers to `0.0.0.0:$PORT`.
16+
- Treat the filesystem as ephemeral unless a persistent disk is explicitly configured.
17+
- Use `render.yaml` Blueprints for repeatable multi-resource setups.
18+
- Mark secrets with `sync: false` instead of committing plaintext values.
19+
- Prefer internal service URLs for traffic between Render services in the same environment.
20+
21+
When live Render access is needed, prefer Render MCP tools if the user has configured them. Otherwise use the Render CLI and explain any missing setup.
22+
23+
When no specific Render skill applies, refer to the Render docs at https://render.com/docs.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
description: Check the health and status of Render services.
3+
agent: render
4+
---
5+
6+
Use the `render-monitor` skill to check Render service health, deploy status, logs, and metrics.
7+
8+
Prefer Render MCP tools when configured. Otherwise use the Render CLI and explain any missing credentials or setup steps.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
description: Deploy the current project to Render.
3+
agent: render
4+
---
5+
6+
Use the `render-deploy` skill to deploy this project to Render.
7+
8+
Analyze the codebase, choose the right Render service shape, create or update `render.yaml` when repeatability matters, validate the Blueprint, and provide the next deploy steps.

0 commit comments

Comments
 (0)