@qodercn-ai/qoderclicn 0.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/LICENSE +202 -0
- package/README.md +153 -0
- package/bundle/builtin/agent-creator/SKILL.md +327 -0
- package/bundle/builtin/hook-config/SKILL.md +480 -0
- package/bundle/builtin/mcp-config/SKILL.md +155 -0
- package/bundle/builtin/skill-creator/SKILL.md +294 -0
- package/bundle/node_modules/@google/gemini-cli-devtools/dist/client/main.js +101 -0
- package/bundle/node_modules/@google/gemini-cli-devtools/dist/src/_client-assets.d.ts +7 -0
- package/bundle/node_modules/@google/gemini-cli-devtools/dist/src/_client-assets.js +9 -0
- package/bundle/node_modules/@google/gemini-cli-devtools/dist/src/index.d.ts +48 -0
- package/bundle/node_modules/@google/gemini-cli-devtools/dist/src/index.js +323 -0
- package/bundle/node_modules/@google/gemini-cli-devtools/dist/src/types.d.ts +36 -0
- package/bundle/node_modules/@google/gemini-cli-devtools/dist/src/types.js +7 -0
- package/bundle/node_modules/@google/gemini-cli-devtools/package.json +34 -0
- package/bundle/policies/sandbox-default.toml +19 -0
- package/bundle/qoderclicn.js +51 -0
- package/bundle/sandbox-macos-permissive-open.sb +27 -0
- package/bundle/sandbox-macos-permissive-proxied.sb +37 -0
- package/bundle/sandbox-macos-restrictive-open.sb +96 -0
- package/bundle/sandbox-macos-restrictive-proxied.sb +98 -0
- package/bundle/sandbox-macos-strict-open.sb +131 -0
- package/bundle/sandbox-macos-strict-proxied.sb +133 -0
- package/package.json +43 -0
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: skill-creator
|
|
3
|
+
description:
|
|
4
|
+
Guide for creating effective skills. This skill should be used when users want
|
|
5
|
+
to create a new skill (or update an existing skill) that extends Qoder CLI's
|
|
6
|
+
capabilities with specialized knowledge, workflows, or tool integrations.
|
|
7
|
+
allowed-tools: Edit, Write
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
# Skill Creator
|
|
11
|
+
|
|
12
|
+
This skill provides guidance for creating effective skills.
|
|
13
|
+
|
|
14
|
+
## About Skills
|
|
15
|
+
|
|
16
|
+
Skills are modular, self-contained packages that extend Qoder CLI's
|
|
17
|
+
capabilities by providing specialized knowledge, workflows, and tools. Think of
|
|
18
|
+
them as "onboarding guides" for specific domains or tasks—they transform Qoder
|
|
19
|
+
CLI from a general-purpose agent into a specialized agent equipped with
|
|
20
|
+
procedural knowledge that no model can fully possess.
|
|
21
|
+
|
|
22
|
+
### What Skills Provide
|
|
23
|
+
|
|
24
|
+
1. Specialized workflows - Multi-step procedures for specific domains
|
|
25
|
+
2. Tool integrations - Instructions for working with specific file formats or
|
|
26
|
+
APIs
|
|
27
|
+
3. Domain expertise - Company-specific knowledge, schemas, business logic
|
|
28
|
+
4. Bundled resources - Scripts, references, and assets for complex and
|
|
29
|
+
repetitive tasks
|
|
30
|
+
|
|
31
|
+
## Core Principles
|
|
32
|
+
|
|
33
|
+
### Concise is Key
|
|
34
|
+
|
|
35
|
+
The context window is a public good. Skills share the context window with
|
|
36
|
+
everything else Qoder CLI needs: system prompt, conversation history, other
|
|
37
|
+
Skills' metadata, and the actual user request.
|
|
38
|
+
|
|
39
|
+
**Default assumption: Qoder CLI is already very smart.** Only add context
|
|
40
|
+
Qoder CLI doesn't already have. Challenge each piece of information: "Does
|
|
41
|
+
Qoder CLI really need this explanation?" and "Does this paragraph justify its
|
|
42
|
+
token cost?"
|
|
43
|
+
|
|
44
|
+
Prefer concise examples over verbose explanations.
|
|
45
|
+
|
|
46
|
+
### Set Appropriate Degrees of Freedom
|
|
47
|
+
|
|
48
|
+
Match the level of specificity to the task's fragility and variability:
|
|
49
|
+
|
|
50
|
+
**High freedom (text-based instructions)**: Use when multiple approaches are
|
|
51
|
+
valid, decisions depend on context, or heuristics guide the approach.
|
|
52
|
+
|
|
53
|
+
**Medium freedom (pseudocode or scripts with parameters)**: Use when a preferred
|
|
54
|
+
pattern exists, some variation is acceptable, or configuration affects behavior.
|
|
55
|
+
|
|
56
|
+
**Low freedom (specific scripts, few parameters)**: Use when operations are
|
|
57
|
+
fragile and error-prone, consistency is critical, or a specific sequence must be
|
|
58
|
+
followed.
|
|
59
|
+
|
|
60
|
+
### Anatomy of a Skill
|
|
61
|
+
|
|
62
|
+
Every skill consists of a required SKILL.md file and optional bundled resources:
|
|
63
|
+
|
|
64
|
+
```
|
|
65
|
+
skill-name/
|
|
66
|
+
├── SKILL.md (required)
|
|
67
|
+
│ ├── YAML frontmatter metadata (required)
|
|
68
|
+
│ │ ├── name: (required)
|
|
69
|
+
│ │ ├── description: (required)
|
|
70
|
+
│ │ └── model/tools/when_to_use/... (optional)
|
|
71
|
+
│ └── Markdown instructions (required)
|
|
72
|
+
└── Bundled Resources (optional)
|
|
73
|
+
├── scripts/ - Executable code (Node.js/Python/Bash/etc.)
|
|
74
|
+
├── references/ - Documentation intended to be loaded into context as needed
|
|
75
|
+
└── assets/ - Files used in output (templates, icons, fonts, etc.)
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
#### SKILL.md (required)
|
|
79
|
+
|
|
80
|
+
Every SKILL.md consists of:
|
|
81
|
+
|
|
82
|
+
- **Frontmatter** (YAML): Contains `name` and `description` fields. These are
|
|
83
|
+
the only fields that Qoder CLI reads to determine when the skill gets used,
|
|
84
|
+
thus it is very important to be clear and comprehensive in describing what the
|
|
85
|
+
skill is, and when it should be used.
|
|
86
|
+
- **Body** (Markdown): Instructions and guidance for using the skill. Only
|
|
87
|
+
loaded AFTER the skill triggers (if at all).
|
|
88
|
+
|
|
89
|
+
#### Bundled Resources (optional)
|
|
90
|
+
|
|
91
|
+
##### Scripts (`scripts/`)
|
|
92
|
+
|
|
93
|
+
Executable code (Node.js/Python/Bash/etc.) for tasks that require deterministic
|
|
94
|
+
reliability or are repeatedly rewritten.
|
|
95
|
+
|
|
96
|
+
- **When to include**: When the same code is being rewritten repeatedly or
|
|
97
|
+
deterministic reliability is needed
|
|
98
|
+
- **Example**: `scripts/rotate_pdf.cjs` for PDF rotation tasks
|
|
99
|
+
- **Benefits**: Token efficient, deterministic, may be executed without loading
|
|
100
|
+
into context
|
|
101
|
+
- **Agentic Ergonomics**: Scripts must output LLM-friendly stdout. Suppress
|
|
102
|
+
standard tracebacks. Output clear, concise success/failure messages, and
|
|
103
|
+
paginate or truncate outputs to prevent context window overflow.
|
|
104
|
+
|
|
105
|
+
##### References (`references/`)
|
|
106
|
+
|
|
107
|
+
Documentation and reference material intended to be loaded as needed into
|
|
108
|
+
context to inform Qoder CLI's process and thinking.
|
|
109
|
+
|
|
110
|
+
- **When to include**: For documentation that Qoder CLI should reference while
|
|
111
|
+
working
|
|
112
|
+
- **Examples**: `references/finance.md` for financial schemas,
|
|
113
|
+
`references/api_docs.md` for API specifications
|
|
114
|
+
- **Best practice**: If files are large (>10k words), include grep search
|
|
115
|
+
patterns in SKILL.md
|
|
116
|
+
|
|
117
|
+
##### Assets (`assets/`)
|
|
118
|
+
|
|
119
|
+
Files not intended to be loaded into context, but rather used within the output
|
|
120
|
+
Qoder CLI produces.
|
|
121
|
+
|
|
122
|
+
- **When to include**: When the skill needs files that will be used in the final
|
|
123
|
+
output
|
|
124
|
+
- **Examples**: `assets/logo.png` for brand assets, `assets/slides.pptx` for
|
|
125
|
+
PowerPoint templates
|
|
126
|
+
|
|
127
|
+
#### What to Not Include in a Skill
|
|
128
|
+
|
|
129
|
+
Do NOT create extraneous documentation or auxiliary files like README.md,
|
|
130
|
+
CHANGELOG.md, INSTALLATION_GUIDE.md, etc. The skill should only contain the
|
|
131
|
+
information needed for an AI agent to do the job.
|
|
132
|
+
|
|
133
|
+
### Progressive Disclosure Design Principle
|
|
134
|
+
|
|
135
|
+
Skills use a three-level loading system to manage context efficiently:
|
|
136
|
+
|
|
137
|
+
1. **Metadata (name + description)** - Always in context (~100 words)
|
|
138
|
+
2. **SKILL.md body** - When skill triggers (<5k words)
|
|
139
|
+
3. **Bundled resources** - As needed (unlimited because scripts can be executed
|
|
140
|
+
without reading into context window)
|
|
141
|
+
|
|
142
|
+
Keep SKILL.md body under 500 lines. Split content into separate reference files
|
|
143
|
+
when approaching this limit.
|
|
144
|
+
|
|
145
|
+
## Skill Creation Process
|
|
146
|
+
|
|
147
|
+
1. Understand the skill with concrete examples
|
|
148
|
+
2. Plan reusable skill contents (scripts, references, assets)
|
|
149
|
+
3. Create the skill directory and template files
|
|
150
|
+
4. Edit the skill (implement resources and write SKILL.md)
|
|
151
|
+
5. Validate the skill
|
|
152
|
+
6. Install and test
|
|
153
|
+
|
|
154
|
+
Follow these steps in order.
|
|
155
|
+
|
|
156
|
+
### Skill Naming
|
|
157
|
+
|
|
158
|
+
- Use lowercase letters, digits, and hyphens only; normalize user-provided
|
|
159
|
+
titles to hyphen-case (e.g., "Plan Mode" -> `plan-mode`).
|
|
160
|
+
- Prefer short, verb-led phrases that describe the action.
|
|
161
|
+
- Name the skill folder exactly after the skill name.
|
|
162
|
+
|
|
163
|
+
### Step 1: Understanding the Skill with Concrete Examples
|
|
164
|
+
|
|
165
|
+
To create an effective skill, clearly understand concrete examples of how the
|
|
166
|
+
skill will be used. Ask users:
|
|
167
|
+
|
|
168
|
+
- "What functionality should this skill support?"
|
|
169
|
+
- "Can you give some examples of how this skill would be used?"
|
|
170
|
+
- "What would a user say that should trigger this skill?"
|
|
171
|
+
|
|
172
|
+
**Avoid interrogation loops:** Do not ask more than one or two clarifying
|
|
173
|
+
questions at a time. Bias toward action: propose a concrete list of features
|
|
174
|
+
based on your initial understanding, and ask the user to refine them.
|
|
175
|
+
|
|
176
|
+
### Step 2: Planning the Reusable Skill Contents
|
|
177
|
+
|
|
178
|
+
Analyze each concrete example to identify reusable resources:
|
|
179
|
+
|
|
180
|
+
- **Scripts**: Code that would be rewritten each time (e.g., `rotate_pdf.cjs`)
|
|
181
|
+
- **References**: Documentation needed for context (e.g., `schema.md`)
|
|
182
|
+
- **Assets**: Files used in output (e.g., template directories, images)
|
|
183
|
+
|
|
184
|
+
### Step 3: Creating the Skill
|
|
185
|
+
|
|
186
|
+
Create the skill directory structure directly. Ask the user for the target
|
|
187
|
+
location:
|
|
188
|
+
|
|
189
|
+
- **Project-level**: `${QODER_CONFIG_DIR}/skills/<skill-name>/`
|
|
190
|
+
- **User-level**: `~/${QODER_CONFIG_DIR}/skills/<skill-name>/`
|
|
191
|
+
|
|
192
|
+
Create the following directory structure:
|
|
193
|
+
|
|
194
|
+
```
|
|
195
|
+
<skill-name>/
|
|
196
|
+
├── SKILL.md
|
|
197
|
+
├── scripts/ (if needed)
|
|
198
|
+
├── references/ (if needed)
|
|
199
|
+
└── assets/ (if needed)
|
|
200
|
+
```
|
|
201
|
+
|
|
202
|
+
Write the initial `SKILL.md` with this template:
|
|
203
|
+
|
|
204
|
+
```markdown
|
|
205
|
+
---
|
|
206
|
+
name: <skill-name>
|
|
207
|
+
description: <Complete explanation of what the skill does and when to use it. Include specific scenarios, file types, or tasks that trigger it.>
|
|
208
|
+
---
|
|
209
|
+
|
|
210
|
+
# <Skill Title>
|
|
211
|
+
|
|
212
|
+
## Overview
|
|
213
|
+
|
|
214
|
+
[1-2 sentences explaining what this skill enables]
|
|
215
|
+
|
|
216
|
+
## [Main section based on chosen structure]
|
|
217
|
+
|
|
218
|
+
[Skill instructions and guidance]
|
|
219
|
+
|
|
220
|
+
## Resources
|
|
221
|
+
|
|
222
|
+
[Reference any bundled scripts, references, or assets here]
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
Only create the resource directories (`scripts/`, `references/`, `assets/`)
|
|
226
|
+
that are actually needed for this skill. Do not create empty placeholder
|
|
227
|
+
directories.
|
|
228
|
+
|
|
229
|
+
### Step 4: Edit the Skill
|
|
230
|
+
|
|
231
|
+
When editing the skill, remember it is being created for another instance of
|
|
232
|
+
Qoder CLI to use. Include information that would be beneficial and non-obvious.
|
|
233
|
+
|
|
234
|
+
#### Start with Reusable Skill Contents
|
|
235
|
+
|
|
236
|
+
Implement the resources identified in Step 2. This may require user input
|
|
237
|
+
(e.g., brand assets, documentation to store).
|
|
238
|
+
|
|
239
|
+
Scripts must be tested by actually running them to ensure they work correctly.
|
|
240
|
+
|
|
241
|
+
#### Update SKILL.md
|
|
242
|
+
|
|
243
|
+
**Writing Guidelines:** Always use imperative/infinitive form.
|
|
244
|
+
|
|
245
|
+
##### Frontmatter
|
|
246
|
+
|
|
247
|
+
**Required fields:**
|
|
248
|
+
|
|
249
|
+
- `name`: The skill name (hyphen-case, lowercase)
|
|
250
|
+
- `description`: Primary triggering mechanism. Include both what the Skill does
|
|
251
|
+
and specific triggers/contexts for when to use it. **Must be a single-line
|
|
252
|
+
string** (max 1024 characters).
|
|
253
|
+
- Example:
|
|
254
|
+
`description: Data ingestion, cleaning, and transformation for tabular data. Use when working with CSV/TSV files to analyze large datasets, normalize schemas, or merge sources.`
|
|
255
|
+
|
|
256
|
+
**Optional fields:**
|
|
257
|
+
|
|
258
|
+
- `model`: Override the model used when this skill is active
|
|
259
|
+
- `tools`: List of tools this skill is allowed to use (supports glob patterns)
|
|
260
|
+
- `when_to_use`: Concise hint for automatic skill selection
|
|
261
|
+
- `argument-hint`: Short hint for expected arguments (e.g., `<file-path>`)
|
|
262
|
+
- `arguments`: Structured argument definitions for complex skills
|
|
263
|
+
|
|
264
|
+
##### Body
|
|
265
|
+
|
|
266
|
+
Write instructions for using the skill and its bundled resources.
|
|
267
|
+
|
|
268
|
+
### Step 5: Validate the Skill
|
|
269
|
+
|
|
270
|
+
After writing the skill, verify it meets these requirements:
|
|
271
|
+
|
|
272
|
+
**Checklist:**
|
|
273
|
+
|
|
274
|
+
- [ ] `SKILL.md` exists in the skill directory
|
|
275
|
+
- [ ] YAML frontmatter starts with `---` and ends with `---`
|
|
276
|
+
- [ ] `name` field is present and uses hyphen-case (`/^[a-z0-9-]+$/`)
|
|
277
|
+
- [ ] `description` field is present, single-line, and ≤ 1024 characters
|
|
278
|
+
- [ ] No unresolved `TODO:` strings remain in any file
|
|
279
|
+
- [ ] Skill folder name matches the `name` field
|
|
280
|
+
- [ ] No extraneous files (README.md, CHANGELOG.md, etc.)
|
|
281
|
+
- [ ] SKILL.md body is under 500 lines
|
|
282
|
+
|
|
283
|
+
If any check fails, fix the issue before proceeding.
|
|
284
|
+
|
|
285
|
+
### Step 6: Install and Test
|
|
286
|
+
|
|
287
|
+
Tell the user their skill is ready. They can use it by:
|
|
288
|
+
|
|
289
|
+
1. Restarting the session or running `/skills reload`
|
|
290
|
+
2. Invoking with `/<skill-name>`
|
|
291
|
+
3. Verifying with `/skills list`
|
|
292
|
+
|
|
293
|
+
**Iteration:** After testing, users may request improvements. Use the skill on
|
|
294
|
+
real tasks, notice struggles or inefficiencies, and update accordingly.
|