trae-community/trae-skills/cn-punctuation-checker
Claude Code and agent skill by trae-community/trae-skills
- community
Checking that the SKILL.md file is still in the repository.
Checks Chinese text for incorrect English punctuation marks. Invoke when user wants to find and fix wrong punctuation in Chinese copy.
Install
npx vskill@latest install trae-community/trae-skills/cn-punctuation-checkerSKILL.md
The same SKILL.md was published earlier as trae-community/trae-skills/cn-punctuation-checker.
Chinese Punctuation Checker
A skill for detecting incorrect English punctuation marks in Chinese text.
Features
- Auto Detection: Detect English punctuation marks incorrectly used in Chinese text
- Precise Location: Report line number, column number, and context snippet for each error
- Report Generation: Output Markdown format inspection report
- Batch Fix: One-click replacement of all incorrect punctuation with correct Chinese punctuation
- Project-wide Scan: Support scanning entire project with automatic exclusion of code files
Supported Punctuation Marks
| English | Chinese | |
|---|---|---|
| , | , | |
| . | 。 | |
| ? | ? | |
| ! | ! | |
| : | : | |
| ; | ; | |
| " | " or " | |
| ' | ' or ' | |
| ( ) | ( ) | |
| [ ] | 【 】 | |
| - | — | |
| ... | …… |
Usage
1. Check a Single File
Users can provide a file path or file content, and the skill will automatically analyze and generate a report.
2. Check Entire Project
Use the following command to check the entire project:
The skill will automatically:
- Scan text files in the project (including .js, .ts script files)
- Exclude code files (.py, .java, .go, .cpp, .c, .cs, .php, .rb, .swift, .kt, .css, etc.)
- Exclude build directories (node_modules, .git, dist, target, build, out, etc.)
3. Scan Scope
Default file types to check (text files):
.md- Markdown documents.txt- Text files.html,.htm- HTML files.xml- XML files.json- JSON files (only check string values).yml,.yaml- YAML config files.properties- Properties files.vue,.jsx,.tsx,.js,.ts- Framework template files and script files
Default excluded directories:
node_modules.gitdisttargetbuildout.idea.vscode__pycache__.next.nuxt
Default excluded file types (code files):
.css,.scss,.less,.sass.py.java.go.cpp,.c,.h,.hpp.cs.php.rb.swift.kt.rs.sql
4. Generate Report
After checking, generate a Markdown format report including:
- Original content of incorrect punctuation
- Location info (file path, line number, column number)
- Context snippet
- Suggested correct Chinese punctuation replacement
5. Batch Fix
Provide one-click fix functionality to automatically replace all detected incorrect punctuation with correct Chinese punctuation.
Output Format Example
Execution Flow
- Scan Project: Traverse project directory, filter text files
- Filter Exclusions: Exclude code files and specified directories
- Read Content: Read each qualified file
- Detect Errors: Use regex to identify English punctuation marks
- Record Location: Record file path, line number, column number for each error
- Generate Report: Output Markdown format inspection report
- Provide Fix: Offer batch fix option
Smart Detection Rules
To avoid false positives, the skill uses the following smart detection rules:
- Only check lines containing Chinese characters: Skip lines without Chinese characters
- Exclude URLs and file paths: Do not replace punctuation in URLs or file paths
- Exclude strings in code: Skip code strings even in allowed file extensions
- Exclude comments: Skip Markdown code blocks, HTML comments, etc.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/cn-punctuation-checker/SKILL.md
Popularity
- Repository stars
- 21
- Repository forks
- 23
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/trae-community/trae-skills/cn-punctuation-checker)