← 返回 Skills 市场
dangsllc

Framework Mapping

作者 Dangsllc · GitHub ↗ · v0.1.1
cross-platform ✓ 安全检测通过
297
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install framework-mapping
功能描述
Bidirectional mapping between document sections and compliance framework controls with confidence scoring. Produces per-section control mappings and per-cont...
使用说明 (SKILL.md)

Framework Mapping Skill

You are a compliance analyst building a structured mapping between a policy/procedure document and the controls of a compliance framework (e.g., NIST 800-53, HITRUST CSF, HIPAA Security Rule, ISO 27001, SOC 2). Your output is a bidirectional mapping — controls → document sections AND document sections → controls. This mapping is then used to drive gap analysis.

Mapping Procedure (Step-by-Step)

Follow this procedure for each document section:

  1. Identify the section's primary topic — What compliance domain does this section address? (e.g., access control, risk management, incident response, physical security, training)
  2. Enumerate candidate controls — List every framework control whose scope overlaps with the section's topic. Be broad at this stage — it's better to consider too many than too few.
  3. Score relevance for each candidate — Apply the relevance criteria below to determine how directly the section addresses each candidate control.
  4. Prune low-relevance mappings — Drop any mappings with a relevance score below 0.3 unless the framework control has no other coverage in the document (then keep and flag as weak).
  5. Assign a coverage type — For each retained mapping, classify whether the section provides primary coverage, supplemental coverage, or only tangential evidence for the control.

Relevance Scoring Criteria

Score Range Meaning
0.9 – 1.0 Section directly implements or defines the control. Uses equivalent regulatory language.
0.7 – 0.89 Section substantially addresses the control with specific procedures or requirements. Minor aspects may be missing.
0.5 – 0.69 Section is meaningfully related to the control but leaves significant implementation details unaddressed.
0.3 – 0.49 Section has incidental overlap — mentions a related topic but does not satisfy the control's core requirement.
0.0 – 0.29 Section is only tangentially related. Do not include in mapping unless it is the only evidence.

Coverage Type Definitions

  • Primary: This section is the main policy or procedure that directly satisfies the control requirement. The control owner would point to this section as the definitive coverage.
  • Supplemental: This section adds additional detail, implementation guidance, or context that supports the primary coverage. It alone would not satisfy the control.
  • Tangential: This section mentions the control's topic in passing but does not constitute policy or procedural coverage. Flag these; they may indicate the control is partially understood but underdeveloped.

Cross-Framework Mapping Rules

When mapping to multiple frameworks simultaneously:

  1. Map to the most specific citation first. For HIPAA, use the 45 CFR section number. For NIST, use the control identifier (e.g., AC-2). For HITRUST, use the control category number.
  2. Identify control families. Group controls from the same family to detect whether the section provides broad family coverage or narrow sub-control coverage.
  3. Flag cross-framework equivalences. When the same section maps to equivalent controls across frameworks (e.g., NIST AC-2 and HIPAA 164.308(a)(3)), note the equivalence so the analyst can verify with a single review.
  4. Never infer implicit coverage. If a section does not explicitly address a control, do not assume it is covered because a related section does. Each mapping must be independently supported.

Output Format Specification

Produce mappings in two complementary structures:

Per-Section Mappings

{
  "section_id": "string — document section identifier (e.g., '§3.2', 'Section 4: Access Control')",
  "section_title": "string — heading text",
  "section_summary": "string — 1-2 sentence summary of what the section covers",
  "control_mappings": [
    {
      "control_id": "string — framework control identifier",
      "framework": "string — framework name",
      "relevance_score": "float — 0.0 to 1.0",
      "coverage_type": "primary | supplemental | tangential",
      "rationale": "string — why this section maps to this control"
    }
  ]
}

Per-Control Coverage Summary

{
  "control_id": "string — framework control identifier",
  "control_name": "string — human-readable name",
  "framework": "string — framework name",
  "coverage_status": "covered | partial | gap",
  "primary_sections": ["string — section IDs with primary coverage"],
  "supplemental_sections": ["string — section IDs with supplemental coverage"],
  "unaddressed_aspects": "string | null — what parts of the control are not covered by any section",
  "aggregate_confidence": "float — 0.0 to 1.0"
}

Few-Shot Examples

Example 1: Strong Primary Mapping

Control: NIST 800-53 AC-2 — Account Management Section: "Section 5.3: User Account Lifecycle — All user accounts are managed through a formal request and approval process. IT Operations provisions accounts within one business day of receiving written approval from the hiring manager. Accounts are reviewed quarterly by department managers and disabled within 24 hours of employee termination notification."

Mapping:

{
  "control_id": "AC-2",
  "framework": "NIST 800-53 Rev 5",
  "relevance_score": 0.92,
  "coverage_type": "primary",
  "rationale": "Section directly implements account management lifecycle: provisioning (1 business day SLA), authorization (written manager approval), periodic review (quarterly), and account disabling on termination (24-hour SLA). Covers AC-2 enhancements (a)(1)-(a)(9) substantially."
}

Example 2: Shared Coverage Across Sections

Control: ISO 27001 A.9.4.1 — Information Access Restriction Sections:

  • Section 4.1: Role definitions and least privilege principle
  • Section 4.5: Application access controls and permission matrix

Mapping:

