AGENT SKILL

inventory-personal-data-flows

Use when you must know where personal data lives and moves before a review, DPIA, or deletion project. Build a field-level inventory from schema, code, and vendor config with an owner per hop.

License 许可
MIT
最近更新
2026-11-15
Stars
★ 81
Forks
17

01 前言 Front Matter

name
inventory-personal-data-flows
description
Use when you must know where personal data lives and moves before a review, DPIA, or deletion project. Build a field-level inventory from schema, code, and vendor config with an owner per hop.

02 资源文件 3

03 SKILL.md 正文

Inventory personal data flows

You cannot minimise, delete, or protect data you have not located. This skill produces a field-level map from system of record to third-party sink, with a named owner on every hop.

Procedure

  1. Freeze the row schema before gathering, in pii-inventory.csv: element,system_of_record,column_or_field,purpose,lawful_basis,retention,recipients,owner.

  2. Enumerate the live schema rather than trusting docs: psql "$DATABASE_URL" -c "select table_name, column_name, data_type from information_schema.columns where table_schema='public' order by 1,2"

  3. Grep for candidate sinks across services: rg -n -i "\b(email|phone|msisdn|ssn|dob|passport|iban|card_number|ip_addr|device_id)\b" -g '!**/test/**' -g '*.py' -g '*.ts'

  4. Walk each hit to its call site and record the destination: own DB, log handler, analytics SDK, error tracker, message topic, outbound HTTP.

  5. For every outbound destination capture vendor, region, and the exact field list sent: rg -n "requests\.(post|put)|axios\.|fetch\(" src/ then read the payload construction.

  6. Add every backup, replica, dump file, and CSV export. These are systems of record too and are routinely omitted.

  7. Mark each row with a lawful basis: consent, contract, legal obligation, vital interest, public task, legitimate interest. A row with no basis is a finding.

  8. Assign a named team per hop. "platform" is not an owner; a person or a team inbox is.

  9. Report coverage: tables holding PII versus columns classified, and list every candidate column left unclassified.

Pitfalls

  • Free text and JSONB hide PII; grep never finds metadata->>'contact', so sample rows with select metadata from users limit 5.
  • Derived copies (search index, cache, warehouse) vanish from inventories built only from the primary DB.
  • Test fixtures carry real production data far more often than anyone admits; check **/fixtures/** and seed.sql.
  • An SDK's default auto-capture can send fields to a vendor dashboard you never provisioned.
  • Treating user_id as non-personal because it is a number is wrong wherever it joins to an identity.

Verification

python3 - <<'PY'
import csv
rows = list(csv.DictReader(open('pii-inventory.csv')))
assert rows, "empty inventory"
assert all(r['owner'] and r['lawful_basis'] for r in rows), "unowned or unbased rows"
print(len(rows), "elements across", len({r['system_of_record'] for r in rows}), "systems")
PY

Report the element count, the systems covered, and every column that could not be classified.

04 同仓库更多 Skills

jiayaoqijia
jiayaoqijia/cryptoskill

troves

Deposit and withdraw from Troves DeFi yield vault strategies on Starknet. View available strategies, check positions, and manage vault deposits. Use this skill when the user mentions Troves, vault, yield vault, DeFi vault, strategy, yield farming, vault deposit, vault withdraw, earning yield through vaults, passive yield strategies, or wants to deposit into or withdraw from a yield strategy — even if they don't say "Troves" explicitly.

★ 81
jiayaoqijia
jiayaoqijia/cryptoskill

trade

Swap tokens on Starknet via Fibrous DEX aggregator. Supports per-provider selection (avnu, ekubo, or auto to race all). Use this skill when the user wants to swap, exchange, trade, convert, buy, or sell one token for another on Starknet. Also use when the user asks about token prices, exchange rates, DEX routing, best swap route, or wants to check how much they would receive for a given amount — even if they don't explicitly say "swap".

★ 81
jiayaoqijia
jiayaoqijia/cryptoskill

staking

Stake, unstake, claim, and compound rewards for STRK, WBTC, tBTC, SolvBTC, and LBTC on Starknet. View validators, pools, and staking positions. Use this skill when the user mentions staking, delegating, validators, staking pools, rewards, compounding, unstaking, earning yield, passive income on crypto, or wants to earn on their STRK or BTC tokens — even if they don't say "stake" explicitly.

★ 81
jiayaoqijia
jiayaoqijia/cryptoskill

send

Send STRK, ETH, or any ERC-20 token to a Starknet address. Supports simulation (dry-run) before execution. Use this skill when the user wants to send, transfer, pay, tip, or move tokens to another wallet address on Starknet. Also trigger when the user mentions sending funds to someone, making a payment, transferring assets, or moving crypto to a specific address — even if they just say "pay 10 STRK to 0x...".

★ 81
jiayaoqijia
jiayaoqijia/cryptoskill

portfolio

View a comprehensive DeFi portfolio dashboard and optimize portfolio allocation via automated rebalancing. Use this skill when the user wants an overview, summary, dashboard, total value, net worth, portfolio rebalancing, target allocation, or wants to see all their DeFi positions across Starknet at once. Also trigger when the user asks "what do I have", "show me everything", "how much am I worth", "my positions", "my investments", "rebalance my portfolio", "I want 50% ETH", "optimize my holdings", or any request for a holistic view of their Starknet holdings — even if they don't explicitly say "portfolio".

★ 81
jiayaoqijia
jiayaoqijia/cryptoskill

multi-swap

Execute multiple token swaps in a single Starknet transaction via Fibrous (default). Supports per-provider selection (avnu, ekubo, or auto to race all). Supports 2-3 swap pairs bundled into one multicall. Use this skill when the user wants to swap multiple token pairs at once, do batch swaps, execute several trades simultaneously, perform parallel swaps, or do bulk trading in one transaction. Also trigger when the user mentions "two swaps", "three swaps", "swap X and Y at the same time", or wants to convert multiple tokens in a single call.

★ 81