Agent skill

Windows Python First

by Ancienttwo in Ancienttwo/repo-harness

A skill your agent uses for agent tasks in native Windows that need file edits, text conversion, JSON processing, or shell commands with quoting or encoding problems.

MITAuto-check passed

Install Windows Python First

skills CLI
$ npx skills add Ancienttwo/repo-harness --skill windows-python-first -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Ancienttwo/repo-harness windows-python-first --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Ancienttwo/repo-harness.git skills-src && mkdir -p .claude/skills && cp -r skills-src/assets/skills/windows-python-first .claude/skills/windows-python-first && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
windows-python-first
GitHub stars
435
Token cost
~1.4k tokens
SKILL.md length
728 words
Files
2
Skills in repo
12
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses for agent tasks in native Windows that need file edits, text conversion, JSON processing, or shell commands with quoting or encoding problems.

  • Agent tasks in native Windows that need file edits
  • SKILL.md covers Select the runtime, Choose the smallest operation, Keep shell commands simple and Preserve file contents, plus 2 more sections
  • Calls python
  • Text conversion

What it does

Windows Python First is an agent skill from Ancienttwo/repo-harness. Use for agent tasks in native Windows that need file edits, text conversion, JSON processing, or shell commands with quoting or encoding problems. Prefer Python for these operations. Do not apply Windows shell rules to macOS, Linux, or WSL.

Its SKILL.md is about 1.4k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `agents/openai.yaml`).

It works with Python, Linux, macOS and PowerShell. The repository describes itself as: File-backed workflow harness for reliable Claude Code and Codex sessions. The licence is MIT.

When your agent uses it

  • Agent tasks in native Windows that need file edits
  • Text conversion
  • JSON processing
  • Shell commands with quoting

Example prompts

  • “/windows-python-first”

Requirements

  • Python 3

What it can do on your machine

Read from SKILL.md and the folder at commit ad7b579. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • docs.python.org
    • x.com
    • learn.microsoft.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Windows Python First loads about 1.4k tokens when it runs. Until then it costs about 65 tokens; SKILL.md has 728 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~65
When it runs · the whole SKILL.md, loaded when a task matches
~1.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Ancienttwo/repo-harness at commit ad7b579, republished under its MIT licence (© Ancienttwo). 728 words, ~1,375 tokens.

Download SKILL.mdSave it as .claude/skills/windows-python-first/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
windows-python-first
description
Use for agent tasks in native Windows that need file edits, text conversion, JSON processing, or shell commands with quoting or encoding problems. Prefer Python for these operations. Do not apply Windows shell rules to macOS, Linux, or WSL.

Windows Python First

Worker entrypoint. Confirm that the task runs in native Windows before using these rules.

Use Python for file and text operations in native Windows. Use PowerShell to launch programs and for Windows APIs that require it. Keep direct Git, build, and test commands when they already work.

Select the runtime

Confirm the OS and the shell from the tool context. If needed, use $PSVersionTable.PSVersion to identify the PowerShell version. A Windows host can run a WSL shell. Use Linux rules inside WSL.

Use the project's Python interpreter when it has one. Otherwise, check py -3 --version. If that command is unavailable, check python --version. Confirm Python 3 and its executable path before use. A command name alone does not prove that an interpreter is installed.

For file and text work, launch the selected interpreter with -X utf8. This enables Python UTF-8 mode. It does not change the encoding of other programs or prove that PowerShell will decode their output correctly.

If Python is unavailable, use an existing file-edit tool. Use a short PowerShell command only when its behavior is clear. Report a missing runtime when it blocks the task. Do not install software or change system settings without task authorization.

Choose the smallest operation

  • Use an available file-edit tool for a small source patch.
  • Use Python for file reads and writes, text replacement, JSON, CSV, and batch file operations. Prefer its standard library.
  • Use direct commands for Git, package managers, builds, and tests. Do not add a Python wrapper without a reason.
  • Use PowerShell for Windows services, registry operations, and PowerShell modules when the task requires them.

Keep shell commands simple

Put multi-line Python code in a UTF-8 .py file with the file-edit tool. Store temporary helpers in the task's scratch directory. Do not put them in tracked source without a project reason.

Pass paths and data as arguments. Read them through sys.argv or argparse. Do not insert user text, JSON, regexes, or Windows paths into generated source code.

Use a one-line launch command. These examples assume the task script already exists:

powershell
py -3 -X utf8 "C:\work\task\edit_text.py" "C:\work\project\file.txt"

When using a quoted executable path, use the PowerShell call operator:

powershell
& "C:\work\project\.venv\Scripts\python.exe" -X utf8 "C:\work\task\edit_text.py" "C:\work\project\file.txt"

