跪拜 Guibai
← All articles
Artificial Intelligence · Testing · Full Stack

27 Agent Skills, One Chained Testing Pipeline: From Requirements to UI Reports

By 狂师 ·
Read original on juejin.cn ↗ Google Translate ↗ Alt translation

Agent skills have moved from isolated prompt tricks to a whole workflow: one chain can parse requirements, generate and review cases, run API and UI suites, diagnose failures, and produce reports without a human switching tools. Teams using Claude Code or Codex can adopt this pattern immediately because the skills directory convention is already supported.

Summary

27 self-built Agent Skills treat test automation as three chains rather than one-off prompts. The requirements chain turns messy input into structured user stories, XMind test points, and Excel case sheets, then reviews and fills gaps. API automation parses schemas from Swagger, Postman, HAR, or YApi into a shared definition file, generates and tags runnable Python+Requests+Pytest+Allure scripts, executes them from natural-language commands, diagnoses failures into environment/data/script/defect buckets, cleans up test data, and emits HTML reports with Allure integration. A separate scenario track models multi-step business flows like register, login, add-to-cart, order, pay as YAML orchestration files and executes them with variable injection and database assertions.

UI automation builds page objects from URLs or case descriptions, generates Playwright+POM+Pytest scripts, bolsters them with waits, captcha handling, iframe switching, retries, and visual assertions, then runs, tags, diagnoses, and reports under a single scheduler. Every skill is independently invocable, but the wiring between stages is the point: each stage emits a standard file the next stage consumes.

Distribution runs through GitHub and a skill store at testfather.cn/skills. Installation uses `npx skills add`, a git clone, or copying the skill folder into `~/.claude/skills/` or `~/.workbuddy/skills/`.

Takeaways
— 27 skills total: 6 for requirements and test-case design, 12 for API automation, 9 for UI automation.
— Every skill is independently usable, but the set is designed to chain: one stage's output (user stories, api_definitions.json, pages.yaml, scenario YAML) feeds the next.
— API automation covers schema parsing, test-data generation, script generation, quality optimization, tagging, natural-language execution, failure diagnosis and patch generation, data cleanup, reporting, and pipeline orchestration.
— UI automation covers page parsing, Playwright+POM+Pytest script generation, script hardening, visual assertion, tagging, execution, failure diagnosis with 14 root causes, reporting, and full-pipeline orchestration.
— Failure diagnosis routes API failures into environment, data, script, or product-defect buckets; script issues get auto-generated patches and verification.
— The scenario modeler maps multi-step flows like register, login, add-to-cart, order, pay into a YAML orchestration file, matching APIs against api_definitions.json and leaving uncertain points for human review.
— Installation options include `npx skills add`, git clone, or copying skill folders into Claude Code or WorkBuddy skills directories.
— Distribution runs through GitHub and testfather.cn/skills; a paid knowledge community, "AI 测开进化圈", also hands out the complete set.
Conclusions

Standardized intermediate files make this more than a collection of prompts. Each link consumes a file produced by the previous link, which is what allows agent tools to chain steps reliably.

The system treats hallucination as an explicit risk: the API scenario modeler matches every endpoint against api_definitions.json, injects dynamic values rather than hard-coding them, and lists uncertain points for human confirmation. That is a practical answer to the main objection to AI-generated test code.

Distribution doubles as a product funnel: GitHub and a skill store offer the skills, while a paid knowledge community promises the full pack. The technical content is real, but the commercial ecosystem is part of the story.

Concepts & terms
Agent Skill
A packaged capability (instructions, prompts, and often scripts) that agent tools like Claude Code, Codex, and WorkBuddy load from a skills directory so the agent can invoke it as a discrete step in a workflow.
POM (Page Object Model)
A UI test automation pattern that centralizes selectors and page interactions in page objects; the article uses it with Playwright and Pytest so scripts stay maintainable.
Visual assertion
A UI check that compares screenshots at the pixel level, with masking for dynamic regions and tolerance tuning, to catch layout and responsive-design regressions across browsers.
Flaky test
A test that fails intermittently for non-deterministic reasons such as timeouts, popups, or iframe shifts. The UI script enhancer specifically hardens these tests with waits, retries, and failure capture.
Source: juejin.cn ↗ Google Translate ↗ Backup ↗