English | 简体中文
CLReq-backed Chinese web text, i18n, and focused layout checks for coding agents.
This skill helps Codex, Claude Code, and other coding agents that support the Agent Skills format review user-facing Chinese text in HTML, JSX, TSX, Vue, Svelte, Markdown, MDX, localization resources, and CSS. It reports concise findings with a suggested action, confidence level, and source citation.
Given a page containing:
<html lang="zh">
<p>今天下单, 明天发货.</p>
</html>and Chinese text rotated with CSS:
.vertical-label {
transform: rotate(90deg);
}ask the agent:
Use $clreq to review samples/web-smoke/index.html and samples/web-smoke/styles.css.
See the complete smoke sample and its expected review.
Install globally:
npx skills@latest add xfq/clreq-skills --skill clreq --globalInstall for the current project:
npx skills@latest add xfq/clreq-skills --skill clreqThe installable package is the self-contained skills/clreq/ directory.
You can also simply say the following in Claude Code, Codex, or another agent that supports Agent Skills:
install this skill: https://github.com/xfq/clreq-skills
Review selected files:
Use $clreq to review src/components/Checkout.tsx for Chinese text and layout issues.
Review the current change:
Use $clreq to review the files changed in the current diff.
Review the entire repository:
Use $clreq to scan this repository for Chinese text and layout issues.
The skill works from the files or diff already in scope by default. It scans the entire repository when explicitly requested, while excluding dependencies, generated files, caches, and build outputs unless they are included by the user.
The project separates the reusable rule package from agent-specific integration:
skills/clreq/: self-contained installable skill.rules/: authoring source for atomic rule cards.fixtures/: focused input and expected-review examples.schema/: JSON Schema for rule cards.adapters/: platform-specific development references.samples/: end-to-end review samples.
The installable skill lives in skills/clreq/. Its contents are synced copies of the authoring sources in the project root. After editing any source, sync the copies and verify.
After editing any source file (rules, fixtures, schema, or the reference adapter), sync the changes to skills/clreq/:
./scripts/sync.shThis copies all source directories into the packaged skill, copies the reference adapter as the packaged review workflow, and runs check-packaged-skill.sh to verify the result.
check-packaged-skill.sh diffs the source directories against the packaged copies and validates every rule card in rules/ against schema/rule-card.schema.json, exiting non-zero on any difference or invalid card. Run it after every sync to confirm the skill is ready to install.
The validation script needs the jsonschema package. Set up the dev dependency once:
python3 -m pip install -r requirements-dev.txtYou can also run the validation on its own:
python3 scripts/validate-rules.pyRules cite the sources they rely on. CLReq-backed rules link to Requirements for Chinese Text Layout or related W3C internationalization material. Web implementation guidance cites relevant HTML, CSS, Unicode, or other authoritative sources.
This project uses the W3C Software and Document License. See LICENSE.md.