Winlean Codingのロゴ

Winlean Coding

コミュニティ
ziguishian
winlean-coding

Make Codex safer and leaner when coding, especially on Windows. Use for coding tasks where Windows shells, PowerShell, cmd, Git Bash, WSL, Unicode/Chinese/emoji/Markdown/prompt files, UTF-8/GBK/CP936 encoding, CRLF/LF line endings, path differences, shell one-liners, external library decisions, dependency reuse, bloated implementations, generated directories, small patches, or minimal verification matter.

概要

公開者ziguishian
リポジトリwinlean-coding-skill
スキル名winlean-coding
スター
39
フォーク
1
同梱ファイル
10
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 10個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    ziguishianがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキルWinlean CodingをTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/ziguishian/winlean-coding-skill/tree/main
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ziguishian/winlean-coding-skill.git \
  .claude/skills/winlean-coding
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでWinlean Codingを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあると、モデルが自動的にWinlean Codingを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Winlean Codingは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、未使用のスキルにはコストがかかりません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

WinLean Coding Skill

Clear first, then act. Read less. Patch smaller. Reuse more. Verify every change.

Use this skill as a compact runtime loop. Load checklists only when the task needs deeper detail.

Modes

  • lite: context gate + smallest patch + minimal verification.
  • full: default. Add Windows Safe Mode, Dependency Scout, and Diff Reviewer.
  • audit: do not edit; review a plan or diff for Windows risk, token waste, and overbuilding.

If no mode is named, use full.

1. Environment Doctor

Identify OS and shell: Windows/WSL/Linux/macOS and PowerShell/cmd/Git Bash/WSL shell/bash/zsh.

Enter Windows Safe Mode when Windows paths or shells meet Chinese, emoji, Markdown, prompts, templates, localization, exact replacement, uncertain encoding, or CRLF/LF-sensitive files.

Windows Safe Mode:

  • Do not write non-ASCII text through PowerShell one-liners or terminal pipes.
  • Prefer patch edits for small changes.
  • Use Node.js or Python with explicit UTF-8 I/O for complex replacement.
  • Preserve meaning, encoding expectations, and newline style.
  • Use cross-platform path APIs.

Full checklist: checklists/windows-safe-checklist.md.

2. Context Gatekeeper

Read only files that can change the implementation decision. Search first, then open the smallest relevant files or snippets.

Do not read by default: node_modules/, .git/, dist/, build/, out/, .next/, .nuxt/, coverage/, .cache/, .turbo/, .vite/, vendor/, generated/, lock files unless dependency resolution matters, binaries, images, or archives.

Prefer user-named files, package.json or workspace manifests, entry points, nearby source, related tests, and existing utilities/components/hooks/services. Stop once the path is clear.

3. Dependency Scout

Before custom code, choose the highest rung that works:

  1. Framework official capability.
  2. Officially recommended library.
  3. Mature open-source library.
  4. Existing project dependency.
  5. Existing project utility/component/hook/service.
  6. Small local implementation.
  7. Large handwritten implementation only when nothing suitable fits.

Internal Reuse Scout

Check existing dependencies, utilities, components, hooks, services, validators, formatters, test helpers, framework features, and standard library APIs. Reuse local conventions. Do not duplicate logic under a new name.

Public Library Scout

For common solved domains, consider mature public libraries before handwritten code: date/time/timezones, validation, Markdown/HTML/AST, CSV/Excel/PDF, images, color, drag-and-drop, rich text, i18n, crypto/auth, schemas, diff/patch/text transforms, CLI parsing, logging, charts, state machines, search/fuzzy matching, uploads, URLs, animation, virtual lists, code highlighting, and test mocks.

Do not add a library for five lines of logic or a heavy dependency for novelty. Never install production dependencies automatically; explain and ask first. If network access is unavailable, say external library status cannot be verified.

When recommending a library, state why, what it solves, what it saves versus handwritten code, risks, dependency impact, install command, and a minimal example.

4. Minimal Planner

Before patching, state: problem, files to change, files not changing, reuse decision, smallest implementation path, and minimum verification.

Prefer one file over three, 20 lines over 200, local patches over rewrites, and present needs over future abstractions.

Bug fixes target root cause, not symptoms. Check sibling callers before patching a shared function; one correct shared guard is smaller than scattered guards.

5. Safe Patch Agent

Patch locally and preserve surrounding style. Avoid formatting churn, generated files, lock files without dependency changes, unrelated refactors, unused helpers/types/classes, unnecessary service layers, and framework wrappers without a real need.

Deletion beats addition when behavior remains correct. Boring beats clever. If an intentional shortcut has a known ceiling, add one concise comment naming the ceiling and upgrade path.

For exact UTF-8 replacements:

bash
node examples/safe-replace.mjs <targetFile> <oldTextFile> <newTextFile>

6. Diff Reviewer

Before finishing, check: necessary files only, no accidental generated/dependency reads or edits, no unjustified whole-file rewrite, reuse considered, no unnecessary dependency, encoding/newline handled intentionally, Windows-unstable commands avoided, minimum verification run or reason stated.

Non-trivial logic should leave one small runnable check when practical. Trivial one-liners need no test scaffolding.

Validate this skill with:

bash
node scripts/validate-skill.mjs

Final report:

text
Changed
- ...

Dependency Decision
- External libraries checked: yes/no/unable to verify.
- External library used: yes/no.
- Reason: ...
- New dependency approval needed: yes/no.
- Why not handwritten: ...

Reused
- ...

Avoided
- ...

Verified
- ...

Risks
- ...

Anti-bloat checklist: checklists/lean-code-checklist.md.

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Winlean Coding」では何ができますか?

Make Codex safer and leaner when coding, especially on Windows. Use for coding tasks where Windows shells, PowerShell, cmd, Git Bash, WSL, Unicode/Chinese/emoji/Markdown/prompt files, UTF-8/GBK/CP936 encoding, CRLF/LF line endings, path differences, shell one-liners, external library decisions, dependency reuse, bloated implementations, generated directories, small patches, or minimal verification matter.

TypingMindでWinlean Codingを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Winlean Codingはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにWinlean Codingをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/ziguishian/winlean-coding-skill/tree/mainを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Winlean Codingを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストが合致したときにこのスキルを読み込めます。

Winlean Codingは何個のAIモデルで使えますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもWinlean Codingを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Winlean Coding」は無料ですか?

はい。ziguishianがGitHubでMITライセンスの下で公開しています。支払いが必要なのは、利用したトークンに対する、ご自身が契約するAIプロバイダーへの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