Agent skill

Mode Code

by WeaveMindAI in WeaveMindAI/weft

Code mode: rules for writing and refactoring code. An agent skill from WeaveMindAI/weft.

Custom licenceAuto-check passedDevelopment

Install Mode Code

skills CLI
$ npx skills add WeaveMindAI/weft --skill mode-code -a claude-code

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

GitHub CLI
$ gh skill install WeaveMindAI/weft mode-code --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/WeaveMindAI/weft.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.kilo/skills/mode-code .claude/skills/mode-code && 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
mode-code
GitHub stars
2k
Token cost
~2.6k tokens
SKILL.md length
1,548 words
Files
1
Skills in repo
36
Repo updated
First seen
Licence
Custom licence

At a glance

Code mode: rules for writing and refactoring code. An agent skill from WeaveMindAI/weft.

  • Works in 7 steps: Imports at top only. Never mid-function. → No legacy, no backward compat. Delete… → DRY. If two functions can merge, merge… → …
  • Tasks that involve Code review
  • SKILL.md covers The working tree is the review, Style, No fallbacks, fail loudly and Tooling, plus 2 more sections
  • Calls cargo and git

What it does

Mode Code is an agent skill from WeaveMindAI/weft. Code mode: rules for writing and refactoring code. Style (DRY, SYNC markers, naming), no fallbacks fail loudly, tooling, testing pyramid. Load when switching to [code mode], before writing or editing code, or when fixing review findings.

Its SKILL.md is about 2.6k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Code review and Refactoring. The repository describes itself as: A programming language for AI orchestrations.

When your agent uses it

  • Tasks that involve Code review
  • Tasks that involve Refactoring

Example prompts

  • “/mode-code”

Requirements

  • Python 3

