仓库定位

sodejm2026-10-25查看 194复制 1987

在开始不熟悉的工作之前,确立仓库契约、相关文件、Git 状态、命令和约束。

Download (.md)

📘如何使用这个技能

  1. 1
    复制技能内容·点击上方「Copy SKILL.md」复制全部内容,或 Download 下载到本地
  2. 2
    打开你的 AI 客户端·支持 Claude Code、Trae、Cursor、ChatGPT、DeepSeek、Kimi 等任意 AI 助手
  3. 3
    粘贴为系统提示/知识文件·Claude Code:放入 .claude/skills/ 目录;普通对话:作为首条消息发送并说「请严格按这份技能文档执行」
  4. 4
    直接提出你的需求·AI 会按技能定义的工作流、格式和约束来处理,无需再解释背景

💡 提示:技能生效后,每次对话只需一句需求,AI 会按 SKILL.md 的流程执行。

SKILL.md948 chars
---
name: repository-orientation
description: Establish the repository contract, relevant files, Git state, commands, and constraints before starting unfamiliar work.
---

# Repository orientation

Use this skill at the start of substantive work in an unfamiliar checkout.

1. Read the root and nearest `AGENTS.md` files plus the task-relevant README or docs.
2. Inspect `git status --short --branch`, the current branch, worktree, and remotes.
3. Locate project-owned entry points such as `Makefile`, task runners, manifests,
   lockfiles, CI workflows, and relevant tests.
4. Identify unrelated changes and avoid overlapping them.
5. State the requested outcome, smallest likely scope, validation plan, and any
   assumption that could materially change the work.

Do not install dependencies, change files, contact external services, or execute
unknown scripts merely to orient. Report environmental blockers separately from
repository defects.
来源:skillsdirectory

评论0

登录后参与评论

还没有评论,来抢沙发吧