commit-rules

A set of project rules for writing Git commit messages and checking code before a commit. The rules are written in Korean and require a specific message format, Korean subjects, and project-specific formatting and lint commands.

In plain words
What is it for?
Use it when creating or proposing commits, deciding how to split changes, running the required checks, and recording a post-commit summary in an uncommitted Markdown file.
Why use it?
It reduces inconsistent commit history and helps catch formatting or lint problems before changes are committed.

Cursor rule for Cursor

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add rules/ohah/electron-mcp-server/commit-rules
Clone the repo
git clone --depth 1 https://github.com/ohah/electron-mcp-server

Made for: Cursor.

Per session 597 This file is loaded in full into every session.
When invoked 597 The same file — it is already loaded in full.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00597 $0.00597
Opus 5 $0.00298 $0.00298
Sonnet 5 $0.00119 $0.00119
Haiku 4.5 $0.00060 $0.00060

Measured yesterday against content hash 84cea1f610c6, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

commit-rules scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/rules/commit-rules.mdc · 62 lines

What it actually says

커밋 규칙

git 커밋을 만들거나 제안할 때 적용한다. 자세한 내용은 AGENTS.md 참고.

메시지 형식

<type>(<scope>): <subject>

<body>

<footer>
  • Type (필수): feat | fix | refactor | test | docs | chore | style
  • Scope (선택): server | mcp | client | docs | scripts | config
  • Subject (필수): 명령형, 50자 이내, 마침표 없음. 한글로 작성.
  • Body (선택): 72자마다 줄바꿈; 무엇을·왜 했는지 설명. 한글로 작성.
  • Footer (선택): breaking change, 이슈 참조

원칙

  1. 커밋 하나당 목적 하나
  2. 관련 없는 변경은 별도 커밋으로 분리
  3. 각 커밋은 독립적으로 의미 있어야 함
  4. 작고 논리적인 단위 선호

예시

feat(mcp): MCP 서버용 stdio 트랜스포트 추가

- @modelcontextprotocol/sdk로 StdioServerTransport 구현
- Cursor/Claude Desktop용 샘플 도구 등록
fix(server): stdio 종료 시 연결 해제 처리

- 프로세스 종료 시 트랜스포트 정리

커밋 전 (필수)

도구 버전은 mise 사용 (.mise.toml 참고). 포맷/린트는 프로젝트의 bun을 쓰도록 mise exec -- 로 실행한다.

TypeScript/JavaScript: mise exec -- bun run format 실행 후 mise exec -- bun run lint 실행; 변경된 파일 스테이징 후 커밋.

커밋 후 (필수)

커밋한 뒤 MD 파일에 요약을 쓴다. 파일에는 다음이 포함되어야 한다.

  1. 제목 (예: 브랜치 이름 또는 커밋 제목)
  2. 작업 내용: 무엇을 했는지 — 목표, 변경 사항, 결과를 문장으로 (PR 스타일). 테스트 추가·수정이 있으면 언급 (예: "…에 대한 테스트 추가" 또는 "테스트 커버리지에 … 포함").

이 MD 파일은 커밋하지 않는다 (.gitignore에 넣거나 unstaged로 둔다).

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 62 lines · 597 tokens per session scan A 84cea1f610c6

Subscribe to this mod's changes

commit-rules is a cursor rule published in the GitHub repository ohah/electron-mcp-server (4 stars, last pushed 5mo ago), licensed MIT. It adds 597 tokens to every session, about $0.0030 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.