/waris-skill-library:warisskill-security-practicesfrom waris-skill-library
Use whenever writing code that touches authentication, secrets, user input, database queries, or external requests — this is a coding- time baseline, not an audit-time-only concern. Trigger on any new endpoint, form, auth flow, database query, or environment-variable usage. Complements the installed /security-review skill, which audits after the fact — this skill governs what gets written correctly the first time, same non-negotiable-baseline treatment as warisskill-ui-ux-accessibility.
Ships in waris-skill-library. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This is a coding-time baseline, not just an audit checklist — /security-review
catches what slips through, but the target is that little slips through.
Default to a managed auth provider (Supabase Auth, Clerk, Auth0, or the platform's native auth) — don't hand-roll session/token handling, password hashing, or MFA. Hand-rolling is justified only when a specific constraint forces it: a highly custom auth flow the provider can't express, a hard no-third-party-dependency requirement, or genuine data-residency/compliance constraints. Absent one of those, reaching for a managed provider is the default, not a decision to re-litigate per project.
.env files (gitignored, never committed) for local dev, platform-native
environment variable injection (Vercel/Render/Fly/etc. env config) in
production. This is sufficient at solo/small-team scale — a dedicated
secrets manager (Vault, AWS Secrets Manager) is overkill until there's a
team/compliance reason to pay that operational cost.
Never log a secret, never include one in an error message, never hardcode one "temporarily" — there's no safe temporarily for a credential.
Apply while writing the code, not deferred to review:
HttpOnly, Secure,
SameSite on session cookies; basic CSP/HSTS/X-Frame-Options on
web responses where the framework makes this close to free to set.When the server makes outbound requests based on user-influenced input (webhooks, URL fetchers, image proxies), validate/allowlist destinations and block requests to internal/private IP ranges — this is a common overlooked path into internal infrastructure.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub sodiqabdulwaris/waris-skill-library --plugin waris-skill-library129 skills in this plugin
/api-and-interface-designGuides stable API and interface design. Use when designing APIs, module boundaries, or any public interface. Use when creating REST or GraphQL endpoints, defining type contracts between modules, or establishing boundaries between frontend and backend./browser-testing-with-devtoolsTests in real browsers via Chrome DevTools MCP. Use when building or debugging anything that runs in a browser. Use when you need to inspect the DOM, capture console errors, analyze network requests, profile performance, or verify visual output with real runtime data. Requires the chrome-devtools MCP server to be configured./