Token导航 LogoToken导航

Agent Skill · 研究检索

context-mapping(上下文映射)

context-mapping 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

context-mapping 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为调用外部服务;许可证为 MIT,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 56,419。

总安装 451周安装 19GitHub Stars 61下载 158核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:context-mapping(上下文映射)
来源仓库:https://github.com/melodic-software/claude-code-plugins
仓库路径:skills/context-mapping
安装命令:
npx skills add https://github.com/melodic-software/claude-code-plugins --skill context-mapping
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/melodic-software/claude-code-plugins --skill context-mapping

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

context-mapping 提供交互式上下文映射分析,基于 DDD 方法论识别系统边界上下文关系。支持全量分析、快速概览或引导式发现三种模式,输出 CML 格式的结构化关系图。通过用户确认机制确保关系准确性,避免隐含知识的丢失。安装前建议确认权限范围、维护状态,以及是否会触发交互式提问或文件生成操作。

适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/context-mapping

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/melodic-software/claude-code-plugins --skill c…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要调用外部服务,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

context-mapping 怎么安装?

在终端执行 npx skills add https://github.com/melodic-software/claude-code-plugins --skill context-map…。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

context-mapping 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

context-mapping 需要什么权限?

权限级别是调用外部服务。该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

context-mapping 是免费的吗?

来源标注的许可证是 MIT。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

context-mapping 用的人多吗?

公开数据是累计安装 451 次,近一周安装 19 次,下载 158 次,GitHub 61 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

context-mapping 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 3 个目录同时收录,说明这个 Skill 流传比较广。
  • 许可证明确为 MIT,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
context-mapping

上下文映射 · 本页

45161调用外部服务MIT通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Context Mapping Skill

Interactive Mapping Configuration

Use AskUserQuestion to configure the context mapping session:

# Question 1: Mapping Mode (MCP: DDD context mapping methodology)
question: "What level of context mapping analysis do you need?"
header: "Mode"
options:
  - label: "Full Analysis (Recommended)"
    description: "Systematically analyze all bounded contexts with CML output"
  - label: "Quick Overview"
    description: "Identify obvious relationships only (~3K tokens)"
  - label: "Guided Discovery"
    description: "Interactive, confirm each relationship with user"
  - label: "Pattern Focus"
    description: "Focus on specific integration patterns (ACL, OHS, etc.)"

# Question 2: Relationship Clarity (MCP: DDD upstream/downstream patterns)
question: "How clear are the context boundaries?"
header: "Clarity"
options:
  - label: "Well-Defined"
    description: "Bounded contexts identified, need relationship mapping"
  - label: "Partially Known"
    description: "Some contexts identified, may discover more"
  - label: "Exploratory"
    description: "Start from scratch, discover contexts and relationships"
  - label: "From Event Storm"
    description: "Use output from prior event storming session"

Use these responses to select the appropriate mapping mode and calibrate discovery depth.

Map relationships between bounded contexts using Domain-Driven Design context mapping patterns. Produces Context Mapper DSL (CML) output and integration strategy recommendations.

When to Use This Skill

Keywords: context mapping, bounded contexts, upstream, downstream, ACL, anti-corruption layer, shared kernel, customer supplier, open host service, published language, conformist, partnership, CML, integration patterns, domain relationships

Use this skill when:

  • After event storming when bounded contexts have been identified
  • Defining integration strategies between domains
  • Documenting domain relationships and dependencies
  • Generating context map diagrams (Mermaid/PlantUML)
  • Creating Context Mapper DSL (CML) output
  • Planning team boundaries based on context relationships
  • Identifying where anti-corruption layers are needed

Context Mapping Patterns

Eight strategic DDD patterns for defining context relationships:

Symmetric Patterns (Equal Relationship)

PatternAbbrevDescriptionUse When
Shared KernelSKShared code/model between contextsTwo contexts need identical domain logic
PartnershipPEqual collaboration, mutual dependencyTeams co-evolve, no clear upstream/downstream

Asymmetric Patterns (Upstream/Downstream)

PatternAbbrevDescriptionUse When
Customer/SupplierC/SUpstream supplies, downstream consumesClear provider/consumer relationship
ConformistCFDownstream adopts upstream modelDownstream team has no leverage to negotiate
Anti-Corruption LayerACLDownstream translates upstream modelUpstream model doesn't fit downstream needs
Open Host ServiceOHSUpstream provides formal APIMultiple consumers need standardized access
Published LanguagePLStandardized API format (OpenAPI, etc.)Cross-team communication requires contract

No Integration

