agentleFS
GDvegaGDvega/super-android-kotlin-firebase-skill/skills/security-privacy/SKILL.md

security-privacy

Skill2 starsChanged 5 months agoMITView on GitHub

Use for Android and Firebase security, secrets, API keys, Firebase Security Rules, local encryption, biometrics, least privilege, privacy-first data handling and sensitive data reviews.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

10 rules. About 0 are common, 10 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈10

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Search for secrets and sensitive logs.

    line 27
  2. Distinctive:

    Add tests or manual verification steps.

    line 30
  3. Distinctive:

    Never exfiltrate or print secrets.

    line 34
  4. Distinctive:

    No open production rules.

    line 35
  5. Distinctive:

    Do not rely on client-only authorization.

    line 36
  6. Distinctive:

    Do not log PII, tokens or sensitive health/financial data.

    line 37
  7. Distinctive:

    Use encryption only with a clear threat model.

    line 38
  8. Distinctive:

    Do not assume these companion skills are installed.

    line 52
  9. Distinctive:

    Use $super-android-kotlin-firebase to audit Firestore and Storage rules.

    line 91
  10. Distinctive:

    Use $super-android-kotlin-firebase to check this app for secret leaks.

    line 92

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Purpose

Reduce real security and privacy risks in Android/Firebase apps.

When to use

  • Auditing sensitive data handling.
  • Reviewing Firebase rules.
  • Checking secrets, logs or permissions.
  • Adding biometric or local encryption flows.

Inputs to inspect

  • Data classification and threat model.
  • Rules files and storage paths.
  • Logs, analytics and Crashlytics usage.
  • Permissions and local storage.

Required workflow

  1. Classify data and trust boundaries.
  2. Search for secrets and sensitive logs.
  3. Review Firebase rules and Android permissions.
  4. Propose least-privilege fixes.
  5. Add tests or manual verification steps.

Rules

  • Never exfiltrate or print secrets.
  • No open production rules.
  • Do not rely on client-only authorization.
  • Do not log PII, tokens or sensitive health/financial data.
  • Use encryption only with a clear threat model.

Related existing skills

Local skills to invoke

  • firebase-core
  • firestore
  • firebase-auth
  • code-review-refactor
  • testing

External companion skills to use when installed

Do not assume these companion skills are installed. Prefer the local skills above first, then consult Companion Skills for install and verification commands.

  • firebase/agent-skills — use for deeper Firebase product, Firestore, Security Rules or emulator workflow guidance when installed.

Files commonly touched

  • firestore.rules
  • database.rules.json
  • storage.rules
  • AndroidManifest.xml
  • logging/analytics code
  • local storage code

Commands to validate

git grep -n "apiKey\|secret\|password\|token"
firebase emulators:exec "npm test"
./gradlew lint
./gradlew test

Common mistakes to avoid

  • Putting private keys in BuildConfig.
  • Treating Firebase API keys as authorization.
  • Logging user identifiers unnecessarily.
  • Opening rules for convenience.

Checklist

  • Secrets not committed.
  • Rules least-privilege.
  • Logs safe.
  • Permissions minimal.
  • Risks documented.

Example prompts

  • Use $super-android-kotlin-firebase to audit Firestore and Storage rules.
  • Use $super-android-kotlin-firebase to check this app for secret leaks.

Expected response style

Respond with: brief diagnosis, change plan, affected files, code or diff summary, validation commands, tests added or recommended, risks, and next step. For review tasks, lead with findings ordered by severity.

References

  • ../../docs/audits/FUENTES_LOCALES.md
  • references/android-firebase-security.md
  • templates/security-review-template.md

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.