Arckit eu nis2

From tractorjuice/arckit-codex · View interactive version

Arckit eu nis2 is an AI agent skill from the GitHub repository tractorjuice/arckit-codex. [COMMUNITY] Assess NIS2 Directive compliance obligations for EU member state operators of essential services and important entities

How to use this skill

Skill file

⚠️ Community-contributed command — not part of the officially-maintained ArcKit baseline. Output should be reviewed by qualified DPO / RSSI / legal counsel before reliance. Citations to ANSSI / CNIL / EU regulations may lag the current text — verify against the source.

You are helping an enterprise architect generate a NIS2 Compliance Assessment (EU Directive 2022/2555) for an organisation that may qualify as an Essential Entity or Important Entity under the NIS2 framework. NIS2 is transposed into national law by all EU member states (deadline October 2024).

User Input

$ARGUMENTS

Instructions

Note: Before generating, scan projects/ for existing project directories. For each project, list all ARC-*.md artifacts, check external/ for reference documents, and check 000-global/ for cross-project policies. If no external docs exist but they would improve output, ask the user.

Step 0: Read existing artifacts from the project context

MANDATORY (warn if missing):

RECOMMENDED (read if available, note if missing):

OPTIONAL (read if available, skip silently):

Step 0b: Read external documents and policies

Step 1: Identify or Create Project

Identify the target project from the hook context. If the project doesn't exist:

  1. Use Glob to list projects/*/ directories and find the highest NNN-* number
  2. Calculate the next number (zero-padded to 3 digits)
  3. Slugify the project name
  4. Use the Write tool to create projects/{NNN}-{slug}/README.md
  5. Set PROJECT_ID and PROJECT_PATH

Step 2: Read Source Artifacts

Read all documents from Step 0. Identify:

Step 3: NIS2 Template Reading

Read the template (with user override support):

Step 4: Entity Classification (Article 3)

Before generating the assessment, determine entity classification:

Annex I — Essential Entities: Energy (electricity, gas, oil, hydrogen), Transport (air, rail, water, road), Banking, Financial market infrastructure, Health, Drinking water, Wastewater, Digital infrastructure (IXPs, DNS, TLD, cloud, CDN, datacentres), ICT service management (B2B MSPs), Public administration, Space

Annex II — Important Entities: Postal and courier, Waste management, Chemicals, Food, Manufacturing (medical devices, computers, transport equipment), Digital providers (online marketplaces, search engines, social networks), Research

Size thresholds:

Show entity classification before generating the full document.

Step 5: Generate NIS2 Assessment

CRITICAL: Use the Write tool to create the assessment document.

  1. Detect version: Check for existing ARC-{PROJECT_ID}-NIS2-v*.md files:
  1. Auto-populate Document Control:
  1. Section 1: Entity Scoping
  1. Section 2: Governance Obligations (Article 20)
  1. Section 3: Risk Management Measures (Article 21)

1. Risk analysis policy

2. Incident handling

3. Business continuity / BCM

4. Supply chain security

5. Secure acquisition, development, maintenance

6. Policies to assess effectiveness

7. Cyber hygiene and training

8. Cryptography policy

9. HR security and access control

10. MFA and secure communications

  1. Section 4: Incident Reporting (Articles 23–24)
  1. Section 5: Supply Chain Security (Article 21(2)(d) + Article 22)
  1. Section 6: Business Continuity (Article 21(2)(c))
  1. Section 7: National Transposition — Member State Specifics
  1. Section 8: Gap Analysis and Roadmap

Before writing the file, read .arckit/references/quality-checklist.md and verify all Common Checks pass.

Write the document to:

projects/{project_id}/ARC-{PROJECT_ID}-NIS2-v{VERSION}.md

Step 6: Summary Output

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✅ NIS2 Assessment Generated
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

📄 Document: projects/{project_id}/ARC-{PROJECT_ID}-NIS2-v{VERSION}.md
📋 Document ID: {document_id}
📅 Assessment Date: {date}

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📋 Entity Classification
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Classification: {Essential Entity / Important Entity / Out of scope}
Sector: {Annex I or II sector}
Competent Authority: {National authority}
Max Penalty: {€10M/2% or €7M/1.4%}

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📊 Gap Summary (Article 21 — Ten Measures)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

{Compliance status for each of the 10 measures}

Total Gaps: {N} ({N} high, {N} medium, {N} low)
Incident Reporting: {Ready / Gap — 24h/72h capability needed}

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Next steps:
1. {If OIV/OSE (France): Run $arckit-fr-secnumcloud}
2. {If a financial entity within DORA scope: Run $arckit-eu-dora — DORA applies instead of NIS2's risk-management and reporting provisions}
3. Run $arckit-secure to implement Article 21 controls
4. Run $arckit-risk to register NIS2 gaps
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Important Notes

Key References

| Document | Publisher | URL |

|----------|-----------|-----|

| NIS2 Directive (2022/2555) — full text | EUR-Lex | https://eur-lex.europa.eu/eli/dir/2022/2555/oj |

| ENISA — NIS2 guidance and resources | ENISA | https://www.enisa.europa.eu/topics/cybersecurity-policy/nis-directive-new |

| ANSSI — French NCA for NIS2 (and OIV/OSE authority) | ANSSI | https://cyber.gouv.fr/ |

| CERT-FR — incident reporting contact (France) | CERT-FR / ANSSI | https://www.cert.ssi.gouv.fr/ |

| NIS Cooperation Group — member state guidance documents | NIS CG | https://ec.europa.eu/digital-single-market/en/nis-directive |

| ENISA NIS Investments report (sector benchmarks) | ENISA | https://www.enisa.europa.eu/publications/nis-investments |

Note for reviewers: NIS2 replaced the original NIS Directive (2016/1148) in January 2023, with member state transposition deadline of October 2024. France has not yet transposed NIS2: the projet de loi relatif à la résilience des infrastructures critiques et au renforcement de la cybersécurité ("loi Résilience", which also transposes the CER Directive and DORA) was adopted by the Sénat on 12 March 2025 and by the Assemblée nationale's special committee on 10 September 2025, and as of 27 October 2026 it still awaits its Assemblée nationale plenary reading, so it has not been promulgated (Sénat dossier pjl24-033; Assemblée nationale dossier DLR5L17N50731). Until it is, the existing OIV/OSE framework applies, and ANSSI is the competent authority for both regimes. "OIV" (Opérateurs d'Importance Vitale — critical infrastructure operators) is a French national designation under the Code de la défense (articles L. 1332-1 and L. 1332-2), whose information-system security obligations (articles L. 1332-6-1 ff.) were added by Article 22 of the 2013 LPM (loi n° 2013-1168); it predates NIS2 and carries stricter obligations. "OSE" (Opérateurs de Services Essentiels) is the designation under loi n° 2018-133 of 26 February 2018, which transposed NIS1; the bill would replace it with NIS2's essential and important entities (EE/EI). Entities can be both OIV and OSE. Check the bill's status before relying on this note.

Success Criteria

Example Usage

$arckit-eu-nis2 Assess NIS2 obligations for a French regional energy distribution operator (DSO), Essential Entity under Annex I Energy sector, existing OIV designation, planning cloud migration to SecNumCloud-qualified provider

$arckit-eu-nis2 NIS2 scoping for 001 — Dutch healthcare provider with 300 employees, operating across NL and BE, considering Essential Entity classification under health sector

$arckit-eu-nis2 NIS2 assessment for a managed service provider (MSP) operating across 6 EU member states, ICT service management Annex I

Suggested Next Steps

After completing this command, consider running:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.