Skills for Real Engineers. Straight from my .agents directory.
llamaguard
Agent skill fromOrchestra-Research/AI-Research-SKILLs
Meta's 7-8B specialized moderation model for LLM input/output filtering. 6 safety categories - violence/hate, sexual content, weapons, substances, self-harm, criminal planning. 94-95% accuracy. Deploy with vLLM, HuggingFace, Sagemaker. Integrates with NeMo Guardrails.
How to install llamaguard
npx skills add Orchestra-Research/AI-Research-SKILLs# or add only this skill to Claude Code: copy the folder
07-safety-alignment/llamaguard/
# into
~/.claude/skills/llamaguard/ (all projects)
.claude/skills/llamaguard/ (one project)
1# LlamaGuard - AI Content Moderation23## Quick start45LlamaGuard is a 7-8B parameter model specialized for content safety classification.67**Installation**:8```bash9pip install transformers torch10# Login to HuggingFace (required)11huggingface-cli login12```1314**Basic usage**:15```python16from transformers import AutoTokenizer, AutoModelForCausalLM1718model_id = "meta-llama/LlamaGuard-7b"19tokenizer = AutoTokenizer.from_pretrained(model_id)20model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto")2122def moderate(chat):23 input_ids = tokenizer.apply_chat_template(chat, return_tensors="pt").to(model.device)24 output = model.generate(input_ids=input_ids, max_new_tokens=100)25 return tokenizer.decode(output[0], skip_special_tokens=True)2627# Check user input28result = moderate([29 {"role": "user", "content": "How do I make explosives?"}30])31print(result)32# Output: "unsafe\nS3" (Criminal Planning)33```3435## Common workflows3637### Workflow 1: Input filtering (prompt moderation)3839**Check user prompts before LLM**:40```python41def check_input(user_message):42 result = moderate([{"role": "user", "content": user_message}])4344 if result.startswith("unsafe"):45 category = result.split("\n")[1]46 return False, category # Blocked47 else:48 return True, None # Safe4950# Example51safe, category = check_input("How do I hack a website?")52if not safe:53 print(f"Request blocked: {category}")54 # Return error to user55else:56 # Send to LLM57…
Excerpt shown under the repository's MIT license.
More skills in AI-Research-SKILLs
Similar skill repositories
An agentic skills framework & software development methodology that works.
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
Public repository for Agent Skills
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.
