clerk-testing
Test Clerk Authentication with Playwright or Cypress
Authentication setup and session handling can make end-to-end tests unreliable. This skill guides Clerk testing through framework-specific documentation, development keys, testing tokens, and session reuse.
使用我的智能体安装
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "clerk-testing" from https://skillstore.io/skills/clerk-clerk-testing.md and its manifest at https://skillstore.io/api/skills/clerk-clerk-testing/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智能体仍应展示其计划,并按安全策略请求必要确认。
Agent 可读资源
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
测试它
正在使用“clerk-testing”。 Plan Clerk authentication setup for an existing Playwright project.
预期结果:
- Consult the official Clerk Playwright testing guide.
- Initialize the testing environment and configure development credentials.
- Set up the testing token before visiting authentication pages.
- Prepare reusable authentication state with global setup while preserving isolated test contexts.
正在使用“clerk-testing”。 Review why our Cypress authentication tests fail before sign-in.
预期结果:
- Check that Clerk commands are registered in the Cypress support file.
- Verify that the testing token is configured before authentication navigation.
- Confirm that the application uses development-instance keys.
- Review the official Cypress guide for framework-specific setup requirements.
安全审计
安全Twenty findings are false positives involving Markdown code spans, reference URLs, and documented credential requirements. One finding is confirmed: unpinned CLI execution downloads code and writes development credentials. No evidence found of prompt injection or credential exfiltration.
能力复核项 (1)
这些是真实的本地能力,对此技能可能是预期行为,因此需要复核,但不会按已确认恶意行为计分。
风险因素
分享与引用此报告
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
复制报告链接
https://skillstore.io/skills/clerk-clerk-testing/audits/1?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/clerk-clerk-testing?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/clerk-clerk-testing?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/clerk-clerk-testing/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/clerk-clerk-testing.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>学术引用 (APA · BibTeX · CFF)
APA 引用
clerk. (2026). clerk-testing security audit report (audit version 1) [Author version 1.2.1]. Skillstore. https://skillstore.io/skills/clerk-clerk-testing/audits/1BibTeX 引用
@techreport{clerk-clerk-clerk-testing-2026,
author = {clerk},
title = {clerk-testing security audit report (audit version 1)},
institution = {Skillstore},
year = {2026},
number = {1},
url = {https://skillstore.io/skills/clerk-clerk-testing/audits/1},
note = {Author version 1.2.1}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "clerk-testing security audit report (audit version 1)"
version: "1.2.1"
type: report
authors:
- name: "clerk"
date-released: "2026-10-06"
url: "https://skillstore.io/skills/clerk-clerk-testing/audits/1"
identifiers:
- type: other
value: "skillstore:clerk-clerk-testing:audit:1"
description: "Skillstore immutable audit report identifier"
Skillstore 评分
评分依据 证据置信度: 中你能构建什么
Add Playwright Authentication Coverage
Plan Clerk setup, testing tokens, and reusable authentication state for an existing Playwright project.
Diagnose Cypress Authentication Failures
Review command registration, navigation timing, and development keys when Clerk authentication tests fail.
Review Shared Test Configuration
Check development credential usage and authentication state handling before adopting Clerk tests in a shared pipeline.
试试这些提示
I use [Playwright or Cypress] with Clerk. Identify the official testing guide and list the setup prerequisites.
Help plan Clerk authentication tests for my [framework] application. Include development credentials, helper initialization, and testing tokens before navigation.
My Clerk tests fail during authentication in [framework]. Review testing token timing, command registration, selectors, and session isolation using the official guide.
Review our Playwright globalSetup and storageState strategy for Clerk. Identify session isolation risks and credential handling concerns. Require approval before any CLI provisioning.
最佳实践
- Use development-instance credentials and keep secrets outside version control.
- Configure the Clerk testing token before navigating to authentication pages.
- Reuse authentication state where appropriate while keeping test contexts isolated.
避免
- Using production credentials in authentication tests.
- Navigating to authentication pages before configuring the testing token.
- Repeating UI sign-in in every test when reusable authentication state is suitable.
常见问题
Which testing frameworks does this skill cover?
Does this skill run tests automatically?
Which credentials should I use?
Why is the testing token important?
How can I reduce repeated sign-in work?
What should I review before running Clerk CLI initialization?
开发者详情
作者
clerk许可证
MIT
作者版本
v1.2.1
Skillstore 修订
r1
仓库
https://github.com/clerk/skills/tree/9502ec5575247ac2d5a229b9e96a3be700a4a19a/skills/clerk-testing引用
4676f9b94082a87e58987510071598b362f5d9db
维护新鲜度
2026/10/6
使用量
0 次下载 · 0 次浏览
文件结构
📄 SKILL.md