Skip to content
Back to skills

Init

ASecurity

Scaffold a project-aware .claude/settings.json deny list with cfgaudit

  • 30 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 24, 2026
ai-agentsgodockerkubernetes

Works with

  • cli

Security analysis

A100/100

Scanned November 11, 2026

npx -y skills add cfgaudit/cfgaudit --skill init --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Init?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Init
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/cfgaudit-init/badge)](https://www.skillsdirectory.com/skills/cfgaudit-init)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: init
description: Scaffold a project-aware .claude/settings.json deny list with cfgaudit
disable-model-invocation: true
---

Bootstrap a hardened `.claude/settings.json` for this project, tailored to the tools it actually uses.

Steps:

1. Get cfgaudit's safe-default baseline as JSON (does not write anything):

   ```text
   cfgaudit init --dry-run
   ```

2. Inspect the project to infer which command categories should be restricted. Look at files such as package.json, Makefile, go.mod, Dockerfile, and the CI config to see which toolchains are in use — and, just as important, which are NOT (a project that never uses Kubernetes should deny kubectl; one that never deploys cloud infra should deny the relevant CLIs).

3. Merge the baseline with project-specific deny entries you inferred. Keep the credential, key, cloud, and SSH read-deny entries from the baseline unchanged — they are what make the file pass cfgaudit's own policy rules.

4. Show the user the proposed deny list and confirm before writing. On confirmation, write `.claude/settings.json` (create the .claude directory if needed). If the file already exists, do not overwrite it — offer to merge instead.

5. Verify the result:

   ```text
   cfgaudit .
   ```

   The generated file should report zero permission-policy findings. Report the outcome to the user.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.