
create-yaml-tests
Create, update, and repair local Shiplight YAML E2E tests. Use for Shiplight test projects, including project setup, specs, auth setup, YAML implementation, validation, and test maintenance.
- Installs
- 120
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/shiplightai/agent-skills --skill create-yaml-tests- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads create-yaml-tests automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Create Shiplight Tests
This is the single entry point for Shiplight E2E test work.
Use this skill when the user wants to:
- Create a new local Shiplight test project
- Add YAML tests for a web application
- Update or fix existing Shiplight YAML tests
- Set up or repair target URLs, accounts, or auth setup
- Plan what product behavior should be tested
Daily Skill Update Check
Before starting this skill's work, opportunistically refresh Shiplight skills at most once per day:
- Check the timestamp file at
.shiplight-agent-skills-last-updatein the current project. - If the timestamp file is missing, create it with the current timestamp and continue without running
npx -y skills@latest update -y. Treat.shiplight-agent-skills-last-updateas local cache and do not commit it. - If the timestamp file exists and is older than 24 hours, run
npx -y skills@latest update -y, then create/update the timestamp file even if the command fails. - If the update command fails, continue with the currently installed skill and mention the failure briefly.
Test Project Root
Before reading or writing project files, identify the Shiplight test project root. All paths in this skill are relative to that root.
If the root is not clear, ask the user to confirm it before creating or moving files.
Canonical Project Layout
Shiplight test projects use this layout:
specs/context.md project-level app, risk, data, and target-deployment context
specs/tests/ Markdown specs, each covering a feature or journey group
tests/ executable Shiplight YAML tests
playwright.config.ts project-level Playwright config, shared auth, and runtime defaults
auth.setup.ts shared-account Playwright auth setup, if needed
auth/ optional auth helpers or per-test login scripts
templates/ reusable YAML statement groups, if any
helpers/ TypeScript helper functions, if any
fixtures/ fixture files, if any
knowledge/ durable notes discovered by agents
test-results/ generated runtime artifacts; do not edit
shiplight-report/ generated reports; do not edit
.shiplight/ local Shiplight state; do not edit
Read references/project-layout.md before making file changes.
Ground Truth
When sources disagree, this precedence applies:
- Explicit user instruction
- Feature or journey spec in
specs/tests/ - Existing YAML test
goal, stepintent, andVERIFYassertions - Current app behavior
- Project context in
specs/context.mdandknowledge/ - Agent docs in this skill
- Agent inference
If current app behavior conflicts with a spec or test goal, report the mismatch. Do not silently rewrite intent to match current behavior.
Required Startup
On every invocation:
- Identify the Shiplight test project root.
- Read
references/project-layout.md. - Read
references/knowledge.md. - Check
knowledge/under the test project root for notes relevant to the task. - Load the task-specific guides below.
- Tell the user which guides you loaded, then proceed.
Task-Specific Guides
| Task | Guides |
|---|---|
| New project or broad planning | references/workflow.md, references/project-layout.md, references/test-design-guide.md |
| Writing new tests | references/new-tests.md, references/test-design-guide.md, references/test-implementation-guide.md |
| Updating or fixing tests | references/updating-tests.md, references/test-design-guide.md, references/test-implementation-guide.md |
| Auth setup and login | references/auth.md |
| Running tests in CI / GitHub Actions, incl. auto-triage of failures | references/ci.md |
| YAML syntax or actions | references/test-implementation-guide.md; also read shiplight://yaml-test-spec and shiplight://schemas/action-entity before writing YAML |
Core Rules
- Always produce durable artifacts unless the user explicitly asks to skip them.
- Specs describe feature or journey-group confidence. A spec may map to many smaller YAML tests.
- Keep YAML tests focused. One YAML test should verify one logical journey or variant.
- Do not write YAML from imagination. Walk the app in a browser first and capture real locators.
- Validate YAML with
validate_yaml_testafter writing it. - Reflect before finishing. Capture durable knowledge learned from the user or the work, and update stale knowledge instead of leaving contradictions.
- Keep context current. Durable project knowledge belongs in
specs/context.mdorknowledge/, not in chat history. - Never store raw secrets. Commit only variable names, roles, access patterns, and setup instructions.
User Checkpoints
For broad test creation, confirm the planned outcomes before implementation:
Do these outcomes match the confidence you need from this test project? Any business-critical outcome missing or incorrectly out of scope?
For narrow requests such as "fix this failing test" or "add this one test", proceed without a broad checkpoint unless the spec is ambiguous or conflicts with app behavior.
Final Report
After changes, report:
- Files created or changed
- Behavior covered or repaired
- Commands run and pass/fail result
- Knowledge or context updated, including stale notes corrected
- Any product/spec mismatch or unresolved blocker
FAQ
What does the create-yaml-tests skill do?
Create, update, and repair local Shiplight YAML E2E tests. Use for Shiplight test projects, including project setup, specs, auth setup, YAML implementation, validation, and test maintenance.
How do I install create-yaml-tests?
Run npx skills add https://github.com/shiplightai/agent-skills --skill create-yaml-tests in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/create-yaml-tests/ (personal) or .claude/skills/create-yaml-tests/ (project).
Which AI agents can use create-yaml-tests?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is create-yaml-tests safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains create-yaml-tests?
It is published by shiplightai in shiplightai/agent-skills. It has 120 recorded installs.
More from shiplightai/agent-skills
verify
shiplightai/agent-skills
Verify UI changes in the browser using Shiplight MCP tools.
review
shiplightai/agent-skills
Review orchestrator and single entry point for all application reviews. Triage what needs reviewing, then run the right domains: security (OWASP, auth, headers, supply chain), privacy (PII, tracking, consent, GDPR/CCPA), compliance (HIPAA, SOC 2, PCI-DSS, GDPR), design (responsive, accessibility, typography, i18n), resilience (error handling, degradation, API contracts), performance (Core Web Vitals, bundles, runtime), SEO (meta, structured data, crawlability), and GEO (AI citation readiness, llms.txt, entity clarity). Use for pre-launch readiness, post-incident planning, or any 'review my app for X' request.
cloud
shiplightai/agent-skills
Sync local tests with Shiplight cloud — push and pull YAML test cases, templates, and functions between your repo and the cloud. Requires a Shiplight cloud subscription.
triage
shiplightai/agent-skills
Triage failing Shiplight YAML tests: reproduce failures, inspect evidence, apply minimal correct fixes, report app/spec mismatches, and update project memory.
create-tests
shiplightai/agent-skills
Deprecated alias for create-yaml-tests. Renamed to create-yaml-tests; this entry only redirects for backward compatibility. Use create-yaml-tests to create, update, and repair local Shiplight YAML E2E tests.
design-review
shiplightai/agent-skills
Open the skill to read its SKILL.md instructions.
Popular testing & qa skills
tdd
mattpocock/skills
Test-driven development. Use when the user wants to build features or fix bugs test-first, mentions "red-green-refactor", or wants integration tests.
grilling
mattpocock/skills
Grill the user relentlessly about a plan, decision, or idea. Use when the user wants to stress-test their thinking, or uses any 'grill' trigger phrases.
migrate-to-shoehorn
mattpocock/skills
Migrate test files from as type assertions to @total-typescript/shoehorn. Use when user mentions shoehorn, wants to replace as in tests, or needs partial test data.
run-train
lllllllama/rigorpilot-skills
Rigor Train skill for deep learning research repositories. Use when a documented or selected training command should be run conservatively for startup verification, short-run verification, full kickoff, or resume, with command, config, seed, log, checkpoint, status, and metric evidence written to standardized trainoutputs/. Do not use for environment setup, exploratory sweeps, speculative idea implementation, or end-to-end orchestration.
test-driven-development
obra/superpowers
Use when implementing any feature or bugfix, before writing implementation code
finishing-a-development-branch
obra/superpowers
Use when implementation is complete, all tests pass, and you need to decide how to integrate the work