一键导入
codemeridian-context
Gather minimal, graph-grounded CodeMeridian context before implementation, refactoring, deletion, debugging, or test planning.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Gather minimal, graph-grounded CodeMeridian context before implementation, refactoring, deletion, debugging, or test planning.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Route frontend HTML/CSS/SCSS work through CodeMeridian's generic frontend-aware tools first, then use cascade and style-duplicate analysis only when the question is truly frontend-specific.
Plan safer refactors with CodeMeridian by checking graph freshness, exact symbols, impact, tests, duplication, and architecture risk before editing.
Plan focused tests with CodeMeridian by finding relevant test shields, coverage gaps, impacted behavior, and the smallest useful test set before implementation.
| name | codemeridian-context |
| description | Gather minimal, graph-grounded CodeMeridian context before implementation, refactoring, deletion, debugging, or test planning. |
Use this skill when working in a repository indexed by CodeMeridian.
The goal is to gather the smallest useful context pack before reading many files or making code changes.
projectContext can be found in meridian.json in field project.
Use this skill before:
docs/features/*.mdIf the task touches HTML, CSS, SCSS, selectors, style imports, or CSS variables, pair this skill with codemeridian-frontend so the context routing stays frontend-aware.
When exact file targets, symbol names, or relationships matter, check whether the graph is fresh.
Prefer:
check_graph_freshnessfind_graph_driftIf the graph is stale, incomplete, or uncertain, say so before relying on exact results.
During an implementation session, always record provider-neutral session evidence under .meridian/sessions/*.jsonl so codemeridian evaluate-session can measure whether CodeMeridian helped.
Write one compact JSON object per line. Omit fields that do not apply.
Use this event shape:
{"timestamp":"<ISO-8601 UTC time>","provider":"<codex|copilot|claude|continue|other>","project":"MyApp","kind":"<graph-call|codemeridian-tool|suggestion|tool-result|command|manual-fallback|test-run|stale-warning>","toolName":"<CodeMeridian MCP tool name when applicable>","command":"<shell command when applicable>","targetConfidence":"<exact|file-only|heuristic|stale, comma-separated if needed>","staleWarning":<true|false>,"contextPackStatus":"<full|degraded|failed when recording build_minimal_context results>","changeKind":"<direct-edit|extract|move|rename|split when lineage applies>","derivedFromFiles":["<repo-relative suggested source file>"],"derivedFromSymbols":["<source symbol when known>"],"plannedFolders":["<repo-relative target folder>"],"plannedNamespaces":["<target namespace>"],"files":["<repo-relative file path>"],"tests":["<repo-relative test file path>"]}
For each CodeMeridian tool call, record kind=graph-call, toolName, files suggested by the tool, tests suggested by the tool, targetConfidence, and staleWarning when present.
When recording a build_minimal_context result as a tool-result event, also record contextPackStatus as full, degraded, or failed.
When extracted or moved files are clearly derived from a suggested source, also record changeKind plus derivedFromFiles and optional plannedFolders or plannedNamespaces.
For manual search fallback commands such as rg, grep, find, Get-ChildItem, or Select-String, record kind=command and command.
For test execution, record kind=test-run, command, and tests when known.
When the task is feature work, start by mapping the implementation path.
Prefer:
analyze_feature_implementation_path for a feature request or docs/features/*.mdUse the result to report:
Use the smallest CodeMeridian query that fits the task.
Prefer:
build_minimal_context for broad implementation tasksfind_implementation_surface for exact feature/fix targets after the feature path is mappedfind_implementation_patterns when the feature should mirror an existing entry/service/repository/test shaperesolve_exact_symbol before editing a named class, method, interface, endpoint, or fileget_context_for_editing when preparing a focused editFor frontend work, expect these generic tools to surface indexed frontend edges such as UsesClass, UsesId, DefinesSelector, ImportsStyle, UsesCssVariable, and DefinesCssVariable before using frontend-only analysis.
Avoid loading large unrelated files unless CodeMeridian cannot answer the question.
Before behavior changes, refactors, deletions, or signature changes, inspect risk.
Prefer:
find_impactfind_test_shieldfind_coverage_gapsfind_unreferenced before deleting codeWhen the task depends on prior decisions, architecture notes, or product behavior, search indexed documentation.
Prefer:
search_documentationfind_related_knowledgefind_stale_knowledge when remembered knowledge may be outdatedSeparate proven graph facts from inferred relationships.
Use wording like:
Do not present stale or inferred context as certain.
Start with this compact summary before implementation:
Graph freshness:
Minimal context:
Likely edit surface:
Tests to inspect or run:
Risks / unknowns:
Then continue with the requested implementation, review, or explanation.
If CodeMeridian cannot answer the task: