一键导入
milens-architect
Architecture Analysis — domains, routes, coupling, class hierarchy, and refactoring suggestions with scorecard
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Architecture Analysis — domains, routes, coupling, class hierarchy, and refactoring suggestions with scorecard
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Code intelligence for the adapters area — symbols, dependencies, and entry points
Code intelligence for the analyzer area — symbols, dependencies, and entry points
Code intelligence for the apps area — symbols, dependencies, and entry points
Code intelligence for the docs area — symbols, dependencies, and entry points
Code intelligence MCP tools — symbol search, text grep, impact analysis, dependency graph
Code intelligence for the orchestrator area — symbols, dependencies, and entry points
| name | milens-architect |
| description | Architecture Analysis — domains, routes, coupling, class hierarchy, and refactoring suggestions with scorecard |
Analyze the architecture of the codebase: domain clusters, API routes, execution traces, class hierarchies, coupling hotspots, and produce a structured scorecard with refactoring suggestions.
| Tool | Purpose |
|---|---|
mcp_milens_codebase_summary | High-level project overview |
mcp_milens_domains | Module clusters with cohesion scores |
mcp_milens_routes | API endpoints inventory |
mcp_milens_get_type_hierarchy | Class/interface inheritance trees |
mcp_milens_trace | Execution flow from entrypoints |
mcp_milens_explain_relationship | Shortest path between two symbols |
mcp_milens_find_dead_code | Unused exported symbols |
mcp_milens_review_symbol | Deep-dive single symbol risk |
mcp_milens_impact | Blast radius analysis |
CRITICAL: All milens MCP tool calls MUST include the
repoparameter set to the absolute path of the workspace root.
Get a high-level picture of the codebase structure.
mcp_milens_codebase_summary({repo: "<workspaceRoot>"})
Identify logical module groupings and cohesion.
mcp_milens_domains({repo: "<workspaceRoot>"})
For each domain with > 5 files, note: file count, symbol count, and description.
Map all API endpoints to handler functions.
mcp_milens_routes({repo: "<workspaceRoot>"})
Document: HTTP method, path, handler symbol, and domain.
For each key class/interface in the codebase, trace inheritance chains.
mcp_milens_get_type_hierarchy({name: "<BaseClass>", repo: "<workspaceRoot>"})
Trace critical execution paths from entrypoints.
mcp_milens_trace({name: "<entrypoint>", direction: "from", repo: "<workspaceRoot>"})
For the top 5 hub symbols, analyze inter-domain coupling:
mcp_milens_impact({target: "<hubSymbol>", depth: 3, repo: "<workspaceRoot>"})
mcp_milens_explain_relationship({from: "<domain-a>", to: "<domain-b>", repo: "<workspaceRoot>"})
Find unused symbols that may indicate architectural drift.
mcp_milens_find_dead_code({limit: 30, repo: "<workspaceRoot>"})
Produce a structured scorecard:
| Dimension | Score (1-10) | Notes |
|---|---|---|
| Domain Cohesion | ||
| Inter-domain Coupling | ||
| Route Coverage | ||
| Entry Point Clarity | ||
| Inheritance Depth | ||
| Dead Code Ratio |
List top 3 refactoring suggestions with risk levels and effort estimates.
mcp_milens_codebase_summary first — it provides the scaffolding for all other stepsmcp_milens_review_symbol for CRITICAL hubs