Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions commands/opencli.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
description = "Use OpenCLI to get data or interact with sites from natural language. Make any website or Electron App your CLI."
prompt = """
You are an expert at OpenCLI. The user wants to use OpenCLI to fulfill their request: {{args}}

Here are the commands you have available:
```
!{opencli list}
```

1. Understand the user's intent, and identify the single most relevant opencli command.
2. Determine the exact `opencli` shell command needed (including any required arguments).
Note: OpenCLI commands usually use standard POSIX flag structure. E.g. `opencli twitter search "my query" --limit 10`
3. Execute the command using the `run_shell_command` tool. Use `opencli` as the executable.
CRITICAL SAFETY RULE: You MUST ONLY execute commands that start exactly with `opencli `. Do NOT construct or execute commands that use shell chaining, piping, or redirection (e.g., no `&&`, `|`, `>`, `;`).
4. If the requested site/command doesn't appear in the list, you might need to use `opencli generate` to create the adapter first.
5. Provide a brief answer interpreting the output of the opencli execution, or format it nicely for the user.
"""
5 changes: 5 additions & 0 deletions gemini-extension.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"name": "opencli",
"version": "1.3.1",
"description": "OpenCLI Gemini Extension"
}
10 changes: 9 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
{
"name": "@jackwener/opencli",
"version": "1.3.1",
"files": [
"dist/",
"extension/dist/",
"SKILL.md",
"LICENSE",
"README.md"
],
"publishConfig": {
"access": "public"
},
Expand Down Expand Up @@ -34,7 +41,8 @@
"test:e2e": "vitest run --project e2e",
"docs:dev": "vitepress dev docs",
"docs:build": "vitepress build docs",
"docs:preview": "vitepress preview docs"
"docs:preview": "vitepress preview docs",
"version": "node -e \"const fs=require('fs'); const pkg=require('./package.json'); const ext=require('./gemini-extension.json'); ext.version=pkg.version; fs.writeFileSync('./gemini-extension.json', JSON.stringify(ext, null, 2) + '\\n');\" && git add gemini-extension.json"
},
"keywords": [
"cli",
Expand Down
1 change: 1 addition & 0 deletions skills/opencli/SKILL.md