用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/chinmay-sawant/gosourcemap --skill gosourcemapper-guide命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | gosourcemapper-guide |
| description | Guidelines for Go (Gin) and React (Vite) development in the gosourcemapper project. |
This document serves as a guideline for GitHub Copilot, Antigravity, and other AI coding assistants to ensure consistency, maintainability, and adherence to best practices within this codebase.
We follow the standard project layout:
├── cmd/
│ └── server/
│ └── main.go # Entry point. Initializes the app.
├── internal/ # Private application code (not importable by other projects).
│ ├── config/ # Configuration loading (e.g., env vars).
│ ├── handlers/ # HTTP handlers (controllers).
│ ├── models/ # Domain models and data structures.
│ ├── repository/ # Database access layer.
│ ├── middleware/ # Gin middleware (logging, auth, CORS).
│ ├── router/ # Route definitions.
│ └── service/ # Business logic.
├── pkg/ # Library code ok to use by external applications (if any).
├── docs/ # Swagger/OpenAPI docs.
└── go.mod
Handler struct that holds references to Service interfaces.gin.Context only in the Handler layer. Do not pass it down to services.v1 := router.Group("/v1")).binding:"required").ctx.Done()).Service, Repository) or er suffix (e.g., Reader, Writer).useState / useReducer for local state; Context API or external libraries (Zustand/Redux) for global state if complex.useMemo and useCallback judiciously to prevent unnecessary re-renders.docs/ and documentation/ updated.