当需要定位代码位置或者询问某个模块功能时(如修改某个功能、查找某个模块),使用本 SKILL(必须执行不可跳过)获取项目模块索引
/plugin marketplace add taptap/claude-plugins-marketplace/plugin install spec@taptap-pluginsThis skill inherits all available tools. When active, it can use any tool Claude has access to.
generate-module-map.mdtemplate/prompt-kit-config.md.template在开始任何开发任务前,必须先读取项目模块索引:
tap-agents/prompts/module-map.md 是否存在
tap-agents/prompts/module-map.md路径约定:本文档中所有以 tap-agents/ 开头的路径均指项目根目录下的对应路径。
按优先级分为三类:
| 优先级 | 说明 | 示例 |
|---|---|---|
| P0 核心 | 核心业务流程必经的模块 | Account、Home |
| P1 常用 | 常用但非核心的功能模块 | Settings、Profile |
| P2 工具 | 工具类、基础组件 | Utils、Components |
每个模块记录了:
关键词到模块的映射表,覆盖常见的口语化表达:
| 关键词 | 相关模块 | 说明 |
|---|---|---|
| 登录、注册、账号 | Account, Login | 用户认证相关 |
| 首页、推荐 | Home, Recommend | 首页展示 |
| ... | ... | ... |
当用户描述需求时,利用快速定位表中的关键词映射,快速定位到相关模块:
用户:修改评分显示样式
AI思路:
1. 关键词"评分" → 查快速定位表 → 找到相关模块
2. 定位到具体模块路径
3. 开始修改代码
当需要更详细的模块信息时,读取对应的模块文档:
读取 tap-agents/prompts/modules/[模块名].md
模块文档包含:
修改代码后,需配合 doc-auto-sync 技能同步更新文档。
| 技能 | 配合方式 |
|---|---|
| doc-auto-sync | 代码修改后同步更新模块文档和索引 |
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.