/t-tools:t-tech-researchfrom t-tools
Assesses technical feasibility for a feature by scanning the codebase, checking dependencies, researching libraries, and writing a structured report under .ai/tech-research/. Useful before creating a PRD or technical design.
Ships in t-tools. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
运行时边界统一参考:${CLAUDE_PLUGIN_ROOT}/protocols/runtime-boundaries.md
需求来源边界统一参考:${CLAUDE_PLUGIN_ROOT}/protocols/requirement-source-contract.md
跨阶段决策连续性和用户决策暴露统一参考:${CLAUDE_PLUGIN_ROOT}/protocols/decision-continuity-contract.md
基于 Decision Brief、用户需求、已有 PRD / user story(如存在)和现有代码库,评估技术可行性、依赖缺口、代码影响范围和关键风险,生成报告供 /t-prd 创建或更新草稿,或供纯技术方案 /t-design 参考。
决策纪律(全文只在此声明一次):会影响技术路线、依赖选择、范围边界、兼容性、成本/风险结论、PRD 建议或后续 /t-design 输入的问题,先按 Topic 查 .ai/decision-log/<file-name>.md;仍未解决时用 AskUserQuestion 提问,回答前不得写入报告、给出收敛结论或把它写成 P0/P1 风险、显式假设、"需要更多信息"后继续。用户回答后先更新 Decision Log,再更新 Tech Research。D2 技术取舍由本阶段明确选择并写入 Tech Research;符合 Entry Gate 时才回写 Decision Log。
输出文件:
.ai/tech-research/<file-name>.md(file-name 取自 $ARGUMENTS 第一个空格前的部分).ai/decision-log/<file-name>.md(复用上游决策;仅在产生用户决策、问题状态变化或重要 AI 决策时更新)如果未传 feature 名称,立即终止并提示:
请提供 feature 名称。例如:/t-tech-research user-management
输入:
.ai/decision/<file-name>.md(可选但推荐,来自 /t-decision).ai/decision-log/<file-name>.md(存在时必须在任何提问前读取).ai/prd/**/*.md、docs/prd/**/*.md、.ai/user-stories/**/*.md、docs/user-stories/**/*.md、.ai/design/**/*.md输出报告必须包含:
$ARGUMENTS 可包含两部分:<file-name> [补充描述];第一个空格前的部分作为输出文件名(如 rag-otel-metrics),空格后的部分作为额外需求上下文;只传一个词时同时作为文件名和需求主题.ai/tech-research/ 和 .ai/decision-log/ 存在.ai/tech-research/<file-name>.md 已存在,先询问是否覆盖.ai/decision/<file-name>.md,必须承接其中 Verdict、Scope Direction、D0/D1 决策和 Handoff,不得用技术预研改写产品立项结论;Verdict 为 Needs Clarification、Park 或 Reject 时,除非用户明确要求技术探索,否则停止并提示先回到 /t-decision.ai/decision-log/<file-name>.md,必须承接相关 Active Decision,不得重复询问 Resolved Question 或采用 Superseded Decision.ai/prd、.ai/user-stories 或 published baseline,必须读取并把它们作为候选产品边界与已发布基线;不得用技术结论静默改写产品语义,需要改变时明确交回 /t-prd 更新Cargo.toml、package.json 和 lock 文件(如存在)如果当前对话中已有足够需求背景,不要重复提问。按决策纪律检查账本后,仅在需求目标、约束、技术偏好或排除项不足以支撑可行性判断且账本没有答案时,用 AskUserQuestion 补问最少问题(需求目标或问题陈述、期望的技术能力或效果、特定库或技术方向偏好、已知约束或排除项)。
按需读取此项目的依赖和相关代码;代码分析复杂时可委托探索任务,要求返回相关实现位置、可复用点、影响模块和理由。
对比需求与现状,明确:现有栈已覆盖的能力、需要新增或升级的依赖、可能需要替换的依赖、版本兼容性问题、现有代码需要修改的部分。
仅当用户输入(需求描述、参数补充或对话)包含具体技术方案(指定库、组件或架构)或解决问题的执行流程时执行;只给了目标时跳过,并在报告方案质询小节写"用户未指定方案路线"。基于第 2、3 步的本地证据逐项核查:方案对应的技术问题是否真实存在且由该方案解决(XY 与根因检查)、是否存在更简路线(现有依赖、平台原生能力、删除代码代替新增;每个拟引入新依赖回答"没有它行不行")、用户给出的流程步骤是否必要、顺序是否成立、有无隐藏前置。发现影响技术路线、范围边界、兼容性或成本/风险结论的问题时,按决策纪律提问(一次一个,带推荐项,优先影响最大的问题,通常不超过 3 个;决策阻塞性问题不得因数量上限被省略);无发现时不提问,直接把质询结论和依据写入报告。被质询排除的方向连同理由写入技术约束,不保留候选对比。
仅当本地分析表明需要新依赖或需要补充库级事实时执行。对每个候选库调研:核心用法和 API 概览、与目标项目技术栈的集成方式、版本迁移注意事项(如适用)、常见陷阱和兼容性问题、推荐版本和引入方式。不需要新依赖时,在报告中写明"现有依赖栈可满足需求"并说明理由。
把本地分析、方案质询、依赖调研和人类讨论收敛为一个最终技术路线,按核心约束的收敛规则写入。两种无法收敛的情形分开处理:因技术事实不足时,结论可写"需要更多信息"并列出待调研证据;因用户决策不足时,按决策纪律提问,不得以"需要更多信息"代替提问后继续交付。
输出文件级和架构级影响:需要新增或修改的文件、可能受影响的配置和测试文件、需要调整的模块边界/接口契约/数据流/全局配置、风险矩阵(P0/P1/P2)。
使用 template.md 的结构生成 .ai/tech-research/<file-name>.md。不适用章节保留并标记"不适用"及原因。报告必须包含 Decision Trace,逐项说明相关 Active Decision 的应用位置。写入后运行:
python ${CLAUDE_PLUGIN_ROOT}/scripts/check-decision-closure.py .ai/tech-research/<file-name>.md
命中项按 Decision Exposure Gate 分类处理;重新扫描通过前不得交付报告。
完成后说明:
/t-prd <file-name>;已有 PRD 草稿且预研结论改变范围、业务规则、用户流程或验收目标时,重跑 /t-prd 更新草稿;二者已收敛时可按风险进入 /t-prd-check 或 /t-design;不涉及业务逻辑变动的纯技术方案可直接进入 /t-design <file-name>Cargo.toml、package.json、lock 文件)做盘点,并优先从现有依赖和代码中寻找方案needs_user_answer=0、决策闭合扫描通过,并对相关 Active Decision 提供 Decision TraceReject / Park 且用户未要求继续探索:终止并提示先回到 /t-decisionWhat SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (timzaak/web-dev-skills) — no native marketplace selected
npx claudepluginhub p/timzaak-t-tools34 skills in this plugin
/t-decisionDecide whether a feature should enter the t-tools workflow before tech research or PRD./t-designGenerate technical design documents including API design, database schema, and implementation details for a feature./t-design-checkEvaluate technical design documents for implementability, completeness, and consistency with a quantitative 100-point score./t-docGenerate human-readable project documentation — tutorials, getting-started guides, architecture overviews, API references, deployment or onboarding docs — by scanning the codebase for real facts. Output prefers an existing docs-web site over docs/tutorials/. Use when the user asks to write project docs, tutorials, guides, onboarding material, or a module walkthrough. Not for PRDs, technical designs, or API schema generation./t-dreamOrganize and realign published PRDs, user stories, implementation facts, and project structure so the target project keeps a clean current context instead of accumulating stale or misleading information. Audits published docs and code only; never reads the temporary .ai/ workflow directory. Use when asked to audit documentation drift, structure drift, traceability gaps, whether PRD/code/test/demo directory organization and module boundaries are reasonable, or to get PRD governance recommendations (merge/archive/rewrite/reference fixes) as read-only report output. Use --phase <phase> to check published PRD/story versus implementation-or-demo consistency for one delivery phase at phase wrap-up./t-extension-demo-accept独立验收 Chrome 扩展真实加载后的 Playwright 用户故事演示并汇总报告;普通 Web 页面演示使用 t-web-demo-accept。Other plugins' skills for the same job