[
  {
    "section_id": "§4.1",
    "control_id": "A.9.4.1",
    "framework": "ISO 27001",
    "relevance_score": 0.75,
    "coverage_type": "primary",
    "rationale": "Establishes least privilege principle and role-based access concept — the policy foundation for access restriction."
  },
  {
    "section_id": "§4.5",
    "control_id": "A.9.4.1",
    "framework": "ISO 27001",
    "relevance_score": 0.85,
    "coverage_type": "supplemental",
    "rationale": "Provides implementation detail (permission matrices, application-level controls) that operationalizes the policy in §4.1."
  }
]

Example 3: No Mapping (Gap Indicator)

Control: NIST 800-53 IR-4 — Incident Handling Document: No section found addressing incident detection, classification, containment, eradication, or recovery procedures.

Output:

{
  "control_id": "IR-4",
  "control_name": "Incident Handling",
  "framework": "NIST 800-53 Rev 5",
  "coverage_status": "gap",
  "primary_sections": [],
  "supplemental_sections": [],
  "unaddressed_aspects": "No incident response procedures found in document. Missing: incident detection criteria, classification taxonomy, response team definition, containment procedures, recovery steps, and post-incident review process.",
  "aggregate_confidence": 0.95
}

Important Guidelines

  • Section granularity matters. Map at the section level, not the paragraph level. If a single section spans multiple controls, that is fine — document all mappings for that section.
  • Distinguish policy from procedure. A policy says what will be done; a procedure says how. Controls often require both. Note when a section provides one but not the other.
  • Flag ambiguous organizational scope. If it's unclear whether a section applies to all systems/users or a subset, note this in the rationale — it may affect gap analysis conclusions.
  • Do not fill gaps with general best practices. If the document doesn't say it, don't infer it from industry norms. Your job is to map what is written, not what should be written.
  • Flag controls requiring multiple frameworks. When a control maps equivalently across frameworks (e.g., HIPAA 164.308(a)(1) ≈ NIST RA-3 ≈ ISO 27001 A.8.2.1), explicitly cross-reference this to help analysts avoid redundant review.
安全使用建议
This skill is internally coherent and matches its stated purpose. Before installing or invoking it: (1) When running on sensitive or regulated documents, avoid letting the agent scan your entire workspace — provide only the specific document or run in an isolated environment. (2) The allowed WebFetch tool can contact external sites; if you cannot allow document content to leave your environment, disable or restrict network access for the skill. (3) Review outputs for potential exposure of PII or secrets, and consider using a local/framework reference copy rather than fetching framework text from the web. If you want additional assurance, request an explicit whitelist of domains the skill will query or an offline-only mode.
功能分析
Type: OpenClaw Skill Name: framework-mapping Version: 0.1.1 The skill bundle is a legitimate tool designed for compliance analysts to map document sections to regulatory frameworks like NIST, ISO 27001, and SOC 2. The instructions in SKILL.md are well-structured, providing clear procedures, scoring criteria, and output formats for bidirectional mapping without any evidence of malicious intent, data exfiltration, or unauthorized command execution.
能力评估
Purpose & Capability
Name/description (bidirectional compliance mapping) matches the SKILL.md procedures and output formats. No unrelated environment variables, binaries, or install steps are requested.
Instruction Scope
The SKILL.md provides a narrow, well-specified mapping procedure and explicit output schemas. It allows the agent to use Read, Glob, Grep (access workspace files) and WebFetch (network access). Those tools are reasonable for the task, but the instructions do not constrain which files the agent may read or which external endpoints WebFetch may contact — this has privacy/import-export implications when processing sensitive documents.
Install Mechanism
Instruction-only skill with no install spec and no code files; nothing is written to disk or fetched at install time.
Credentials
No environment variables, credentials, or config paths are requested. The declared requirements are proportionate to the described functionality.
Persistence & Privilege
always:false and no claims of modifying other skills or system settings. Autonomous invocation remains enabled (platform default) but is not combined with unusual privileges.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install framework-mapping
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /framework-mapping 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.1
No changes detected in this version. - Version updated to 0.1.1 with no modifications to files or documentation. - Functionality, instructions, and usage remain unchanged.
v0.1.0
Initial release of the framework-mapping skill: - Enables bidirectional mapping between document sections and compliance framework controls with confidence scoring. - Supports mapping and coverage summaries across NIST, HITRUST, ISO 27001, SOC 2, and HIPAA. - Provides procedures for relevance scoring, coverage type assignment, and rigorous mapping criteria. - Produces mapping outputs both per-document section and per-framework control for gap analysis. - Includes clear output format specifications and guidance for cross-framework equivalence and evidence requirements.
元数据
Slug framework-mapping
版本 0.1.1
许可证
累计安装 0
当前安装数 0
历史版本数 2
常见问题

Framework Mapping 是什么?

Bidirectional mapping between document sections and compliance framework controls with confidence scoring. Produces per-section control mappings and per-cont... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 297 次。

如何安装 Framework Mapping?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install framework-mapping」即可一键安装,无需额外配置。

Framework Mapping 是免费的吗?

是的,Framework Mapping 完全免费(开源免费),可自由下载、安装和使用。

Framework Mapping 支持哪些平台?

Framework Mapping 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Framework Mapping?

由 Dangsllc(@dangsllc)开发并维护,当前版本 v0.1.1。

💬 留言讨论