mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/mihomo-party-org/clash-party.git
synced 2026-09-20 08:03:39 +08:00
docs: add AGENTS.md and CLAUDE.md restricting AI agents from bypassing commit checks
This commit is contained in:
14
AGENTS.md
Normal file
14
AGENTS.md
Normal file
@@ -0,0 +1,14 @@
|
||||
# AGENTS.md
|
||||
|
||||
## Commit rules
|
||||
|
||||
- NEVER use `git commit --no-verify` or any other way to bypass git hooks.
|
||||
- NEVER use `git push --no-verify`.
|
||||
- The pre-commit hook runs `format:check`, `lint:check`, `typecheck`. Every commit must pass all three.
|
||||
- If the hook fails, fix the root cause and retry. Never bypass.
|
||||
- Run `pnpm run format:check && pnpm run lint:check && pnpm run typecheck` before committing.
|
||||
|
||||
## Generated files
|
||||
|
||||
- Do not edit `pnpm-lock.yaml` directly; change dependencies via pnpm.
|
||||
- Do not edit `extra/sidecar/` or `node_modules/.temp/`; they are generated by `scripts/prepare.mjs`.
|
||||
16
CLAUDE.md
Normal file
16
CLAUDE.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# CLAUDE.md
|
||||
|
||||
## Commit rules
|
||||
|
||||
- NEVER use `git commit --no-verify` or any other way to bypass git hooks.
|
||||
- NEVER use `git push --no-verify`.
|
||||
- The pre-commit hook runs `format:check`, `lint:check`, `typecheck`. Every commit must pass all three.
|
||||
- If the hook fails, fix the root cause and retry. Never bypass.
|
||||
- Run `pnpm run format:check && pnpm run lint:check && pnpm run typecheck` before committing.
|
||||
|
||||
## Generated files
|
||||
|
||||
- Do not edit `pnpm-lock.yaml` directly; change dependencies via pnpm.
|
||||
- Do not edit `extra/sidecar/` or `node_modules/.temp/`; they are generated by `scripts/prepare.mjs`.
|
||||
|
||||
Same rules as `AGENTS.md` (for other AI tools).
|
||||
Reference in New Issue
Block a user