一键导入
explore-module
Build or update .context.md for a module. Trigger: explore module, explore, understand module, what does this module do, context file, update context
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Build or update .context.md for a module. Trigger: explore module, explore, understand module, what does this module do, context file, update context
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Create a new feature using TDD and tracer bullets. Trigger: new feature, add feature, implement feature, build feature
Break features into tracer bullet stories and tasks. Trigger: decompose, break down, split feature, tracer bullet, stories, tasks, decompose feature
Deploy to staging or production with safety checks. Trigger: deploy, ship, release, push to staging, push to production
Fix a bug with root cause analysis and regression testing. Trigger: fix bug, broken, regression, error, crash, not working, failing
Run linters, formatters, and static analysis. Trigger: lint, format, standards, style check, code quality, lint setup
Safely refactor existing code with tests as the contract. Trigger: refactor, tech debt, code smell, clean up, restructure, reorganize
| name | explore-module |
| description | Build or update .context.md for a module. Trigger: explore module, explore, understand module, what does this module do, context file, update context |
Understanding code before changing it is non-negotiable. But exploring a module from scratch every time is wasteful. .context.md files are the module's memory -- read them first, explore only if missing or stale. This skill creates and maintains these files so that understanding persists across sessions and across developers.
WRONG (explore every time): RIGHT (read context first):
1. Run Glob/Grep to find files 1. Read .context.md
2. Read 10-20 files 2. If current: you already understand
3. Build mental model 3. If stale: update specific sections
4. Context lost at session end 4. If missing: explore and create it
5. Context persists across sessions
/explore-module [path] --> specific module or directory
/explore-module --> interactive, ask which module
Look for .context.md in the module directory:
EXISTS and recent (updated within last 2 weeks):
--> Read it. You now understand the module.
--> Suggest updates if anything looks outdated.
EXISTS but stale (updated more than 2 weeks ago):
--> Read it for baseline understanding.
--> Proceed to Step 3 to update outdated sections.
MISSING:
--> Proceed to Step 3 for full exploration.
.context.mdWhen .context.md is missing or stale, explore the module:
git log --oneline -20 -- [module_path]
Create or update the module's .context.md using this template:
# Module: [name]
**Last Updated:** [YYYY-MM-DD]
**Status:** [Active / Stable / Deprecated / Under Refactoring]
## Purpose
[1-2 sentences describing what this module does and why it exists]
## Key Files
| File | Purpose |
|------|---------|
| `file.ext` | [what it does] |
## Public Interfaces
| Function/Class | Signature | Description |
|----------------|-----------|-------------|
| `function_name` | `(params) -> return` | [brief] |
## Dependencies
### Internal
- `module_name` -- [what we use from it]
### External
- `package_name` -- [what we use from it]
## Architecture Notes
[Key design decisions, patterns used, important invariants]
## Recent Changes
- [YYYY-MM-DD]: [what changed and why]
## Known Issues
- [any open problems or tech debt]
.context.md written or updatedRead back the .context.md to confirm it is accurate and complete:
.context.md first, always/explore-module [path] to refresh stale context filesThe orchestrator protocol should update .context.md after implementation (between Step 3 and Step 4 of the orchestrator loop). This keeps context files current without manual effort.
The goal is a quick orientation document -- enough to understand the module's role, boundaries, and key decisions without reading every file.
.context.md per module directory (not per file).context.md files are checked into version control -- they are part of the codebase