agentleFS
DipeshpalDipeshpal/capes/.claude/skills/security-audit/SKILL.md

security-audit

Skill1 starsChanged 2 months agoMITView on GitHub

Audit the whole git history and working tree for leaked secrets and unsafe files before sharing or publishing the repo

  • Reads credentials

191 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use asset-spec, create-stories and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • lilangMaxSkill

    asset-spec

    Generate per-asset visual specifications and AI generation prompts from GDDs, level docs, or character profiles. Produces structured spec files and updates the master asset manifest. Run after art bible and GDD/level design are approved, before production begins.

    Also in 12 projects that use this

  • lilangMaxSkill

    create-stories

    Break a single epic into implementable story files. Reads the epic, its GDD, governing ADRs, and control manifest. Each story embeds its GDD requirement TR-ID, ADR guidance, acceptance criteria, story type, and test evidence path. Run after /create-epics for each epic.

    Also in 14 projects that use this

  • adybaSkill

    team-coordination

    Agent Teams orchestration patterns for multi-agent SAFe workflows. Use when spawning agent teams, coordinating teammates, enforcing quality gates via task dependencies, or orchestrating the 11-agent SAFe pipeline. Covers team creation, messaging, shared task lists, and SAFe gate enforcement. Do NOT use for single-agent or simple subagent workflows.

    Also in 5 projects that use this

  • nicepkgSkill

    community-led-growth

    Expert in community-led growth (CLG) - leveraging user communities to drive acquisition, retention, and expansion. Covers building developer communities, user groups, ambassador programs, and turning customers into advocates. Knows the difference between community as a feature vs community as a growth engine, and how to measure community ROI. Use when "community-led, CLG, ambassador program, champion program, user community, developer community, word of mouth, user group, " mentioned.

    Also in 5 projects that use this

  • nicepkgSkill

    ph-community-outreach

    Engage Reddit, Indie Hackers, Hacker News and other communities for Product Hunt launches. Use this skill to identify relevant communities, craft appropriate posts, and drive cross-platform engagement without appearing spammy.

    Also in 5 projects that use this

  • +5 more from lilangMax
  • +2 more from nicepkg

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 174 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Files ever tracked: must not include .env, .env.* (other than .env.example), *.local.json, *.pem or *.key.

    line 12
  2. Very specific:

    Check GitHub too: gh api repos/<owner>/<repo>/commits/<old-sha> returning a commit means orphaned commits are still fetchable even if no …

    line 15
  3. Distinctive:

    If a real secret is in history:

    line 17
  4. Distinctive:

    Delete old Vercel deployments or the project if their uploaded source contained the secret.

    line 21

“Common” is measured: kept by at least 6 in 10 of the 174 edited versions of this file we could read. “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

Scan output (secret values are never printed):

!bash ${CLAUDE_SKILL_DIR}/scan.sh

Interpret the result:

  1. Files ever tracked must not include .env, .env.* (other than .env.example), *.local.json, *.pem or *.key. Any such file in history is a leak.
  2. Pattern hits (Discord bot tokens, Apify tokens, GitHub tokens, private keys, cloud keys, long values assigned to *_KEY/*_TOKEN/*_SECRET/*_PASSWORD): open each hit with git show <rev>:<path> only to decide whether it is a real secret or a placeholder. Do not paste real values into the conversation.
  3. Known-secret hits compare the values in your current environment (MCP_API_KEY, DISCORD_BOT_TOKEN, APIFY_TOKEN, GMAIL_APP_PASSWORD) against every revision. Any count above 0 is a confirmed leak.
  4. Check GitHub too: gh api repos/<owner>/<repo>/commits/<old-sha> returning a commit means orphaned commits are still fetchable even if no branch reaches them.

If a real secret is in history:

  1. Rotate it at the provider now (Discord: Reset Token; Apify: regenerate; Google: revoke the app password; new MCP_API_KEY via Vercel env and redeploy).
  2. Deleting the secret from history is not enough. Create a fresh repository, push the cleaned history there, and delete the old repository (gh auth refresh -s delete_repo then gh repo delete).
  3. Delete old Vercel deployments or the project if their uploaded source contained the secret.
  4. Re-run this audit and confirm zero hits.

Also confirm: .gitignore still covers .env* (except the example), .capes.local.json and .claude/settings.local.json; git status shows nothing sensitive untracked.

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.