AgentSkillsCN

compliance-check

检查许可证兼容性、数据隐私合规性以及AI伦理规范。适用于添加依赖项、处理用户数据,或在审查监管要求时使用。

SKILL.md
--- frontmatter
name: compliance-check
description: Check license compatibility, data privacy compliance, and AI ethics. Use when adding dependencies, handling user data, or reviewing regulatory requirements.
argument-hint: "[scope: 'licenses', 'privacy', 'ai-ethics', or 'full']"
context: fork
agent: legal-compliance

Compliance Check

Perform a compliance check with the following scope:

$ARGUMENTS

Compliance Checks

License Compatibility

  1. List all project dependencies and their licenses
  2. Verify compatibility with the project's license
  3. Flag any copyleft (GPL, AGPL) or restrictive licenses
  4. Check for attribution requirements

Data Privacy

  1. Trace user data flow through the application:
    • Frontend: What data is collected in forms?
    • Backend: What data is stored, logged, or forwarded?
    • Agents: What user data is sent to external AI APIs?
    • Observability: What data is sent for tracing?
  2. Identify PII handling
  3. Check data retention practices

AI Ethics

  1. Review AI agent guardrails (input/output sanitization)
  2. Check for content filtering mechanisms
  3. Verify transparency about AI-generated content
  4. Review for potential bias in agent behavior

Output

Produce a compliance report:

text
## Summary: [PASS / NEEDS ATTENTION / FAIL]

### License Compliance: [PASS/FAIL]
[Details]

### Data Privacy: [PASS/FAIL]
[Details]

### AI Ethics: [PASS/FAIL]
[Details]

### Action Items
1. [Priority-ordered list of required changes]