feat(infra): 同步 Windows 跨平台规范与 Markdown-First 协作流
- 吸收来自 hose-sealai-bridge 仓库的近期协作与开发规范演进 - 增强 Git Hooks 防护体系: - .githooks/pre-commit:拦截主干分支 (main/master) 直接提交,校验分支全小写与设备前缀,拦截 >15MB 单文件与 Windows 非法字符/保留设备名 - .githooks/pre-push:拦截向远端推送含大写字母的分支名 - .githooks/branch-guard.sh:增加大写字符强校验 - .githooks/setup.sh & setup.ps1:跨平台一键配置 hooksPath、autocrlf 与 symlinks - 跨平台与敏感文件防护: - 新增 .gitattributes 固化 LF 换行符(防止 Windows 下 CRLF 篡改 Shell 脚本) - 更新 .gitignore 增加 .env、*.pem、*.key 及 .drafts/* 忽略 - 确立 Markdown 实体先行标准 (Markdown-First): - 设立 .drafts/ 目录作为草稿落盘规范 - 新增项目级 Skill .agents/skills/repo-gh/SKILL.md - 新增 .agents/rules/windows-development.md - 更新 .agents/rules/issue-pr-workflow.md、.agents/rules/branch-naming.md、.agents/README.md 与 AGENTS.md
This commit is contained in:
1 parent
6379702a42
commit
f906fa25c3
15 files changed
+436
-12
No files matched your search
+1
-1
@@ -35,7 +35,7 @@
|
||||
"generate:linter-plaintext": "bun run scripts/generate-linter-plaintext.mjs",
|
||||
"verify:linter-plaintext": "bun run scripts/check-linter-plaintext.mjs",
|
||||
"test": "bun test",
|
||||
"prepare": "git config core.hooksPath .githooks",
|
||||
"prepare": "git config core.hooksPath .githooks && git config core.autocrlf false",
|
||||
"generate:embedded-skill": "bun run scripts/generate-embedded-skill.mjs",
|
||||
"verify:embedded-skill": "bun run scripts/check-embedded-skill.mjs",
|
||||
"generate:cli-md": "bun run scripts/generate-cli-md.mjs",
|
||||
|
||||
Reference in new issue
Block a user