skills/coding/context-learning/SKILL.md
Quickly understands unfamiliar code by tracing imports, call chains, and data flows. Produces concise context analysis covering module purpose, dependencies, logic flow, and side effects. Should be used when the user needs to understand code they didn't write — onboarding, investigating bugs, preparing for code review, or figuring out how a feature works. Distinguished from explore which focuses on project-wide investigation, this skill focuses on tracing code references and understanding specific code contexts.
npx skillsauth add ImaginerLabs/skill-manager context-learningInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Given a file or folder path, start from the main file, trace all references (imports, dependencies, call chains), and map the complete logic flow — then present it concisely so the reader knows where to modify and what a change would affect.
index.ts / index.tsx / index.jsmain.ts / main.tsx / App.tsxpackage.json → main fieldExtract from the main file:
Use semantic search for indexed projects, file reading for large files, and precise symbol lookups for specific identifiers.
For each internal module (relative path imports) identified in Step 2, recursively read and extract:
Depth limit: 2–3 levels by default. If a level has too many references, list only the critical paths.
Consolidate Steps 2–3 into a text-based flow diagram:
Entry file
└─ calls moduleA (purpose: xxx)
├─ calls util/helper (purpose: xxx)
└─ calls service/api (purpose: xxx)
└─ depends on config/constants (purpose: xxx)
Follow the output format below. Each module described in 1–2 sentences max. Focus on the main path — ignore utility functions, type definitions, and other secondary files. After reading, the user should know "where to modify, what a change would affect".
| Dimension | What to cover | | ------------------------- | -------------------------------------------------------- | | Entry purpose | What this file/module does, what problem it solves | | Data flow | Where data comes from, how it's processed, where it goes | | Core call chain | The most critical function/method call sequence | | External dependencies | Third-party libraries and their roles | | Side effects | I/O, network requests, state mutations, event listeners | | Key configuration | Config items or env vars that affect behavior |
## Code Context Analysis Report
### Basic Info
| Item | Content |
| ------------- | -------------------------- |
| Target path | `[file/folder path]` |
| Entry file | `[entry file path]` |
| Entry purpose | [One-sentence description] |
| Analysis time | [YYYY-MM-DD HH:mm:ss] |
---
### Core Logic Chain
[Text flow diagram showing call chain]
---
### Module Summary
| Module | Path | Purpose | Type |
| ------ | ----------------- | -------------------------- | -------------------------------- |
| [Name] | `[relative path]` | [One-sentence description] | Core business / Utility / Config |
---
### Data Flow
[Describe input → processing → output in 1–3 sentences]
---
### External Dependencies
| Package | Version | Purpose | Type |
| ------- | ------- | --------- | ---------------- |
| [name] | x.x.x | [purpose] | Production / Dev |
---
### Key Points & Caveats
- [Noteworthy design decisions or potential risks, one per line]
---
### Suggested Reading Order
1. `[file path]` — [reason]
2. `[file path]` — [reason]
3. ...
---
### Related Skills
Based on the analysis, consider:
- `tech-stack-detection` — for full project tech stack understanding
- `code-comment-writer` — to add comments improving readability
- `frontend-code-review` — for code quality checks
| Skill | Scenario |
| ---------------------------- | ------------------------------------------------------------- |
| tech-stack-detection | Understand project tech stack first, then do context analysis |
| code-comment-writer | After analysis, add comments to improve readability |
| frontend-code-review | After understanding logic, do a code quality check |
| react-component-extraction | After analysis, identify extractable components or Hooks |
development
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files). Triggers include: any mention of 'Word doc', 'word document', '.docx', or requests to produce professional documents with formatting like tables of contents, headings, page numbers, or letterheads. Also use when extracting or reorganizing content from .docx files, inserting or replacing images in documents, performing find-and-replace in Word files, working with tracked changes or comments, or converting content into a polished Word document. If the user asks for a 'report', 'memo', 'letter', 'template', or similar deliverable as a Word or .docx file, use this skill. Do NOT use for PDFs, spreadsheets, Google Docs, or general coding tasks unrelated to document generation.
devops
Create a new implementation plan file for new features, refactoring existing code or upgrading packages, design, architecture or infrastructure.
tools
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when building MCP servers to integrate external APIs or services, whether in Python (FastMCP) or Node/TypeScript (MCP SDK).
documentation
Generates standardized porting documentation from completed feature changes. Analyzes commit diffs or file contents, extracts change intent, and outputs Markdown documentation for cross-team understanding. Should be used when the user needs to document a change for cross-team or cross-project consumption. Distinguished from cross-branch-fix-porter which actively re-implements fixes, this skill documents changes.