/fde-core:security-compliance-checkfrom fde-core
Reviews code changes for data handling compliance before release: identifies sensitive data flows, logging/caching exposure, encryption status, secret externalization, and audit trail completeness. Use as a pre-release gate for changes touching personal, payment, health, authentication, or audit data.
Ships in fde-core. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The pre-release pass on data handling.
Security review in a large organization has a lead time — often weeks — and it happens at the end. That produces two bad outcomes: a change blocked days before release by something that could have been designed differently, or a change that passes because the reviewer had twenty minutes and no context.
This skill is the pass you do, early and with full context, so the formal review finds nothing surprising. It doesn't replace the organization's review. It makes it fast.
There's a narrower reason too. The most common data-handling defects are not sophisticated attacks — they're a field added to a log line, a payload cached somewhere new, a token in an error message. They're introduced casually, they pass code review because they look harmless, and they're found in an audit a year later.
Resolve <workspace> before reading or writing artifacts: read ../_shared/workspace-conventions.md and follow its location and header rules. All artifact paths below use that resolved workspace. Preserve existing sections when appending.
<workspace>/03b-nfrs.md — the data classification and audit obligations<workspace>/06-blast-radius-*.md — where data flows<workspace>/06b-change-log.md — what actually changedKnow the organization's own review process and its lead time before starting. See change-control-navigation.
First action, not last: start the organization's formal review as soon as you know the data classification. An available agent security-review command may assist but does not replace required review. The rest of this skill is so that review finds nothing surprising. Starting it at go-live is the failure the why-section describes.
List every field the change touches, and classify each: personal, financial, health, authentication, or none.
Be precise about derived and indirect data. An order ID isn't personal; an order ID plus a timestamp plus a postcode frequently is, because it identifies someone. A "currency" field is not sensitive alone, but if it reveals location it may be. Aggregates can re-identify.
Where the classification isn't yours to make — and it usually isn't — record what you believe and who must confirm.
The core of the check. For each sensitive field, trace where the change causes it to travel:
The event-publishing case deserves particular attention. Adding a field to an event payload silently copies it into every consumer's storage, under their retention rules, outside your control.
Use ../_shared/change-review.md to inventory branch commits plus staged, unstaged, and untracked changes against the actual target branch. Run the organization's approved scanner locally with redacted output. If no scanner is available, inspect the changed files locally and report only path, line number, and finding type; never print matching values or raw hunks into chat. Record the scan's scope and limitations rather than claiming grep proves the absence of secrets.
Then the questions grep can't answer: are new secrets externalized to the vault or config rather than committed? Is anything logged at debug level that wouldn't be at info? Are test fixtures carrying real credentials? Has anything been committed and then removed — which does not remove it from history?
# A secret removed in a later commit is still in history
git log --format=%h -S '<non-secret field or key name>' -- '<changed-path>'
This prints commit IDs only. Do not search with the credential itself or display raw historical patches; inspect flagged commits locally using a redacting workflow.
If something sensitive is in history, say so immediately. It needs a rotation, not a deletion, and the rotation is the urgent part.
../_shared/enterprise-constraints.md.Where the platform already handles this, say so and cite it. "Encrypted at rest by the platform's default disk encryption" is a legitimate answer, and knowing it saves everyone time.
Where nfr-baseline recorded one, check the change actually produces it: who did it, when, what changed from what to what, and is it retained for the required period.
Then check the audit trail is tamper-evident where that's required — an audit log the application can rewrite is not an audit log for most compliance regimes.
A frequently-missed distinction. The change may correctly require a logged-in user and still let that user access another tenant's data.
For any new endpoint, field, or query: who is allowed to see this, is that enforced, and where? Multi-tenant systems specifically — is the tenant filter applied at the data layer, or relied upon at the presentation layer where a crafted request bypasses it?
Structure the output so a security reviewer can confirm rather than investigate. Lead with what changed about data handling, then the classification, then the specific answers.
A review pack that answers the standard questions before they're asked converts a three-week review into a short one, and that alone justifies the skill.
Append to <workspace>/08-release-readiness.md:
## Security and compliance check
**Date:** <YYYY-MM-DD> · **Reviewer:** FDE (pre-check) · **Formal review:** <status, ref>
### Data in scope
| Field | Classification | New? | Confirmed by |
|---|---|---|---|
| `currency` | non-personal | yes | Security, 03-18 |
| `customer_id` | personal (indirect) | no — existing | — |
### Where it now flows
| Destination | Sensitive data? | Encrypted | Retention | Notes |
|---|---|---|---|---|
| `refunds` table | yes | platform at-rest ✅ | 7y per policy | |
| `refund.processed` event | **yes — new field** | in transit ✅ | consumer-controlled | 4 consumers inherit this |
| Application logs | no | — | 30d | Verified — no PII in new log lines |
| Error tracker | **unverified** | — | vendor-controlled | Does it capture request bodies? |
### Secrets
- Changed paths scanned with <tool, revision, date>; <findings and limitations>, values redacted
- History checked for <non-secret key names>; <coverage and unresolved findings>. A key-name search alone does not prove the absence of credentials.
- TLS verification enabled on the new FX call `[confirmed: FxClient:22]`
### Audit
- Actor, timestamp, before/after recorded `[confirmed: RefundAudit:44]`
- Retention 7y via existing policy ✅
- Tamper-evidence: append-only table `[inferred — no delete grant, not verified]`
### Authorization
- New endpoint requires `REFUND_WRITE` ✅
- Tenant filter applied at repository layer `[confirmed: RefundRepository:88]`
### Open items for formal review
| # | Question | Why it matters |
|---|---|---|
| 1 | Does the error tracker capture full request bodies? | Would leak payloads to a third party |
Checking the code, not the data flow. The leak is usually a destination, not a line.
Forgetting error paths. Exception messages and stack traces carry the payload that caused them.
Forgetting third-party monitoring. Error trackers ingesting request bodies is a very common leak.
Missing event payloads. Adding a field copies it into every consumer's storage under their retention rules.
Deleting a committed secret instead of rotating it. It's still in history. Rotation is the urgent part.
Checking authentication and not authorization. Logged in is not the same as allowed.
Tenant filtering at the presentation layer. A crafted request bypasses it.
Treating this as a substitute for formal review. It's preparation for it. Know the lead time and start it early.
What SKILL.md sets; muted values are Claude Code's defaults
34 skills in this plugin
/access-and-onboardingTurn getting access into a tracked critical path instead of a passive wait. Enumerate every credential, permission, environment, and account the engagement needs, identify who approves each and its lead time, request long-lead items first, find workarounds for what is blocked, and keep a queue of useful work that does not depend on the blocker. Use in the first days at a new organization, whenever you are blocked on permissions, VPN, repository access, database grants, pipeline rights, or environment credentials, or when someone says "I'm still waiting for access". Use for access and permissions, not a failing login in application code and not a CAB that will not approve a deploy./adoption-planPlan and assess how intended end users move to a new business workflow, including barriers, process ownership, a bounded pilot, support, fallback, and successful-use measures. Use when a live solution is underused, users keep an old workaround, or rollout needs changes to daily work. Training the receiving technical team to operate the system is enablement-handoff; deploying code is deploy-runbook./blast-radiusMap everything a proposed change could break before making it - direct callers, cross-repository consumers, published contracts, event subscribers, feature flags, shared database objects, and config coupling - ending with a risk rating and the specific things to verify. Use before any non-trivial change, when asked "what breaks if we touch this", before modifying anything shared or published, or before a schema change. Do not use for a release go/no-go - that is release-readiness; this skill supplies the consumer list./change-control-navigationFind and work with the organization's change process before it blocks you - which gates apply, what evidence each requires, submission deadlines, freeze periods, release calendars, and segregation of duties - then work backwards from the release window. Use early in any engagement that will reach production, when a CAB or stage gate exists, when a release calendar or freeze period constrains the plan, or when work is technically complete and cannot ship. Discovering the process at go-live is a self-inflicted slip./characterization-testsPin the current behavior of untested legacy code before changing it - including behavior that looks like a bug, because something downstream may depend on it - using golden master and approval test patterns so a refactor or fix can be verified as behavior-preserving. Use before modifying code with thin or no test coverage, before any refactor of legacy code, when a change site has no tests and you need a safety net, or when someone says "we can't change that, nobody knows what it does". This is what makes legacy change safe rather than brave./context-strategyWork effectively in a codebase far larger than any context window, across an engagement that spans many sessions. Decide what to read versus search versus script versus delegate, maintain a durable working guide so each session does not re-derive the same map, define a working set, and hand off cleanly when context runs low. Use when a repository is too large to explore file-by-file, when context is filling up mid-task, when starting a multi-session engagement, when you catch yourself re-discovering something you already worked out, or when someone says "this repo is huge". Run before repo-recon when the tree is large; this sets the budget, it does not replace the system map.npx claudepluginhub rpraharaj/forward-deployed-engineer --plugin fde-coreOther plugins' skills for the same job