agentleFS
SanHsienSanHsien/agent-skills/.cursor/rules/no-upstream-pr.mdc

agent-skills / rules

Cursor rule1 starsChanged 10 days agoMITView on GitHub

PR、push、release 一律指向 SanHsien/agent-skills;回貢上游需要當次對話明確同意

  • Commits and pushes

The file

Files
no-upstream-pr.mdc
---
description: PR、push、release 一律指向 SanHsien/agent-skills;回貢上游需要當次對話明確同意
alwaysApply: true
---

# 對外只打本 fork

本 repo fork 自 [`addyosmani/agent-skills`](https://github.com/addyosmani/agent-skills)(MIT)。
PR、push、release 一律指向 `SanHsien/agent-skills`。

**根因是機制不是粗心:** `gh` 在 fork clone 的預設 repo 就是上游,裸跑 `gh pr create` 必然打上去。

```powershell
gh repo set-default SanHsien/agent-skills   # 每個 clone 先跑一次
gh repo set-default --view                 # 必須回 SanHsien/agent-skills
gh pr create --repo SanHsien/agent-skills --base main --head <分支>
```

建完**讀輸出的 URL**,owner 必須是 `SanHsien`。不是就立刻 `gh pr close` 留言道歉說明開錯 repo,
再對 origin 重開,並主動告訴維護者。

**唯一例外:** 維護者在**這次對話**明確同意回貢上游。fork、建環境、開 PR、比照其他 repo、
合併回 main、「所有專案都照做」都不是例外。判準見 [`FORK.md`](../../FORK.md):
修的是上游的 bug 就送回去,這裡獨創的文件與 Windows 維護骨架留在這裡。

也不要 push 到 `upstream` remote,不要 force-push `main`,不要刪 `upstream` remote。

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.