# Chinese Copywriting Linter

> Lint and automatically format Chinese copywriting and typesetting in Markdown documents according to the Chinese Copywriting Guidelines. Make sure to use this skill whenever the user asks to format, check, clean, lint, or correct spacing, punctuation, and capitalization in Chinese text or documentation, even if they don't explicitly mention 'Chinese Copywriting Linter'.

- **Type:** Skill
- **Install:** `agentstack add skill-hankunpeng-skills-chinese-copywriting-linter`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [hankunpeng](https://agentstack.voostack.com/s/hankunpeng)
- **Installs:** 0
- **Category:** [Developer Tools](https://agentstack.voostack.com/c/developer-tools)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [hankunpeng](https://github.com/hankunpeng)
- **Source:** https://github.com/hankunpeng/skills/tree/main/skills/chinese-copywriting-linter

## Install

```sh
agentstack add skill-hankunpeng-skills-chinese-copywriting-linter
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Chinese Copywriting Linter

A skill to check and auto-correct Chinese typesetting and copywriting style violations in Markdown files, based on the Chinese Copywriting Guidelines.

## When to use

Use this skill when you need to:
- Check for styling issues in Chinese `.md` files.
- Automatically format and correct Chinese writing files (spacing, punctuation, capitalization).
- Ensure consistency in mixed Chinese-English text.

## Core Rules enforced by the Linter

1. **Spacing (空格)**:
   - Must have a space between CJK characters and Latin/numeric characters.
   - Must have a space between numbers and units (e.g., `10 Gbps`).
   - Must not have a space between numbers and degree/percentage symbols (e.g., `90°`, `15%`).
   - Must not have spaces before or after fullwidth punctuation in Chinese text.
   - Must have a space before and after range tilde `~` (e.g., `50 Hz ~ 8000 Hz`).
2. **Punctuation (标点)**:
   - Must use fullwidth punctuation in Chinese text (e.g. `！`, `，`, `？`).
   - Must not duplicate punctuation (e.g. avoid `！！`, `？？`).
   - Must use halfwidth punctuation within pure English phrases or code snippets.
   - Must use Chinese corner brackets `「` and `」` instead of Chinese double quotation marks `“` and `”` for first-level quotes (e.g., replace `“检查”` with `「检查」`), and double corner brackets `『` and `』` instead of single quotation marks `‘` and `’` for nested quotes (e.g., replace `‘检查’` with `『检查』`).
3. **Numbers (数字)**:
   - Must use halfwidth numbers (e.g. `1234` instead of `１２３４`).
4. **Casing (大小写)**:
   - Proper capitalization of technology names (e.g. `GitHub`, `TypeScript`, `JavaScript`, `Next.js`, `React`, `HTML5`, `CSS3`, `VS Code`, `Node.js`, `iPhone`, `MacBook`, `iPad`, `LeanCloud`).

## How to execute the Linter

This skill includes a Python script `linter.py` located in the `scripts/` directory of the skill.

### 1. Run in linting (dry-run) mode
To scan a file or directory for style violations without modifying the content, run:
```bash
python3 /scripts/linter.py 
```

### 2. Run in auto-fix mode
To automatically fix all solvable violations directly in the source file:
```bash
python3 /scripts/linter.py --fix 
```

## User Communication

After executing the linter, report the findings clearly:
- If issues were found and fixed, show the count of total issues fixed and highlight a few key examples.
- If run in check-only mode, display a detailed report of line numbers, columns, and what violations occurred.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [hankunpeng](https://github.com/hankunpeng)
- **Source:** [hankunpeng/skills](https://github.com/hankunpeng/skills)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-hankunpeng-skills-chinese-copywriting-linter
- Seller: https://agentstack.voostack.com/s/hankunpeng
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
