@biggora/claude-plugins 1.0.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/settings.local.json +13 -0
- package/CLAUDE.md +55 -0
- package/LICENSE +1 -1
- package/README.md +208 -39
- package/bin/cli.js +39 -0
- package/package.json +30 -17
- package/registry/registry.json +166 -1
- package/registry/schema.json +10 -0
- package/src/commands/skills/add.js +194 -0
- package/src/commands/skills/list.js +52 -0
- package/src/commands/skills/remove.js +27 -0
- package/src/commands/skills/update.js +74 -0
- package/src/config.js +5 -0
- package/src/skills/codex-cli/SKILL.md +265 -0
- package/src/skills/commafeed-api/SKILL.md +1012 -0
- package/src/skills/gemini-cli/SKILL.md +379 -0
- package/src/skills/gemini-cli/references/commands.md +145 -0
- package/src/skills/gemini-cli/references/configuration.md +182 -0
- package/src/skills/gemini-cli/references/headless-and-scripting.md +181 -0
- package/src/skills/gemini-cli/references/mcp-and-extensions.md +254 -0
- package/src/skills/n8n-api/SKILL.md +623 -0
- package/src/skills/notebook-lm/SKILL.md +217 -0
- package/src/skills/notebook-lm/references/artifact-options.md +168 -0
- package/src/skills/notebook-lm/references/auth.md +58 -0
- package/src/skills/notebook-lm/references/workflows.md +144 -0
- package/src/skills/screen-recording/SKILL.md +309 -0
- package/src/skills/screen-recording/references/approach1-programmatic.md +311 -0
- package/src/skills/screen-recording/references/approach2-xvfb.md +232 -0
- package/src/skills/screen-recording/references/design-patterns.md +168 -0
- package/src/skills/test-mobile-app/SKILL.md +212 -0
- package/src/skills/test-mobile-app/references/report-template.md +95 -0
- package/src/skills/test-mobile-app/references/setup-appium.md +154 -0
- package/src/skills/test-mobile-app/scripts/analyze_apk.py +164 -0
- package/src/skills/test-mobile-app/scripts/check_environment.py +116 -0
- package/src/skills/test-mobile-app/scripts/generate_report.py +250 -0
- package/src/skills/test-mobile-app/scripts/run_tests.py +326 -0
- package/src/skills/test-web-ui/SKILL.md +232 -0
- package/src/skills/test-web-ui/references/test_case_schema.md +102 -0
- package/src/skills/test-web-ui/scripts/discover.py +176 -0
- package/src/skills/test-web-ui/scripts/generate_report.py +237 -0
- package/src/skills/test-web-ui/scripts/run_tests.py +296 -0
- package/src/skills/text-to-speech/SKILL.md +236 -0
- package/src/skills/text-to-speech/references/espeak-cli.md +277 -0
- package/src/skills/text-to-speech/references/kokoro-onnx.md +124 -0
- package/src/skills/text-to-speech/references/online-engines.md +128 -0
- package/src/skills/text-to-speech/references/pyttsx3-espeak.md +143 -0
- package/src/skills/tm-search/SKILL.md +240 -0
- package/src/skills/tm-search/references/field-guide.md +79 -0
- package/src/skills/tm-search/references/scraping-fallback.md +140 -0
- package/src/skills/tm-search/scripts/tm_search.py +375 -0
- package/src/skills/wp-rest-api/SKILL.md +114 -0
- package/src/skills/wp-rest-api/references/authentication.md +18 -0
- package/src/skills/wp-rest-api/references/custom-content-types.md +20 -0
- package/src/skills/wp-rest-api/references/discovery-and-params.md +20 -0
- package/src/skills/wp-rest-api/references/responses-and-fields.md +30 -0
- package/src/skills/wp-rest-api/references/routes-and-endpoints.md +36 -0
- package/src/skills/wp-rest-api/references/schema.md +22 -0
- package/src/skills/youtube-search/SKILL.md +412 -0
- package/src/skills/youtube-search/references/parsing-examples.md +159 -0
- package/src/skills/youtube-search/references/youtube-api-quota.md +85 -0
- package/src/skills/youtube-thumbnail/SKILL.md +1060 -0
- package/tests/commands/info.test.js +49 -0
- package/tests/commands/install.test.js +36 -0
- package/tests/commands/list.test.js +66 -0
- package/tests/commands/publish.test.js +182 -0
- package/tests/commands/search.test.js +45 -0
- package/tests/commands/uninstall.test.js +29 -0
- package/tests/commands/update.test.js +59 -0
- package/tests/functional/skills-lifecycle.test.js +293 -0
- package/tests/helpers/fixtures.js +63 -0
- package/tests/integration/cli.test.js +83 -0
- package/tests/skills/add.test.js +138 -0
- package/tests/skills/list.test.js +63 -0
- package/tests/skills/remove.test.js +38 -0
- package/tests/skills/update.test.js +60 -0
- package/tests/unit/config.test.js +31 -0
- package/tests/unit/registry.test.js +79 -0
- package/tests/unit/utils.test.js +150 -0
- package/tests/validation/registry-schema.test.js +112 -0
- package/tests/validation/skills-validation.test.js +96 -0
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: codex-cli
|
|
3
|
+
description: >
|
|
4
|
+
Use this skill whenever you need to install, configure, run, or automate
|
|
5
|
+
tasks using OpenAI's Codex CLI (codex-cli). Trigger on any mention of
|
|
6
|
+
"codex cli", "openai codex", "codex exec", "codex agent", "codex terminal",
|
|
7
|
+
CI automation with Codex, approval modes (full-auto, read-only, on-request),
|
|
8
|
+
sandbox policies, or when someone wants to use an AI coding agent from the
|
|
9
|
+
terminal. Also trigger when the user wants to install codex, write codex
|
|
10
|
+
config files (config.toml), run non-interactive codex sessions, integrate
|
|
11
|
+
codex into GitHub Actions or CI pipelines, configure MCP servers for codex,
|
|
12
|
+
set up codex profiles, or troubleshoot codex sandbox and approval issues.
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
# Codex CLI Skill
|
|
16
|
+
|
|
17
|
+
OpenAI Codex CLI (`@openai/codex`) is a lightweight, open-source AI coding agent that runs locally in the terminal. It can read, edit, and execute code in your project directory using GPT-5 models.
|
|
18
|
+
|
|
19
|
+
## Quick Reference
|
|
20
|
+
|
|
21
|
+
### Installation
|
|
22
|
+
```bash
|
|
23
|
+
npm install -g @openai/codex
|
|
24
|
+
# Authenticate (browser or API key)
|
|
25
|
+
codex # launches TUI with browser auth
|
|
26
|
+
export OPENAI_API_KEY="sk-..." # or use API key
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### Basic Usage
|
|
30
|
+
```bash
|
|
31
|
+
codex # Interactive TUI
|
|
32
|
+
codex "Fix the TypeScript errors" # TUI with pre-filled prompt
|
|
33
|
+
codex exec "Run tests and fix failures" # Non-interactive (CI/scripts)
|
|
34
|
+
codex e "Update CHANGELOG" # Short alias for exec
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## Core Concepts
|
|
40
|
+
|
|
41
|
+
### Approval Modes (`-a` / `--ask-for-approval`)
|
|
42
|
+
Controls when Codex pauses to ask before executing:
|
|
43
|
+
|
|
44
|
+
| Mode | Flag | Behavior |
|
|
45
|
+
|------|------|----------|
|
|
46
|
+
| `untrusted` | `-a untrusted` | Max caution — approves almost everything |
|
|
47
|
+
| `on-request` | `-a on-request` | Asks on sensitive actions (default for auto) |
|
|
48
|
+
| `never` | `-a never` | Never asks — runs fully automated |
|
|
49
|
+
| `reject` | `-a reject` | Blocks all tool use |
|
|
50
|
+
|
|
51
|
+
### Sandbox Modes (`-s` / `--sandbox`)
|
|
52
|
+
Controls filesystem and network access:
|
|
53
|
+
|
|
54
|
+
| Mode | Flag | Access |
|
|
55
|
+
|------|------|--------|
|
|
56
|
+
| `read-only` | `-s read-only` | Read files only, no writes |
|
|
57
|
+
| `workspace-write` | `-s workspace-write` | Write within working directory only |
|
|
58
|
+
| `danger-full-access` | `-s danger-full-access` | Full system access (use with caution) |
|
|
59
|
+
|
|
60
|
+
### Common Combinations
|
|
61
|
+
```bash
|
|
62
|
+
# Safe daily development (recommended)
|
|
63
|
+
codex --full-auto "task"
|
|
64
|
+
# Equivalent to: -a on-request -s workspace-write
|
|
65
|
+
|
|
66
|
+
# Full automation (CI/scripts)
|
|
67
|
+
codex -a never -s workspace-write "task"
|
|
68
|
+
|
|
69
|
+
# Audit / review only
|
|
70
|
+
codex -s read-only "Review the codebase"
|
|
71
|
+
|
|
72
|
+
# Unrestricted (isolated environments ONLY)
|
|
73
|
+
codex --dangerously-bypass-approvals-and-sandbox "task"
|
|
74
|
+
# Alias: --yolo
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
---
|
|
78
|
+
|
|
79
|
+
## Configuration (`~/.codex/config.toml`)
|
|
80
|
+
|
|
81
|
+
### Minimal config
|
|
82
|
+
```toml
|
|
83
|
+
model = "gpt-5-codex"
|
|
84
|
+
approval_policy = "on-request"
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### Full config example
|
|
88
|
+
```toml
|
|
89
|
+
model = "gpt-5-codex"
|
|
90
|
+
approval_policy = "on-request"
|
|
91
|
+
|
|
92
|
+
[sandbox_workspace_write]
|
|
93
|
+
network_access = false # true to allow network
|
|
94
|
+
|
|
95
|
+
[features]
|
|
96
|
+
shell_snapshot = true # faster repeated commands
|
|
97
|
+
|
|
98
|
+
[tui]
|
|
99
|
+
alternate_screen = "auto"
|
|
100
|
+
animations = true
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
### Profiles (for different workflows)
|
|
104
|
+
```toml
|
|
105
|
+
[profiles.ci]
|
|
106
|
+
model = "gpt-5-codex"
|
|
107
|
+
approval_policy = "never"
|
|
108
|
+
|
|
109
|
+
[profiles.review]
|
|
110
|
+
model = "gpt-5-pro"
|
|
111
|
+
model_reasoning_effort = "high"
|
|
112
|
+
approval_policy = "untrusted"
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
Use a profile: `codex --profile ci "task"` or set `profile = "ci"` at the top level.
|
|
116
|
+
|
|
117
|
+
### Config precedence (highest → lowest)
|
|
118
|
+
1. CLI flags (`--model`, `-c key=value`)
|
|
119
|
+
2. Project config: `.codex/config.toml` in project root (trusted projects only)
|
|
120
|
+
3. User config: `~/.codex/config.toml`
|
|
121
|
+
4. System/built-in defaults
|
|
122
|
+
|
|
123
|
+
---
|
|
124
|
+
|
|
125
|
+
## Non-Interactive Mode (`codex exec`)
|
|
126
|
+
|
|
127
|
+
Ideal for CI pipelines and shell scripts:
|
|
128
|
+
|
|
129
|
+
```bash
|
|
130
|
+
# Basic
|
|
131
|
+
codex exec "Update the CHANGELOG for v2.1.0"
|
|
132
|
+
|
|
133
|
+
# With options
|
|
134
|
+
codex exec \
|
|
135
|
+
--full-auto \
|
|
136
|
+
--model gpt-5-codex \
|
|
137
|
+
--path /my/project \
|
|
138
|
+
"Fix all TypeScript type errors"
|
|
139
|
+
|
|
140
|
+
# JSON output (for parsing)
|
|
141
|
+
codex exec --json "Find all TODO comments"
|
|
142
|
+
|
|
143
|
+
# Resume previous session
|
|
144
|
+
codex exec --resume <session-id> "Continue where we left off"
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
### GitHub Actions example
|
|
148
|
+
```yaml
|
|
149
|
+
- name: Run Codex
|
|
150
|
+
run: |
|
|
151
|
+
npm i -g @openai/codex
|
|
152
|
+
codex exec --full-auto "Update CHANGELOG"
|
|
153
|
+
env:
|
|
154
|
+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
|
155
|
+
```
|
|
156
|
+
|
|
157
|
+
---
|
|
158
|
+
|
|
159
|
+
## TUI Slash Commands
|
|
160
|
+
|
|
161
|
+
| Command | Effect |
|
|
162
|
+
|---------|--------|
|
|
163
|
+
| `/status` | Show model, approval policy, token usage, workspace roots |
|
|
164
|
+
| `/permissions` | Change approval mode interactively |
|
|
165
|
+
| `/model` | Switch model mid-session |
|
|
166
|
+
| `/clear` | Clear transcript, start fresh conversation |
|
|
167
|
+
| `/copy` | Copy latest Codex output to clipboard |
|
|
168
|
+
| `/plan` | Enter plan mode |
|
|
169
|
+
| `/review` | Review changes in working tree |
|
|
170
|
+
| `/mcp` | List available MCP tools |
|
|
171
|
+
| `/agent` | Switch between agent threads |
|
|
172
|
+
| `/feedback` | Submit feedback |
|
|
173
|
+
| `/logout` | Clear stored credentials |
|
|
174
|
+
|
|
175
|
+
**Keyboard shortcuts:**
|
|
176
|
+
- `Enter` while running → inject new instructions
|
|
177
|
+
- `Tab` → queue follow-up for next turn
|
|
178
|
+
- `Esc Esc` → edit previous message / fork from that point
|
|
179
|
+
- `!command` → run local shell command, result feeds Codex
|
|
180
|
+
|
|
181
|
+
---
|
|
182
|
+
|
|
183
|
+
## MCP Servers
|
|
184
|
+
|
|
185
|
+
Add third-party tools to Codex via Model Context Protocol:
|
|
186
|
+
|
|
187
|
+
```toml
|
|
188
|
+
# ~/.codex/config.toml
|
|
189
|
+
[mcp_servers.github]
|
|
190
|
+
command = "npx"
|
|
191
|
+
args = ["-y", "@modelcontextprotocol/server-github"]
|
|
192
|
+
env = { GITHUB_TOKEN = "$GITHUB_TOKEN" }
|
|
193
|
+
|
|
194
|
+
[mcp_servers.my-api]
|
|
195
|
+
url = "https://my-server.example.com/mcp"
|
|
196
|
+
```
|
|
197
|
+
|
|
198
|
+
Run Codex itself as an MCP server (for other agents to consume):
|
|
199
|
+
```bash
|
|
200
|
+
codex mcp
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
---
|
|
204
|
+
|
|
205
|
+
## Network Access
|
|
206
|
+
|
|
207
|
+
By default, network is **disabled** in sandbox:
|
|
208
|
+
|
|
209
|
+
```bash
|
|
210
|
+
# Enable network for one run
|
|
211
|
+
codex -s workspace-write \
|
|
212
|
+
-c 'sandbox_workspace_write.network_access=true' \
|
|
213
|
+
"npm install and run tests"
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
---
|
|
217
|
+
|
|
218
|
+
## Agent Skills (`.codex/skills/`)
|
|
219
|
+
|
|
220
|
+
Codex supports reusable skill bundles. Reference with `$skill-name` syntax in the TUI:
|
|
221
|
+
|
|
222
|
+
```
|
|
223
|
+
.codex/
|
|
224
|
+
skills/
|
|
225
|
+
my-skill/
|
|
226
|
+
skill.md # instructions for this skill
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
Usage in TUI: `Use $my-skill to generate a new module`
|
|
230
|
+
|
|
231
|
+
---
|
|
232
|
+
|
|
233
|
+
## Troubleshooting
|
|
234
|
+
|
|
235
|
+
| Problem | Fix |
|
|
236
|
+
|---------|-----|
|
|
237
|
+
| Approval prompts won't stop | Check `/status`, restart with explicit `-a` flag or profile |
|
|
238
|
+
| Network access denied | Add `-c 'sandbox_workspace_write.network_access=true'` |
|
|
239
|
+
| Sandbox ENOENT on macOS | Run `xcode-select --install`, check dir permissions |
|
|
240
|
+
| Landlock error on Linux/WSL | Update WSL2 or use `--dangerously-bypass-approvals-and-sandbox` in isolated env |
|
|
241
|
+
| Auth loop / browser keeps opening | Run `codex logout`, then `rm -f ~/.codex/auth.json`, use `OPENAI_API_KEY` |
|
|
242
|
+
| Settings reset after reconnect | Use a named profile in `config.toml` |
|
|
243
|
+
|
|
244
|
+
---
|
|
245
|
+
|
|
246
|
+
## Key Flags Reference
|
|
247
|
+
|
|
248
|
+
| Flag | Short | Description |
|
|
249
|
+
|------|-------|-------------|
|
|
250
|
+
| `--ask-for-approval` | `-a` | Approval mode: `untrusted`, `on-request`, `never`, `reject` |
|
|
251
|
+
| `--sandbox` | `-s` | Sandbox mode: `read-only`, `workspace-write`, `danger-full-access` |
|
|
252
|
+
| `--full-auto` | | Shortcut: `-a on-request -s workspace-write` |
|
|
253
|
+
| `--dangerously-bypass-approvals-and-sandbox` | `--yolo` | No restrictions (isolated envs only) |
|
|
254
|
+
| `--model` | `-m` | Override model for this run |
|
|
255
|
+
| `--profile` | `-p` | Load named profile from config.toml |
|
|
256
|
+
| `--cd` | | Set working directory without cd |
|
|
257
|
+
| `--config` | `-c` | Override any config key: `-c model=gpt-4.1` |
|
|
258
|
+
| `--json` | | Output newline-delimited JSON events |
|
|
259
|
+
| `--oss` | | Use local Ollama provider |
|
|
260
|
+
| `--images` | | Attach images to prompt (comma-separated paths) |
|
|
261
|
+
| `--live-search` | | Enable live web search |
|
|
262
|
+
| `--resume` | | Resume previous session by ID |
|
|
263
|
+
| `--no-persist` | | Don't write session rollout files to disk |
|
|
264
|
+
|
|
265
|
+
For detailed reference, see: https://developers.openai.com/codex/cli/reference/
|