cto-coding-session-hygiene

cto-coding-session-hygiene is a skill for Claude Code from melaya-labs/melaya-mcp. It costs 99 tokens per session (983 once invoked), scanned A, original, Apache-2.0.

A set of rules for keeping coding sessions small, test-led, reviewed, and judged by their actual results rather than by a summary.

In plain words
What is it for?
It helps scope one change at a time, write a failing test before the fix, run checks, and apply the team's commit conventions.
Why use it?
It makes changes easier to review and reduces the chance that a large or untested change hides a defect.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the melaya plugin — 131 skills, 3 commands, 1 MCP server shipped together

Good fit It helps scope one change at a time, write a failing test before the fix, run checks, and apply the team's commit conventions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/melaya-labs/melaya-mcp/cto-coding-session-hygiene
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 melaya-labs/melaya-mcp --skill cto-coding-session-hygiene
Clone the repo
git clone --depth 1 https://github.com/melaya-labs/melaya-mcp

Made for: Claude Code.

Or install melaya, the plugin that ships this one along with the rest of its 131 skills, 3 commands, 1 MCP server.

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 cto-coding-session-hygiene

README.md
[![agentmods](https://agentmods.dev/badge/skills/melaya-labs/melaya-mcp/cto-coding-session-hygiene/github.svg)](https://agentmods.dev/skills/melaya-labs/melaya-mcp/cto-coding-session-hygiene)
Your own site
<a href="https://agentmods.dev/skills/melaya-labs/melaya-mcp/cto-coding-session-hygiene"><img src="https://agentmods.dev/badge/skills/melaya-labs/melaya-mcp/cto-coding-session-hygiene/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 cto-coding-session-hygiene

Your own site · 80×15
<a href="https://agentmods.dev/skills/melaya-labs/melaya-mcp/cto-coding-session-hygiene"><img src="https://agentmods.dev/badge/skills/melaya-labs/melaya-mcp/cto-coding-session-hygiene.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 99 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 983 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.00099 $0.00983
Opus 5.5 $0.00040 $0.00393
Sonnet 5.5 $0.00020 $0.00197
Haiku 4.5 $0.00010 $0.00098

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

Security

Grade A, and why

cto-coding-session-hygiene 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 20d 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.

skills/excom-role-skills/cto/cto-coding-session-hygiene/SKILL.md · 59 lines

How it starts

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

Coding session hygiene

Keep what reaches review small, tested and proven by the session's own fields. A clean session is cheap to review and safe to push; a sprawling one wastes a deploy window.

Look up first

  • The coding grant: repositories, base branch, configured checks and the computer. If excom_code_task is not offered, the grant is off or the computer is offline: ask the owner with excom_request_setup. Never work around it.
  • The runbook that governs the change: excom_knowledge_search for "coding sessions", "release checklist" or the area (for example "translation pipeline"). If none exists, proceed without and note it.
  • The team's commit message convention: excom_knowledge_search "commit convention". If missing, use one line per change in the form type(scope): description, and propose the note with excom_save_draft.

Steps

  1. Scope small: one goal, one repository, one concern. If the diff will plausibly exceed about 300 changed lines, split the goal, because large diffs hide defects.
  2. Write the goal test first: "Reproduce with a failing test in , then fix the cause, then run the checks." Pass the evidence (redacted, capped) and the runbook. Start with excom_code_task (record write, asks under Prepare).
  3. Wait with excom_code_status (up to 60 seconds per call). Never start a second session on the same repository.
  4. Judge the result, not the summary. Read status, diff stat, commits, checks, violations, evidence addressed and covering test. Apply the proof table below. A violation means the session failed and can never be pushed.
  5. If nothing shows the covering test failed before it passed, ask for a new session with that instruction, because a test never seen red proves nothing.
  6. A check reported "not run" is not a pass. Ask the owner to update the runner or fix the grant.
  7. Bad session: excom_code_discard (draft) and start a narrower one. Good session: review it with skill cto-push-review-gate. A session from another executive always goes through that gate; only the CTO pushes.
  8. Record the verdict with excom_update_task and any lesson (a flaky test name) with excom_record_fact.

Read the full file on GitHub · 59 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. 20d ago First seen · 59 lines · 99 tokens per session scan A 2c24afe6701e

Subscribe to this mod's changes

cto-coding-session-hygiene is a skill published in the GitHub repository melaya-labs/melaya-mcp (1 stars, last pushed 9d ago), licensed Apache-2.0. It adds 99 tokens to every session and 983 once invoked, about $0.0004 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-11-12.

Related

cto-coding-session-hygiene compared with skills from other repositories

cto-coding-session-hygiene next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cto-coding-session-hygienemelaya-labs/melaya-mcpSkill19d agoApache-2.0A99Claude Code
papi-buildgetpapi/papiSkill1315d agoMITA26Claude Code
papi-autogetpapi/papiSkill1315d agoMITA35Claude Code
git-wrapupcyanheads/mcp-ts-coreSkill154todayApache-2.0A109Claude Code, Codex
git-wrapupcyanheads/pubmed-mcp-serverSkill1739d agoApache-2.0A109Claude Code
git-wrapupcyanheads/ntfy-mcp-serverSkill275d agoApache-2.0A109Claude Code
git-wrapupcyanheads/openalex-mcp-serverSkill1815d agoApache-2.0A109Claude Code