# Code Context Scan

> Scan relevant source, tests, commands, and existing project patterns before editing code. Use before non-trivial implementation, bug fixing, or refactoring when the right local pattern is unclear.

- Skill: `seemseam/code-context-scan` (Agent Skill)
- Install (CLI): `npx skillmds@latest add seemseam/code-context-scan`
- Raw SKILL.md: https://api.skillmd.com/api/skills/seemseam/code-context-scan/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: seemseam (https://skillmd.com/u/seemseam)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/seemseam/code-context-scan

---


# Code Context Scan

Use this skill before writing code when the task is more than a tiny
self-contained edit.

Read `templates/implementation-brief.md` when the implementation scope or
verification needs to be made explicit.

## Workflow

1. Identify the requested behavior and likely owned area.
2. Inspect nearby source files before editing.
3. Inspect tests for the same feature, module, helper, or command.
4. Find project commands from `AGENTS.md`, package files, Makefiles, CI config,
   or existing test docs.
5. Search for existing helpers, components, types, fixtures, validators, and
   error handling patterns before creating new ones.
6. State the implementation brief:
   - goal;
   - scope;
   - out of scope;
   - existing pattern to follow;
   - verification command.

## Guardrails

- Do not scan the entire repository when a focused search is enough.
- Do not start editing before you understand at least one nearby pattern.
- Do not invent commands when the repo already documents them.
- If the task appears to need architecture, review, frontend, mobile, security,
  or release ownership, surface that before writing.

## Output

```text
Context Scan
- goal:
- relevant files:
- existing pattern:
- tests:
- command:
- scope boundary:
```

