Winlean Coding logo

Winlean Coding

Community
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.

Overview

Publisherziguishian
Repositorywinlean-coding-skill
Skill namewinlean-coding
Stars
39
Forks
1
Bundled files
10
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • 10 bundled files

    Scripts, templates, and references the model can read while it works. Files are read-only and never executed.

  • Open source

    Published by ziguishian on GitHub. Read the source before you install it.

Installation

Install the Winlean Coding AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/ziguishian/winlean-coding-skill/tree/main
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/ziguishian/winlean-coding-skill.git \
  .claude/skills/winlean-coding
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Winlean Coding in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Winlean Coding on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Winlean Coding is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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.

Bundled files

The model reads these on demand while the skill is loaded. They are exposed as readable files and are never executed.

Frequently asked questions

What does the Winlean Coding AI skill do?

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.

Why use Winlean Coding on TypingMind?

Because you install it once and use it with any model. Winlean Coding is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Winlean Coding in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/ziguishian/winlean-coding-skill/tree/main. TypingMind reads its SKILL.md and bundles its files and installs it as a skill you can enable per chat.

Which AI models can use Winlean Coding?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Winlean Coding?

As many as you like. As long as a model supports skills, you can use Winlean Coding with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Winlean Coding AI skill free?

Yes. It is published on GitHub by ziguishian under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