Workflow steps

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

  1. Imports at top only. Never mid-function.
  2. No legacy, no backward compat. Delete old dead code completely: no remnants, no fallback formats, no pre-refactor paths. When something…
  3. DRY. If two functions can merge, merge them. Check the codebase before duplicating anything.
  4. Cross-boundary SYNC markers. When the same concept must be defined in two places because a language or runtime boundary forces it (a…
  5. Fix the root cause. One line at the source beats five lines of workaround downstream. Don't over-engineer the fix either.
  6. Always write tests. Non-trivial changes come with tests written or updated, at the right layer of the pyramid below. Never delete or…
  7. Name by contract, not mechanism. The name states what the caller asks for and receives, from the caller's side; how you fulfill it…

What it can do on your machine

Read from SKILL.md and the folder at commit 6e28f31. 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:

    • cargo
    • git

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

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    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

Mode Code loads about 2.6k tokens when it runs. Until then it costs about 62 tokens; SKILL.md has 1,548 words of instructions outside code blocks.

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

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

Its licence (Custom licence) doesn't allow us to republish the file, so here is its outline and opening line. It has 1,548 words (~2,610 tokens).

“Write or refactor code. Clean, not just simple: no dev-only hacks, no temporary workarounds, no "for now". The [decision framework] from the working-partner agent file (.kilo/agent/working-partner.md), perfectionist not patcher, extend before adding, no shippable phases, info on the object, is…”

— opening of SKILL.md by WeaveMindAI, Custom licence
name
mode-code

Read the full SKILL.md on GitHub

Files

Just SKILL.md in .kilo/skills/mode-code of WeaveMindAI/weft.

Open the folder on GitHubat commit 6e28f31

Compare with similar skills

Mode Code 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.

Mode Code compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Mode Code this skillWeaveMindAI/weft2k—~2.6kAutomated safety check: PassCustom licence
Dignified Python Standardsdocling-project/docling69k—~1.5kAutomated safety check: PassApache-2.0
Clean Code GuardamElnagdy/guard-skills1.3k2 repos~4.3kAutomated safety check: PassMIT
Maintainable Code for iPolloWorkDevin-AXIS/iPolloWork6.8k—~2.7kAutomated safety check: PassCustom licence
Over-Engineering ReviewDietrichGebert/ponytail158k—~1.3kAutomated safety check: PassMIT
Cyclomatic Complexitysaurabhkumar8112/cyclomatic-complexity-skill405—~761Automated safety check: PassApache-2.0

Similar skills

  • Dignified Python Standards

    docling-project/docling

    Applies opinionated production Python conventions chosen by the project's Python version: modern type syntax, pathlib, explicit checks and interface guidance.

    69k GitHub stars~1.5k tokensUpdated today
    DevelopmentAuto-check passed
  • Clean Code Guard

    amElnagdy/guard-skills

    Reviews generated or changed production code against Clean Code, SOLID, DRY, KISS, YAGNI and LLM-specific failure modes before it ships, in any language.

    1.3k GitHub starsUsed in 2 repos~4.3k tokens
    DevelopmentAuto-check passed
  • A code-change gate for the iPolloWork repository: search and reuse first, keep one source of truth, justify every new file or dependency, and audit the change.

    6.8k GitHub stars~2.7k tokensUpdated today
    DevelopmentAuto-check passed
  • Over-Engineering Review

    DietrichGebert/ponytail

    Reviews a diff only for unnecessary complexity and lists what to delete or shrink, one numbered line per finding with the location, the cut and its replacement.

    158k GitHub stars~1.3k tokensUpdated today
    DevelopmentAuto-check passed
  • Cyclomatic Complexity

    saurabhkumar8112/cyclomatic-complexity-skill

    Refactor code to reduce cyclomatic complexity so it stays readable, maintainable, and aligned with the long-term vision of the codebase, not just optimized for AI comprehension.

    405 GitHub stars~761 tokensUpdated 1 mo ago
    DevelopmentAuto-check passed
  • Code Review Graph Navigator

    handsontable/handsontable

    Queries a pre-built, Tree-sitter-based code graph of the whole monorepo instead of grepping call chains, for exploring, debugging, refactoring or reviewing code.

    22k GitHub stars~939 tokensUpdated today
    DevelopmentAuto-check passed

More from WeaveMindAI/weft

All 36 skills in this repo
  • Weft Cloud Install

    WeaveMindAI/weft

    Read when the user wants weft itself on their Google Cloud for the first time, or to upgrade or resize the weft already there: getting the user's GitHub and Google Cloud accounts and CLIs ready, the…

    2k GitHub stars~2.4k tokensUpdated 2 days ago
    Auto-check passed
  • Weft Consumers

    WeaveMindAI/weft

    Read when the user wants their own website, app, bot or extension to list, show, answer, skip or cancel what a program is waiting on, fetch a file it carries, or show what one of its nodes is…

    2k GitHub stars~3.8k tokensUpdated 2 days ago
    Auto-check passed
  • Weft Deploying

    WeaveMindAI/weft

    Read when the user wants weft or a program live for real people on their cloud, asks about prod, a target, --on, a domain or GCP, or a deploy failed: targets and logging in, domains, the deploy…

    2k GitHub stars~4.2k tokensUpdated 2 days ago
    Auto-check: notes
  • Weft Metering

    WeaveMindAI/weft

    Read when the user asks what a run costs, or when a node is wired to a paid API weft does not already price: the three pieces of a custom paid service, a meter to copy, and the rules that keep a…

    2k GitHub stars~4k tokensUpdated 2 days ago
    Auto-check passed
  • Weft Sdp

    WeaveMindAI/weft

    Read when growing a program stage by stage: carving a run, supplying starting values, baking a trigger and firing it without activating, reusing completed work with a seed, freezing an accepted…

    2k GitHub stars~4k tokensUpdated 2 days ago
    Auto-check passed
  • Weft Frontend

    WeaveMindAI/weft

    Read when the user wants a page, app or site for the program, and before dispatching the frontend-builder: the verified scaffold commands, the default stack (pnpm, SvelteKit, PostgreSQL, BetterAuth…

    2k GitHub stars~8k tokensUpdated 2 days ago
    Auto-check: notes

Categories

Questions about Mode Code

What does Mode Code do?

Code mode: rules for writing and refactoring code. An agent skill from WeaveMindAI/weft. Mode Code is an agent skill from WeaveMindAI/weft. Code mode: rules for writing and refactoring code.

When should I use Mode Code?

Mode Code fits situations like: tasks that involve Code review; tasks that involve Refactoring.

How do I install Mode Code in Claude Code?

Run `npx skills add WeaveMindAI/weft --skill mode-code -a claude-code`. Or copy the skill folder (.kilo/skills/mode-code in WeaveMindAI/weft) into .claude/skills/mode-code in your project. Claude Code loads it when a task matches its description.

How do I install Mode Code in Codex?

Run `npx skills add WeaveMindAI/weft --skill mode-code -a codex`. Or copy the skill folder (.kilo/skills/mode-code in WeaveMindAI/weft) into .agents/skills/mode-code in your project. Codex loads it when a task matches its description.

Can I use Mode Code 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 WeaveMindAI/weft --skill mode-code -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/mode-code, .gemini/skills/mode-code, .github/skills/mode-code and .opencode/skills/mode-code in your project.

What does Mode Code need to run?

Going by SKILL.md and its folder, Mode Code needs the command-line tools its instructions call (cargo and git). Our summary lists: Python 3.

Does Mode Code access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Mode Code 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 Mode Code use?

Mode Code has a licence file (the repository's licence) that doesn't match a standard licence. Read it on GitHub before reusing the skill.

How many tokens does Mode Code use?

About 2.6k tokens (SKILL.md is roughly 10k 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 Mode Code?

Skills that share tags, products or a category with Mode Code: Dignified Python Standards (docling-project/docling, 69k stars), Clean Code Guard (amElnagdy/guard-skills, 1.3k stars), Maintainable Code for iPolloWork (Devin-AXIS/iPolloWork, 6.8k stars) and Over-Engineering Review (DietrichGebert/ponytail, 158k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Mode Code?

WeaveMindAI (a GitHub organization) maintains it in WeaveMindAI/weft, which has 1,995 GitHub stars. The repository holds 36 skills in this directory. The repository was last updated on October 6, 2026.

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