skills

作者 semgrep已验证

A collection of skills for AI coding agents from Semgrep

232
Stars
29
Forks
JavaScript
语言
2026/8/23
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/semgrep/skills

快速入门

使用 skills 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

Agent Skills [Beta]

A collection of skills for AI coding agents. Skills are packaged instructions and scripts that extend agent capabilities. This should be considered beta-level software; it's primarily generated by transforming open-source Semgrep rules into skill format.

Skills follow the Agent Skills format.

Installation

npx skills add semgrep/skills

Available Skills

code-security

Comprehensive code security guidelines from Semgrep Engineering covering OWASP Top 10, infrastructure security, and secure coding best practices across 15+ languages.

Use when:

  • Writing new code
  • Reviewing code for security vulnerabilities
  • Asking about secure coding practices
  • Configuring cloud infrastructure (Terraform, Kubernetes, Docker)

Categories covered:

ImpactCategoryDescription
CriticalSQL InjectionParameterized queries, ORM safety
CriticalCommand InjectionShell command safety, input validation
CriticalCross-Site Scripting (XSS)Output encoding, DOM safety
CriticalXML External Entity (XXE)XML parser configuration
CriticalPath TraversalFile path validation
CriticalInsecure DeserializationSafe deserialization patterns
CriticalCode InjectionEval safety, template injection
CriticalHardcoded SecretsEnvironment variables, secret management
CriticalMemory SafetyBuffer overflows, use-after-free (C/C++)
HighInsecure CryptographyStrong hashing (SHA-256+), encryption (AES)
HighInsecure TransportHTTPS, certificate validation, TLS
HighServer-Side Request ForgeryURL validation, allowlists
HighJWT AuthenticationSignature verification, algorithm safety
HighCross-Site Request ForgeryCSRF tokens, SameSite cookies
HighPrototype PollutionObject key validation (JavaScript)
HighUnsafe FunctionsDangerous function alternatives
HighTerraform AWSS3, IAM, EC2, RDS security
HighTerraform AzureStorage, App Service, Key Vault
HighTerraform GCPGCS, GCE, GKE, IAM
HighKubernetesPod security, RBAC, secrets
HighDockerNon-root containers, image pinning
HighGitHub ActionsScript injection, action pinning
MediumRegex DoSCatastrophic backtracking prevention
MediumRace ConditionsTOCTOU, secure temp files
MediumCode CorrectnessCommon bugs, type errors
LowBest PracticesCode quality patterns
LowPerformanceEfficiency anti-patterns
LowMaintainabilityCode organization

Languages: Python, JavaScript/TypeScript, Java, Go, Ruby, PHP, C/C++, C#, Scala, Kotlin, Rust, HCL (Terraform), YAML (Kubernetes)


llm-security

Security guidelines for LLM applications based on the OWASP Top 10 for Large Language Model Applications 2025.

Use when:

  • Building LLM-powered applications
  • Implementing RAG systems
  • Securing AI/ML pipelines
  • Reviewing code that interacts with language models

Categories covered:

ImpactCategoryDescription
CriticalPrompt InjectionInput validation, content segregation, output filtering
CriticalSensitive Information DisclosurePII detection, permission-aware RAG
CriticalSupply ChainModel verification, safetensors, ML-BOM
CriticalData and Model PoisoningTraining data validation, anomaly detection
CriticalImproper Output HandlingContext-aware encoding, parameterized queries
HighExcessive AgencyLeast privilege, human-in-the-loop
HighSystem Prompt LeakageExternal guardrails, no secrets in prompts
HighVector and Embedding WeaknessesPermission-aware retrieval, tenant isolation
HighMisinformationRAG, fact verification, confidence scoring
HighUnbounded ConsumptionRate limiting, budget controls

Frameworks: OWASP LLM Top 10, MITRE ATLAS, NIST AI RMF


semgrep

Run Semgrep static analysis scans and create custom detection rules for security vulnerabilities and bug patterns.

Use when:

  • Running security scans with Semgrep
  • Creating custom Semgrep rules
  • Detecting specific vulnerability patterns
  • Setting up Semgrep in CI/CD pipelines

Capabilities:

FeatureDescription
Quick ScansRun semgrep --config auto or use curated rulesets
Rulesetssecurity-audit, owasp-top-ten, cwe-top-25, trailofbits
Custom RulesPattern matching and taint mode for data flow analysis
Test-DrivenWrite test cases first with ruleid: and ok: annotations
CI/CDGitHub Actions integration with diff-aware scanning

Rule Creation Workflow:

  1. Analyze the vulnerability pattern
  2. Create test cases first (test-driven development)
  3. Analyze AST structure with semgrep --dump-ast
  4. Write the rule (taint mode for injection, pattern matching for syntax)
  5. Iterate until 100% tests pass
  6. Optimize patterns

When to use taint mode: SQL injection, command injection, XSS, path traversal, SSRF - any vulnerability where untrusted data flows to a dangerous sink.


Usage

Skills are automatically available once installed. The agent will use them when relevant tasks are detected.

Examples:

Review this React component for security issues
Help me implement input validation for my LLM chat endpoint
Create a Semgrep rule to detect hardcoded API keys in Python

Development

Building Skills

make install     # Install dependencies
make validate    # Validate all skills
make build       # Build AGENTS.md for all skills
make zip         # Create distribution packages
make             # All of the above

Single Skill Operations

make validate-skill SKILL=code-security
make build-skill SKILL=llm-security

Skill Structure

Each skill contains:

  • SKILL.md - Instructions for the agent
  • rules/ - Individual rule files (for skills with rules)
  • scripts/ - Helper scripts for automation (optional)
  • references/ - Supporting documentation (optional)

Acknowledgments

Originally created by @DrewDennison at Semgrep. This work was heavily inspired by Vercel's React Best Practices.

常见问题

What is skills?

skills is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by semgrep. A collection of skills for AI coding agents from Semgrep. It has 232 GitHub stars.

Is skills safe to use?

Yes. skills passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install skills?

Clone the repository with "git clone https://github.com/semgrep/skills" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is skills written in?

skills is primarily written in JavaScript. It is open-source under semgrep on GitHub, so you can review or fork the full source.

Are there alternatives to skills?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh skills against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI 智能体
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情