Repository navigation
feat: add crowdsec-hub-authoring skill - #33
Merged
Merged
Conversation
New skill for writing, testing and reviewing crowdsecurity/hub items: parsers, scenarios, whitelists/postoverflows, collections, contexts, AppSec rules, cscli hubtest tests and a PR review checklist. Distilled from the CrowdSec docs, the hub CI/lint code and maintainer review comments on hub PRs. Registered in plugin.json; README, CLAUDE.md layout map and CHANGELOG updated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…lease - Run each reference doc's examples and commands against CrowdSec 1.8.2 with cscli hubtest / cscli explain (AppSec via the hub docker/appsec target + nuclei) and record `verified:` blocks with env: hubtest. - whitelists-postoverflows.md: hubtest keeps postoverflow-whitelisted overflows in results; assert Overflow.Whitelisted by hand. - check-verification.py: hubtest is a canonical env; validate workflow runs the checker on every skill. - release workflow: attach crowdsec-hub-authoring-skill-vX.Y.Z.zip. - CLAUDE.md, README, CHANGELOG updated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
buixor
reviewed
Nov 27, 2026
| notes: "example vpatch rule + hubtest create/run --appsec with the hub docker/appsec OpenResty target and nuclei; negative control fails" | ||
| --- | ||
|
|
||
| # Authoring — AppSec (WAF) rules |
Collaborator
There was a problem hiding this comment.
I think we also need to mention the companion .md
| notes: "example leaky scenario overflows in a hubtest scenario test (6 events > capacity 5)" | ||
| --- | ||
|
|
||
| # Authoring — scenarios |
Collaborator
There was a problem hiding this comment.
same remarks as above : we need indication on the existing tools (debug mode, replay etc.) for the LLM to test the scenarios.
- plugin/marketplace descriptions: "WAF rules" instead of "AppSec rules". - Drop counts that go stale (242 vpatch rules, ~1500 PRs). - appsec-rules.md: same-name .md for WAF rules; pointer to crowdsec-local-mcp (also in scenarios.md). - review-checklist.md: keep checkboxes, move reasons/precedents to overview.md to remove the overlap. - parsers.md: step-by-step grok debugging (explain -v, debug: true, GREEDYDATA bisect, where base patterns are defined). - scenarios.md: Debugging section (explain, debug: true, replay). Both verified on CrowdSec 1.8.2. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tested crowdsec-local-mcp 0.9.3 over stdio: WAF and scenario tools, both Docker harnesses (positive and negative cases), prepare_waf_pr on a hub clone. Replace the README-based pointer with what it actually does and its pitfalls (lax validation, prepare_waf_pr paths/overwrite, spoofable: 0 lint hint, private IPs whitelisted in the scenario stack). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
buixor
approved these changes
Nov 30, 2026
# Conflicts: # CHANGELOG.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds a third skill,
skills/crowdsec-hub-authoring/, for writing, testing and reviewing items for crowdsecurity/hub. It's the skill we already use to review hub PRs, now published here and brought in line with this repo's conventions.The operational
crowdsecskill deliberately puts parser/scenario/WAF-rule authoring out of scope. This skill covers that gap.Layout
SKILL.mdroutes by task and lists the hub's non-negotiables. Each file underreferences/covers one item type:overview.mdparsers.mdUnmarshalJSON,source_ip, timestampsscenarios.mdwhitelists-postoverflows.mdcollections-and-docs.md.md, acquisition examplestesting.mdcscli hubtest, asserts, CI failuresappsec-rules.mdvpatch-CVE-…, nuclei testsreview-checklist.mdIts rules come from the CrowdSec docs, the hub's CI and lint code, and maintainer review comments on hub PRs. Each rule cites the PR numbers it comes from.
Verification
Each reference doc has a
verified:block withenv: hubtestand CrowdSec 1.8.2. Its examples and commands were run in a hub checkout, using a separate test CrowdSec instance passed with-c:parsers.mdlog_type. The anchored pattern drops a line with trailing text.cscli explain --log/--file -vandhubtest explainalso run.scenarios.mdtesting.mdhubtest create, run with an empty assert, paste the generated asserts, test passes.whitelists-postoverflows.mdcrowdsecurity/http-probing: the benign overflow is flaggedWhitelisted, the malicious control is not.collections-and-docs.mdcscli … inspect,crowdsec -t). Acquisition examples were not run.appsec-rules.mdhubtest run --appsec, using the hub'sdocker/appsecOpenResty target and nuclei: the exploit is blocked. A negative-control rule fails the test, as it should.review-checklist.md,overview.mdcscli explain,hubtest run,hub searchandhubtest createcommands they list. The CI gates were not run.One finding went into the content: hubtest keeps postoverflow-whitelisted overflows in
results, and the generated asserts don't check that flag.whitelists-postoverflows.mdnow says to assertOverflow.Whitelistedby hand.Other changes
check-verification.pynow acceptshubtestas a canonical env.validate.ymlruns it on every skill underskills/, not onlyskills/crowdsec.release.ymlattaches acrowdsec-hub-authoring-skill-vX.Y.Z.zipfor the claude.ai uploader. The README mentions it.plugin.jsonregisters the skill.marketplace.jsonandplugin.jsonget updated descriptions and keywords. There is no version bump; the release workflow handles that.CLAUDE.mdadds a layout section and thehubtestverification method.README.mdadds a coverage table.CHANGELOG.mdadds an Unreleased entry.Follow-up
Shipping the skill as a separate plugin in the marketplace, so it can be installed without the operational skill, is left for a later PR.
claude plugin validate .passes. Its two warnings (rootCLAUDE.md, missing icon) are already onmain.🤖 Generated with Claude Code