# Secure Coding

> Secure Coding

- Skill: `onfire7777/secure-coding` (Agent Skill)
- Install (CLI): `npx skillmds@latest add onfire7777/secure-coding`
- Raw SKILL.md: https://api.skillmd.com/api/skills/onfire7777/secure-coding/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: onfire7777 (https://skillmd.com/u/onfire7777)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/onfire7777/secure-coding

---


# Secure Coding

Purpose: Keep autonomous changes safe by default.

1. Validate inputs at boundaries with schemas.
2. Keep secrets in environment variables only.
3. Reject unsafe paths that leave the project or target repo.
4. Prefer allowlists for tools, origins, commands, and release gates.

Checklist:

- Inputs are parsed before use.
- Secrets are not logged.
- Paths remain scoped.
- Failures block safely.

Positive example: reject a configured context file outside repo root.
Negative example: pass a token as a command argument.

Failure modes: insecure defaults, broad CORS, unsanitized shell input, unscoped filesystem reads.

