AGENT SKILL

数据加密实现验证

encrypting-and-decrypting-data

验证加密实现和密码学实践。在审查数据安全措施时使用。通过'检查加密'、'验证密码学'或'审查安全密钥'触发。

License 许可
MIT
最近更新
2025-12-18
Stars
★ 29
Forks
9

01 前言 Front Matter

name
encrypting-and-decrypting-data
license
MIT
version
1.0.0
description
Validate encryption implementations and cryptographic practices. Use when reviewing data security measures. Trigger with 'check encryption', 'validate crypto', or 'review security keys'.
allowed-tools
[ "Read", "Write", "Edit", "Grep", "Glob", "Bash(security:*)", "Bash(scan:*)", "Bash(audit:*)" ]

02 资源文件 6

03 SKILL.md 正文

Overview

This skill empowers Claude to handle data encryption and decryption tasks seamlessly. It leverages the encryption-tool plugin to provide a secure way to protect sensitive information, ensuring confidentiality and integrity.

How It Works

  1. Identify Encryption/Decryption Request: Claude analyzes the user's request to determine whether encryption or decryption is required.
  2. Select Encryption Method: Claude prompts the user to specify the desired encryption algorithm (e.g., AES, RSA). If not specified, a default secure method is chosen.
  3. Execute Encryption/Decryption: Claude utilizes the encryption-tool plugin to perform the encryption or decryption operation on the provided data or file.
  4. Return Encrypted/Decrypted Data: Claude presents the encrypted or decrypted data to the user, or saves the result to a file as requested.

When to Use This Skill

This skill activates when you need to:

  • Encrypt sensitive data before storage or transmission.
  • Decrypt previously encrypted data for access or processing.
  • Generate encrypted files for secure archiving.

Examples

Example 1: Encrypting a Text File

User request: "Encrypt the file 'sensitive_data.txt' using AES."

The skill will:

  1. Activate the encryption-tool plugin.
  2. Encrypt the contents of 'sensitive_data.txt' using AES encryption.
  3. Save the encrypted data to a new file (e.g., 'sensitive_data.txt.enc').

Example 2: Decrypting an Encrypted File

User request: "Decrypt the file 'confidential.txt.enc'."

The skill will:

  1. Activate the encryption-tool plugin.
  2. Decrypt the contents of 'confidential.txt.enc' using the appropriate decryption key (assumed to be available or prompted for).
  3. Save the decrypted data to a new file (e.g., 'confidential.txt').

Best Practices

  • Key Management: Always store encryption keys securely and avoid hardcoding them in scripts.
  • Algorithm Selection: Choose encryption algorithms based on the sensitivity of the data and the required security level. Consider industry best practices and compliance requirements.
  • Data Integrity: Implement mechanisms to verify the integrity of encrypted data to detect tampering or corruption.

Integration

This skill can be integrated with other Claude Code plugins, such as file management tools, to automate the encryption and decryption of files during data processing workflows. It can also be combined with security auditing tools to ensure compliance with security policies.

Prerequisites

  • Access to codebase and configuration files in {baseDir}/
  • Security scanning tools installed as needed
  • Understanding of security standards and best practices
  • Permissions for security analysis operations

Instructions

  1. Identify security scan scope and targets
  2. Configure scanning parameters and thresholds
  3. Execute security analysis systematically
  4. Analyze findings for vulnerabilities and compliance gaps
  5. Prioritize issues by severity and impact
  6. Generate detailed security report with remediation steps

Output

  • Security scan results with vulnerability details
  • Compliance status reports by standard
  • Prioritized list of security issues by severity
  • Remediation recommendations with code examples
  • Executive summary for stakeholders

Error Handling

If security scanning fails:

  • Verify tool installation and configuration
  • Check file and directory permissions
  • Validate scan target paths
  • Review tool-specific error messages
  • Ensure network access for dependency checks

Resources

  • Security standard documentation (OWASP, CWE, CVE)
  • Compliance framework guidelines (GDPR, HIPAA, PCI-DSS)
  • Security scanning tool documentation
  • Vulnerability remediation best practices

04 同仓库更多 Skills

BbgnsurfTech
BbgnsurfTech/claude-skills-collection

UI 视觉回归测试

testing-visual-regression

使用截图比较检测 UI 组件中的视觉变化。 在检测意外的 UI 更改或像素差异时使用。 用“测试视觉变化”、“比较截图”或“检测 UI 回归”等短语触发。

测试工程师测试与质量保障
★ 29
BbgnsurfTech
BbgnsurfTech/claude-skills-collection

单元测试自动生成

generating-unit-tests

从源代码自动生成全面的单元测试,覆盖正常路径、边界条件和错误情况。 在为函数、类或模块创建测试覆盖时使用。 用“生成单元测试”、“为…创建测试”或“添加测试覆盖”等短语触发。

测试工程师测试与质量保障
★ 29
BbgnsurfTech
BbgnsurfTech/claude-skills-collection

测试报告生成与可视化

generating-test-reports

生成包含指标、覆盖率和可视化内容的全面测试报告。 在执行专项测试时使用。 用“生成测试报告”、“创建测试文档”或“显示测试指标”等短语触发。

测试工程师测试与质量保障
★ 29
BbgnsurfTech
BbgnsurfTech/claude-skills-collection

测试执行编排与协调

orchestrating-test-execution

协调跨多个环境和框架的并行测试执行。 在执行专项测试时使用。 用“编排测试”、“运行并行测试”或“协调测试执行”等短语触发。

测试工程师测试与质量保障
★ 29
BbgnsurfTech
BbgnsurfTech/claude-skills-collection

managing-test-environments

Provision and manage isolated test environments with configuration and data. Use when performing specialized testing. Trigger with phrases like "manage test environment", "provision test env", or "setup test infrastructure".

★ 29
BbgnsurfTech
BbgnsurfTech/claude-skills-collection

generating-test-doubles

Generate mocks, stubs, spies, and fakes for dependency isolation. Use when creating mocks, stubs, or test isolation fixtures. Trigger with phrases like "generate mocks", "create test doubles", or "setup stubs".

★ 29