GSD Codebase Mapper by toonight/get-shit-done-for-antigravity
npx skills add https://github.com/toonight/get-shit-done-for-antigravity --skill 'GSD Codebase Mapper'核心职责:
理解项目是如何组织的:
映射项目的依赖项:
识别代码的编写方式:
映射外部连接:
揭示需要解决的问题:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
根据标记识别项目类型:
# Node.js/JavaScript
Test-Path "package.json"
# Python
Test-Path "requirements.txt" -or Test-Path "pyproject.toml"
# Rust
Test-Path "Cargo.toml"
# Go
Test-Path "go.mod"
# .NET
Get-ChildItem "*.csproj"
# 获取目录结构
Get-ChildItem -Recurse -Directory |
Where-Object { $_.Name -notmatch "node_modules|\.git|__pycache__|dist|build|\.next" } |
Select-Object FullName
针对每个生态系统:
Node.js:
$pkg = Get-Content "package.json" | ConvertFrom-Json
$pkg.dependencies
$pkg.devDependencies
Python:
Get-Content "requirements.txt"
搜索常见模式:
# 组件
Get-ChildItem -Recurse -Include "*.tsx","*.jsx" | Select-Object Name
# API 路由
Get-ChildItem -Recurse -Path "**/api/**" -Include "*.ts","*.js"
# 模型/模式
Select-String -Path "**/*.ts" -Pattern "interface|type|schema"
# TODO 注释
Select-String -Path "src/**/*" -Pattern "TODO|FIXME|HACK|XXX"
# 已弃用
Select-String -Path "**/*" -Pattern "@deprecated|DEPRECATED"
# 控制台语句(通常是调试残留)
Select-String -Path "src/**/*" -Pattern "console\.(log|debug|warn)"
# 架构
> 由 /map 于 {date} 生成
## 概述
{高层次系统描述}
## 系统图
{组件关系的 ASCII 图或描述}
## 组件
### {组件名称}
- **用途:** {它的作用}
- **位置:** `{路径}`
- **依赖项:** {它导入的内容}
- **被依赖项:** {导入它的内容}
## 数据流
{数据如何在系统中流动}
## 集成点
| 外部服务 | 类型 | 用途 |
|------------------|------|---------|
| {服务} | {API/数据库等} | {用途} |
## 约定
- **命名:** {模式}
- **结构:** {组织方式}
- **测试:** {方法}
## 技术债务
- [ ] {债务项及位置}
# 技术栈
> 由 /map 于 {date} 生成
## 运行时
| 技术 | 版本 | 用途 |
|------------|---------|---------|
| {技术} | {版本} | {用途} |
## 生产依赖项
| 包 | 版本 | 用途 |
|---------|---------|---------|
| {包} | {版本} | {用途} |
## 开发依赖项
| 包 | 版本 | 用途 |
|---------|---------|---------|
| {包} | {版本} | {用途} |
## 基础设施
| 服务 | 提供商 | 用途 |
|---------|----------|---------|
| {服务} | {提供商} | {用途} |
## 配置
| 变量 | 用途 | 必需 |
|----------|---------|----------|
| {变量} | {用途} | {是/否} |
完成映射前:
每周安装次数
–
代码仓库
GitHub 星标数
697
首次出现
–
安全审计
Core responsibilities:
Understand how the project is organized:
Map what the project depends on:
Identify how code is written:
Map external connections:
Surface issues to address:
Identify project type from markers:
# Node.js/JavaScript
Test-Path "package.json"
# Python
Test-Path "requirements.txt" -or Test-Path "pyproject.toml"
# Rust
Test-Path "Cargo.toml"
# Go
Test-Path "go.mod"
# .NET
Get-ChildItem "*.csproj"
# Get directory structure
Get-ChildItem -Recurse -Directory |
Where-Object { $_.Name -notmatch "node_modules|\.git|__pycache__|dist|build|\.next" } |
Select-Object FullName
For each ecosystem:
Node.js:
$pkg = Get-Content "package.json" | ConvertFrom-Json
$pkg.dependencies
$pkg.devDependencies
Python:
Get-Content "requirements.txt"
Search for common patterns:
# Components
Get-ChildItem -Recurse -Include "*.tsx","*.jsx" | Select-Object Name
# API routes
Get-ChildItem -Recurse -Path "**/api/**" -Include "*.ts","*.js"
# Models/schemas
Select-String -Path "**/*.ts" -Pattern "interface|type|schema"
# TODOs
Select-String -Path "src/**/*" -Pattern "TODO|FIXME|HACK|XXX"
# Deprecated
Select-String -Path "**/*" -Pattern "@deprecated|DEPRECATED"
# Console statements (often debug leftovers)
Select-String -Path "src/**/*" -Pattern "console\.(log|debug|warn)"
# Architecture
> Generated by /map on {date}
## Overview
{High-level system description}
## System Diagram
{ASCII or description of component relationships}
## Components
### {Component Name}
- **Purpose:** {what it does}
- **Location:** `{path}`
- **Dependencies:** {what it imports}
- **Dependents:** {what imports it}
## Data Flow
{How data moves through the system}
## Integration Points
| External Service | Type | Purpose |
|------------------|------|---------|
| {service} | {API/DB/etc} | {purpose} |
## Conventions
- **Naming:** {patterns}
- **Structure:** {organization}
- **Testing:** {approach}
## Technical Debt
- [ ] {Debt item with location}
# Technology Stack
> Generated by /map on {date}
## Runtime
| Technology | Version | Purpose |
|------------|---------|---------|
| {tech} | {version} | {purpose} |
## Production Dependencies
| Package | Version | Purpose |
|---------|---------|---------|
| {pkg} | {version} | {purpose} |
## Development Dependencies
| Package | Version | Purpose |
|---------|---------|---------|
| {pkg} | {version} | {purpose} |
## Infrastructure
| Service | Provider | Purpose |
|---------|----------|---------|
| {svc} | {provider} | {purpose} |
## Configuration
| Variable | Purpose | Required |
|----------|---------|----------|
| {var} | {purpose} | {yes/no} |
Before Completing Map:
Weekly Installs
–
Repository
GitHub Stars
697
First Seen
–
Security Audits
通过 LiteLLM 代理让 Claude Code 对接 GitHub Copilot 运行 | 高级变通方案指南
31,600 周安装