mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 04:44:21 +01:00
Update documentation and configuration for production deployment
- Fix documentation drift across README, AGENTS.md, and CONTRIBUTING.md - Update Docker configuration with process timing and OAuth env vars - Simplify shared env config by removing unused Redis and OpenCode API URL - Add skills documentation to navigation - Improve .env.example with clearer AUTH_SECRET instructions
This commit is contained in:
1 parent
1e8b302de7
commit
fcfab08b0e
12 files changed
+131
-46
No files matched your search
+2
-12
@@ -167,7 +167,7 @@ The plugin is composed of several subsystems that work together:
|
||||
|
||||
### Storage Layer
|
||||
|
||||
The plugin uses a single SQLite database in WAL mode with four tables:
|
||||
The plugin uses a single SQLite database in WAL mode with three tables:
|
||||
|
||||
| Table | Purpose |
|
||||
|-------|---------|
|
||||
@@ -304,7 +304,7 @@ When deduplication triggers, the existing memory's ID is returned instead of cre
|
||||
|
||||
## Tools
|
||||
|
||||
The plugin registers seventeen tools that the AI agent can call:
|
||||
The plugin registers twelve tools that the AI agent can call:
|
||||
|
||||
### memory-read
|
||||
|
||||
@@ -416,16 +416,6 @@ Retrieve a value by key for the current project.
|
||||
|
||||
Returns the stored value (formatted as JSON if applicable) or a message indicating the key was not found.
|
||||
|
||||
### memory-kv-delete
|
||||
|
||||
Delete a key-value pair for the current project.
|
||||
|
||||
| Parameter | Type | Required | Description |
|
||||
|-----------|------|----------|-------------|
|
||||
| `key` | string | Yes | The key to delete |
|
||||
|
||||
Returns confirmation that the key was deleted.
|
||||
|
||||
### memory-kv-list
|
||||
|
||||
List all active key-value pairs for the current project.
|
||||
|
||||
@@ -0,0 +1,92 @@
|
||||
# Skills
|
||||
|
||||
Skills are reusable instruction sets that provide domain-specific workflows and guidance to OpenCode AI agents. They are stored as `SKILL.md` files and can be scoped globally or per-project.
|
||||
|
||||
## Scopes
|
||||
|
||||
| Scope | Location | Description |
|
||||
|-------|----------|-------------|
|
||||
| **Global** | `<workspace>/.config/opencode/skills/<name>/SKILL.md` | Available across all repositories |
|
||||
| **Project** | `<repo>/.opencode/skills/<name>/SKILL.md` | Scoped to a specific repository |
|
||||
|
||||
## Skill File Format
|
||||
|
||||
Each skill is a `SKILL.md` file with YAML frontmatter and a markdown body:
|
||||
|
||||
```markdown
|
||||
---
|
||||
name: my-skill
|
||||
description: Short description of what this skill does
|
||||
license: MIT
|
||||
compatibility: opencode >= 1.0
|
||||
metadata:
|
||||
author: your-name
|
||||
version: 1.0.0
|
||||
---
|
||||
Your skill instructions go here. This is the content that gets
|
||||
injected into the AI agent's context when the skill is loaded.
|
||||
```
|
||||
|
||||
### Frontmatter Fields
|
||||
|
||||
| Field | Required | Description |
|
||||
|-------|----------|-------------|
|
||||
| `name` | Yes | Lowercase alphanumeric with hyphens (e.g., `my-skill`). Max 64 characters. |
|
||||
| `description` | Yes | What the skill does. Max 1024 characters. |
|
||||
| `license` | No | License identifier (e.g., `MIT`) |
|
||||
| `compatibility` | No | Version compatibility note |
|
||||
| `metadata` | No | Key-value pairs for additional context |
|
||||
|
||||
### Naming Rules
|
||||
|
||||
Skill names must match the pattern `^[a-z0-9]+(-[a-z0-9]+)*$`:
|
||||
|
||||
- Lowercase letters and numbers only
|
||||
- Hyphens allowed between words
|
||||
- No spaces, underscores, or uppercase letters
|
||||
- Examples: `test-skill`, `code-review`, `deploy-helper`
|
||||
|
||||
## Managing Skills
|
||||
|
||||
Skills are managed through the Settings UI under the Skills section, or via the API.
|
||||
|
||||
### API Endpoints
|
||||
|
||||
All endpoints are under `/api/settings/skills`.
|
||||
|
||||
| Method | Path | Description |
|
||||
|--------|------|-------------|
|
||||
| `GET` | `/skills` | List all skills (optional `?repoId=` filter) |
|
||||
| `GET` | `/skills/:name` | Get a specific skill (requires `scope` query param, optional `repoId`) |
|
||||
| `POST` | `/skills` | Create a new skill |
|
||||
| `PUT` | `/skills/:name` | Update an existing skill (requires `scope` query param, optional `repoId`) |
|
||||
| `DELETE` | `/skills/:name` | Delete a skill (requires `scope` query param, optional `repoId`) |
|
||||
|
||||
### Create Request
|
||||
|
||||
```json
|
||||
{
|
||||
"name": "my-skill",
|
||||
"description": "Runs type check and lint",
|
||||
"body": "Instructions for the AI agent...",
|
||||
"scope": "global",
|
||||
"license": "MIT",
|
||||
"compatibility": "opencode >= 1.0",
|
||||
"metadata": { "author": "your-name" },
|
||||
"repoId": 1
|
||||
}
|
||||
```
|
||||
|
||||
`repoId` is required when `scope` is `"project"`.
|
||||
|
||||
### Update Request
|
||||
|
||||
All fields are optional. Set a field to `null` to clear it.
|
||||
|
||||
```json
|
||||
{
|
||||
"description": "Updated description",
|
||||
"body": "Updated instructions",
|
||||
"license": null
|
||||
}
|
||||
```
|
||||
Reference in new issue
Block a user