Agent skill

Ok Script Codegen

by baoxin1100 in baoxin1100/ok-kes

Generate Python automation code for ok-script task run methods from user descriptions and optional screenshots.

No licenceAuto-check passedDevelopment

Install Ok Script Codegen

skills CLI
$ npx skills add baoxin1100/ok-kes --skill ok-script-codegen -a claude-code

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

GitHub CLI
$ gh skill install baoxin1100/ok-kes ok-script-codegen --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/baoxin1100/ok-kes.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/ok-script-codegen .claude/skills/ok-script-codegen && 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
ok-script-codegen
GitHub stars
101
Token cost
~2k tokens
SKILL.md length
1,036 words
Files
2
Skills in repo
5
Repo updated
First seen
Licence
None found

At a glance

Generate Python automation code for ok-script task run methods from user descriptions and optional screenshots.

  • Works in 6 steps: Put the generated run(self) method into… → Place the task file under src/tasks or… → Configure capture_config if the task… → …
  • Codex is asked to produce
  • SKILL.md covers Purpose, Response Mode, Core Generation Rules and Code Comment Rule, plus 7 more sections
  • Reaches raw.githubusercontent.com

What it does

Ok Script Codegen is an agent skill from baoxin1100/ok-kes. Generate Python automation code for ok-script task run methods from user descriptions and optional screenshots. Use when Codex is asked to produce, refine, or explain ok-script automation code, especially code intended to run inside BaseTask.run(self), with OCR, template matching, relative clicks, wait methods, frame refresh rules, and per-line Chinese code comments.

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

It sits in Development, covering Project scaffolding and Technical documentation. It works with Python. The repository describes itself as: ok框架卡厄思梦境自动化工具,包含自动出击模式和自动卡厄思模式功能.

When your agent uses it

  • Codex is asked to produce
  • Explain ok-script automation code
  • Especially code intended to run inside BaseTask.run(self)
  • Template matching

Example prompts

  • “/ok-script-codegen”

Requirements

  • Python 3

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Put the generated run(self) method into a task class that inherits from BaseTask.
  2. Place the task file under src/tasks or ok_tasks, depending on the project structure.
  3. Configure capture_config if the task needs a specific window, browser, emulator, or ADB device.
  4. If template matching is used, manually mark the referenced templates and ensure their names match the generated code.
  5. Start the app, select the task, and run it.
  6. If OCR or clicks fail, adjust OCR regions, thresholds, template names, or relative coordinates using screenshots and logs.

What it can do on your machine

Read from SKILL.md and the folder at commit 82089f2. 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

    No scripts in the folder and no shell commands in SKILL.md (its code samples are python).

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

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • raw.githubusercontent.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

Ok Script Codegen loads about 2k tokens when it runs. Until then it costs about 97 tokens; SKILL.md has 1,036 words of instructions outside code blocks.

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

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

Without a licence we can't republish the file, so here is its outline and opening line. It has 1,036 words (~2,002 tokens).

“Use this skill to generate ok-script automation code for a task's run(self) method. The user may describe steps in text and may attach screenshots to clarify click positions, OCR text, buttons, or expected UI states.”

— opening of SKILL.md by baoxin1100
name
ok-script-codegen

Read the full SKILL.md on GitHub

Files

SKILL.md and 1 other file in .agents/skills/ok-script-codegen of baoxin1100/ok-kes.

  • SKILL.md
  • agents/openai.yaml

Open the folder on GitHubat commit 82089f2

Compare with similar skills

Ok Script Codegen 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.

Ok Script Codegen compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Ok Script Codegen this skillbaoxin1100/ok-kes101—~2kAutomated safety check: PassNone
README and DESIGN Generatorfengshao1227/ccg-workflow5.9k—~410Automated safety check: NotesMIT
Swarmauri Add Community Standaloneswarmauri/swarmauri-sdk104—~387Automated safety check: PassApache-2.0
Module Docs Generatortelagod/code-abyss244—~507Automated safety check: NotesMIT
Swarmauri Add Experimental Standaloneswarmauri/swarmauri-sdk104—~457Automated safety check: PassApache-2.0
Swarmauri Add Plugin Packageswarmauri/swarmauri-sdk104—~435Automated safety check: PassApache-2.0

