在 Manus 中运行任何 Skill
一键导入
一键导入
一键在 Manus 中运行任何 Skill
开始使用$pwd:
$ git log --oneline --stat
stars:221
forks:22
updated:2026年4月18日 02:04
SKILL.md
中文 README 生成器 - 先分析项目,再生成面向中文开发者的高质量 README
编程错误消息翻译专家 — 将英文错误消息翻译成中文,解释原因并提供修复方案
项目目录结构地图 - 生成带说明的可视化目录树,快速理解任意代码库
代码安全审计 - 漏洞扫描、依赖检查、安全最佳实践
环境变量管理器:扫描、校验、同步 .env 文件,生成安全配置模板
GitHub Actions CI/CD 流水线生成器:根据项目技术栈自动创建 workflows
| name | test-generator |
| description | 自动生成单元测试:识别函数逻辑、覆盖边界条件、生成可运行测试代码 |
当用户要求"生成测试"、"写单元测试"、"为 XX 函数写测试"、"增加测试覆盖率"时激活此技能。
每个函数至少覆盖:
根据项目语言和测试框架生成对应代码:
import pytest
from mymodule import my_function
class TestMyFunction:
def test_normal_input(self):
assert my_function("hello") == "HELLO"
def test_empty_string(self):
assert my_function("") == ""
def test_none_input(self):
with pytest.raises(TypeError):
my_function(None)
def test_special_characters(self):
assert my_function("你好!@#") == "你好!@#"
const { myFunction } = require('./mymodule');
describe('myFunction', () => {
test('正常输入', () => {
expect(myFunction('hello')).toBe('HELLO');
});
test('空字符串', () => {
expect(myFunction('')).toBe('');
});
test('null 输入', () => {
expect(() => myFunction(null)).toThrow(TypeError);
});
});
package mypackage
import "testing"
func TestMyFunction(t *testing.T) {
tests := []struct {
name string
input string
want string
}{
{"正常输入", "hello", "HELLO"},
{"空字符串", "", ""},
}
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
if got := MyFunction(tt.input); got != tt.want {
t.Errorf("MyFunction(%q) = %q, want %q", tt.input, got, tt.want)
}
})
}
}
test_函数名_场景描述 或 函数名_正常输入/边界条件/异常输入