본문으로 건너뛰기
cccskills
무료GitHub에 공개

context-integration

Use when the PLAN artifact from SAM Stage 2 needs contextualization against actual codebase state — grounds the design plan in reality by performing scope analysis (NEW/MODIFY/COMPLETE classification), conflict detection between plan assumptions and codebase patterns, and resource mapping to concrete file paths and integration points. Produces an updated ARTIFACT:PLAN registered via MCP with a Contextualization section appended.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

연동 도구AWS
설치 방법 보기

포함된 파일(1)

  • SKILL.md5.1 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

SAM Stage 3 — Context Integration

Role

You are the context integration agent for the SAM pipeline. You take an abstract design plan and ground it in the concrete reality of the codebase. Every design element maps to real files, patterns, and integration points.

When to Use

  • After Stage 2 Planning produces ARTIFACT:PLAN
  • Before task decomposition (Stage 4) can create executable tasks
  • When a plan needs concrete codebase references to be actionable

Process

flowchart TD
    Start([ARTIFACT:PLAN + codebase access]) --> S1[1. Scope Analysis]
    S1 --> S2[2. Conflict Detection]
    S2 --> Q{Conflicts found?}
    Q -->|Yes| Resolve[Resolve or document conflicts]
    Resolve --> S3
    Q -->|No| S3[3. Resource Mapping]
    S3 --> S4[4. Plan Update]
    S4 --> Done([Contextualized ARTIFACT:PLAN])

Step 1 — Scope Analysis

For each component in the plan, classify the implementation scope:

  • NEW — no existing code; must be created from scratch
  • MODIFY — existing code must change to support the design
  • COMPLETE — existing code already satisfies this component (no work needed)

Document the evidence for each classification (file paths, function names, line ranges).

Step 2 — Conflict Detection

Search the codebase for contradictions between the plan and existing patterns:

  • Pattern conflicts — plan proposes a pattern that contradicts established conventions
  • Naming conflicts — proposed names collide with existing identifiers
  • Structural conflicts — plan assumes a structure that does not exist or differs
  • Dependency conflicts — plan requires a dependency version incompatible with current state

For each conflict, document:

  • What the plan assumes
  • What the codebase actually contains
  • Recommended resolution (adapt plan or refactor existing code)

Step 3 — Resource Mapping

Identify existing codebase assets the plan can use:

  • Utilities — helper functions, shared modules, common patterns
  • Patterns — how similar features are implemented elsewhere
  • Configuration — build config, linting rules, CI pipelines that apply
  • Tests — existing test infrastructure, fixtures, helpers

Map each plan component to the concrete resources it will use.

Step 4 — Plan Update

Re-register the updated plan via MCP:

mcp__plugin_dh_backlog__artifact_register(
  item_id={issue},
  artifact_type="architect",
  artifact_id="plan/architect-{slug}.md",
  content="{full_updated_plan_markdown}",
  agent="context-integration",
)

This overwrites the previous "architect" artifact with the contextualized version. Add the Contextualization section and mark the status checkbox as complete.

Input

  • ARTIFACT:PLAN via artifact_read(item_id={issue}, artifact_type="architect")
  • Read access to the codebase

Output

Updated ARTIFACT:PLAN with the following section appended:

## Contextualization

### Scope Analysis

| Component | Scope | Evidence |
|-----------|-------|----------|
| <component from plan> | NEW / MODIFY / COMPLETE | <file paths, line ranges> |

### Conflict Report

| Conflict | Plan Assumes | Codebase Reality | Resolution |
|----------|-------------|------------------|------------|
| <conflict name> | <what plan says> | <what exists> | <adapt plan / refactor> |

### Resource Map

| Resource | Type | Location | Used By |
|----------|------|----------|---------|
| <existing asset> | utility / pattern / config / test | <file path> | <plan component> |

### Integration Points

1. **<integration point>** — <where new code connects to existing code; file and function>
2. <...>

### File Impact Summary

- Files to create — <list>
- Files to modify — <list>
- Files unchanged — <list>

End the same content with the status marker, so the re-registered architect artifact records that Stage 3 ran:

## Contextualization Status

- [x] Grounded in codebase (completed by Stage 3)

Both the ## Contextualization section and this status marker are part of the single content= string passed to artifact_register in Step 4. There is no separate document to update.

Role Resolution

This stage requires a codebase analyzer capable of reading files, searching patterns, and understanding project structure. Call mcp__plugin_dh_backlog__profile_list() to find the appropriate codebase-analysis role for the tech stack.

Behavioral Rules

  • Never modify the design intent — only add concrete references
  • If a conflict is unresolvable, document it and flag for human review

Success Criteria

  • Plan is ready for task decomposition without requiring further codebase exploration

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Add automated documentation updater to any Claude skill. Creates a Python sync script that downloads upstream docs, processes markdown for AI consumption, and maintains local cache with configurable refresh. Collects template variables, then delegates implementation through 5-phase workflow. Use when adding auto-updating reference documentation to plugins or skills.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Jamie-BitFlight/claude_skills672026년 10월 20일 업데이트

SAM-style feature initiation workflow — discovery through codebase analysis, architecture spec, task decomposition, validation, and context manifest. Use when a user asks to add a feature, plan a feature, or convert an idea into an executable SAM plan.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Jamie-BitFlight/claude_skills672026년 10월 20일 업데이트

Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to "open a website", "fill out a form", "click a button", "take a screenshot", "scrape data from a page", "test this web app", "login to a site", "automate browser actions", or any task requiring programmatic web interaction.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Jamie-BitFlight/claude_skills672026년 10월 20일 업데이트

Browser automation for AI agents using the agent-browser CLI and Playwright. Use when navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, logging into sites, or automating any browser task. Triggers on "open a website", "fill out a form", "click a button", "scrape data", "test this web app", "automate browser actions", or any programmatic web interaction request.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Jamie-BitFlight/claude_skills672026년 10월 20일 업데이트

Runs the description-drift experiment — spawns all Claude Code agents simultaneously to collect self-reported capabilities, then compares them against static frontmatter descriptions to reveal how reliable orchestrator routing based on descriptions actually is. Use when measuring description drift across the agent fleet, re-running the capability collection experiment, analyzing a specific agent's self-reported capabilities, or auditing whether frontmatter descriptions accurately reflect agent behavior.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Jamie-BitFlight/claude_skills672026년 10월 20일 업데이트

Create or adapt Claude Code agent definitions. Use when creating an agent, changing subagent configuration, selecting agent scope, or designing a specialized delegation role.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

Jamie-BitFlight/claude_skills672026년 10월 20일 업데이트

Jamie-BitFlight의 스킬 모두 보기

이 스킬의 문제 신고