Efficient Coding

仓库创建 2026年5月12日最近提交 7 小时前SkillHot 收录 20 天前
▸ 精选理由

通用的代价意识与上下文精简策略,能显著降低模型开销

这个 Skill 做什么

在编程对话中始终应用节省上下文与高效解法的实践准则

在所有编程相关的对话里贯彻节省上下文、提高产出质量的做法:少发无关信息、用最精简的上下文解决问题、同时保留代码质量。适用于写代码、修 bug、重构、解释代码或运行工具时,任何规模的开发任务都适用。特别在于把‘代价最小的上下文’当首要约束,能更快拿到准确结果且省 token。

▸ 展开 SKILL.md 英文原文

Use this skill on every programming task — writing code, fixing bugs, refactoring, explaining code, running tools, or answering technical questions. Apply token-saving and quality-preserving practices throughout. Activate even when the user doesn't explicitly ask for efficiency — this skill is always relevant for software development work. Do not skip this skill for "simple" tasks; the rules apply at every scale.

Skill 开发管理编码效率上下文优化通用
110
Stars
14
Forks
40
仓库内 Skill
+7
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/EliasOulkadi/shokunin/master/.pack/skills/efficient-coding/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/EliasOulkadi/shokunin/master/.pack/skills/efficient-coding/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# Efficient Coding

## Core Principle

Every action has a token cost. The goal is to solve the task with the minimum
context needed — not minimum effort, minimum *waste*. Lean context produces faster
results and better attention on what matters.

---

## 1. Context — The Biggest Cost Driver

Context bloat (sending more than the model needs) is responsible for more wasted
tokens than any other cause. Attack it first.

**Search before reading:**
- Use Grep/Glob to find the exact file and line range before opening anything.
- Read only the section you need with `offset` + `limit`, not the whole file.
- Never dump entire directories or large files into context speculatively.

**Read each file at
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有