code-mode-skill

code-mode-skill is a skill for Claude Code from zeenie-ai/OpenCompany. It costs 22 tokens per session (1,473 once invoked), scanned A, original, MIT.

A way to generate Python code that carries out a complete task in one execution instead of issuing tool calls one after another.

In plain words
What is it for?
Writing scripts that analyse data, repeat actions, handle conditions, and solve multi-step tasks with Python.
Why use it?
It can reduce repeated communication and keep loops, conditions, variables, and error handling together in one place.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Writing scripts that analyse data, repeat actions, handle conditions, and solve multi-step tasks with Python.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zeenie-ai/opencompany/code-mode-skill
About the project

OpenCompany is an application for creating AI employees that work on assigned jobs in the background on the user's computer, using teams of specialized agents coordinated by a lead agent. People connect these employees to tools such as email, calendars, messages, and code, then define their workflows through a visual editor.

zeenie-ai/OpenCompany · 1,120 stars · on GitHub · opencompany.sh

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add zeenie-ai/OpenCompany --skill code-mode-skill
Clone the repo
git clone --depth 1 https://github.com/zeenie-ai/OpenCompany

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for code-mode-skill

README.md
[![agentmods](https://agentmods.dev/badge/skills/zeenie-ai/opencompany/code-mode-skill/github.svg)](https://agentmods.dev/skills/zeenie-ai/opencompany/code-mode-skill)
Your own site
<a href="https://agentmods.dev/skills/zeenie-ai/opencompany/code-mode-skill"><img src="https://agentmods.dev/badge/skills/zeenie-ai/opencompany/code-mode-skill/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for code-mode-skill

Your own site · 80×15
<a href="https://agentmods.dev/skills/zeenie-ai/opencompany/code-mode-skill"><img src="https://agentmods.dev/badge/skills/zeenie-ai/opencompany/code-mode-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,473 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00022 $0.01473
Opus 5.5 $0.00009 $0.00589
Sonnet 5.5 $0.00004 $0.00295
Haiku 4.5 $0.00002 $0.00147

Measured 28d ago against content hash b61e9829230a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

code-mode-skill scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 28d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

server/skills/autonomous/code-mode-skill/SKILL.md · 204 lines

How it starts

The opening of the file, as written. The whole thing — 204 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Code Mode Pattern

You are a Code Mode agent. Instead of calling tools sequentially, generate Python code that accomplishes the entire task in a single execution.

Why Code Mode?

Batching suitable calculations can reduce tool-call round trips; savings depend on the task. It provides:

  • Explicit control flow - loops, conditionals, error handling in code
  • Reusable source - include needed functions and variables in each call; the Python Executor creates a fresh namespace for every invocation
  • Better debugging - executable code is easier to trace and verify

Available Libraries

Python Executor already injects math, json, datetime, re, random, Counter, and defaultdict. Refer to them directly. Its restricted builtins do not include __import__, so import and from ... import ... fail. datetime is the module: use datetime.datetime or datetime.timedelta. There is no persistent namespace between calls. Put values to return in output; print is also captured as console output. For additional packages or a complete Python runtime, use a connected Process Manager to run a script with the required environment instead.

Core Pattern

  1. Analyze - Understand the complete task requirements
  2. Generate - Write complete Python code that solves the entire task
  3. Execute - Use the python_code tool to run the code
  4. Return - The code output becomes your response

Simple Example

Task: "Calculate factorial of 10 and check if it's divisible by 7"

Wrong approach (multiple tool calls - wasteful):

1. Call calculator: factorial(10)
2. Get result: 3628800
3. Call calculator: 3628800 % 7
4. Get result: 0
5. Return answer

Code Mode approach (single execution):


# Calculate factorial
result = math.factorial(10)

# Check divisibility
divisible = result % 7 == 0

# Output structured result
output = {
    "factorial_of_10": result,
    "divisible_by_7": divisible,
    "remainder": result % 7
}
print(json.dumps(output, indent=2))

Read the full file on GitHub · 204 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 28d ago Changed · -22 lines · +1 tokens per session b61e9829230a
  2. 3mo ago First seen · 226 lines · 21 tokens per session scan A 120adaddb878

Subscribe to this mod's changes

code-mode-skill is a skill published in the GitHub repository zeenie-ai/OpenCompany (1,120 stars, last pushed 4d ago), licensed MIT. It adds 22 tokens to every session and 1,473 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

code-mode-skill compared with skills from other repositories

code-mode-skill next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
code-mode-skillzeenie-ai/OpenCompanySkill1.1k4d agoMITA22Claude Code
browser-automationopenclaw/openclawSkill395ktodayMITA36Claude Code
acp-routeropenclaw/openclawSkill395ktodayMITA120Claude Code
imsgopenclaw/openclawSkill395ktodayMITA37Claude Code, Codex
coding-agentopenclaw/openclawSkill395ktodayMITA29Claude Code, Codex
githubopenclaw/openclawSkill395ktodayMITA28Claude Code, Codex
gh-issuesopenclaw/openclawSkill395ktodayMITA28Claude Code