en un clic
pattern-test
Write and run pattern tests
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Menu
Write and run pattern tests
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Basé sur la classification professionnelle SOC
Review a changeset for the Common Fabric repo — the local branch diff vs main, or a GitHub PR. Flags correctness and regression bugs loudly, checks that runtime-semantics changes stay coherent across docs/comments/examples, catches duplicated core machinery (hashing, serialization, cloning, identity) and code fighting the transformer/reactive model, and scrutinizes whether the tests guard the right principles. Report-first; offers to post a self-signed PR review. Use when asked to review code, review a PR, review the current branch or diff, or self-review before pushing. Invoke as /cf-review or /cf-review <PR#>.
Agent-specific interaction patterns for working with FUSE-mounted spaces. Use when deploying patterns via FUSE, working with Activity Logs, Annotations, or coordinating agent workflows that read/write pieces through the filesystem. Triggers include "deploy a pattern", "log an event", "create annotation", "agent workflow", or managing piece lifecycle via FUSE.
Critic agent that reviews pattern code for violations of documented rules, gotchas, and anti-patterns. Produces categorized checklist output with [PASS]/[FAIL]/[WARN] for each rule.
Guide for developing Common Fabric patterns (TypeScript modules that define reactive data transformations with UI). Use this skill when creating patterns, modifying existing patterns, or working with the pattern framework. Triggers include requests like "build a pattern", "fix this pattern error", "deploy this piece", or questions about handlers and reactive patterns.
Build Common Fabric patterns and sub-patterns
Guide for using the cf (Common Fabric) CLI to interact with pieces, patterns, and the Common Fabric. Use this skill when deploying patterns, managing pieces, linking data between pieces, or debugging pattern execution. Triggers include requests to "deploy this pattern", "call a handler", "link these pieces", "get data from piece", or "test this pattern locally".
| name | pattern-test |
| description | Write and run pattern tests |
| user-invocable | false |
Start with the shared testing guidance in:
docs/common/ai/pattern-testing-guide.mdRead that guide first. It is the canonical reference.
Run tests with:
deno task cf test <pattern>.test.tsx
When working in a Pattern Factory Build workspace, also follow
docs/common/ai/pattern-factory-build-guide.md (as mandated by pattern-dev). It
defines Pattern Factory's build completion gate and expected coverage shape.
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.mdThen 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:
cf skill, or read skills/cf/SKILL.md, when you need CLI command
details.docs/common/workflows/pattern-testing.md.deno task cf test exits 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.