chore: 配置 Cursor Cloud 开发环境并验证一致性护栏#10
Closed
deusyu wants to merge 1 commit into
Closed
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
这是一个纯 Markdown 知识档案仓库,没有构建/安装/依赖步骤(无
package.json、无运行时、无服务进程)。唯一的"应用"是纯 bash 一致性护栏scripts/check-consistency.sh(C1–C8 校验),并通过 git pre-commit hook 与 CI 强制执行。本次改动
AGENTS.md:新增## Cursor Cloud specific instructions,说明本仓库无构建/安装步骤、lint/test/build/run 统一为bash scripts/check-consistency.sh、pre-commit 护栏由启动脚本启用、C8 在干净 clone 上 SKIP 属正常现象。git config core.hooksPath .githooks(幂等、低风险,启用机械化护栏)。所有工具(bash/grep/sed/find/seq/sort/awk/git)VM 已自带,无需安装依赖。验证(hello world = 机械化护栏的反馈回路)
bash scripts/check-consistency.sh→ C1–C7 全 PASS,C8 SKIP,退出码 0。git commit→ pre-commit hook 阻断提交(退出码 1)。AGENTS.md改动 → pre-commit 护栏自动运行并通过(happy path 提交成功)。consistency_guard_demo.log
To show artifacts inline, enable in settings.