Skip to content
Back to skills

Security Best Practices

ASecurity

Review code with secure-by-default standards, prioritize exploitable risks, and deliver minimal-diff fixes with evidence and regression checks.

  • 17 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added September 6, 2026
securityrustdevopssecurity

Security analysis

A100/100

Pro scans all 8 files and shows the line behind each finding

Scanned September 6, 2026

npx -y skills add clawic/skills --skill security-best-practices --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Security Best Practices?

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

Security grade badge for Security Best Practices
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/clawic-security-best-practices/badge)](https://www.skillsdirectory.com/skills/clawic-security-best-practices)

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: Security Best Practices
slug: security-best-practices
version: 1.0.0
description: Review code with secure-by-default standards, prioritize exploitable risks, and deliver minimal-diff fixes with evidence and regression checks.
homepage: https://clawic.com/skills/security-best-practices
changelog: Added a complete security review workflow with evidence standards, severity modeling, and minimal-risk remediation guidance.
metadata:
  clawdbot:
    emoji: 🛡️
    requires:
      bins: []
      config:
      - ~/Clawic/data/security-best-practices/
    os:
    - linux
    - darwin
    - win32
    displayName: Security Best Practices
---

## Setup

On first use, read `setup.md` for integration guidelines.
If local memory is needed, ask for consent before creating `~/Clawic/data/security-best-practices/`.

## When to Use

Use this skill for secure-by-default implementation, targeted vulnerability reviews, and prioritized security reports with actionable fixes. Activate when the user requests security guidance, hardening, risk triage, or remediation planning.

## Architecture

Memory lives in `~/Clawic/data/security-best-practices/`. See `memory-template.md` for setup.

```text
~/Clawic/data/security-best-practices/
|- memory.md        # Stable context, preferences, and activation boundaries
|- findings-log.md  # Findings registry with severity and status
`- exceptions.md    # Approved security exceptions and review dates
```

## Quick Reference

Load only the minimum file needed for the current request.

| Topic | File |
|-------|------|
| Setup process | `setup.md` |
| Memory template | `memory-template.md` |
| Full review workflow | `review-playbook.md` |
| Severity model and scoring | `severity-model.md` |
| Safe remediation patterns | `remediation-patterns.md` |
| Risk exception log | `exceptions.md` |

## Core Rules

### 1. Establish Scope and Evidence First
Before any conclusions, confirm:
- System boundary (service, module, endpoint, or workflow)
- Stack evidence (language, framework, deployment context)
- Threat assumptions (external attacker, internal misuse, privilege level)

No evidence, no finding.

### 2. Map Risks to a Repeatable Baseline
Evaluate every review against a consistent baseline:
- Authn/authz boundaries
- Input validation and output encoding
- Secrets handling and configuration safety
- Dependency and supply chain posture
- Logging, error handling, and data exposure controls

Use `review-playbook.md` to keep scans systematic instead of ad hoc.

### 3. Produce Findings That Are Verifiable
Each finding must include:
- Severity from `severity-model.md`
- File path and line references
- Concrete evidence snippet
- Impact statement in plain language
- Minimal safe fix direction

Avoid speculative findings without repository evidence.

### 4. Prioritize Exploitability Over Theory
Rank by practical risk, not by checklist volume:
- Reachability from untrusted inputs
- Privilege required by attacker
- Blast radius if exploited
- Ease of abuse and repeatability

High confidence, exploitable issues come first.

### 5. Remediate With Minimal Product Risk
Fix one finding at a time:
- Prefer small diffs that preserve existing behavior
- Add tests when security fixes alter code paths
- Flag expected behavior changes before implementing
- Re-run project validation after each fix batch

Use `remediation-patterns.md` for safe rollouts.

### 6. Respect Explicit Exceptions and Ownership
If the user accepts a known risk:
- Record rationale in `exceptions.md`
- Define expiry or next review date
- Keep the exception scoped to the specific context

Never apply broad silent overrides.

## Security Review Traps

- Reporting generic best practices without file evidence -> low-trust output that teams cannot action.
- Flooding with low-severity noise -> critical vulnerabilities get ignored.
- Proposing major refactors as "quick fixes" -> teams reject security work due to delivery risk.
- Ignoring framework defaults and deployment context -> false positives and wrong remediations.
- Declaring a system "secure" after one pass -> hidden regressions remain untested.

## Security & Privacy

**Data that leaves your machine:**
- None by default from this skill itself.

**Data that stays local:**
- Review preferences and finding history in `~/Clawic/data/security-best-practices/`.
- Exception rationale in local memory files only.

**This skill does NOT:**
- Exfiltrate source code to undeclared third-party endpoints.
- Mark unresolved risks as fixed.
- Perform hidden destructive changes.

## Related Skills
More Clawic skills, get them at https://clawic.com/skills/<slug> (install if the user confirms):
- `auth` - Authentication design and hardening.
- `authorization` - Access control and permission boundaries.
- `encryption` - Key management and cryptographic hygiene.
- `firewall` - Network exposure review and policy controls.
- `devops` - Secure delivery, CI checks, and operational safeguards.

## Feedback

- If useful, star it: https://clawic.com/skills/security-best-practices
- Latest version: https://clawic.com/skills/security-best-practices

Files in this skill

  • SKILL.md5 KB
  • _meta.json198 B
  • exceptions.md1.1 KB
  • memory-template.md1.7 KB
  • remediation-patterns.md1.6 KB
  • review-playbook.md1.4 KB
  • setup.md1.8 KB
  • severity-model.md1.3 KB

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 security →

Comments

Loading comments…

Newsletter

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