secure-coding

secure-coding is a skill for Claude Code from smk-labs/claude-plugins. It costs 65 tokens per session (1,454 once invoked), scanned B, original, MIT.

A baseline checklist for writing or reviewing code with common security risks in mind, including unsafe input, exposed secrets, weak passwords, and insecure network settings.

In plain words
What is it for?
Use it for security-sensitive coding, code reviews, and focused checks of authentication, data handling, dependencies, rate limits, HTTPS, and infrastructure settings.
Why use it?
It helps catch security problems while code is being written or changed, before they become vulnerabilities in a working system.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the portal-skills plugin — 4 skills shipped together

Good fit Use it for security-sensitive coding, code reviews, and focused checks of authentication, data handling, dependencies, rate limits, HTTPS, and infrastructure settings.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/smk-labs/claude-plugins/secure-coding
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add smk-labs/claude-plugins --skill secure-coding
Clone the repo
git clone --depth 1 https://github.com/smk-labs/claude-plugins

Made for: Claude Code.

Or install portal-skills, the plugin that ships this one along with the rest of its 4 skills.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for secure-coding

README.md
[![agentmods](https://agentmods.dev/badge/skills/smk-labs/claude-plugins/secure-coding/github.svg)](https://agentmods.dev/skills/smk-labs/claude-plugins/secure-coding)
Your own site
<a href="https://agentmods.dev/skills/smk-labs/claude-plugins/secure-coding"><img src="https://agentmods.dev/badge/skills/smk-labs/claude-plugins/secure-coding/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for secure-coding

Your own site · 80×15
<a href="https://agentmods.dev/skills/smk-labs/claude-plugins/secure-coding"><img src="https://agentmods.dev/badge/skills/smk-labs/claude-plugins/secure-coding.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 65 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,454 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00065 $0.01454
Opus 5.5 $0.00026 $0.00582
Sonnet 5.5 $0.00013 $0.00291
Haiku 4.5 $0.00006 $0.00145

Measured 1mo ago against content hash f998bd3929aa, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

secure-coding scanned grade B with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Tells the agent never to refusemediumAnti-refusal

Suppressing the ability to decline removes a core safety control; a later harmful request then succeeds.

- **Existing code already violates a rule and the user's task is unrelated?** Mention it once, don't refuse the task, don't sprawl into a cleanup unless asked.

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Strips warnings and disclaimerslowAnti-refusal

Omitting safety caveats hides risk from the user and is a common jailbreak preamble.

- **Editing existing code**: if you notice a violation in code you're touching (even unrelated to the current task), flag it once with the rule it breaks and propose the fix. Do not lecture, do not list every minor issue

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

portal-skills/skills/secure-coding/SKILL.md · 91 lines

How it starts

The opening of the file, as written. The whole thing — 91 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Secure Coding Baseline

These are baseline security requirements for any team. Apply them whenever writing, modifying, or reviewing security-sensitive code.

The point of each rule is in the why: when you hit an edge case the checklist doesn't cover, reason from the principle, not the literal rule.

How to apply

  • Writing new code in a security-relevant area: follow these rules by default. Don't ask the user for permission to be secure.
  • Editing existing code: if you notice a violation in code you're touching (even unrelated to the current task), flag it once with the rule it breaks and propose the fix. Do not lecture, do not list every minor issue. Surface what matters.
  • Explicit "security review" requests: walk the relevant sections systematically and report issues grouped by category.
  • Uncertain whether something counts: name the rule and the situation and let the user decide.

Phrase findings like a peer pointing something out, not a compliance bot:

"Heads up: this concatenates req.body.email into the SQL string, which is the injection pattern we don't allow. Want me to switch to a parameterized query?"

One line, name the rule, propose the fix.

Authentication & Authorization

  • Use an authentication mechanism appropriate to the project. OIDC for user-facing apps; mutual TLS or signed tokens for service-to-service. Why: each context has known-good patterns; picking the wrong one usually means rolling something custom.
  • Use a well-known, maintained auth library. Never roll your own. Why: cryptographic and protocol mistakes are subtle and the cost of getting them wrong is account takeover.
  • Enforce authorization at the server, not just the UI. A hidden button is not a permission check. Why: clients are untrusted; UI-only enforcement is bypassed by anyone reading the network tab.
  • Least privilege. Tokens and roles grant the minimum access needed for the task.
  • Short-lived tokens with refresh rotation over long-lived sessions. Why: limits blast radius if a token leaks.

Read the full file on GitHub · 91 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +3 lines · -118 tokens per session f998bd3929aa
  2. 1mo ago First seen · 88 lines · 183 tokens per session scan B 50589644687c

Subscribe to this mod's changes

secure-coding is a skill published in the GitHub repository smk-labs/claude-plugins (11 stars, last pushed 28d ago), licensed MIT. It adds 65 tokens to every session and 1,454 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it B with 2 findings (tells the agent never to refuse, strips warnings and disclaimers). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

pmm-resume

Reviews and tailors a PMM resume (IC to VP, including AI PMM roles): dissects the job description, ranks bullets by impact fit and rebuilds the complete resume in one pass. Trigger on: resume + JD paste, "tailor this", "which bullets for this role", "rebuild for [company]", "review my PMM resume", "reframe for…

stefanoskarakasis/Product-Marketing-Skills · 98 tokens

product-marketing-context

Builds and maintains the shared GTM brain (product context, ICP, positioning, voice, market context, proof points, plus optional strategy and execution sections and the deal-reality fields) that every other skill reads before producing output. Works standalone from your own answers, and gets stronger when you connect…

stefanoskarakasis/Product-Marketing-Skills · 139 tokens

competitor-deep-dive

Builds a long-form, fully sourced deep-dive on one competitor for a named decision (strategy call, RFP, pricing change, roadmap bet), with dated reviews, deal evidence, a head-to-head per offering and where they win. Triggers: "deep-dive on [competitor]", "full competitor write-up", "what do users really say about…

stefanoskarakasis/Product-Marketing-Skills · 107 tokens

workflow-orchestrator

Chains positioning, competitive, GTM strategy, campaign briefs, stakeholder maps and retros into one coherent PMM program with a master document and brain updates. Trigger on: "run full GTM workflow", "run a full launch", "launch [product] end to end", "positioning refresh", "quarterly PMM cycle", "competitive…

stefanoskarakasis/Product-Marketing-Skills · 105 tokens

positioning-messaging

Builds or audits positioning statements, messaging hierarchies, homepage copy and persona cards using April Dunford's Obviously Awesome framework, in five modes (build, audit, fletch, sales-enablement, homepage). Refuses to generate without a named primary persona and 3+ alternatives including status quo, and blocks…

stefanoskarakasis/Product-Marketing-Skills · 97 tokens

writing-assistant

Rewrites, sharpens and drafts B2B writing in the writer's real voice: Slack messages, emails, memos, PRDs, decks, plus marketing content (blog posts, landing pages, press releases, case studies, newsletters, social posts). Use whenever someone wants to rewrite, tighten, draft or audit copy, asks why copy isn't landing…

stefanoskarakasis/Product-Marketing-Skills · 117 tokens