security-best-practices SKILL.md skillA

security-best-practices from svngoku/coding-agents-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add svngoku/coding-agents-skills/security-best-practices@git:20260813.4b33420

Pins git:20260813.4b33420 in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
svngoku/coding-agents-skills
Path
skills/security-best-practices/SKILL.md
Versions recorded
1
Latest version
git:20260813.4b33420, committed Aug 13, 2026
Size
19,016 bytes
Repository stars
12
License
MIT

Practical security review and hardening guidance for application code in Python, JavaScript/TypeScript, and Go. Use this skill whenever the user asks for a security review or audit, wants to harden authentication (password hashing, sessions, JWT, OAuth2/OIDC, MFA), fix OWASP Top 10 issues (injection, XSS, IDOR, CSRF, SSRF, deserialization), threat-model with STRIDE, clean up secrets and .env handling, or set up dependency scanning (pip-audit, npm audit, osv-scanner, gitleaks, SBOM). Also…

Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.

What the file says

# Security Best Practices

Review and harden application code against the vulnerabilities that actually get exploited: injection, broken authentication, IDOR, XSS, insecure secrets, weak dependencies. This skill is **actionable engineering guidance, not a compliance checklist** — each vulnerability class maps to a concrete code-level fix, with cheat-sheets for Python, JavaScript/TypeScript, and Go plus a worked secure-login example.

## Quick Reference

| Topic | Reference |
|-------|-----------|
| STRIDE worksheet, trust boundaries, least privilege, DFDs | [threat-modeling.md](references/threat-modeling.md) |
| JWT verification, OAuth2 flows, OIDC, token storage | [jwt-oauth.md](references/jwt-oauth.md) |

## Core Workflow

1. **Scope the review.** List entry points (HTTP routes, message consumers, CLIs, file processors), sensitive data (PII, credentials, payment data), and trust boundaries. Note the languages/frameworks so the right cheat-sheet applies.
2. **Threat-model in 5 minutes.** Run the STRIDE table below per entry point; mark high-risk flows (auth, uploads, deserialization, outbound HTTP). Full worksheet: [threat-modeling.md](references/threat-modeling.md).
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add svngoku/coding-agents-skills/security-best-practices@sha256:bbf68e721958badb

The line at the top of this page pins the label git:20260813.4b33420, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.

Badge

mdr badge

[![mdr](https://markdownregistry.com/badge/art_kygupfjccrmlcpad.svg)](https://markdownregistry.com/a/art_kygupfjccrmlcpad)

2 badge image fetches in 30 days. What the badge shows.

Versions

The registry has recorded 1 version of this file, committed on Aug 13, 2026.

versioncommittedcommitsizeaudit
git:20260813.4b33420 latest2026-08-13 4b33420 19,016 BA view

Audit of the latest version

A  17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
  • pass: Frontmatter block present
  • pass: Frontmatter declares a name
  • pass: Frontmatter declares a description
  • pass: Size between 200 bytes and 200 KB (19016 bytes)
  • pass: No zero-width or bidi control characters
  • pass: No instruction hidden inside an HTML comment
  • pass: No link to an exfiltration or paste host
  • pass: No credential-shaped string
  • pass: No instruction to send local credentials anywhere
  • pass: No text hidden with inline styles
  • pass: No prompt-injection phrasing
  • pass: No curl or wget piped into a shell
  • pass: No recursive delete of root, home or parent
  • pass: No instruction to read or print local credentials
  • pass: No base64 blob over 200 characters
  • pass: No link to a raw IP address
  • pass: No script tag

Source

GitHub

svngoku/coding-agents-skills · 12 stars · license MIT · pushed 2026-10-19 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_kygupfjccrmlcpad
GET https://markdownregistry.com/api/v1/resolve?ref=svngoku/coding-agents-skills/security-best-practices
GET https://markdownregistry.com/api/v1/blob/bbf68e721958badbc4f5bcdb1b73d5e0700cf4473337c8b52e60b39ec8959940

Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.

Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.

More from svngoku/coding-agents-skills

AGENTS.md AGENTS.md file
svngoku/coding-agents-skills · AGENTS.md
git:20261019.1a0654c · audit A · 12 stars
adaption-ai SKILL.md skill
svngoku/coding-agents-skills · skills/adaption-ai/SKILL.md · Adaption AI SDK for synthetic data augmentation and dataset adaptation. Use when building data pipelines with the…
git:20261013.980e7e1 · audit A · 12 stars
api-design SKILL.md skill
svngoku/coding-agents-skills · skills/api-design/SKILL.md · Design and review intuitive, scalable, maintainable HTTP APIs. Use this skill whenever the user wants to design a new…
git:20260813.4b33420 · audit A · 12 stars
database-design SKILL.md skill
svngoku/coding-agents-skills · skills/database-design/SKILL.md · Design relational database schemas (and choose when to go NoSQL) that stay maintainable and fast. Use this skill…
git:20260813.4b33420 · audit A · 12 stars
ddd SKILL.md skill
svngoku/coding-agents-skills · skills/ddd/SKILL.md · Domain-Driven Design system for software development. Use when designing new systems with DDD principles, refactoring…
git:20261013.980e7e1 · audit A · 12 stars
genai-tk SKILL.md skill
svngoku/coding-agents-skills · skills/genai-tk/SKILL.md · Build GenAI and agentic apps with genai-tk (tclatos/genai-tk), a YAML-driven IoC toolkit over LangChain, DeepAgents…
git:20261013.09dd77b · audit A · 12 stars
langchain SKILL.md skill
svngoku/coding-agents-skills · skills/langchain/SKILL.md · Build AI agents with LangChain v1 and LangGraph in Python. Use this skill whenever the user mentions LangChain…
git:20261018.63db2d6 · audit A · 12 stars
microservices-patterns SKILL.md skill
svngoku/coding-agents-skills · skills/microservices-patterns/SKILL.md · Decompose systems into microservices and apply canonical distributed-systems patterns. Use this skill whenever the user…
git:20260813.4b33420 · audit A · 12 stars
performance-optimization SKILL.md skill
svngoku/coding-agents-skills · skills/performance-optimization/SKILL.md · Systematically find and fix performance problems in applications, frontend and backend, by measuring first. Use this…
git:20260813.4b33420 · audit A · 12 stars
prime-rl SKILL.md skill
svngoku/coding-agents-skills · skills/prime-rl/SKILL.md · Post-train LLMs with PrimeIntellect's prime-rl (async RL, SFT, distillation, evals). Use this skill whenever the user…
git:20261013.5def5e6 · audit B · 12 stars
scalingo SKILL.md skill
svngoku/coding-agents-skills · skills/scalingo/SKILL.md · Scalingo is a European (French) Platform-as-a-Service for deploying and operating web applications, background workers…
git:20261014.c555fef · audit A · 12 stars
smolagents SKILL.md skill
svngoku/coding-agents-skills · skills/smolagents/SKILL.md · Build AI agents with Hugging Face's SmolAgents framework. Use when creating code-executing agents, tool-calling agents…
git:20260813.422f18d · audit A · 12 stars

Every file in svngoku/coding-agents-skills

Other files named security-best-practices

security-best-practices SKILL.md skill
vodailocz/kilo-kit-mcp · skills/kilo-kit/development/security/SKILL.md · Security-focused development skill covering OWASP Top 10 and secure coding. Use when implementing authentication…
v1.0.0 · audit A · 28 stars

Browse by kind, by grade A, or by owner.