Skip to content
Skill

Crowdsec hub authoring

Guides writing, testing and reviewing CrowdSec hub parsers, scenarios and AppSec rules

Crowdsec hub authoring is an open-source agent skill for security. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
32
Last commit
License
MIT
Listing updated

Similar skills

About Crowdsec hub authoring

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.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 9 files (45 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

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

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

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

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.

Claude Code docs on skills

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

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.

Codex docs on skills

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

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.

Cursor docs on skills

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

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.

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

Crowdsec hub authoring 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.

More from crowdsecurity/crowdsec-skill

  1. Guides an agent through installing, configuring, operating and debugging CrowdSec

    • Open source
    • 32 GitHub stars
    • Security
  2. Guides an agent through the CrowdSec Console cloud API for blocklists and integrations

    • Open source
    • 32 GitHub stars
    • Security