疑难Bug诊断
diagnosing-bugs
用于诊断棘手 bug 和性能回归的诊断循环。当用户说“诊断”/“调试这个”,或报告某功能损坏、抛异常、失败或变慢时使用。
- License 许可
- AGPL-3.0
- 所属仓库
- Vortex375/seraph
- 最近更新
- 2026-11-08
- Stars
- ★ 2
- Forks
- 0
01 前言 Front Matter
- name
- data-portability
- license
- Apache-2.0
- metadata
- { "tags": "data-portability, gdpr-article-20, machine-readable, data-export, controller-transfer", "author": "mukul975", "domain": "privacy", "version": "1.0", "subdomain": "data-subject-rights" }
- description
- Executes GDPR Article 20 data portability requests, covering machine-readable format requirements (JSON, CSV, XML), direct controller-to-controller transfer mechanisms, and scope limitations to data provided by the subject on consent or contract basis. Activate for portability, data export, Art. 20, data transfer queries.
02 资源文件 6
- 参考文档agents/openai.yaml103 B
- 资产文件assets/template.md3.9 KB
- 参考文档references/standards.md2.2 KB
- 参考文档references/workflows.md4.4 KB
- 脚本scripts/hitl-loop.template.sh1.3 KB
- 脚本scripts/process.py11.7 KB
03 SKILL.md 正文
Executing Data Portability Requests
Overview
The right to data portability under GDPR Article 20 allows data subjects to receive their personal data in a structured, commonly used, and machine-readable format, and to transmit that data to another controller without hindrance. This skill provides the complete workflow for assessing scope, extracting data, formatting output, and facilitating direct transfers.
Legal Foundation
GDPR Article 20 — Right to Data Portability
-
Art. 20(1) — The data subject has the right to receive the personal data concerning them, which they have provided to a controller, in a structured, commonly used and machine-readable format, and has the right to transmit those data to another controller without hindrance from the controller to which the personal data have been provided, where:
- (a) the processing is based on consent under Art. 6(1)(a) or Art. 9(2)(a), or on a contract under Art. 6(1)(b); AND
- (b) the processing is carried out by automated means.
-
Art. 20(2) — The data subject has the right to have the personal data transmitted directly from one controller to another, where technically feasible.
-
Art. 20(3) — The exercise of portability shall not adversely affect the rights and freedoms of others.
-
Art. 20(4) — The right to portability shall not apply to processing necessary for the performance of a task carried out in the public interest or in the exercise of official authority vested in the controller.
Scope: What Data Is Portable
Per EDPB (formerly WP29) Guidelines on the right to data portability (WP242 rev.01), portable data includes:
- Data provided by the data subject: Information actively and knowingly provided (e.g., account details, form submissions, uploaded content).
- Observed data: Data generated by the data subject's activity (e.g., search history, location data, activity logs, raw sensor data from connected devices).
- NOT included — Inferred or derived data: Data created by the controller through analysis (e.g., credit scores, profiling segments, algorithmic assessments). These are the controller's intellectual output.
Legal Basis Filter
Portability applies ONLY where the legal basis for processing is:
- Art. 6(1)(a) — Consent
- Art. 9(2)(a) — Explicit consent (for special category data)
- Art. 6(1)(b) — Performance of a contract
Portability does NOT apply to data processed under:
- Art. 6(1)(c) — Legal obligation
- Art. 6(1)(d) — Vital interests
- Art. 6(1)(e) — Public interest / official authority
- Art. 6(1)(f) — Legitimate interests
Portability Request Workflow
Step 1: Receive and Validate the Request
- Log the request with reference PORT-YYYY-NNNN.
- Verify the requester's identity (tiered verification as per DSAR process).
- Determine whether the request is for:
- (a) Self-export: Data subject wants to receive their data directly.
- (b) Direct transfer: Data subject wants data transmitted to another controller.
- If direct transfer, obtain the receiving controller's details:
- Organisation name and registered address
- Technical contact email
- API endpoint or secure transfer mechanism (if available)
- Data format preference
Step 2: Scope Assessment
- Identify all personal data the subject has provided or that has been observed through their use of the service.
- Filter by legal basis — include only data processed under consent (Art. 6(1)(a)/Art. 9(2)(a)) or contract (Art. 6(1)(b)).
- Exclude inferred or derived data (profiling scores, analytics outputs, internal assessments).
- Exclude data that would adversely affect the rights and freedoms of others (Art. 20(3)) — redact third-party personal data from exported datasets.
- Confirm that processing is carried out by automated means (manual paper files are excluded).
Step 3: Data Extraction
- Query all relevant systems for the in-scope data:
- Customer account database
- Transaction/order history
- User-generated content (uploads, posts, messages authored by the subject)
- Service interaction logs (observed data)
- Preference and settings data
- Connected device data (if applicable)
- Apply the scope filter from Step 2.
- De-duplicate records across systems.
- Validate data integrity (checksums, record counts).
Step 4: Format the Data
Meridian Analytics Ltd supports the following machine-readable formats:
| Format | MIME Type | Use Case | Schema |
|---|---|---|---|
| JSON | application/json | Default — structured, widely supported | Schema documented in API specification |
| CSV | text/csv | Tabular data, spreadsheet-compatible | Header row with field names, UTF-8 encoding, RFC 4180 compliant |
| XML | application/xml | Enterprise integration, legacy systems | XSD schema provided with export |
Format selection priority:
- If the data subject specified a preferred format, use it (if supported).
- If the receiving controller specified a format, use it.
- Default to JSON.
Data packaging:
- Each data category is exported as a separate file (e.g.,
account_data.json,transactions.csv,content_uploads.json). - A manifest file (
manifest.json) lists all included files, record counts, date ranges, and checksums. - Files are packaged into a single ZIP archive with AES-256 encryption.
Step 5: Execute Direct Transfer (If Applicable)
If the data subject requested direct controller-to-controller transfer under Art. 20(2):
- Verify the receiving controller's identity and authorisation.
- Establish a secure transfer channel:
- Option A — API transfer: If the receiving controller provides an API endpoint, transmit via HTTPS with mutual TLS authentication.
- Option B — SFTP transfer: Establish an SFTP connection with SSH key authentication.
- Option C — Secure file exchange: Upload the encrypted archive to a secure portal and provide time-limited access credentials to the receiving controller.
- Obtain transfer confirmation (HTTP 200/201 response, SFTP receipt confirmation, or download confirmation).
- If direct transfer is not technically feasible, notify the data subject and provide the data directly to them instead, per Art. 20(2).
Step 6: Deliver to Data Subject (Self-Export)
- Upload the encrypted archive to the secure download portal.
- Send notification to the data subject with:
- Secure download link (72-hour expiry)
- Decryption password (sent via separate channel — SMS or secondary email)
- Manifest summary (file list, record counts)
- Instructions for opening the archive
- Record the delivery confirmation.
Step 7: Close and Document
- Update the portability request register with:
- Completion date
- Data categories exported
- Format used
- Transfer method (self-export or direct transfer)
- Recipient controller (if direct transfer)
- Retain the processing record for 3 years.
- The export does NOT require deletion of the original data — portability is an additional right, not a replacement for erasure.
Response Timeline
- Standard deadline: 30 calendar days from receipt of the request.
- Extension: Up to 60 additional days for complex requests (Art. 12(3)).
- No fee: The first copy must be provided free of charge. Additional copies may incur a reasonable fee under Art. 12(5).
04 同仓库更多 Skills
智能体技能文档编写
writing-for-agents
为智能体编写文档。在创建或编辑技能(skill),或修改 AGENTS.md 或 CLAUDE.md 时使用。
交互式Bash向导生成
wizard
生成交互式 bash 向导,引导人类逐步完成只有他们才能执行的步骤。适用于配置基础设施、设置凭证或 CI 密钥、引导操作不熟悉的第三方仪表板,或执行一次性迁移或割接。不要将其用于智能体自身可以执行的步骤。
大型任务决策路径规划
wayfinder
将庞大的工作量(超出单个智能体会话所能承载的范围)规划为问题跟踪器上共享的决策工单地图,并逐个解决,直到通往目的地的路径清晰。
重述未被理解的信息
wait-what
停。上一条消息没有被理解:重新表达一下。
问题与PR分诊处理
triage
通过分诊角色的状态机流转问题(issue)和外部 PR:分类、验证、必要时深入质询,并编写可供智能体直接使用的简报。
计划规格拆解为工单
to-tickets
将计划、规格说明或当前对话拆解为一组曳光弹式可执行小工单,每个工单都声明其阻塞依赖,并发布到配置的跟踪器(本地以文本形式记录依赖关系,每个工单一个文件;在真实跟踪器上则使用原生阻塞链接)。