sharedtech-stack-detection

Featured

检测项目技术栈的通用方法,通过分析配置文件识别语言、框架、工具链

AI & Automation 547 stars 50 forks Updated 4 days ago MIT

Install

View on GitHub

Quality Score: 94/100

Stars 20%
91
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 技术栈检测方法 ## 适用场景 在进行技术选型、架构设计、代码生成前,需要先了解项目当前使用的技术栈,以便: - 遵循项目现有的技术选择 - 生成符合项目规范的代码 - 避免引入不兼容的技术 ## 检测方法 ### 1. 检测配置文件 使用 `Read` 或 `Glob` 工具检测项目根目录的配置文件: #### JavaScript/TypeScript 生态 | 文件 | 说明 | 检测内容 | |------|------|----------| | `package.json` | Node.js 项目配置 | dependencies, devDependencies, scripts | | `tsconfig.json` | TypeScript 配置 | 确认使用 TypeScript | | `next.config.js` | Next.js 配置 | 确认使用 Next.js | | `vite.config.js` | Vite 配置 | 确认使用 Vite | | `nuxt.config.js` | Nuxt 配置 | 确认使用 Nuxt | **检测命令**: ```bash # 检测是否存在 ls package.json tsconfig.json next.config.js vite.config.js 2>/dev/null # 读取 package.json Read(file_path: "package.json") ``` **关键依赖识别**: - `react`: React 项目 - `vue`: Vue 项目 - `next`: Next.js 项目 - `@angular/core`: Angular 项目 - `express`: Express 后端 - `fastify`: Fastify 后端 - `prisma`: Prisma ORM - `typeorm`: TypeORM #### Python 生态 | 文件 | 说明 | 检测内容 | |------|------|----------| | `requirements.txt` | pip 依赖 | 依赖列表 | | `pyproject.toml` | Poetry/PDM 配置 | 依赖和项目配置 | | `Pipfile` | Pipenv 配置 | 依赖 | | `setup.py` | 包配置 | 项目元数据 | **关键依赖识别**: - `django`: Django 项目 - `flask`: Flask 项目 - `fastapi`: FastAPI 项目 - `sqlalchemy`: SQLAlchemy ORM - `pytest`: 使用 pytest 测试 #### Go 生态 | 文件 | 说明 | 检测内容 | |------|------|----------| | `go.mod` | Go 模块配置 | 依赖和 Go 版本 | | `go.sum` | 依赖校验和 | 确认依赖锁定 | **关键依赖识别**: - `github.com/gin-gonic/gin`: Gin 框架 - `github.com/gofiber/fiber`: Fiber 框架 - `gorm.io/gorm`: GORM ORM #### Rust 生态 | 文件 | 说明 | 检测内容 | |------|------|----------| | `Car...

Details

Author
echoVic
Repository
echoVic/boss-skill
Created
7 months ago
Last Updated
4 days ago
Language
TypeScript
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category