一键导入
skill-creator
Create reusable agent skills for OpenCode with proper structure, frontmatter, and validation
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create reusable agent skills for OpenCode with proper structure, frontmatter, and validation
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
基于本地git的代码审查技能,使用LLM生成详细审查报告,提供专业且友好的反馈
Analyze and simplify code by extracting reusable functions, removing redundancies, and improving overall code quality through refactoring techniques
仅用 Git 分析改动并自动生成 conventional commit 信息(可选 emoji);必要时建议拆分提交,默认运行本地 Git 钩子(可 --no-verify 跳过)
| name | skill-creator |
| description | Create reusable agent skills for OpenCode with proper structure, frontmatter, and validation |
| license | MIT |
| compatibility | opencode |
| metadata | {"audience":"developers","workflow":"plugin-development"} |
I help you design, structure, and create OpenCode Agent Skills that agents can discover and load on-demand. I guide you through the entire skill creation workflow.
Use this skill when you need to:
.opencode/
skill/
<skill-name>/
SKILL.md
Or in global config:
~/.config/opencode/skill/<skill-name>/SKILL.md
Or Claude-compatible paths:
.claude/skills/<skill-name>/SKILL.md
~/.claude/skills/<skill-name>/SKILL.md
---
name: my-skill # Required: 1-64 chars, lowercase alphanumeric with hyphens
description: What this skill does # Required: 1-1024 chars
license: MIT # Optional: SPDX license identifier
compatibility: opencode # Optional: target platform
metadata: # Optional: custom key-value pairs
audience: developers
workflow: documentation
---
Your skill name must match this regex:
^[a-z0-9]+(-[a-z0-9]+)*$
| Valid | Invalid |
|---|---|
doc-generator | Doc-Generator (uppercase) |
api-client | api client (space) |
react-component | react--component (double hyphen) |
v1 | -prefix (starts with hyphen) |
test-123 | suffix- (ends with hyphen) |
In opencode.json:
{
"permission": {
"skill": {
"my-skill": "allow",
"experimental-*": "ask",
"internal-*": "deny",
"*": "allow"
}
}
}
Permission behaviors:
allow: Agent loads skill immediatelydeny: Skill hidden, access rejectedask: User prompted for approvalFile: .opencode/skill/code-review/SKILL.md
---
name: code-review
description: Perform thorough code reviews focusing on security, performance, and maintainability
license: MIT
compatibility: opencode
metadata:
audience: developers
workflow: quality-assurance
---
## What I do
I analyze code changes and provide constructive feedback on:
- Security vulnerabilities (injection, auth, secrets)
- Performance bottlenecks (N+1 queries, unnecessary loops)
- Code smells and maintainability issues
- Test coverage and edge cases
## When to use me
Use this when reviewing pull requests, merge requests, or before committing changes.
## My workflow
1. Understand the context and scope of changes
2. Identify critical paths and security-sensitive code
3. Check for common anti-patterns
4. Verify test coverage for new functionality
5. Provide actionable feedback with examples
## What I won't do
- Review generated code without context
- Approve changes without human review
- Ignore architectural constraints
## Interaction style
- Be specific: point to exact lines
- Be constructive: suggest improvements
- Be factual: cite best practices
skill({ name: "my-skill" })OpenCode skills are compatible with Claude's skill format. You can:
| Problem | Solution |
|---|---|
| Skill not discovered | Check SKILL.md spelling (all caps) |
| Name validation fails | Verify regex pattern compliance |
| Frontmatter ignored | Ensure --- delimiters are present |
| Permission denied | Check opencode.json permission rules |
| Duplicate name | Ensure unique names across all locations |
---
name: my-new-skill
description: A clear, specific description
---
## What I do
Brief capability summary
## When to use me
Usage context
## My workflow
Step-by-step process
## Interaction style
How I communicate