Avoid long python -c strings, nested shell commands, and piping multi-line source through PowerShell. Do not use Bash heredocs in PowerShell. Do not use PowerShell > or Out-File to create source files with an assumed encoding. Windows PowerShell 5.1 and PowerShell 7 have different encoding defaults.

When Python starts a native executable, pass an argument list to subprocess.run. Use shell=False and an explicit cwd. Inspect the return code. For .cmd or .bat tools, account for Windows shell parsing; do not assume an argument list removes that boundary.

Show full SKILL.md (286 more words)Show less

Preserve file contents

Set the encoding for each text file operation. Use UTF-8 without a BOM for new source files unless the project requires another format. Preserve the encoding, BOM, and line endings of existing files.

For a targeted edit, read bytes first. Identify the BOM and the expected encoding. Decode with strict error handling. Do not use errors="ignore" or errors="replace" for source edits. If the encoding is unknown, obtain evidence before writing.

Byte reads and writes can preserve CRLF without implicit newline conversion. Make only the requested replacement. Check the expected match count before writing. A missing or extra match must fail before the write. Preserve unrelated text and the final newline.

Use pathlib.Path for paths. Use json and csv for their formats. Avoid whole-file reserialization when it would change unrelated content.

Resolve failures and verify

After a quoting, pipe, or encoding failure, identify the failing boundary. Move file or text logic into a Python file instead of repeatedly changing a long shell expression. Do not change the terminal code page, PowerShell profile, execution policy, or global environment as a routine fix.

Read back the output. Check the changed content and file format. Inspect the diff when the task is in Git. Run the relevant project checks and record their exit codes. Do not treat a successful launch as proof that the requested change is correct.

Report Windows validation only when checks ran on Windows. A check on macOS or Linux is partial evidence for this skill.

Sources

This skill adapts the post's Python-first recommendation. It does not reproduce the unavailable comment prompt.

© Ancienttwo, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in assets/skills/windows-python-first of Ancienttwo/repo-harness.

  • SKILL.md
  • agents/openai.yaml

Open the folder on GitHubat commit ad7b579

Compare with similar skills

Windows Python First next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Windows Python First compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Windows Python First this skillAncienttwo/repo-harness435—~1.4kAutomated safety check: PassMIT
Environment SetupNorman-bury/research-writing-skill3.4k—~840Automated safety check: PassMIT
Remote Hostslibnativeapi/nativeapi166—~1.3kAutomated safety check: PassMIT
Local Asrysyecust/lecture-to-notes273—~1.6kAutomated safety check: PassCustom licence
UvBiFangKNT/mtga1.2k—~541Automated safety check: PassAGPL-3.0
Sino Drug Instructions Searchinfometa/workbuddyskills348—~1.1kAutomated safety check: NotesNone

