commonfabric/labs/pattern-test
Claude Code and agent skill by commonfabric/labs
- community
Checking that the SKILL.md file is still in the repository.
Write and run pattern tests
Install
npx vskill@latest install commonfabric/labs/pattern-testSKILL.md
Start with the shared testing guidance in:
docs/common/ai/pattern-testing-guide.md
Read that guide first. It is the canonical reference.
Run tests with:
Imports resolve from the nearest ancestor whose deno.json(c) declares a package name (patterns for repo patterns). A failure naming an import that "escapes the program root" means the test imports from above that root — pass --root naming a common ancestor of every imported file.
Keep the complete list of test entry paths for deployment. A deployed source revision carries those tests only when each entry is supplied with a repeatable --test flag:
Repeat --test for multiple entry files and repeat the complete flag set on every setsrc. The deployment command packages and type-checks attached tests but does not execute them, so a successful cf test run remains required.
For patterns that stamp timestamps or IDs, prefer deterministic assertions over recomputing time/random values inside the test itself.
If cf test fails before or during assertions, treat that as pattern debugging, not as a reason to guess at a new test shape. Before the next repair, read:
docs/development/debugging/README.md
Then follow the linked gotcha or workflow for the exact error. For Cell, Writable, or reactive-value failures, re-consult reactivity.md and new-cells.md (as mandated by pattern-dev).
Runtime notes:
- Use the
cfskill, or readskills/cf/SKILL.md, when you need CLI command
details.
- The detailed workflow reference remains
docs/common/workflows/pattern-testing.md.
Done When
deno task cf testexits 0 for every test file. A failing test is not a valid
done state unless a concrete external, tooling, or environment blocker prevents further repair.
- New or changed source code has automated test coverage. PRs that introduce new
untested lines of code will fail in CI.
- Coverage matches the testing guide's expected shape: the product contract, not
only the happy path (first-run/default states; primary add, remove, edit, toggle, or submit flows; repeated actions; validation and edge-case branches from the spec).
- The pattern still compiles after any interface changes made to support
testing.
- Every authored test entry is handed to deployment for attachment to the source
revision.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/pattern-test/SKILL.md
Popularity
- Repository stars
- 55
- Repository forks
- 13
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/commonfabric/labs/pattern-test)