Punctuation Fix — Development skill for Claude Code
自动批量修复 Markdown 文件中的标点符号,确保符合项目翻译标准.
How to install Punctuation Fix
Installs to ~/.claude/commands/linfee-spec-kit-cn-punctuation-fix.md
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/Linfee/spec-kit-cn/HEAD/.claude/commands/punctuation-fix.md -o ~/.claude/commands/linfee-spec-kit-cn-punctuation-fix.md Restart Claude Code, or start a new session, for it to be picked up.
What Punctuation Fix does
标点符号规范化命令
自动批量修复 Markdown 文件中的标点符号,确保符合项目翻译标准。
使用方式
/punctuation-fix [路径]
**参数**:
路径(可选): 要处理的文件或目录路径,默认为项目根目录下所有.md文件
执行步骤
1. 确定处理范围
根据参数确定要处理的文件:
- 如果未指定路径,处理项目根目录下所有
.md文件(排除.git/,spec-kit/,node_modules/等目录) - 如果指定的是文件,仅处理该文件
- 如果指定的是目录,处理该目录下所有
.md文件
2. 执行标点符号规范化
使用 `sed` 或 `perl` 进行批量替换,处理以下规则:
**中文标点 → 英文标点**:
| 中文标点 | 英文标点 | 说明 |
|---|---|---|
, |
, |
逗号后添加空格 |
。 |
. |
句号后添加空格 |
: |
: |
冒号后添加空 |
Alternatives in Development
- Fix Py Line Too Long 71.9k ★
- Grammar Check — Identify grammar and flow errors with targeted fix suggestions 7.8k ★
- n8n Validation Expert — Fix n8n validation errors with error catalog 3.6k ★
Full documentation available on GitHub
View Source RepositoryRelated Skills
Brain Health
Run a health check over the second brain - contradictions, broken/orphan links, duplicates, stale claims, sche
Fix Imports
Fix Broken Imports
04 Fix MCP Server
Prompt 04: Fix MCP Server Build
Fix Cookbook Recipe
Fix Cookbook Recipe Validation Failures
Build Fix
构建与修复 (Build and Fix)
Investigate Performance
Investigate a Nimbalyst performance problem (freeze, lag, idle CPU, slow op, memory growth) with measured evid
Related Agents
Systematic Debugger
Use this agent when you need to diagnose and fix bugs, errors, or unexpected behavior in code. This includes s
New Track
Create a new track (feature, bug fix, chore, or refactor) with a detailed specification and phased i... - wsho
Tend
Tend the Allium garden. Use when the user wants to write, edit, update, add to, improve, clarify, refine, rest