plugins/quickspec/skills/codebase-mapper/SKILL.md
内部步骤(Task 3),由 generator 编排器调用,不从用户直接触发。 将 PRD 需求映射到代码库,识别技术栈、相关模块、编码约定和扩展点。
npx skillsauth add hicaosen/skills codebase-mapperInstall 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.
系统化地将 PRD 需求映射到现有代码库,建立编码 Agent 所需的实现上下文。
$ARGUMENTS/prd-analysis.md(由 prd-analyzer 产出)$ARGUMENTS/codebase-mapping.md使用 Read 工具读取 $ARGUMENTS/prd-analysis.md,获取 PRD 分析结果。从中提取功能关键词和实体名称,用于后续代码库搜索。
确定项目的技术和架构:
package.json、pyproject.toml、go.mod、pom.xml、Cargo.toml 等了解代码库的组织方式:
src/、lib/、app/、pkg/ 等对每个 PRD 功能,定位现有相关代码:
对找到的每个相关文件,记录:
提取新实现必须遵循的编码模式:
详细分析模式和示例,参考:
${CLAUDE_PLUGIN_ROOT}/skills/codebase-mapper/references/analysis-patterns.md — 常见项目类型的详细模式识别新功能如何与现有代码连接:
精确确定新代码应该添加在哪里:
使用 ${CLAUDE_PLUGIN_ROOT}/skills/codebase-mapper/references/output-template.md 作为结构模板,将上下文分析结果写入 $ARGUMENTS/codebase-mapping.md:
读取 ${CLAUDE_PLUGIN_ROOT}/skills/codebase-mapper/references/quality-gate.md,逐项核对产出物 $ARGUMENTS/codebase-mapping.md 是否满足所有验收标准。如有未通过的项,使用 Edit 工具修复产出文件后重新核对。最多重试 2 次,仍未通过则将未通过项记入返回状态的 issues 中。
完成所有工作后,输出以下格式的状态信息(不要包含其他内容):
[STATUS: success | partial | failed]
[OUTPUT: codebase-mapping.md]
[WARNINGS: 警告列表,没有则为 none]
[ISSUES: 阻塞问题列表,没有则为 none]
[SUMMARY: 一句话摘要]
development
VictoriaTraces HTTP API reference for querying distributed traces via Jaeger-compatible API. This skill should be used when searching traces, listing services/operations, getting trace details by ID, querying service dependencies, constructing HTTP requests to VictoriaTraces, or working with Jaeger API endpoints for distributed tracing analysis.
development
VictoriaMetrics HTTP API reference for querying metrics, exporting/importing data, TSDB stats, and administrative operations. This skill should be used when constructing HTTP requests to VictoriaMetrics, understanding query endpoints (/api/v1/query, /api/v1/query_range, /api/v1/export, /api/v1/import), response formats, checking cardinality, creating snapshots, or integrating with VictoriaMetrics API.
development
VictoriaLogs HTTP API reference for querying logs, hits stats, field discovery, live tailing, and log statistics. This skill should be used when constructing HTTP requests to VictoriaLogs, understanding query endpoints (/select/logsql/query, /select/logsql/tail, /select/logsql/hits, /select/logsql/field_names), response formats, or integrating with VictoriaLogs API for log search and analysis.
testing
PromQL query language fundamentals for Prometheus and Prometheus-compatible systems. Use for understanding PromQL instant/range vectors, label matchers, aggregation operators, offset/@ modifiers, or when targeting non-VictoriaMetrics Prometheus systems. For VictoriaMetrics-specific features like default_rollup, rollup, or outlier detection, use the metricsql skill.