PatternAbbrevDescriptionUse When
Separate WaysSWNo integration, independent evolutionContexts have no meaningful relationship

For detailed pattern descriptions with examples: See references/pattern-catalog.md

Pattern Selection Guide

Decision Flow

Do the contexts share code or data model?
├── Yes → Shared Kernel [SK]
└── No → Is there a clear data/service flow?
    ├── No → Do teams collaborate equally?
    │   ├── Yes → Partnership [P]
    │   └── No → Separate Ways [SW]
    └── Yes → Identify Upstream (provider) and Downstream (consumer)
        └── Can downstream influence upstream's model?
            ├── No → Does upstream model fit downstream needs?
            │   ├── Yes → Conformist [CF]
            │   └── No → Anti-Corruption Layer [ACL]
            └── Yes → Customer/Supplier [C/S]
                └── Does upstream serve multiple consumers?
                    ├── Yes → Add Open Host Service [OHS]
                    │   └── Needs contract? → Add Published Language [PL]
                    └── No → Basic C/S is sufficient

For detailed selection criteria: See references/pattern-selection.md

Context Mapper DSL (CML)

Basic Syntax

ContextMap <MapName> {
    contains <Context1>
    contains <Context2>

    // Asymmetric: Downstream [D] <- Upstream [U]
    <DownstreamContext> [D,<patterns>]<-[U,<patterns>] <UpstreamContext>

    // Symmetric: Both sides equal
    <Context1> [<patterns>]<->[<patterns>] <Context2>
}

Notation Reference

SymbolMeaning
[D]Downstream context
[U]Upstream context
<-Asymmetric relationship (upstream to downstream)
<->Symmetric relationship
[D,C]Downstream + Customer
[U,S]Upstream + Supplier
[D,ACL]Downstream with Anti-Corruption Layer
[U,OHS,PL]Upstream with Open Host Service + Published Language
[SK]Shared Kernel (symmetric)
[P]Partnership (symmetric)
[CF]Conformist

For complete CML syntax: See references/cml-syntax.md

Multi-Mode Execution

Mode Selection

ModeDescriptionUse When
fullSystematically analyze all bounded contextsComprehensive mapping, larger domains
quickIdentify obvious relationships onlyQuick overview, small domains
guidedInteractive, confirm each relationshipLearning, validation, uncertain relationships

Full Mode Protocol

  1. Inventory - List all bounded contexts with aggregates
  2. Dependency Scan - Identify data flow and service calls
  3. Pattern Assignment - Apply selection criteria systematically
  4. CML Generation - Produce complete context map
  5. Diagram Generation - Create visual representation
  6. Review Output - Mark uncertain relationships for human review

Quick Mode Protocol

  1. Context List - Enumerate known bounded contexts
  2. Obvious Relationships - Map clear upstream/downstream pairs
  3. Basic CML - Generate minimal context map
  4. Skip Ambiguous - Flag uncertain relationships for later

Guided Mode Protocol

  1. Present Context Pair - Show two contexts to user
  2. Ask Relationship - "Do these contexts interact?"
  3. Determine Direction - "Which provides data/services?"
  4. Select Pattern - Present pattern options with explanations
  5. Confirm - Verify user agrees with classification
  6. Repeat - Continue for all context pairs

Output Artifacts

1. Context Mapper DSL (CML) File

/* Context Map: <DomainName>
 * Generated: <date>
 * Source: Event storming session
 */

ContextMap <DomainName>Map {
    contains <Context1>
    contains <Context2>
    // ... relationships
}

2. Mermaid Diagram

graph LR
    subgraph "Core Domain"
        A[Context1]
    end
    subgraph "Supporting"
        B[Context2]
    end
    A -->|pattern| B

3. Integration Strategy Report

## Integration Strategies

### <Context1> -> <Context2>
- **Pattern:** Customer/Supplier
- **Direction:** Context1 (upstream) supplies Context2 (downstream)
- **Rationale:** <why this pattern>
- **Implementation:** <technical approach>
- **Team Impact:** <organizational considerations>

4. Team Topology Suggestions

Based on context relationships, suggest team boundaries following Team Topologies patterns (Stream-aligned, Platform, Enabling, Complicated Subsystem).

For team topology guidance: See references/team-topologies.md

Integration with Event Storming

Input from Event Storming

Context mapping consumes:

  • Bounded Contexts - Named domain boundaries with primary aggregates
  • Domain Events - Events that cross context boundaries
  • Commands - Operations that trigger cross-context communication
  • Actors - Users/systems that interact with multiple contexts

Workflow Integration

Domain Storytelling
    ↓ (understand business flow)
