nsforge-mcp: Skill for Claude Code

.claude/skills/git-precommit/SKILL.md

git-precommit is a skill for Claude Code from u9401066/nsforge-mcp. It costs 0 tokens per session (677 once invoked), scanned A, original, Apache-2.0.

A Git pre-commit workflow coordinator that runs selected checks and documentation updates before a change is committed. It can synchronize a project memory file and update the README, changelog, roadmap, and architecture documents.

In plain words
What is it for?
Use it when preparing a Git commit or push, including skipping selected documentation updates or running a quick or dry-run version.
Why use it?
It reduces the chance of forgetting project records or required checks before committing code. It also lets you preview the work or run only the required memory synchronization.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is u9401066/nsforge-mcp's own configuration. It tells Claude Code how to work on nsforge-mcp itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything nsforge-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to u9401066/nsforge-mcp. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/u9401066/nsforge-mcp/master/.claude/skills/git-precommit/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/u9401066/nsforge-mcp

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for git-precommit

README.md
[![agentmods](https://agentmods.dev/badge/skills/u9401066/nsforge-mcp/git-precommit/github.svg)](https://agentmods.dev/skills/u9401066/nsforge-mcp/git-precommit)
Your own site
<a href="https://agentmods.dev/skills/u9401066/nsforge-mcp/git-precommit"><img src="https://agentmods.dev/badge/skills/u9401066/nsforge-mcp/git-precommit/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for git-precommit

Your own site · 80×15
<a href="https://agentmods.dev/skills/u9401066/nsforge-mcp/git-precommit"><img src="https://agentmods.dev/badge/skills/u9401066/nsforge-mcp/git-precommit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 677 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00000 $0.00677
Opus 5.5 $0.00000 $0.00271
Sonnet 5.5 $0.00000 $0.00135
Haiku 4.5 $0.00000 $0.00068

Measured 1mo ago against content hash 5078facb73c5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

git-precommit 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 1mo ago.

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.

Origin

Copies of this mod

4 near-identical copies found in the catalogue:

.claude/skills/git-precommit/SKILL.md · 79 lines

What it actually says

Git 提交前工作流(編排器)

描述

協調多個 Skills 完成 Git 提交前的所有準備工作。

觸發條件

  • 「準備 commit」「要提交了」「git commit」

法規依據

  • 憲法:CONSTITUTION.md 第三章
  • 子法:.github/bylaws/git-workflow.md

執行流程

┌─────────────────────────────────────────────────┐
│              Git Pre-Commit Orchestrator        │
├─────────────────────────────────────────────────┤
│  Step 1: memory-sync     [必要] Memory Bank 同步 │
│  Step 2: readme-update   [可選] README 更新      │
│  Step 3: changelog-update[可選] CHANGELOG 更新   │
│  Step 4: roadmap-update  [可選] ROADMAP 更新     │
│  Step 5: arch-check      [條件] 架構文檔檢查     │
│  Step 6: commit-prepare  [最終] 準備提交         │
└─────────────────────────────────────────────────┘

參數

參數 說明 預設
--skip-readme 跳過 README 更新 false
--skip-changelog 跳過 CHANGELOG 更新 false
--skip-roadmap 跳過 ROADMAP 更新 false
--dry-run 只預覽不修改 false
--quick 只執行必要步驟 (memory-sync) false

使用範例

「準備 commit」           # 完整流程
「快速 commit」           # 等同 --quick
「commit --skip-readme」  # 跳過 README

輸出格式

🚀 Git Pre-Commit 工作流

[1/6] Memory Bank 同步 ✅
  └─ progress.md: 更新 2 項
  └─ activeContext.md: 已更新

[2/6] README 更新 ✅
  └─ 新增功能說明

[3/6] CHANGELOG 更新 ✅
  └─ 添加 v0.2.0 條目

[4/6] ROADMAP 更新 ⏭️ (無變更)

[5/6] 架構文檔 ⏭️ (無結構性變更)

[6/6] Commit 準備 ✅
  └─ 建議訊息:feat: 新增用戶認證模組

📋 Staged files:
  - src/auth/...
  - docs/...

準備好了!確認提交?
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. 1mo ago First seen · 79 lines · 0 tokens per session scan A 5078facb73c5

Subscribe to this mod's changes

git-precommit is a skill published in the GitHub repository u9401066/nsforge-mcp (4 stars, last pushed 1mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 677 tokens. 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.

Related

Other skills, from other repositories

gitignore-narrowing

Use when narrowing or rewriting a .gitignore pattern so that some previously-ignored files become trackable, before staging or committing that change. Symptoms/keywords — gitignore anchoring, git check-ignore, middle-slash patterns, testdata/ narrowing, newly-visible or newly-untracked files, git add -A, git add .

toejough/engram · 73 tokens

caveman-commit

Write a Conventional Commits message compressed to intent only. Use for "write a commit", "commit message", /commit or /caveman-commit.

JuliusBrussee/caveman · 38 tokens

contextual-commit

Write contextual commits that capture intent, decisions, and constraints alongside code changes. Use when committing code, finishing a task, or when the user asks to commit. Extends Conventional Commits with structured action lines in the commit body that preserve WHY code was written, not just WHAT changed.

yamadashy/repomix · 62 tokens

feature-publish

Commit the feature, write the PR body, publish in the selected mode, and drive the PR.

omnigent-ai/omnigent · 24 tokens

meta-pre-commit-quality-gate

Run three quality gates (ruff + mypy + pytest) in parallel over the staged diff, then arbitrate a single BLOCK/APPROVE verdict. Use before committing changes locally when you want a comprehensive pre-commit gate beyond per-file linting — exactly the same gate set CI enforces.

opensquilla/opensquilla · 68 tokens

commit-push-pr

Commit current changes, push to remote, and create or update a pull request. Use when the user wants to commit and create a PR, push changes and open a pull request, or ship their current work as a PR.

dyoshikawa/rulesync · 50 tokens