skill-language-policy
Skill18 starsChanged 7 months agoMITView on GitHub
Define the repository-wide language policy for Trae Skills. Use when creating, refactoring, or reviewing Skills that need consistent rules for English machine-facing structure, retained Chinese trigger phrases, and agent-first language decisions, including Chinese requests such as skill 语言规范, Skill 中英文怎么分层, 哪些字段必须英文, 触发短语是否该保留中文, or 检查 skill 是否过度英文化.
In this repository37 other files it gives its agents.
- a11y-debuggingSkill
- agent-blueprint-architectSkill
- brainstormingSkill
- chart-visualizationSkill
- chinese-copywritingSkill
- chinese-git-workflowSkill
- chrome-devtoolsSkill
- creating-trae-rulesSkill
- debug-optimize-lcpSkill
- discovering-subagent-capabilitiesSkill
- dispatching-parallel-agentsSkill
- everything-searchSkill
- executing-plansSkill
- find-docsSkill
- finishing-a-development-branchSkill
- frontend-designSkill
- gh-cliSkill
- git-commitSkill
- image-manipulation-python-magickSkill
- memory-kernelSkill
- memory-leak-debuggingSkill
- mineru-to-mdSkill
- model-config-lookupSkill
- receiving-code-reviewSkill
- requesting-code-reviewSkill
- self-improvementSkill
- skill-creatorSkill
- skill-stability-reviewSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- troubleshootingSkill
- using-git-worktreesSkill
- verification-before-completionSkill
- visual-brainstormingSkill
- workflow-runnerSkill
- writing-plansSkill
The file
We split this skill into the rules it gives an agent
7 rules. About 0 are common, 4 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Do not use this Skill when:
- Distinctive: line 20
Every file in a Skill package must be classified into one of these layers before applying language rules:
- Very specific: line 47
When a template appears inside SKILL.md or another Skill asset, review it in two layers before deciding the language:
- Very specific: line 50
If a template block is meant to be delivered directly to a Chinese-speaking user, do not leave English filler such as Chinese Name, …
- Distinctive: line 57
Structure Before Language: If a file needs both structural simplification and language unification, stabilize the structure (inputs, …
- Very specific: line 61
When reviewing Skills (e.g., via skill-stability-review), apply these standards:
- Distinctive: line 62
Do not flag a file as defective simply because it contains "too much Chinese".
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Skill Language Policy
This policy lives as a standard Skill package so it follows the same packaging and entrypoint conventions as other repository Skills. It is primarily a repository policy asset referenced by Skill creation and review workflows.
Purpose
This policy defines the standard language rules for all Trae Skills in this repository. Its goal is to maintain a stable, predictable, and machine-readable execution environment for AI agents while preserving natural communication for Chinese-speaking users. All rules prioritize agent-first stability over pure human readability or internationalization.
Do Not Use
Do not use this Skill when:
- The task is to create, refactor, or review ordinary application code unrelated to Trae Skills.
- The user only wants general English writing polish, translation, or copy editing without Skill packaging concerns.
- The task is about tool/runtime debugging, repository release readiness, or code quality rather than Skill language-layer decisions.
Asset Layers
Every file in a Skill package must be classified into one of these layers before applying language rules:
trigger asset: Improves auto-invocation and request matching (e.g.,SKILL.mddescription, trigger examples).execution contract: Defines ordered steps, inputs, outputs, success criteria, and failure handling (e.g.,SKILL.mdbody).template/prompt asset: Provides reusable skeletons, slots, or structured prompts the agent can fill (e.g.,*-prompt.md, role templates).reference asset: Supplies supporting patterns, deeper examples, schemas, or domain context loaded on demand.human-oriented example: Shows representative behavior, primarily designed for human reading.
English-Required Layers
The following machine-sensitive elements MUST be written in English or their original technical form to ensure structural stability:
- Section headings in
SKILL.md(e.g.,Overview,Use This Skill,Input Contract,Output Contract). - Machine-facing output field names and structured response keys in prompts, reviewer assets, templates, scripts, and other extraction-sensitive interfaces.
- State values and status markers (e.g.,
success,in_progress,failed). - CLI flags, arguments, and command names.
- JSON keys and config keys.
- Tool names, API names, and environment variables.
- Structural placeholders, template slot names, and script interfaces.
- Structural rules and keys in prompt, reviewer, or role assets.
Chinese-Retained Layers
Chinese is allowed and preferred in the following areas to ensure natural interaction:
- Trigger phrases and natural use cases inside the
descriptionfrontmatter. - Examples of how a Chinese-speaking user would state their request.
- User-facing conversational summaries, clarifying questions, or progress reports.
- Short explanatory sentences that explicitly help Chinese users understand constraints or steps, provided they do not break machine readability.
- User-facing sample values, placeholder prose, and final-delivery example content inside templates, unless a downstream parser requires a fixed English form.
Template Output Rules
When a template appears inside SKILL.md or another Skill asset, review it in two layers before deciding the language:
- Structure layer: Field keys, section names, slot names, and parser-sensitive markers stay in English or the original technical form when they are needed for stable execution.
- Rendered content layer: Example values, helper prose, placeholder text, and direct-delivery skeleton content must follow the target user's language.
- If a template block is meant to be delivered directly to a Chinese-speaking user, do not leave English filler such as
Chinese Name,Describe here, orAs neededinside the rendered content layer unless that English term is itself the required technical artifact. - Technical tokens such as tool names, protocol names, capability names, API names, and UI-aligned product terms may remain in their original form inside otherwise Chinese output when translation would reduce precision.
Migration Strategy
- Rule First: This policy applies immediately to all newly created Skills and assets.
- Incremental Migration: Legacy files should be migrated progressively when they are touched for other reasons, rather than through massive, disruptive rewrites.
- Execution Chain Priority: Core execution-chain Skills (e.g.,
executing-plans,workflow-runner) must be migrated first to establish stable templates. - Structure Before Language: If a file needs both structural simplification and language unification, stabilize the structure (inputs, outputs, boundaries) before rewriting the language.
- First-Round Exemptions:
examples/, mostreferences/, and human-oriented Chinese sample documents are not required to be translated to English in the first migration pass.
Review Rules
When reviewing Skills (e.g., via skill-stability-review), apply these standards:
- Do not flag a file as defective simply because it contains "too much Chinese".
- Flag an issue only if:
- Section headings in
SKILL.mdare not unified in English. - Machine-sensitive layers (JSON keys, CLI flags, machine-facing output fields) use Chinese.
- Prompt/reviewer assets contain structural Chinese keys.
- User-facing delivery templates keep English placeholder prose or sample values where Chinese should be used.
- Direct-delivery tables or helper copy use English state words without a parser or product-term reason.
- The
descriptionis missing Chinese trigger phrases.
- Section headings in
- Reviewers must verify that language unification does not blur the execution contract, weaken failure handling, or accidentally remove valid Chinese triggers.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