Event Storming
    ↓ (discover bounded contexts)
Context Mapping ← YOU ARE HERE
    ↓ (define relationships)
Modular Architecture
    ↓ (implement structure)
Fitness Functions
    (enforce boundaries)

Cross-Context Event Identification

When mapping contexts, identify:

  1. Events crossing boundaries - Indicate integration needs
  2. Shared aggregates - Potential Shared Kernel candidates
  3. Translation requirements - ACL candidates
  4. API contracts - OHS/PL candidates

Integration Strategies

For each pattern, there's a recommended technical implementation:

PatternImplementation Strategy
Shared KernelShared NuGet package, common project reference
Customer/SupplierInternal API, MediatR notifications
Anti-Corruption LayerAdapter pattern, translation service
Open Host ServiceREST API, gRPC service
Published LanguageOpenAPI spec, Protobuf definitions
PartnershipShared event bus, bilateral contracts
ConformistDirect model adoption, no translation
Separate WaysNo integration code needed

For detailed implementation guidance: See references/integration-strategies.md

Example Output

E-Commerce Domain Context Map

/* Context Map: E-Commerce Platform
 * Generated: 2025-01-15
 * Bounded Contexts from event storming session
 */

ContextMap ECommercePlatform {
    contains OrderContext
    contains InventoryContext
    contains PaymentContext
    contains ShippingContext
    contains CustomerContext

    /* Order consumes inventory availability
     * Inventory owns stock truth, Order queries it
     */
    OrderContext [D,C]<-[U,S] InventoryContext

    /* Payment isolates external gateway
     * Gateway has foreign model, needs translation
     */
    PaymentContext [D,ACL]<-[U,OHS,PL] ExternalPaymentGateway

    /* Order and Shipping co-evolve
     * Both teams collaborate on fulfillment flow
     */
    OrderContext [P]<->[P] ShippingContext

    /* Customer data shared
     * CustomerInfo value object used by multiple contexts
     */
    OrderContext [SK]<->[SK] CustomerContext
    ShippingContext [SK]<->[SK] CustomerContext
}

Honest Limitations

What This Skill Does Well

  • Systematic pattern identification from bounded contexts
  • CML syntax generation for Context Mapper tooling
  • Integration strategy recommendations based on patterns
  • Team topology alignment suggestions
  • Mermaid/PlantUML diagram generation

What Requires Human Input

  • Team dynamics - Actual organizational politics and relationships
  • Business priorities - Which integrations matter most
  • Legacy constraints - Existing systems that limit options
  • Change appetite - Organizational readiness for restructuring
  • Trade-off decisions - When multiple patterns could work

All outputs clearly distinguish recommendations from requirements and flag uncertain classifications for human review.

Related Skills

  • event-storming - Discover bounded contexts (prerequisite)
  • domain-storytelling - Understand business flow (optional prerequisite)
  • modular-architecture - Implement module structure (next step)
  • adr-management - Document integration decisions
  • architecture-documentation - Generate architecture diagrams

References

User-Facing Interface

When invoked directly by the user, this skill maps bounded context relationships.

Execution Workflow

  1. Parse Arguments - Extract bounded contexts source, mode, and output format. If no source provided, check for event storming output in docs/event-storming/ or ask the user.
  2. Inventory Bounded Contexts - Parse input for context names, responsibilities, aggregates, published/consumed events, and team ownership.
  3. Execute Based on Mode:

- Full: Spawn the context-mapper agent for systematic analysis of all relationships with pattern selection rationale and team topology alignment. - Quick: Identify obvious relationships from event pairs, API dependencies, and shared data access. Apply default patterns. - Guided: Interactive relationship-by-relationship confirmation with evidence presentation and pattern suggestions.

  1. Generate Output - Produce CML file, Mermaid diagram, summary report with pattern distribution and team topology suggestions.
  2. Save Results - Save to docs/architecture/context-map.cml and docs/architecture/context-map.md (or custom --dir).
  3. Suggest Follow-Ups - Recommend architecture documentation, ADRs for pattern decisions, fitness functions for boundaries.

Version History

  • v1.0.0 (2025-12-22): Initial release - Context mapping patterns, CML output, multi-mode execution

Last Updated: 2025-12-22 Model: claude-opus-4-5-20251101

平台分布

Antigravity

26.69%
按下载量换算42

Claude Code

21.91%
按下载量换算35

Codex

17.67%
按下载量换算28

Gemini CLI

13.95%
按下载量换算22

OpenCode

7.44%
按下载量换算12

trae

3.41%
按下载量换算5

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

调用外部服务

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

继续浏览同类 Skills