# Crowdsec hub authoring

> Crowdsec hub authoring is an open-source agent skill for security. Guides writing, testing and reviewing CrowdSec hub parsers, scenarios and AppSec rules. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/crowdsecurity/crowdsec-skill/tree/main/plugin/skills/crowdsec-hub-authoring
- **Repository:** https://github.com/crowdsecurity/crowdsec-skill
- **GitHub stars:** 32
- **License:** MIT
- **Skill name:** crowdsec-hub-authoring
- **Collection:** https://github.com/crowdsecurity/crowdsec-skill
- **Categories:** [security](https://ai-powered.com/categories/security)
- **Listing updated:** 2026-12-04

## About

This skill gives an agent the conventions for building items for the CrowdSec hub: parsers with s00/s01/s02 stages, scenarios, whitelists and postoverflows, collections, contexts, and AppSec WAF rules with virtual patches. It covers the accompanying same-name documentation files and the cscli hubtest suites used to validate them, including parser and scenario assert files.

Beyond item authoring, it describes how to contribute or review a hub pull request. The guidance covers repository layout, naming and labelling, the CI gates that run on a PR, and common reasons submissions get rejected. Its non-negotiables include searching existing items before adding new ones, keeping the author directory matching the name prefix, and proving review findings with cscli hubtest or cscli explain on a crafted log line.

The skill is organised as a router to focused reference files, so the agent loads only the part relevant to the task at hand. It assumes familiarity with the CrowdSec command line tool and with the hub repository. For installing and operating CrowdSec itself, the separate operational crowdsec skill is the right companion.

## When your agent uses it

> Use when writing, testing, or reviewing CrowdSec hub items for crowdsecurity/hub — parsers (s00/s01/s02), scenarios, parser whitelists and postoverflows, collections, contexts, AppSec (WAF) rules and virtual patches, their same-name .md docs, and cscli hubtest tests (.tests/, .appsec-tests/, parser.assert, scenario.assert). Also use to contribute a hub PR or review one (hub conventions, naming, labels/taxonomy, CI gates, why PRs get rejected). Complements the operational `crowdsec` skill, which covers installing and running CrowdSec.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/crowdsecurity/crowdsec-skill/tree/HEAD/plugin/skills/crowdsec-hub-authoring)
- [License: MIT](https://github.com/crowdsecurity/crowdsec-skill/tree/HEAD/plugin/skills/crowdsec-hub-authoring)

## Features

- **Parser authoring rules:** Guidance on writing log parsers, including stage layout, filters, source IP handling and anchored patterns.
- **Scenario design:** Covers scenario capacity, leak speed, blackhole settings, labels and MITRE tagging for detections.
- **Whitelists and postoverflows:** Explains how to fix false positives for an application through whitelists and postoverflow stages.
- **Hub test suites:** Describes writing cscli hubtest cases with generated asserts and running them without root.
- **AppSec rule writing:** Covers WAF rules, virtual patch naming and nuclei-based tests for AppSec items.
- **Hub PR review checklist:** Provides a checklist for self-reviewing a hub pull request and reviewing others.

## Good for

- Write a parser for a new application log format
- Add a scenario that detects brute force attempts from logs
- Fix a false positive by adding a whitelist to an existing parser
- Write cscli hubtest cases for a parser or scenario
- Review a crowdsecurity hub pull request before merging

## Install

### Claude Code

This skill ships in the `crowdsec` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add crowdsecurity/crowdsec-skill
/plugin install crowdsec@crowdsecurity
```

Or copy only this skill to `~/.claude/skills/crowdsec-hub-authoring`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/crowdsecurity/crowdsec-skill.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/crowdsec-hub-authoring &&
cp -R "$tmp/plugin/skills/crowdsec-hub-authoring" ~/.claude/skills/crowdsec-hub-authoring &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/crowdsec-hub-authoring` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/crowdsec-hub-authoring` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/crowdsecurity/crowdsec-skill.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/crowdsec-hub-authoring &&
cp -R "$tmp/plugin/skills/crowdsec-hub-authoring" ~/.agents/skills/crowdsec-hub-authoring &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/crowdsec-hub-authoring` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/crowdsec-hub-authoring` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/crowdsecurity/crowdsec-skill.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/crowdsec-hub-authoring &&
cp -R "$tmp/plugin/skills/crowdsec-hub-authoring" ~/.cursor/skills/crowdsec-hub-authoring &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/crowdsec-hub-authoring` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/crowdsecurity/crowdsec-skill.git --path plugin/skills/crowdsec-hub-authoring
```

Or copy the folder to `~/.gemini/skills/crowdsec-hub-authoring` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/crowdsec-hub-authoring`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/crowdsecurity/crowdsec-skill.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/crowdsec-hub-authoring &&
cp -R "$tmp/plugin/skills/crowdsec-hub-authoring" ~/.copilot/skills/crowdsec-hub-authoring &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/crowdsec-hub-authoring` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/crowdsecurity/crowdsec-skill.git
```

Then copy `crowdsec-skill/plugin/skills/crowdsec-hub-authoring` into your agent's skills folder as `crowdsec-hub-authoring`. Agents that support SKILL.md read one folder per skill.

## FAQ

### When does Crowdsec hub authoring trigger?

It triggers when writing, testing or reviewing CrowdSec hub items, or when contributing or reviewing a crowdsecurity/hub pull request.

### Does Crowdsec hub authoring cover installing CrowdSec?

No. Installing and running CrowdSec is covered by the separate crowdsec skill, which this one complements.

### What does the skill rely on for its rules?

Its rules are drawn from the CrowdSec docs, the hub's CI and lint code, and maintainer review comments on hub pull requests.

### Does Crowdsec hub authoring need any extra tools?

It assumes the cscli command line tool is available for running hubtest and explain commands.

### How do I install Crowdsec hub authoring in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/crowdsec-hub-authoring to use it in all your projects, or to .claude/skills/crowdsec-hub-authoring in one project. Or install the crowdsec plugin, which includes it: /plugin marketplace add crowdsecurity/crowdsec-skill, then /plugin install crowdsec@crowdsecurity.

### Does Crowdsec hub authoring run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Crowdsec hub authoring?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Crowdsec hub authoring?

The closest alternatives to Crowdsec hub authoring are Crowdsec, Crowdsec service API, V3 Security Overhaul, System and Testing handbook generator.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Crowdsec](https://ai-powered.com/skills/crowdsec): Crowdsec is an open-source agent skill for security.
- [Crowdsec service API](https://ai-powered.com/skills/crowdsec-service-api): Crowdsec service API is an open-source agent skill for security.
- [V3 Security Overhaul](https://ai-powered.com/skills/v3-security-overhaul): V3 Security Overhaul is an open-source agent skill for security.
- [System](https://ai-powered.com/skills/system): System is an open-source agent skill for security.
- [Testing handbook generator](https://ai-powered.com/skills/testing-handbook-generator): Testing handbook generator is an open-source agent skill for security.
- [Security and hardening](https://ai-powered.com/skills/security-and-hardening): Security and hardening is an open-source agent skill for security.
- [Security review](https://ai-powered.com/skills/security-review-getsentry): Security review is an open-source agent skill for security.
- [Security and hardening](https://ai-powered.com/skills/security-and-hardening-ajyadav013-2): Security and hardening is an open-source agent skill for security.

---
Source: https://ai-powered.com/skills/crowdsec-hub-authoring
