Skip to content
Back to skills

Ywc Setup Language

ASecurity

(ywc) Set or inspect the persistent output language for ywc-generated documents, PRs, and commit messages.

  • 8 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 2, 2026
ai-agentsgobash

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned November 9, 2026

npx -y skills add yongwoon/ywc-agent-toolkit --skill ywc-setup-language --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Ywc Setup Language?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Ywc Setup Language
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/yongwoon-ywc-setup-language/badge)](https://www.skillsdirectory.com/skills/yongwoon-ywc-setup-language)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: ywc-setup-language
version: 1.0.0
description: (ywc) Set or inspect the persistent output language for ywc-generated documents, PRs, and commit messages.
disable-model-invocation: true
category: config
phase: setup
requires: []
advisor_budget: 0
allowed tools: Read, Edit, Write, Bash, Grep, Glob
---

# Setup Language Skill

**Announce at start:** "I'm using the ywc-setup-language skill to persist the output language into the appropriate CLAUDE.md."

Persist a project- or user-level **output language** into a canonical `## Language Policy`
section of the appropriate `CLAUDE.md`, so every language-aware `ywc-*` skill produces
documents, PR text, and commit messages in that language with no per-call `--lang` flag and
no per-call prompt. Reading the policy back is a separate `--show` mode.

This skill only **writes** the policy. How consuming skills **read and resolve** it (the
precedence chain, code list, and section format) is defined once elsewhere:

> After normalizing the input (below), run `bash "${CLAUDE_SKILL_DIR}/../scripts/resolve-language.sh" --emit-section <code>`.
> It prints the canonical `## Language Policy` section body (with `<code>` substituted) — write it verbatim into the target `CLAUDE.md`.

## Rationalization Defense

When tempted to skip a rule, check this table first:

| Excuse | Reality |
|---|---|
| "The file already has some language note, I'll just append a new section" | Appending creates a duplicate `## Language Policy` heading (AC3 violation). Setup is a create-or-**replace** on the delimited section — exactly one such heading must exist afterward. |
| "There's an ad-hoc language sentence elsewhere in CLAUDE.md, I'll rewrite it to match" | Out of scope. Setup writes only the canonical delimited section; it never migrates or rewrites pre-existing prose. |
| "`--user` target `~/.claude/CLAUDE.md` doesn't exist, so this is an error" | Not an error. Create the file with **only** the delimited section (EC5) — do not fabricate other global instructions. |
| "The user typed `korean`, that's not a valid code, stop" | Normalize full names to codes (`korean`→`ko`, EC3) before writing. Reject only inputs that map to none of `ko\|ja\|en\|es\|zh`. |
| "`--show` found no policy, I should write a default so future calls work" | `--show` is read-only (AC4). Report "no policy configured" and the fallback source — never write during show. |
| "I'll add a forced global default so absence resolves cleanly" | No. The no-block invariant (NFR1) requires absence to fall through to each consuming skill's own fallback. Setup never introduces a global default. |

## Arguments

| Argument | Form | Example | Description |
|---|---|---|---|
| Language | positional | `ko`, `japanese` | Output language code (`ko\|ja\|en\|es\|zh`) or full name (`korean`, `japanese`, `english`, `spanish`, `chinese`). Normalized to a code before writing. Required unless `--show`. |
| `--user` | flag | | Target the user-global `~/.claude/CLAUDE.md` instead of the project `CLAUDE.md` (the default target). |
| `--show` | flag | | Read-only: report the resolved language and its source rung (project / user / none). No write. |

## Procedure

### Write mode (default — positional language given)

1. **Normalize** the positional argument to a code using the mapping in
   `references/language-resolution.md`. If it maps to none of `ko|ja|en|es|zh`, stop and
   report the accepted values — do not write.
2. **Select the target file**: project `CLAUDE.md` (repo root) by default, or
   `~/.claude/CLAUDE.md` when `--user` is set.
3. **Create-or-replace the `## Language Policy` section** (idempotent):
   - If the target file has a `## Language Policy` section, replace that delimited section in
     place — its heading through the line before the next `## ` heading (or EOF). Exactly one
     `## Language Policy` heading must remain afterward (AC3, EC6).
   - If the section is absent, append the canonical section.
   - If the **target file itself is absent** (common on `--user`), create it containing only
     the canonical section (EC5) — no other global instructions.
   - The section body is the canonical format from `references/language-resolution.md` with
     the resolved code filled into `**Output language**`.
4. **Confirm** with a one-line message naming the written file path and code (no
   `@`-activation prompt — user-global `~/.claude/CLAUDE.md` is already auto-loaded).

### Show mode (`--show`)

1. Resolve per the precedence chain in `references/language-resolution.md` (project policy →
   user policy → none), reading each `CLAUDE.md`'s `## Language Policy` section.
2. Report the resolved code and the winning source rung, or "no policy configured" with the
   fallback source when neither file has a valid section. A malformed section is reported as
   invalid (EC2), not silently ignored.
3. Never write in show mode.

## Notes

- The canonical `## Language Policy` section supersedes older CLAUDE.md language cues; when
  it is absent, consuming skills still honor their own prior fallback (see the reference).
  This preserves no-regression behavior for projects that have not yet run this skill.
- Keep-in-English tokens (conventional-commit `type:` prefix, PR-title `[task-id]`/prefix,
  technical terms) are unaffected by the configured language — they stay English by policy.

Files in this skill

  • README.en.md2.3 KB
  • README.es.md2.5 KB
  • README.ja.md2.4 KB
  • README.ko.md2.3 KB
  • README.md2.3 KB
  • README.zh.md2.5 KB
  • SKILL.md5.7 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.