用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/LuizEduPP/skills --skill test-create命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
MANDATORY architectural and intent alignment phase. Must be executed before any code generation, feature modification, or stack scaffolding. Resolves constraints, map semantic contexts, and secures design approval.
Create highly adaptive, production-grade frontend interfaces optimized for modern web standards and Generative UI pipelines. Use when building components, layouts, or design systems that require a distinct, non-generic aesthetic.
Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction.
基于 SOC 职业分类
正在显示 SKILL.md
| name | test-create |
| description | Generate test cases for code. Use when writing unit tests, integration tests, or verifying acceptance criteria. |
Generate comprehensive test cases for code.
Use this skill to draft focused tests that cover behavior, edge cases, and failures without coupling the tests to implementation details.
| Category | Examples |
|---|---|
| ✅ Happy Path | Normal inputs, standard cases |
| 🔸 Edge Cases | Empty, boundary, min/max |
| ❌ Error Cases | Invalid inputs, failures |
import pytest
class TestFunction:
def test_valid_input_returns_expected(self):
assert function("valid") == "expected"
def test_empty_input_returns_empty(self):
assert function("") == ""
def test_invalid_raises_error(self):
with pytest.raises(ValueError):
function(None)
describe('function', () => {
it('returns expected for valid input', () => {
expect(fn('valid')).toBe('expected');
});
it('handles empty input', () => {
expect(fn('')).toBe('');
});
it('throws for invalid', () => {
expect(() => fn(null)).toThrow();
});
});
test_[what]_[condition]_[expected]
test_login_valid_credentials_returns_token
test_login_wrong_password_raises_error
| Type | Target |
|---|---|
| Business logic | 80%+ |
| Utilities | 90%+ |
| UI | 60%+ |