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.
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-basicsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/clade-security-basics ~/.gemini/antigravity-cli/skills/clade-security-basicsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install clade-security-basics in Antigravity CLI
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 →Retrieves lab biomarker results and clinician notes from Function Health through its FHIR API. It is for people who want an AI assistant to review their own lab history and notes.
Gives an AI assistant a methodology for finding and exploiting privilege escalation weaknesses on Windows systems during authorized penetration tests. It is for security testers and defenders validating escalation paths.
Guides the assistant through designing, debugging and hardening GitHub Actions CI/CD workflows. It is aimed at teams that run production pipelines on GitHub.
Develops evidence-backed structural security hardening proposals from disclosures, findings, source code, or Codex Security scans. It is for teams that need systemic fixes and architectural tradeoffs.
Claude Security scans code for security issues with Claude Code. It covers whole repositories, branch or pull request diffs, single commits, and existing findings from SARIF files or earlier reports.
Turns vulnerability notes, disclosure reports, PoCs, source code, or Codex Security findings into self-contained vulnerability reports. Built for security researchers who need claims the evidence supports.
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.
