Skip to content
Back to search

nis2-guard

SkillWorks with Claude CodeGitHub

Claude skill and scanner that checks code against NIS2 technical measures

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today
Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/fjaguayo--nis2-guard/badge.svg)](/listings/fjaguayo--nis2-guard)

HTML

<a href="/listings/fjaguayo--nis2-guard"><img src="/api/listings/fjaguayo--nis2-guard/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

Install instructions from the README

As written by the repo's author. findsafeskills has not verified these steps.

Claude.ai (web or desktop)

1. Download `nis2-guard-skill.zip` from the repository Releases page. 2. Open **Customize > Skills** in Claude and upload the ZIP file. 3. Create a Claude Project and paste the contents of [`PROJECT_INSTRUCTIONS.md`](./PROJECT_INSTRUCTIONS.md) into **Project Instructions**.

Claude Code

1. Copy [`CLAUDE.md`](./CLAUDE.md) to the root of your project. 2. Copy [`nis2-guard/`](./nis2-guard) into `.claude/skills/nis2-guard/`:

   mkdir -p .claude/skills
   cp -r nis2-guard .claude/skills/

3. Optionally copy [`.github/workflows/nis2-scan.yml`](./.github/workflows/nis2-scan.yml) into your repository to run the scanner on pushes and pull requests.

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

README.md · README · 77 lines
  1. # NIS2 Guard for Claude
  2. Proactive security guidance for **Claude Code** and **Claude.ai** that reviews code,
  3. APIs, infrastructure, and technical architecture against the technical measures of the
  4. **NIS2 Directive (EU) 2022/2555**, especially Articles 20, 21, and 23.
  5. This package combines the `nis2-guard` skill with project-level instructions so Claude
  6. can review coding requests by default, identify security weaknesses, explain the related
  7. NIS2 measure, and remind you about obligations that cannot be solved in code alone.
  8. ## What it does
  9. - Detects hardcoded secrets, missing MFA, insecure logging, disabled TLS verification,
  10. weak cryptography, injection risks, and unpinned dependencies.
  11. - Generates secure-by-default code using environment-based secrets, modern cryptography,
  12. strict input validation, structured security logs, and least-privilege controls.
  13. - Reminds teams about continuity, backups, supplier security, incident reporting
  14. deadlines (24 hours, 72 hours, and one month), and management accountability.
  15. ## Installation
  16. ### Claude.ai (web or desktop)
  17. 1. Download `nis2-guard-skill.zip` from the repository Releases page.
  18. 2. Open **Customize > Skills** in Claude and upload the ZIP file.
  19. 3. Create a Claude Project and paste the contents of
  20. [`PROJECT_INSTRUCTIONS.md`](./PROJECT_INSTRUCTIONS.md) into **Project Instructions**.
  21. ### Claude Code
  22. 1. Copy [`CLAUDE.md`](./CLAUDE.md) to the root of your project.
  23. 2. Copy [`nis2-guard/`](./nis2-guard) into `.claude/skills/nis2-guard/`:
  24. ```bash
  25. mkdir -p .claude/skills
  26. cp -r nis2-guard .claude/skills/
  27. ```
  28. 3. Optionally copy [`.github/workflows/nis2-scan.yml`](./.github/workflows/nis2-scan.yml)
  29. into your repository to run the scanner on pushes and pull requests.
  30. ## Running the scanner
  31. ```bash
  32. python nis2-guard/scripts/nis2_scan.py . --format md --exclude "nis2-guard/scripts/*"
  33. python nis2-guard/scripts/nis2_scan.py . --format json --output report.json
  34. ```
  35. The Markdown report is written to the path passed to `--output`. Open it with any
  36. Markdown viewer, a text editor, or from PowerShell with:
  37. ```powershell
  38. notepad "$env:TEMP\nis2-report.md"
  39. ```
  40. The scanner is pattern-based and can produce false positives. Review each finding
  41. against the surrounding code before treating it as a vulnerability. A justified
  42. single-line finding can be suppressed by adding `nis2-ignore` in a comment on that
  43. line; document the reason in your review.
  44. Reports include the scanned path, relative file paths, line numbers, rule names, and
  45. remediation advice. The scanner does not intentionally print matched secret values,
  46. but reports can still reveal private project names, file names, directory paths, and
  47. security weaknesses. Do not commit reports from confidential projects or publish them
  48. without redaction. The default report names are ignored by `.gitignore`.
  49. ## Legal notice
  50. This tool helps align software development with technical measures in Article 21. It
  51. does not certify NIS2 compliance and is not legal advice. Full compliance also requires
  52. governance, training, supplier management, continuity capabilities, and documented
  53. incident-response processes.
  54. ## Credits and license
  55. Based on [fjaguayo/nis2-guard](https://github.com/fjaguayo/nis2-guard). Distributed
  56. under the original license in [`LICENSE`](./LICENSE).

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.