sg-gov-secure-coding-as SKILL.md skillA

sg-gov-secure-coding-as from kyleoliveiro/sg-gov-skills is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.

Install it, pinned
mdr add kyleoliveiro/sg-gov-skills/sg-gov-secure-coding-as@git:20261027.6f21efa

Pins git:20261027.6f21efa in mdr.lock. Pin the fingerprint instead.

Audit grade
A, 17 of 17 checks passed
Kind
SKILL.md skill
Repository
kyleoliveiro/sg-gov-skills
Path
skills/sg-gov-secure-coding-as/SKILL.md
Versions recorded
1
Latest version
git:20261027.6f21efa, committed Oct 27, 2026
Size
18,985 bytes
Repository stars
17
License
MIT

Write and review application code that satisfies the Singapore Government ICT&SS Policy Reform Application Security (AS) controls and allied Cryptography/Key Management (CK) controls. Use whenever writing new code, reviewing a diff, or auditing an existing codebase for a Singapore government agency project — especially anything touching input handling, database queries, authentication, passwords, sessions, secrets, crypto, HTTP security headers, file uploads, or error handling. Triggers…

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

# Secure coding for SG Government: AS + CK controls

The ICT&SS Policy Reform (IM8's successor) Cybersecurity Control Catalog contains 15
Application Security (AS) controls and 4 Cryptography/Key Management (CK) controls that
land directly in application code. This skill maps them to coding decisions so an agent
writing or reviewing code produces compliant output the first time, with control IDs the
agency's security team can trace to its System Security Plan (SSP).

Use this skill in three modes:

1. **Writing new code**: apply the scenario sections below as you write.
2. **Reviewing a diff**: run the review checklist against every changed file; flag
   violations with the control ID.
3. **Auditing a codebase**: sweep for each checklist row; report findings per control ID
   with file:line references.

## Source and currency

Control text in this skill and in [references/as-controls.md](references/as-controls.md)
is embedded from **info.standards.tech.gov.sg as of 2026-07-16**. The standards iterate
actively. For compliance-critical decisions (SSP evidence, audit responses, deviations),
verify against the live pages:
…

Read the whole file at its exact version.

How to install

The exact contents, by fingerprint
mdr add kyleoliveiro/sg-gov-skills/sg-gov-secure-coding-as@sha256:32ab4ae54313a091

The line at the top of this page pins the label git:20261027.6f21efa, 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_homefrxue3xaevfl.svg)](https://markdownregistry.com/a/art_homefrxue3xaevfl)

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

Versions

The registry has recorded 1 version of this file, committed on Oct 27, 2026.

versioncommittedcommitsizeaudit
git:20261027.6f21efa latest2026-10-27 6f21efa 18,985 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 (18985 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

kyleoliveiro/sg-gov-skills · 17 stars · license MIT · pushed 2026-11-02 · branch main

API

GET https://markdownregistry.com/api/v1/artifacts/art_homefrxue3xaevfl
GET https://markdownregistry.com/api/v1/resolve?ref=kyleoliveiro/sg-gov-skills/sg-gov-secure-coding-as
GET https://markdownregistry.com/api/v1/blob/32ab4ae54313a091f1b0a94e4e7c6ba9d24897eb9fd28bbcd712b6614de00f2d

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 kyleoliveiro/sg-gov-skills

AGENTS.md AGENTS.md file
kyleoliveiro/sg-gov-skills · AGENTS.md
git:20261027.6f21efa · audit A · 17 stars
CLAUDE.md CLAUDE.md file
kyleoliveiro/sg-gov-skills · CLAUDE.md
git:20260722.3d65cbc · audit B · 17 stars
sg-gov-access-control SKILL.md skill
kyleoliveiro/sg-gov-skills · skills/sg-gov-access-control/SKILL.md · Set up or audit identity and access management against the Singapore Government's ICT&SS Policy Reform (IM8 successor)…
git:20261027.6f21efa · audit A · 17 stars
sg-gov-container-security SKILL.md skill
kyleoliveiro/sg-gov-skills · skills/sg-gov-container-security/SKILL.md · Build, scan, distribute, and run containers that satisfy the Singapore Government's ICT&SS Policy Reform (IM8…
git:20261027.6f21efa · audit A · 17 stars
sg-gov-corppass-legacy SKILL.md skill
kyleoliveiro/sg-gov-skills · skills/sg-gov-corppass-legacy/SKILL.md · Maintain, debug, or migrate a LEGACY Corppass integration — the pre-FAPI 2.0 Corppass Authorization API…
git:20261027.6f21efa · audit A · 17 stars
sg-gov-corppass SKILL.md skill
kyleoliveiro/sg-gov-skills · skills/sg-gov-corppass/SKILL.md · Integrate Corppass (business-user login and Myinfo Business corporate data) into a Singapore government digital service…
git:20261027.6f21efa · audit A · 17 stars
sg-gov-data-protection SKILL.md skill
kyleoliveiro/sg-gov-skills · skills/sg-gov-data-protection/SKILL.md · Build or audit a system's data handling against the Singapore Government's ICT&SS Policy Reform (IM8 successor) Data…
git:20261027.e255826 · audit A · 17 stars
sg-gov-dss-accessibility SKILL.md skill
kyleoliveiro/sg-gov-skills · skills/sg-gov-dss-accessibility/SKILL.md · Build and review frontend code that satisfies the 53 accessibility controls of the Singapore Digital Service Standards…
git:20261027.6f21efa · audit A · 17 stars
sg-gov-gen-ai-security SKILL.md skill
kyleoliveiro/sg-gov-skills · skills/sg-gov-gen-ai-security/SKILL.md · Build or audit a Generative AI feature so it satisfies the Singapore Government's ICT&SS Policy Reform (IM8 successor)…
git:20261027.6f21efa · audit A · 17 stars
sg-gov-logging-monitoring SKILL.md skill
kyleoliveiro/sg-gov-skills · skills/sg-gov-logging-monitoring/SKILL.md · Set up or audit logging and monitoring against the Singapore Government's ICT&SS Policy Reform (IM8 successor) Logging…
git:20261027.6f21efa · audit A · 17 stars
sg-gov-network-security SKILL.md skill
kyleoliveiro/sg-gov-skills · skills/sg-gov-network-security/SKILL.md · Design or audit a system's network boundaries against the Singapore Government's ICT&SS Policy Reform (IM8 successor)…
git:20261027.6f21efa · audit A · 17 stars
sg-gov-resiliency-recovery SKILL.md skill
kyleoliveiro/sg-gov-skills · skills/sg-gov-resiliency-recovery/SKILL.md · Build or audit availability and recoverability for a Singapore government system against the ICT&SS Policy Reform (IM8…
git:20261027.6f21efa · audit A · 17 stars

Every file in kyleoliveiro/sg-gov-skills

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