skills/project-skill-installer/SKILL.md
当用户想要在项目中安装、添加或配置技能时使用此技能。分析项目的技术栈和工作流,然后推荐并安装最匹配的技能。触发词:'install skill'、'add skill'、'configure skill'、'set up skill'、'enable skill'、'use skill in project'、'project skill',或当用户询问如何将现有技能能力引入当前工作区时触发。
npx skillsauth add learnwy/skills project-skill-installerInstall 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.
分析项目的技术栈、工作流和痛点,然后推荐最佳技能进行安装。在安装任何内容之前,始终通过 AskUserQuestion 与用户确认。
核心原则:先理解项目,再推荐,仅在用户确认后安装。
共享原则: 本技能与
project-skill-writer/project-agent-writer/project-rules-writer共享 5 条 writer 通用纪律。详见 ../project-skill-writer/references/writer-discipline.md。
触发条件:
不触发条件:
project-skill-writer)project-agent-writer)project-rules-writer)find-skills 或 trae-skill-finder 技能npx skills add find-skills -g -y[L1: 理解目标]
↓
[L2: 项目分析]
↓
[L3: 技能发现]
↓
[L4: 推荐] ← AskUserQuestion(必须确认)
↓
[L5: 安装]
↓
[L6: 验证]
提取用户需求——不要问"你想要什么技能?"而是理解:
| 用户说的 | 真实需求 | |----------|----------| | "install a skill" | 模糊——进入 L2 分析寻找缺口 | | "find a skill for testing" | 特定领域——搜索测试技能 | | "set up this project with skills" | 全面审计——分析项目并推荐套件 | | "I keep doing X manually" | 自动化缺口——查找解决 X 的技能 |
扫描项目构建技术画像。并行使用搜索工具:
| 信号 | 查找内容 | 工具 |
|------|----------|------|
| 语言 | 文件扩展名(.ts、.py、.swift、.go) | Glob |
| 框架 | package.json 依赖、Podfile、go.mod、Cargo.toml | Read |
| 构建工具 | Makefile、webpack.config、vite.config、Bazel | Glob |
| 测试 | jest.config、pytest.ini、XCTest、go test | Glob |
| CI/CD | .github/workflows/、Jenkinsfile、.gitlab-ci.yml | Glob |
| 现有技能 | .agents/skills/、.trae/skills/、.cursor/skills/ | Glob |
| 现有规则 | .agents/rules/、.trae/rules/ | Glob |
项目: {name}
语言: TypeScript, Swift
框架: React 18, UIKit
构建: Vite, Bazel
测试: Jest, XCTest
CI: GitHub Actions
现有技能: [列表]
现有规则: [列表]
基于技术画像和用户目标,搜索匹配的技能:
npx skills find "<user_query>"npx skills find "react"、npx skills find "swift"npx skills find "testing"~/.trae/skills/ 和 ~/.trae-cn/skills/ 中已安装的全局技能npx skills find "<query>" — 搜索 skills.sh 市场npx @tiktok-fe/skills find "<query>" — 搜索内部注册表(如可用)拒绝以下技能:
关键:在安装任何技能之前,通过 AskUserQuestion 展示推荐。
对每个推荐的技能,准备:
技能: {name}
用途: {做什么,一句话}
原因: {为什么适合这个项目}
安装: {命令}
使用 AskUserQuestion:
{
"questions": [{
"question": "Based on your {language/framework} project, I recommend these skills. Which would you like to install?",
"header": "Skills",
"multiSelect": true,
"options": [
{
"label": "{skill-1-name} (Recommended)",
"description": "{一句话:做什么 + 为什么适合}"
},
{
"label": "{skill-2-name}",
"description": "{一句话:做什么 + 为什么适合}"
},
{
"label": "Skip",
"description": "Don't install any skills right now"
}
]
}]
}
规则:
multiSelect: true 允许多个安装用户确认要安装哪些技能后:
使用路径发现确定项目相对安装路径:
.agents/skills/.agents/skills/(不再写入 .trae/、.cursor/、.claude/ —— 那些目录归 IDE 管)# 社区技能 (skills.sh)
npx skills add <package-name> --path <project-root>/.agents/skills/
# 字节跳动内部技能
npx @tiktok-fe/skills add <package-name> --path <project-root>/.agents/skills/
~/.trae/skills/、~/.claude/skills/ 或其他全局路径.trae/、.claude/、.cursor/ —— 那是 IDE 自己写入的目录安装后验证:
向用户报告:
已安装 {N} 个技能:
✓ {skill-1} → {path}
✓ {skill-2} → {path}
使用方式: 只需描述你的需求,技能会自动激活。
| 问题 | 解决方案 |
|------|----------|
| find-skills 不可用 | 提示:npx skills add find-skills -g -y |
| 未找到匹配查询的技能 | 建议通过 project-skill-writer 创建自定义技能 |
| 用户请求全局安装 | 拒绝,解释项目范围限制,提供项目相对路径替代方案 |
| 用户请求创建智能体/规则 | 路由到 project-agent-writer 或 project-rules-writer |
| 安装命令失败 | 显示错误,建议手动 npx skills add <name> --path <path> |
| 技能与现有的冲突 | 展示对比,询问用户保留哪个 |
此技能仅处理:
此技能不处理:
project-skill-writerproject-agent-writerproject-rules-writertools
Fallback skill when no project-specific one matches. Provides 10 battle-tested software-engineering methodology agents: problem-definer (Weinberg), story-mapper (Patton), spec-by-example (Adzic), domain-modeler (DDD/Evans), responsibility-modeler (CRC/Wirfs-Brock), architecture-advisor (Bass), tdd-coach (Beck), refactoring-guide (Fowler), legacy-surgeon (Feathers), test-strategist (Crispin). Use when user asks about DDD, TDD, refactoring, story mapping, test strategy, or software-architecture quality attributes.
development
Use when the user wants to build, implement, or develop a feature. Orchestrates evidence-driven Spec-Driven Development. Default lifecycle is `lite` (INIT → IMPLEMENTING → TESTING → DONE); auto-promote to `standard` or `full` when scope, risk, or AC traceability demands it. Triggers: 'develop feature', 'implement this', 'build feature', 'add module', 'fix bug', '开发功能', '实现这个'.
documentation
当用户需要创建、更新或设计项目级技能(.agents/skills/*/SKILL.md)时使用此技能。Analyzes the user's problem and project context to design reusable skill solutions. 触发词:'创建技能'、'编写技能'、'构建技能'、'添加技能'、'更新技能'、'项目技能'、'新建技能'、'设计技能', or when the user describes a repetitive workflow that should be captured as a reusable AI skill.
tools
Use this skill when the user wants to install, add, or configure a skill in a project. Analyze the project's tech stack and workflow, then recommend and install the best-matching skill. Triggers: 'install skill', 'add skill', 'configure skill', 'set up skill', 'enable skill', 'use skill in project', 'project skill', or when the user asks how to bring an existing skill capability into the current workspace.