Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

clade-security-basics

Skill by jeremylongshore

Guides developers through securing an Anthropic Claude integration. It covers API key handling, input validation, prompt injection defense, per-user rate limiting and data privacy.

  • Score 80
  • 3k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install clade-security-basics

Built from the published package, never by AI.

git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.claude/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/clade-security-basics ~/.claude/skills/clade-security-basics

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install clade-security-basics in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill gives an assistant guidance for securing an Anthropic Claude integration. It explains keeping the API key in server-side environment variables, adding .env files to .gitignore, and rotating keys from the Anthropic Console. It also shows how to limit input length, write a system prompt with injection guardrails, and apply per-user rate limits with Upstash.

The skill includes TypeScript examples and a security checklist. It notes that Anthropic does not train on API data by default, that data retention can be configured, and that HIPAA or SOC2 needs call for the Enterprise plan. It is aimed at developers who run a server-side application that calls the Claude API.

Written from the project's SKILL.md and checked against it.

What it can do

  • API key managementExplains keeping the Anthropic API key on the server and out of client code.
  • Environment variablesShows storing the key in a .env file and excluding it from version control.
  • Key rotationDescribes creating a new key, updating deployments, then deleting the old key.
  • Input validationProvides a function that limits user message length before sending to Claude.
  • Prompt injection defenseShows a system prompt with guardrails against instruction override and prompt leaks.
  • Per-user rate limitingShows a sliding window limit of 20 requests per hour per user using Upstash.
  • Data privacy notesSummarizes data training, retention settings and PII handling guidance.

What you need

  • Anthropic API key
  • Server-side application
  • Completed clade-install-auth setup
  • Upstash Redis for the rate limiting example

Try asking

  • Review my Claude integration for API key exposure in client code
  • Add input length validation to my Anthropic chat endpoint
  • Help me add a system prompt that resists prompt injection

Good to know

  • Provides patterns and code snippets, not an automated scanner
  • Rate limiting example depends on Upstash
  • HIPAA or SOC2 needs are directed to the Enterprise plan

Security check

B
  • Allowed to use Write, Edit without limitsIn SKILL.md

Checked automatically: skills/.curated/clade-security-basics/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: ReadWriteEdit

  • SKILL.md4 KB
  • references/one-pager.md2 KB

Alternatives to clade-security-basics

All alternatives →

Compare with function_health, windows-privilege-escalation or github-actions-advanced

clade-security-basics: common questions

Does Anthropic train on API data?

The source says Anthropic does not train on API data by default. Data retention can be enabled or disabled in API settings.

Where should the Anthropic API key be stored?

The key should be in an environment variable on the server, never in browser JavaScript or committed code. The .env file should be listed in .gitignore.

How does this skill help against prompt injection?

It provides a system prompt that tells the model to ignore user requests to change its instructions, reveal the system prompt or generate harmful content.

How do I install clade-security-basics?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is clade-security-basics free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is clade-security-basics safe to use?

It scores 80 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use write, edit without limits). Review the code before you install. How grades work.

What are alternatives to clade-security-basics?

Similar skills: function_health, windows-privilege-escalation, github-actions-advanced, propose-security-hardening.

clade-security-basics Install

Add to stack

Loading.