before-you-code

before-you-code is a skill for Claude Code, Codex from Go1c/LumioAgent. It costs 56 tokens per session (596 once invoked), scanned A, original, MIT.

A preparation process that loads relevant project guidance and chooses how deeply to inspect the code before making changes.

In plain words
What is it for?
It is for classifying a task by size, reading the related knowledge and source files, confirming where changes belong, and planning the work before coding.
Why use it?
It reduces the risk of editing code without knowing the project's conventions, required context, or expected output location.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions AGENTS.md.

Good fit It is for classifying a task by size, reading the related knowledge and source files, confirming where changes belong, and planning the work before coding.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/go1c/lumioagent/before-you-code
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 Go1c/LumioAgent --skill before-you-code
Clone the repo
git clone --depth 1 https://github.com/Go1c/LumioAgent

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 before-you-code

README.md
[![agentmods](https://agentmods.dev/badge/skills/go1c/lumioagent/before-you-code/github.svg)](https://agentmods.dev/skills/go1c/lumioagent/before-you-code)
Your own site
<a href="https://agentmods.dev/skills/go1c/lumioagent/before-you-code"><img src="https://agentmods.dev/badge/skills/go1c/lumioagent/before-you-code/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 before-you-code

Your own site · 80×15
<a href="https://agentmods.dev/skills/go1c/lumioagent/before-you-code"><img src="https://agentmods.dev/badge/skills/go1c/lumioagent/before-you-code.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 596 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.00056 $0.00596
Opus 5.5 $0.00022 $0.00238
Sonnet 5.5 $0.00011 $0.00119
Haiku 4.5 $0.00006 $0.00060

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

Security

Grade A, and why

before-you-code 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 2mo 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.

.spec/skills/before-you-code/SKILL.md · 41 lines

What it actually says

Before You Code(执行前协议)

动手前完成两件事:校准执行深度、加载相关上下文。项目约定与环境约束编码在 knowledge/ 与 skills/ 里,不在模型训练数据中——不读相关规范就动手,等于假设自己的默认行为恰好符合本项目约定。

何时使用

  • 拿到任务卡,即将开始实现。
  • 修改已有模块,但不确定该模块的规范或约定。
  • 「我知道怎么做,直接开干」的冲动出现时——这正是需要先读一遍的信号。

操作步骤

第一步:按任务规模校准深度(快 > 稳 > 好)

任务规模 特征 读取深度 执行方式
小 改动 ≤ 1 个文件,逻辑独立 只读直接相关的 knowledge 文档 + 被改源文件 直接实现,一次完成
中 涉及 2–5 个文件,有跨模块影响 查 knowledge/README.md 导航,读全部相关文档与 Skill 先列改动清单,再逐项实现
大 多模块、多步骤、有依赖关系 — 停下向主 loop 报告,建议用 task-breakdown 重新拆卡

低估规模是最常见的失误:涉及多模块就承认是「中」,不要当「小」处理。

第二步:加载上下文

按上表深度读取:相关 knowledge 文档(经 knowledge/README.md 导航定位)、本任务用得上的 Skill 的 SKILL.md、任务涉及的关键源文件(接口定义、被改模块的现有实现)。读完就用,不把读到的内容复述到回复里。

第三步:确认输出位置

改已有文件 → 定位到具体位置,最小化改动;新建文件 → 确认目录与命名约定。改动边界守 AGENTS.md「编码约定·不夹带」。

验证

  • 已按任务规模选定读取深度,并读完对应的 knowledge / Skill / 源文件。
  • 已确定输出位置与命名约定。
  • 规模为「大」时已上报主 loop,没有硬撑。
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. 2mo ago First seen · 41 lines · 56 tokens per session scan A 58051cfd1c25

Subscribe to this mod's changes

before-you-code is a skill published in the GitHub repository Go1c/LumioAgent (20 stars, last pushed 4mo ago), licensed MIT. It adds 56 tokens to every session and 596 once invoked, about $0.0002 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

before-you-code compared with skills from other repositories

before-you-code next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
before-you-codeGo1c/LumioAgentSkill204mo agoMITA56Claude Code, Codex
imagegenopenai/codexSkill135ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill100ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill394ktodayMITA36Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill80k6d agoMITA200Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill143ktodayMITA95Claude Code
chat-pet-sprite-creationmicrosoft/vscodeSkill195ktodayMITA53Claude Code, Codex