Similar skills

  • Environment Setup

    Norman-bury/research-writing-skill

    A skill your agent uses when Python environment setup is needed for data visualization or conda installation is required

    3.4k GitHub stars~840 tokensUpdated 4 mo ago
    Data & AnalyticsAuto-check passed
  • Remote Hosts

    libnativeapi/nativeapi

    Build, run, and GUI-test on another machine over SSH — the user's Windows laptop today, Linux or other macOS machines tomorrow — with one symmetric CLI for every OS: push scripts, run them either in…

    166 GitHub stars~1.3k tokensUpdated today
    MobileAuto-check passed
  • Local Asr

    ysyecust/lecture-to-notes

    把本地长视频/音频转写成文字稿 + 可选字幕,纯本地(不上传云端),用 sherpa-onnx X-ASR Zipformer transducer 模型(int8 量化、中英双语、自动标点)。已在 macOS Apple Silicon(int8 + AMX,~100× 实时)、Linux ARM64(CPU,~32× 实时)与 Windows(PowerShell…

    273 GitHub stars~1.6k tokensUpdated 8 days ago
    AI & LLM EngineeringAuto-check passed
  • Uv

    BiFangKNT/mtga

    在 Windows/macOS/Linux 上使用 uv 执行 Python 运行、依赖同步、锁文件管理、Python 版本管理与工具命令(uv run、uv sync、uv lock、uv python、uv tool)。当任务涉及“用 uv 运行脚本/命令”“临时依赖(--with)”“锁文件一致性(--locked/--frozen)”“跨平台…

    1.2k GitHub stars~541 tokensUpdated 3 mo ago
    Auto-check passed
  • Sino Drug Instructions Search

    infometa/workbuddyskills

    在用户询问药品说明书、用药信息、适应症、禁忌、用法用量、不良反应、成分、规格、厂家,或根据症状/疾病查找药品时使用此技能。⚠️ 调用前须已通过 useskill 加载本技能(sino-drug-instructions-search)。安装 sinohealthskillssdk;严格按照当前 SKILL.md 执行。

    348 GitHub stars~1.1k tokensUpdated yesterday
    Auto-check: notes
  • Apple Container Test Runner

    RustPython/RustPython

    Runs RustPython tests inside a Linux container built with Apple's container CLI, so macOS users can compare Linux results with their local ones.

    22k GitHub stars~467 tokensUpdated today
    Testing & QAAuto-check passed

More from Ancienttwo/repo-harness

All 13 skills in this repo
  • Repo Harness

    Ancienttwo/repo-harness

    Route explicit repo-harness commands and active harness work.

    435 GitHub stars~498 tokensUpdated today
    Auto-check passed
  • Development Scheduler

    Ancienttwo/repo-harness

    在 repo-harness session 或 Bot 中通过 Herdr 调度开发任务、跟进阻碍、组织独立审查和安全交接;用于多角色开发协调,不用于单次代码修改或只读状态查询。

    435 GitHub stars~703 tokensUpdated today
    Auto-check passed
  • Repo Harness Chatgpt

    Ancienttwo/repo-harness

    Canonical rule owner for repo-harness ChatGPT integration -- Oracle-first browser/GPT Pro consult and continuation, advisory orchestration, MCP Connector setup, MCP bridge planning handoff, and…

    435 GitHub stars~587 tokensUpdated today
    Auto-check passed
  • Repo Harness Setup

    Ancienttwo/repo-harness

    Canonical rule owner for installing, migrating, upgrading, repairing, scaffolding, and capability-configuring the repo-harness workflow in a repository.

    435 GitHub stars~474 tokensUpdated today
    Auto-check passed
  • Repo Harness Ship

    Ancienttwo/repo-harness

    Close out verified harness work only when the user explicitly asks to commit, push, open a PR, merge, or clean merged worktrees.

    435 GitHub stars~251 tokensUpdated today
    Auto-check passed
  • Repo Harness

    Ancienttwo/repo-harness

    Eval-only bounded frontier stress test for complex repo-harness planning; never installed as a managed Skill.

    435 GitHub stars~533 tokensUpdated today
    Auto-check passed

Questions about Windows Python First

What does Windows Python First do?

A skill your agent uses for agent tasks in native Windows that need file edits, text conversion, JSON processing, or shell commands with quoting or encoding problems. Windows Python First is an agent skill from Ancienttwo/repo-harness. Use for agent tasks in native Windows that need file edits, text conversion, JSON processing, or shell commands with quoting or encoding problems.

When should I use Windows Python First?

Windows Python First fits situations like: agent tasks in native Windows that need file edits; text conversion; JSON processing; shell commands with quoting.

How do I install Windows Python First in Claude Code?

Run `npx skills add Ancienttwo/repo-harness --skill windows-python-first -a claude-code`. Or copy the skill folder (assets/skills/windows-python-first in Ancienttwo/repo-harness) into .claude/skills/windows-python-first in your project. Claude Code loads it when a task matches its description.

How do I install Windows Python First in Codex?

Run `npx skills add Ancienttwo/repo-harness --skill windows-python-first -a codex`. Or copy the skill folder (assets/skills/windows-python-first in Ancienttwo/repo-harness) into .agents/skills/windows-python-first in your project. Codex loads it when a task matches its description.

Can I use Windows Python First in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Ancienttwo/repo-harness --skill windows-python-first -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/windows-python-first, .gemini/skills/windows-python-first, .github/skills/windows-python-first and .opencode/skills/windows-python-first in your project.

What does Windows Python First need to run?

Going by SKILL.md and its folder, Windows Python First needs the command-line tools its instructions call (python). Our summary lists: Python 3.

Does Windows Python First access the network?

SKILL.md names 3 domains. As links in the text: docs.python.org, x.com and learn.microsoft.com. This is read from the text; nothing was executed.

Is Windows Python First safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Windows Python First use?

Windows Python First is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Windows Python First use?

About 1.4k tokens (SKILL.md is roughly 5.5k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Windows Python First?

Skills that share tags, products or a category with Windows Python First: Environment Setup (Norman-bury/research-writing-skill, 3.4k stars), Remote Hosts (libnativeapi/nativeapi, 166 stars), Local Asr (ysyecust/lecture-to-notes, 273 stars) and Uv (BiFangKNT/mtga, 1.2k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Windows Python First?

Ancienttwo (a GitHub user) maintains it in Ancienttwo/repo-harness, which has 435 GitHub stars. The repository holds 12 skills in this directory. The repository was last updated on October 10, 2026.

Source: Ancienttwo/repo-harness on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.