Skip to content

CI:禁止将 .cursor/ 再次提交进仓库 - #2

Closed
xiaonancs wants to merge 16 commits into
mainfrom
cursor/block-cursor-dir-ci-cced
Closed

CI:禁止将 .cursor/ 再次提交进仓库#2
xiaonancs wants to merge 16 commits into
mainfrom
cursor/block-cursor-dir-ci-cced

Conversation

@xiaonancs

Copy link
Copy Markdown
Owner

背景

.cursor/ 属于 Cursor IDE 的本地目录;一旦被 git add 跟踪,就会在克隆、合并和自动化任务中反复出现,并带来误提交敏感内容的风险。

变更

新增 GitHub Actions 工作流 block-cursor-in-repo.yml,在 push 到 main所有 PR 上执行:

  1. git ls-files -- .cursor/ 非空,则工作流失败(说明有人把 .cursor/ 下的文件加进了版本库)。
  2. .gitignore 中缺少 .cursor/ 条目,则工作流失败(防止误删忽略规则后再次提交)。

与现有的 .gitignore 规则互补:忽略规则防「无意提交」,CI 防「刻意或工具误跟踪」。

合并后

请在仓库 Settings → Branches → Branch protection rules 中为 main 勾选 Require status checks to pass,并选中该工作流对应的 check,这样无法在未通过检查的情况下合并。

Open in Web Open in Cursor 

xiaonancs and others added 16 commits April 16, 2026 12:10
总纲 + 全网调研 + 3 Part 28 章:
- Part I 原理与使用(9 章):项目全景、核心循环、Prompt、Provider、记忆、Skill、自进化
- Part II 源码分析(14 章):工具系统、沙箱执行、MCP、Gateway、插件、安全、RL
- Part III 对比分析(5 章):OpenClaw 架构对比、EvoMap 自进化对比、Skill/记忆三方对比、开源伦理

源码基线:hermes-agent v0.9.0, openclaw latest, evolver latest (April 2026)

Made-with: Cursor
主要变更:
- Part I 新增 ch03 初级使用方法 + ch04 高级使用方法(基于官方文档全网调研)
- Part III 改名为"同源项目对比分析",新增 ch28 OpenHarness/JiuwenClaw 对比 + ch29 全网 Harness 全景
- ch30/ch31 扩展为多项目对比(原三方 -> 五方:+OpenHarness +JiuwenClaw)
- 全部章节重编号(28 章 -> 32 章),H1 标题统一 Arabic 格式
- "本书/全书" 统一替换为 "本研究"
- scripts/ 文件去 book- 前缀(chapters.yaml, prompt-template.md)
- source-analysis-book skill 目录重命名为 source-analysis

源码基线新增:OpenHarness v0.1.6 (9.8k stars), JiuwenClaw latest (398 stars)

Made-with: Cursor
Made-with: Cursor
- Part I 原理与使用 → part1-principles-and-usage
- Part II 源码分析 → part2-source-analysis
- Part III 同源项目对比分析 → part3-comparative-analysis
- Appendix → appendix
- update all path references in README and chapters.yaml

Made-with: Cursor
Made-with: Cursor
- tighten wording and chapter numbering across the study
- clarify advanced usage positioning around autoresearch and batch flows
- add the cover banner to README and sync local source-analysis skill

Made-with: Cursor
- add a dedicated autoresearch section to chapter 4 with workflow diagrams and community cases
- sync README, outline, and community survey navigation while softening Python language-choice claims

Made-with: Cursor
- relocate the banner image into appendix
- update the README banner path accordingly

Made-with: Cursor
- rename part directories to Part I/II/III title-cased names
- rename appendix to Appendix and update README links accordingly

Made-with: Cursor
- add a quick directory near the top of the README
- harden Mermaid white-background wrappers across the study docs
- add project-local skills for mermaid review and source-analysis guidance

Made-with: Cursor
Stop tracking Cursor IDE skills under .cursor/ and add .cursor/ to
.gitignore so local Cursor configuration is not re-committed.

Co-authored-by: xiaonan <xiaonancs@users.noreply.github.com>
Add a GitHub Actions check on push and pull requests so paths under
.cursor/ cannot be merged again, complementing .gitignore.

Co-authored-by: xiaonan <xiaonancs@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants