privacy-assessment-rails
Assess a Rails app's full codebase for compliance with privacy laws, like GDPR and LGPD. Generates an assessment report, not a legal audit.
от Codeminer42★ 32 звезды на GitHub
Установить privacy-assessment-rails в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Privacy Assessment — Full Codebase Analysis
Prerequisite
Dependency path: !test -d "${CLAUDE_SKILL_DIR}/../privacy-by-design-rails" && echo "${CLAUDE_SKILL_DIR}/../privacy-by-design-rails" || echo "NOT_FOUND"
If the dependency path above is NOT_FOUND, stop and tell the user:
This skill depends on privacy-by-design-rails, which is not installed. Install it with:
npx skills add codeminer42/skills --skill privacy-by-design-rails(add-gfor global installation)
Do not proceed until the dependency is installed.
Before starting, warn the user: "This assessment is token-intensive — it runs a scanner, then reads and analyzes many files across your codebase. Are you sure you want to proceed?" Wait for confirmation before continuing.
Step 0: Context Gathering
Before running any analysis, ask the user:
Before I begin the assessment, are there any privacy particularities I should know about this application? For example:
- Data that would normally be considered PII but is required by regulation (e.g., storing full IP addresses for legal compliance, retaining financial records for tax purposes)
- Special categories of data the app handles (health data, biometric data, data from minors)
- Third-party services that are contractually authorized to receive certain PII
- Known trade-offs or accepted risks the team has already evaluated
- Any other domain-specific context that might affect the assessment
- What markets/countries does this application serve? (e.g., "Brazil only", "EU and US", "Global", specific country names). This determines which privacy regulations and government document types are relevant for PII classification.
Wait for the user's response. Store their answers as context — this may affect severity ratings, whether certain findings are flagged, and what recommendations are appropriate.
The generated report must begin with the following note, placed before the Disclaimer:
Note: This report was generated by an AI assistant. You can discuss any finding with the agent — ask for more context, challenge a severity rating, provide additional information about your use case, or request that findings be re-evaluated. The agent can also help you prioritize and implement the recommended fixes.
The generated report must also include the following disclaimer, placed before the Executive Summary:
Disclaimer: This report is a technical codebase analysis produced by an automated tool and AI assistant. It does not constitute legal advice, has no legal validity, and does not bind Codeminer42 or any party to its findings. This report should not be used in court or as evidence of compliance or non-compliance. All legal matters related to data protection, GDPR, LGPD, or any other privacy regulation should be discussed with a qualified lawyer.
Step 1: Scanner Baseline
If ruby is not found when running the commands below, ask the user how to run Ruby in their environment instead of trying to resolve it yourself.
Run the scanner to get a mechanical baseline. Include the --markets flag with the markets the user provided in Step 0 (e.g., br for Brazil, eu for EU, us for US — comma-separated for multiple):
ruby ${CLAUDE_SKILL_DIR}/../privacy-by-design-rails/scripts/scanner.rb --markets <markets>
The scanner outputs JSON. Parse it to extract:
findings— pre-filled findings with severity, location, and confidence. Flag anymedium-confidence findings for verification in Step 2.inventory— the scanner enumerates models, mailers, mailer templates, jobs, controllers, services, initializers, schema tables with PII columns, ransackable models, audit declarations, external API calls, and JSON endpoints. Use this inventory as the starting point for A3 in Step 2a — only supplement with manual discovery if you notice gaps.checklist— boolean pass/fail/null for each privacy check. You will update these during Step 2.
Step 2: Deep-Dive Analysis (Two-Pass)
Read ${CLAUDE_SKILL_DIR}/assessment-reference.md. The analysis proceeds in two mandatory passes:
Step 2a: Discovery Pass
Process checklist items A1 through A4 only. This builds your complete codebase inventory and verification matrix.
- Execute EVERY enumeration command in A3. Do not skip any.
- Build the verification matrix in A4 with a row for every PII model.
- Do NOT write any findings yet. Do NOT skip ahead to analysis.
- Use ultrathink for extended reasoning about PII classification decisions, applying the Mandatory Classification Rules from
references/pii-definition.md.
When A4 is complete, verify: does every model from the A3 enumeration that has PII columns have a row in the matrix? If not, go back and add the missing rows.
Step 2b: Analysis Pass
Process checklist items B1 through I2 sequentially. For each item:
- Record the outcome: FINDING (with severity), PASS, or N/A
- Update the verificat
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Bash - 02
Read - 03
Glob - 04
Grep - 05
Write
Вложенные файлы
- assessment-reference.md
FAQ
Что делает скилл privacy-assessment-rails?
Assess a Rails app's full codebase for compliance with privacy laws, like GDPR and LGPD. Generates an assessment report, not a legal audit.
Как установить скилл privacy-assessment-rails?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл privacy-assessment-rails запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
docx
AnthropicUse this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
xlsx
AnthropicUse this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
pptx
AnthropicUse this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…