python-meta-server

python-meta-server is a skill for Claude Code, Codex from kouroshez/coding-os. It costs 117 tokens per session (1,692 once invoked), scanned A, original, Apache-2.0.

A set of project-specific rules for writing Python code in a meta-repository's servers, command-line tools, graph processing, and web routes.

In plain words
What is it for?
Use it when modifying the listed Python server, graph, board, hook, CLI, or web-route files in that repository.
Why use it?
It helps code follow the repository's required response formats, type annotations, database migration practices, and tool-registration conventions.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it when modifying the listed Python server, graph, board, hook, CLI, or web-route files in that repository.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kouroshez/coding-os/python-meta-server
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 kouroshez/coding-os --skill python-meta-server
Clone the repo
git clone --depth 1 https://github.com/kouroshez/coding-os

Made for: Claude Code, Codex.

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 python-meta-server

README.md
[![agentmods](https://agentmods.dev/badge/skills/kouroshez/coding-os/python-meta-server/github.svg)](https://agentmods.dev/skills/kouroshez/coding-os/python-meta-server)
Your own site
<a href="https://agentmods.dev/skills/kouroshez/coding-os/python-meta-server"><img src="https://agentmods.dev/badge/skills/kouroshez/coding-os/python-meta-server/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 python-meta-server

Your own site · 80×15
<a href="https://agentmods.dev/skills/kouroshez/coding-os/python-meta-server"><img src="https://agentmods.dev/badge/skills/kouroshez/coding-os/python-meta-server.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 117 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,692 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.
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.00117 $0.01692
Opus 5 $0.00059 $0.00846
Sonnet 5 $0.00023 $0.00338
Haiku 4.5 $0.00012 $0.00169

Measured 5d ago against content hash 02d9b5d98675, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

python-meta-server 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 5d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/check_envelope.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

src/templates/meta/skills/python-meta-server/SKILL.md · 163 lines

How it starts

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

python-meta-server

Purpose: Internalise the Python authoring conventions that make this meta-repo work — MCP envelope, FastMCP registration, schema migrations, extractor idempotency, hook helper structure. Without this skill, agents write Python that LOOKS correct but breaks the contracts that every consumer project depends on.

Read when: editing any of:

  • src/core/thinking_os/**/*.py — MCP server, tools, dispatcher, cognition.
  • src/core/graph_os/**/*.py — backends, extractors, ingestion.
  • src/core/board_os/**/*.py — Scrumban engine.
  • src/core/hooks/_helpers/**/*.py — hook helpers.
  • src/cli/**/*.py — factory CLI.
  • src/core/web/server.py, src/core/web/routes/**/*.py — FastAPI routes.

Skip when: editing tests (*test*.py), scripts (scripts/), or one-off helpers.

Hard contracts

1. MCP envelope — Rule 13 (NON-NEGOTIABLE)

Every cos_* MCP tool returns either:

{"ok": True,  "data": <payload>, "meta": {"layer": "<layer>", ...}}
{"ok": False, "error": {"category": "<cat>", "message": "<human>", "retryable": <bool>}}

Use @safe_tool from src/core/thinking_os/tools/_shared.py:

from thinking_os.tools._shared import safe_tool, ok, fail

@safe_tool
@mcp.tool()
def cos_my_tool(arg: str) -> dict:
    """One-line description for FastMCP."""  # ← Rule 12
    if not arg:
        return fail("validation", "arg must be non-empty")
    return ok({"result": ...}, meta={"layer": "thinking_os"})

Categories: validation · not_found · unavailable (retryable) · conflict (retryable) · internal.

2. Docstrings — Rule 12

ONE-line docstring on @mcp.tool functions only — FastMCP exposes that line as the agent-facing description. NO multi-line docstrings on internal helpers. Comments by exception, not by default.

3. Schema migrations — Rule 9

Adding a persistent table: write src/core/thinking_os/migrations/vN+1_<name>.sql. NEVER edit a previous migration. tests/test_db.py guards the invariant.

4. Extractor idempotency

Read the full file on GitHub · 163 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 5d ago First seen · 163 lines · 117 tokens per session scan A 02d9b5d98675

Subscribe to this mod's changes

python-meta-server is a skill published in the GitHub repository kouroshez/coding-os (6 stars, last pushed 2d ago), licensed Apache-2.0. It adds 117 tokens to every session and 1,692 once invoked, about $0.0006 per session on Opus 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-09-03.