An open-source, faster Devin alternative
TypeScript
Add agent skill guide to docs
motatoes3333f68bd56c
diff --git a/docs/guides/agent-skill.mdx b/docs/guides/agent-skill.mdxnew file mode 100644index 00000000..679ee376--- /dev/null+++ b/docs/guides/agent-skill.mdx@@ -0,0 +1,41 @@+---+title: "Agent Skill"+description: "Use AI agents to manage cloud sandboxes with natural language"+---++The OpenComputer skill lets AI agents like Claude Code create and manage cloud sandboxes using the `oc` CLI. Instead of writing commands yourself, just describe what you want.++## Install++```bash+npx skills add diggerhq/opencomputer+```++This works with Claude Code, Codex, Cursor, and any agent that supports the [Agent Skills](https://agentskills.io) standard.++## Prerequisites++The `oc` CLI must be installed and configured:++```bash+curl -fsSL https://github.com/diggerhq/opencomputer/releases/latest/download/oc-$(uname -s | tr '[:upper:]' '[:lower:]')-$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/') -o /usr/local/bin/oc && chmod +x /usr/local/bin/oc+oc config set api-key YOUR_API_KEY+```++## Usage++The skill activates automatically when you mention sandboxes or the `oc` CLI. Just ask naturally:++**Create a custom base image:**+> Create a base image for me that includes a placeholder React app I can use as a starter kit. Checkpoint it so I can spawn copies later.++**Fork and experiment:**+> Spawn two sandboxes from my react-starter checkpoint. In the first one, add Tailwind CSS. In the second, add Material UI.++**Run commands:**+> Install PostgreSQL in my sandbox and run the test suite++**Manage state:**+> Checkpoint my sandbox before I try this migration, so I can roll back if it breaks++The agent handles all the `oc` commands under the hood — creating sandboxes, running `exec`, taking checkpoints, applying patches, and cleaning up.diff --git a/docs/mint.json b/docs/mint.jsonindex 50170ba2..ffae2f08 100644--- a/docs/mint.json+++ b/docs/mint.json@@ -50,7 +50,8 @@{"group": "Guides","pages": [- "guides/build-a-lovable-clone"+ "guides/build-a-lovable-clone",+ "guides/agent-skill"]},{