Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问clear审计异常

compliance-testing合规性测试

Agent Skill

用于辅助测试设计、自动化测试、用例整理和回归验证。它适合让 Agent 编写单元测试、端到端测试、测试计划或根据失败日志定位问题。使用时需要确认项目测试框架、运行命令和夹具数据,避免为了通过测试而改坏真实逻辑;涉及浏览器或外部服务时,应区分本地模拟、测试环境和生产环境。

总安装

1,721

周安装

71

GitHub Stars

329

下载量

562
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:compliance-testing(合规性测试)
来源仓库:https://github.com/proffesor-for-testing/agentic-qe
仓库路径:skills/compliance-testing
安装命令:
npx skills add https://github.com/proffesor-for-testing/agentic-qe --skill compliance-testing
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/proffesor-for-testing/agentic-qe --skill compliance-testing

简介

用于辅助测试设计、自动化测试、用例整理和回归验证,适合编写单元测试或端到端测试。

  • 它可识别适用法规(如 GDPR、HIPAA、PCI-DSS),映射可测试的控制项并生成审计就绪报告。
  • 使用时需确认项目测试框架与运行命令,避免为通过测试而破坏真实逻辑;涉及浏览器或服务时应区分环境。
  • 安装前建议核实权限范围、维护状态及是否会触发联网或外部服务调用。
  • compliance-testing 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Compliance Testing

<default_to_action> When validating regulatory compliance:

  1. IDENTIFY applicable regulations (GDPR, HIPAA, PCI-DSS, etc.)
  2. MAP requirements to testable controls
  3. TEST data rights (access, erasure, portability)
  4. VERIFY encryption and access logging
  5. GENERATE audit-ready reports with evidence

Quick Compliance Checklist:

  • Data subject rights work (access, delete, export)
  • PII is encrypted at rest and in transit
  • Access to sensitive data is logged
  • Consent is tracked with timestamps
  • Payment card data not stored (only tokenized)

Critical Success Factors:

  • Non-compliance = €20M or 4% revenue (GDPR)
  • Audit trail everything
  • Test continuously, not just before audits </default_to_action>

Quick Reference Card

When to Use

  • Legal compliance requirements
  • Before security audits
  • Handling PII/PHI/PCI data
  • Entering new markets (EU, CA, healthcare)

Major Regulations

RegulationScopeKey Focus
GDPREU dataPrivacy rights, consent
CCPACaliforniaConsumer data rights
HIPAAHealthcarePHI protection
PCI-DSSPaymentsCard data security
SOC2SaaSSecurity controls

Penalties

RegulationMaximum Fine
GDPR€20M or 4% revenue
HIPAA$1.5M per violation
PCI-DSS$100k/month
CCPA$7,500 per violation

GDPR Compliance Testing

// Test data subject rights
test('user can request their data', async () => {
  const response = await api.post('/data-export', { userId });

  expect(response.status).toBe(200);
  expect(response.data.downloadUrl).toBeDefined();

  const data = await downloadFile(response.data.downloadUrl);
  expect(data).toHaveProperty('profile');
  expect(data).toHaveProperty('orders');
});

test('user can delete their account', async () => {
  await api.delete(`/users/${userId}`);

  // All personal data deleted
  expect(await db.users.findOne({ id: userId })).toBeNull();
  expect(await db.orders.find({ userId })).toHaveLength(0);

  // Audit log retained (legal requirement)
  expect(await db.auditLogs.find({ userId })).toBeDefined();
});

test('consent is tracked', async () => {
  await api.post('/consent', {
    userId, type: 'marketing', granted: true,
    timestamp: new Date(), ipAddress: '192.168.1.1'
  });

  const consent = await db.consents.findOne({ userId, type: 'marketing' });
  expect(consent.timestamp).toBeDefined();
  expect(consent.ipAddress).toBeDefined();
});

HIPAA Compliance Testing

// Test PHI security
test('PHI is encrypted at rest', async () => {
  const patient = await db.patients.create({
    ssn: '123-45-6789',
    medicalHistory: 'Diabetes'
  });

  const raw = await db.raw('SELECT * FROM patients WHERE id = ?', patient.id);
  expect(raw.ssn).not.toBe('123-45-6789'); // Should be encrypted
});

test('access to PHI is logged', async () => {
  await api.get('/patients/123', {
    headers: { 'User-Id': 'doctor456' }
  });

  const auditLog = await db.auditLogs.findOne({
    resourceType: 'patient',
    resourceId: '123',
    userId: 'doctor456'
  });

  expect(auditLog.action).toBe('read');
  expect(auditLog.timestamp).toBeDefined();
});

PCI-DSS Compliance Testing

// Test payment card handling
test('credit card numbers not stored', async () => {
  await api.post('/payment', {
    cardNumber: '4242424242424242',
    expiry: '12/25', cvv: '123'
  });

  const payment = await db.payments.findOne({ /* ... */ });
  expect(payment.cardNumber).toBeUndefined();
  expect(payment.last4).toBe('4242'); // Only last 4
  expect(payment.tokenId).toBeDefined(); // Token from gateway
});

test('CVV never stored', async () => {
  const payments = await db.raw('SELECT * FROM payments');
  const hasCVV = payments.some(p =>
    JSON.stringify(p).toLowerCase().includes('cvv')
  );
  expect(hasCVV).toBe(false);
});

Agent-Driven Compliance

// Comprehensive compliance validation
await Task("Compliance Validation", {
  regulations: ['GDPR', 'PCI-DSS'],
  scope: 'full-application',
  generateAuditReport: true
}, "qe-security-scanner");

// Returns:
// {
//   gdpr: { compliant: true, controls: 12, passed: 12 },
//   pciDss: { compliant: false, controls: 8, passed: 7 },
//   violations: [{ control: 'card-storage', severity: 'critical' }],
//   auditReport: 'compliance-audit-2025-12-02.pdf'
// }

Agent Coordination Hints

Memory Namespace

aqe/compliance-testing/
├── regulations/*        - Regulation requirements
├── controls/*           - Control test results
├── audit-reports/*      - Generated audit reports
└── violations/*         - Compliance violations

Fleet Coordination

const complianceFleet = await FleetManager.coordinate({
  strategy: 'compliance-validation',
  agents: [
    'qe-security-scanner',   // Scan for vulnerabilities
    'qe-test-executor',      // Execute compliance tests
    'qe-quality-gate'        // Block non-compliant releases
  ],
  topology: 'sequential'
});

Related Skills


Remember

Compliance is mandatory, not optional. Fines are severe: GDPR up to €20M or 4% of revenue, HIPAA up to $1.5M per violation. But beyond fines, non-compliance damages reputation and user trust.

Audit trail everything. Every access to sensitive data, every consent, every deletion must be logged with timestamps and user IDs.

With Agents: Agents validate compliance requirements continuously, detect violations early, and generate audit-ready reports. Catch compliance issues in development, not in audits.

Gotchas

  • Agent checks GDPR consent flow but misses data retention — always verify deletion/anonymization actually works
  • Compliance reports with "100% compliant" are suspicious — no real system is fully compliant, verify each claim
  • Agent may test US regulations only — explicitly specify jurisdiction (EU, CA, etc.) for correct requirements
  • PII in test data is itself a compliance violation — never use production PII, use synthetic generators
  • Audit trail gaps are invisible until audit time — verify logging exists for EVERY data access, not just writes

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

25.77%
按下载量换算145

Antigravity

23%
按下载量换算129

windsurf

18.42%
按下载量换算104

github-copilot

12.14%
按下载量换算68

Codex

7.61%
按下载量换算43

trae

3.24%
按下载量换算18

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills