Index of every page on this site: llms.txt
All skills
andreimerlescu avatar

/secure-code-standards

@eb35785
Run it yourself

Mandatory security-conscious engineering for every task that writes, edits, reviews, configures, builds, packages or ships code, scripts, Dockerfiles, CI, config or docs, and especially any task where the agent is handed, discovers or reads a credential, API key, token, password, private key, certificate, connection string, sample .env, or personal data. Forces the agent to classify sensitive material before touching it, keep secrets out of source, binaries, flag defaults, embeds, logs, tests, commits and chat, and to prove it with a scan. Language-agnostic with Go-specific rules; pairs with go-engineering-standards.

  • 19 files
  • 104.4 KB
  • Updated 4 weeks ago
  • GitHub
Use this Skill: https://skilld.dev/gh/andreimerlescu/skills/secure-code-standards

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

CHANGELOG.md

≈291 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Changelog

1.0 — 2026-10-26

  • Initial release.
  • SKILL.md core: prime directive (classify before you touch), Secret Handling Protocol, approved/forbidden injection channels, stop-ship rules S1–S10, operating loop, anti-pattern tripwires, self-review and SECURITY CHANGE REPORT.
  • Worked example of the founding failure: embedding a sample key file with go:embed and using it as a flag default, which ships the key in the binary and prints it in -h.
  • References: secrets lifecycle, Go secrets/flags/embed/logging, config and CLI, logging and disclosure, build and supply chain, application security, tests and docs, incident response, review gates.
  • templates/go-secret/: a tested redacting Secret type with FromFile/FromEnv/Resolve (fail-closed, permission checks, bounded read, placeholder rejection) and tests proving no fmt/json/slog path prints the value.
  • scripts/secret-scan.sh: value-withholding scanner for credential formats, embed/COPY/default/argv/ldflags anti-patterns, tracked secret-named files, known-literal search in tree, git history and built artifacts.
  • AGENTS.snippet.md and evals/scenarios.md.

Source: SKILL.md on GitHub

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

No third-party reports yet.

Signed by skilld at eb35785. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub last week.

Activeupdated 4 weeks ago

README badge

README badge for andreimerlescu/skills/secure-code-standards