Similar skills

  • README and DESIGN Generator

    fengshao1227/ccg-workflow

    Generates README.md and DESIGN.md skeletons for a module by scanning its structure with a Node script, then lists what to fill in by hand.

    5.9k GitHub stars~410 tokensUpdated 22 days ago
    DevelopmentAuto-check: notes
  • Swarmauri Add Community Standalone

    swarmauri/swarmauri-sdk

    Add a second-class standalone Swarmauri package under pkgs/community.

    104 GitHub stars~387 tokensUpdated 1 mo ago
    DevelopmentAuto-check passed
  • Module Docs Generator

    telagod/code-abyss

    Generates README.md and DESIGN.md skeletons for a module from its directory structure and code, leaving the decision reasoning for a person to fill in.

    244 GitHub stars~507 tokensUpdated 2 mo ago
    DevelopmentAuto-check: notes
  • Add an experimental standalone Swarmauri package under pkgs/experimental.

    104 GitHub stars~457 tokensUpdated 1 mo ago
    DevelopmentAuto-check passed
  • Swarmauri Add Plugin Package

    swarmauri/swarmauri-sdk

    Add a Swarmauri plugin package under pkgs/plugins. An agent skill from swarmauri/swarmauri-sdk.

    104 GitHub stars~435 tokensUpdated 1 mo ago
    DevelopmentAuto-check passed
  • Research Init

    brycewang-stanford/Auto-Empirical-Research-Skills

    Scaffold a new research project with full reproducibility infrastructure in R and/or Python.

    4.5k GitHub stars~839 tokensUpdated 2 days ago
    DevelopmentAuto-check passed

More from baoxin1100/ok-kes

  • Deploy

    baoxin1100/ok-kes

    Commit completed repository changes, create the next annotated version tag, and push the commit and tag to the publishing remote.

    101 GitHub stars~1.1k tokensUpdated 6 days ago
    Auto-check passed
  • Ok Script I18n

    baoxin1100/ok-kes

    Add, sync, repair, and compile gettext translations for ok-script Python task classes and task metadata.

    101 GitHub stars~903 tokensUpdated 6 days ago
    Auto-check passed
  • Ok Script Tasks

    baoxin1100/ok-kes

    Create and modify automation task classes for the ok-script Python library, including BaseTask one-time tasks, TriggerTask background tasks, task config UI metadata, registration in ok-script app…

    101 GitHub stars~1k tokensUpdated 6 days ago
    Auto-check passed
  • Use Local Venv

    baoxin1100/ok-kes

    Prefer the repository-local Python virtual environment for coding-agent work.

    101 GitHub stars~380 tokensUpdated 6 days ago
    Auto-check passed

Works with

Categories

Questions about Ok Script Codegen

What does Ok Script Codegen do?

Generate Python automation code for ok-script task run methods from user descriptions and optional screenshots. Ok Script Codegen is an agent skill from baoxin1100/ok-kes. Generate Python automation code for ok-script task run methods from user descriptions and optional screenshots.

When should I use Ok Script Codegen?

Ok Script Codegen fits situations like: Codex is asked to produce; explain ok-script automation code; especially code intended to run inside BaseTask.run(self); template matching.

How do I install Ok Script Codegen in Claude Code?

Run `npx skills add baoxin1100/ok-kes --skill ok-script-codegen -a claude-code`. Or copy the skill folder (.agents/skills/ok-script-codegen in baoxin1100/ok-kes) into .claude/skills/ok-script-codegen in your project. Claude Code loads it when a task matches its description.

How do I install Ok Script Codegen in Codex?

Run `npx skills add baoxin1100/ok-kes --skill ok-script-codegen -a codex`. Or copy the skill folder (.agents/skills/ok-script-codegen in baoxin1100/ok-kes) into .agents/skills/ok-script-codegen in your project. Codex loads it when a task matches its description.

Can I use Ok Script Codegen 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 baoxin1100/ok-kes --skill ok-script-codegen -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ok-script-codegen, .gemini/skills/ok-script-codegen, .github/skills/ok-script-codegen and .opencode/skills/ok-script-codegen in your project.

What does Ok Script Codegen need to run?

SKILL.md names no scripts, command-line tools or credentials: Ok Script Codegen is instructions for the agent only. Our summary lists: Python 3.

Does Ok Script Codegen access the network?

SKILL.md names 1 domain. In commands or code: raw.githubusercontent.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.

Is Ok Script Codegen 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 Ok Script Codegen use?

No licence was found for Ok Script Codegen or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Ok Script Codegen use?

About 2k tokens (SKILL.md is roughly 8k 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 Ok Script Codegen?

Skills that share tags, products or a category with Ok Script Codegen: README and DESIGN Generator (fengshao1227/ccg-workflow, 5.9k stars), Swarmauri Add Community Standalone (swarmauri/swarmauri-sdk, 104 stars), Module Docs Generator (telagod/code-abyss, 244 stars) and Swarmauri Add Experimental Standalone (swarmauri/swarmauri-sdk, 104 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Ok Script Codegen?

baoxin1100 (a GitHub user) maintains it in baoxin1100/ok-kes, which has 101 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on October 1, 2026.

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