njt2810/claude-code-framework/data-inventory
Claude Code and agent skill by njt2810/claude-code-framework
- community
Checking that the SKILL.md file is still in the repository.
TRIGGER when: the user wants to map PII flows, build a data inventory, asks "what personal data do we collect", needs to document data handling for PDPA / SOC 2 / a client questionnaire, or wants to know where user data lives. DO NOT TRIGGER when: the user wants a security scan (use /security-check), a compliance gap report (use /compliance-audit), or general docs (use /document-all).
Install
npx vskill@latest install njt2810/claude-code-framework/data-inventorySKILL.md
The same SKILL.md was published earlier as njt2810/claude-code-framework/data-inventory.
Data Inventory — Map PII Flows
When to Use
When the project needs a documented inventory of every piece of personal data it collects, processes, stores, or transmits. Required for PDPA accountability and SOC 2 evidence. Should be run on every production project and updated whenever a new data type is introduced.
Procedure
Step 1 — Production-Tier Check
Read the project's own CLAUDE.md for a Production-tier: line (v2, written by /adopt) — falls back to the old Stream:/.claude/stream detection for a v1 project not yet re-adopted. If not production-tier: STOP. Data inventory is for production-tier projects.
Step 2 — Scan Codebase for PII
Delegate to the Compliance Officer subagent (or Security Auditor if Compliance Officer not installed):
"Scan this codebase and identify every PII field. PII includes but is not limited to:
Direct identifiers:
- email, phone, name, address, date of birth, photo, voice, biometric
Quasi-identifiers:
- IP address, device ID, location data, MAC address, browser fingerprint
Sensitive PII:
- government ID (NRIC/passport), financial (card, bank), health, religious,
political, criminal records, sexual orientation
For each PII field found, document:
- Field name (in code)
- Where it's collected (which file/endpoint)
- Where it's stored (which table/file/store)
- Where it's transmitted (which external services receive it)
- How long it's retained (if documented)
- Encryption status (at rest / in transit)
- Access controls (who can read it)
Return as a structured table."
Step 3 — Write Data Inventory
Write wiki/compliance/data-inventory.md:
Step 4 — Identify Gaps
After the inventory is written, list gaps:
- Fields with no documented retention policy
- Fields not encrypted at rest
- External services without a DPA
- Cross-border transfers without legal basis
- Fields collected but not actually used (data minimization violation)
Step 5 — Report
Pitfalls
- Treating only "obvious" PII as PII — IP addresses, device IDs, location are PII under PDPA/GDPR
- Forgetting external services (analytics, error tracking, email) — they often see PII
- Not capturing cross-border transfers — this is a major PDPA compliance area
- Letting the inventory go stale — re-run after every schema change
- Inferring fields are encrypted at rest — verify with the actual infrastructure config
Verification
- Every PII field in the codebase is in the inventory
- Each field has all 7 attributes filled (type, collected, stored, transmitted, retention, encryption, access)
- External services that see PII are flagged for DPA verification
- Cross-border transfers are documented with legal basis
- Gaps are listed with concrete remediation actions
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/data-inventory/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/njt2810/claude-code-framework/data-inventory)