andreibesleaga/gabbe/coding

Claude Code and agent skill by andreibesleaga/gabbe

Trust tier 2
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Apply OWASP Proactive Controls while writing code: validation, output encoding, authN/authZ, crypto choices. Use when code handles untrusted input, sessions, secrets or encryption.

Install

npx vskill@latest install andreibesleaga/gabbe/coding

SKILL.md

The same SKILL.md was published earlier as andreibesleaga/gabbe/coding.

secure-coding Skill

Goal

This skill guides the implementation of security controls during development (Shift Left).

Steps

1. Input Validation (Defense)

"Never trust input."
  • Syntactic Validation: Is it an email? Is it a number? (Use Zod/Pydantic).
  • Semantic Validation: Is start_date before end_date? Is transfer_amount > 0?
  • Allow-list: Only accept known good characters (e.g., [a-zA-Z0-9]). Block everything else.

2. Output Encoding (Defense)

"Context matters."
  • HTML Context: Escape < -> &lt;. (Prevent XSS).
  • SQL Context: Use Parameterized Queries. (Prevent SQLi).
  • JSON Context: Ensure valid JSON structure.

3. Authentication & Authorization

  • NIST Guidelines:
  • Passwords: Min 12 chars, no complexity rules, check against pwned passwords.
  • MFA: Required for admin/privileged actions.
  • Sessions: Absolute timeout (e.g., 12 hours) + Idle timeout (e.g., 30 mins).
  • Authorization:
  • Broken: if (user.isAdmin) (Client-side check).
  • Fixed: if (ctx.user.hasPermission('delete:user')) (Server-side check).

4. Cryptography

  • At Rest: Use AES-256-GCM (Authenticated Encryption).
  • In Transit: TLS version rule: security/cryptography-standards.skill.md.
  • Hashing: Argon2id; parameters and legacy options: security/cryptography-standards.skill.md.
  • Secrets: Never hardcode. Read them from the environment or the project's secret store.

Part of the path in security/security-baseline.skill.md; evidence goes in project/SECURITY_BASELINE.md.

Constraints

  • Validate input with strict schemas and convert types before range checks.
  • Allow-list known good input; reject the rest.
  • Check permissions on the server, never only on the client.

Output Format

Code changes with, for each boundary touched, a short note of the controls applied: validation, output encoding, authentication and authorisation, cryptography.

Limits and safety

  • A secret found in code is removed from the code and the human is told to rotate it; moving it into a constant does not fix it. Removing it from git history needs the human's yes.
  • Use maintained standard libraries for cryptography, authentication and sanitising (for example DOMPurify, an Argon2id or bcrypt library, the platform's crypto); never write your own, and check a new package's name and maintenance before adding it.
  • Do not add a fallback to weaker protocols or algorithms for old clients; fail instead.
  • Encode for the destination context (HTML body, attribute, script, URL, SQL); a value encoded for one context is not safe in another.
  • Every handler that changes data checks permission on the server; being logged in is not permission.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNeutral, 68 of 100Ineffective. 1 run. Evaluated 8 months ago.

Source

Popularity

Repository stars
21
Repository forks
7
7-day trend score
15

Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 16 Mar 2026, 8 months ago.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/andreibesleaga/gabbe/coding/badge)](https://verified-skill.com/skills/andreibesleaga/gabbe/coding)

Something wrong with this skill or its page? Tell us.