npx skills add https://github.com/hyperb1iss/hyperskills --skill implement通过紧密的反馈循环进行验证驱动的编码。从 64 多个项目中的 21,321 次跟踪操作、612 次调试会话和 2,476 条对话历史中提炼而来。这些是能够持续交付有效代码的模式。
核心洞察: 进行 2-3 次编辑,然后验证。73% 的修复未经验证 —— 这是首要的质量差距。一个干净的会话和调试漩涡之间的区别在于验证节奏。
无论规模大小,每次实现都遵循相同的宏观序列:
digraph implement {
rankdir=LR;
node [shape=box];
"ORIENT" [style=filled, fillcolor="#e8e8ff"];
"PLAN" [style=filled, fillcolor="#fff8e0"];
"IMPLEMENT" [style=filled, fillcolor="#ffe8e8"];
"VERIFY" [style=filled, fillcolor="#e8ffe8"];
"COMMIT" [style=filled, fillcolor="#e8e8ff"];
"ORIENT" -> "PLAN";
"PLAN" -> "IMPLEMENT";
"IMPLEMENT" -> "VERIFY";
"VERIFY" -> "IMPLEMENT" [label="fix", style=dashed];
"VERIFY" -> "COMMIT" [label="pass"];
}
ORIENT — 在修改任何内容之前,先阅读现有代码。Grep -> Read -> Read 是主要的开场方式。在首次编辑前阅读 10 个以上文件的会话需要更少的修复迭代。切勿从盲目更改开始。
PLAN — 取决于规模(见下文)。对于琐碎的修复可以跳过,为功能编写任务列表,为史诗级任务运行研究群。
IMPLEMENT — 以 2-3 次编辑为一批进行工作,然后验证。遵循依赖链。编辑现有文件与创建新文件的比例为 9:1。立即修复错误 —— 不要累积它们。
VERIFY — 类型检查是首要关卡。每进行 2-3 次编辑后运行一次。功能完成后运行测试。提交前运行完整测试套件。
— 测试是最终关卡。仅暂存特定文件,切勿使用 。使用 HEREDOC 提交消息,并遵循约定式提交格式。
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
git add -A策略根据范围发生巨大变化。选择正确的重量级:
| 规模 | 编辑次数 | 策略 |
|---|---|---|
| 琐碎 (配置,拼写错误) | 1-5 | 阅读 -> 编辑 -> 验证 -> 提交 |
| 小修复 | 5-20 | Grep 错误 -> 阅读 -> 修复 -> 测试 -> 提交 |
| 功能 | 50-200 | 计划 -> 逐层实现 -> 每层验证 |
| 子系统 | 300-500 | 任务规划 -> 分批调度 -> 逐层实现 |
| 史诗级 | 1000+ | 研究群 -> 规范 -> 并行代理 -> 集成 |
跳过计划的情况: 范围明确,单文件更改,修复可以用一句话描述。
需要计划的情况: 多个文件,不熟悉的代码,方法不确定。
按此顺序构建事物。已在全栈、Rust 和 monorepo 项目中验证:
Types/Models -> Backend Logic -> API Routes -> Frontend Types -> Hooks/Client -> UI Components -> Tests
全栈 (Python + TypeScript):
Rust:
#[from] 的 thiserror 枚举)impl 块)mod.rs 重新导出)cargo check -> cargo clippy -> cargo test关键发现: 数据库迁移是在需要它们的代码之后编写的。前端驱动后端更改与后端驱动前端更改的频率一样高。
最具影响力的单一实践。做好这一点,其他一切都会随之而来。
| 关卡 | 时机 | 速度 |
|---|---|---|
| 类型检查 | 每 2-3 次编辑后 | 快 (首要关卡) |
| 代码检查 (自动修复) | 实现批次完成后 | 快 |
| 测试 (特定) | 功能完成后 | 中 |
| 测试 (完整套件) | 提交前 | 慢 |
| 构建 | 仅在 PR/部署前 | 最慢 |
最佳点:3 次更改 -> 验证 -> 1 次修复。这是最常见的成功模式。
代价高昂的模式:2 次更改 -> 类型检查 -> 15 次修复 (类型级联)。通过在修改共享类型前 grep 所有使用者来预防。
组合关卡节省时间: turbo lint:fix typecheck --filter=pkg 一次性运行两者。将验证范围限定在受影响的包,而不是整个 monorepo。
实用技巧:
lint 检查之前运行 lint:fix 以减少迭代次数cargo check 而不是 cargo build (速度快 2-3 倍,错误检测相同)2>&1 | tail -20timeout 120 uv run pytestFamiliar file you edited this session?
Yes -> Edit directly (verify after)
No -> Read it this session?
Yes -> Edit
No -> Read first (79% of quick fixes start with reading)
Self-contained with a clear deliverable?
Yes -> Produces verbose output (tests, logs, research)?
Yes -> Subagent (keeps context clean)
No -> Need frequent back-and-forth?
Yes -> Direct
No -> Subagent
No -> Direct (iterative refinement needs shared context)
Can changes be made incrementally?
Yes -> Move first, THEN consolidate (separate commits)
New code alongside old, remove old only after tests pass
No -> Analysis phase first (parallel review agents)
Gap analysis: old vs new function-by-function
Implement gaps as focused tasks
| 类型 | 节奏 | 典型循环次数 |
|---|---|---|
| 错误修复 | Grep 错误 -> 阅读 2-5 个文件 -> 编辑 1-3 个文件 -> 测试 -> 提交 | 1-2 |
| 功能 | 计划 -> 模型 -> API -> 前端 -> 测试 -> 提交 | 5-15 |
| 重构 | 审计 -> 差距分析 -> 增量迁移 -> 验证对等性 | 10-30+ |
| 升级 | 研究变更日志 -> 识别破坏性更改 -> 升级版本 -> 修复使用者 | 可变 |
65% 的调试会话在 1-2 次迭代内解决。 剩下的 35% 有陷入 6 次以上迭代的风险。
/clear 并重新开始。一个带有更好提示的干净会话每次都胜过累积的修正。如果你已经两次修正了同一个问题,使用 /clear 并重新开始。累积的上下文噪音会降低准确性。
| 反模式 | 修复方法 |
|---|---|
| 20+ 次编辑未经验证 | 每 2-3 次编辑后验证 |
| 修复后未验证修复 (73% 的修复!) | 一次修复,一次验证,重复进行 |
修复 -> 修复 -> 修复 链而不检查 | 在修复之间始终进行验证 |
| 未先阅读就编辑 | 在编辑前立即阅读文件 |
| 凭记忆编写测试 | 首先阅读实际的函数签名 |
| 修改共享类型而不 grep 使用者 | 在修改共享类型前 Grep 所有使用情况 |
| 在一个提交中混合移动和更改 | 移动为第一个提交,更改为第二个提交 |
| 调试尝试超过 3 次后陷入漩涡 | 改变方法或升级处理 |
| 过早优化 | 先确保正确性,测试通过后再优化 |
对于高风险更改,在实现后使用 /hyperskills:codex-review。一个全新的模型上下文消除了实现偏见,并能发现真正的错误:迁移的幂等性、调试日志中的 PII、空数组边界情况、缺失的批量限制。
关于定量基准和实现原型模板,请查阅 references/benchmarks.md。
/hyperskills:plan 进行任务分解。每周安装数
129
仓库
GitHub 星标数
2
首次出现
2026 年 2 月 19 日
安全审计
安装于
claude-code126
gemini-cli8
github-copilot8
codex8
amp8
kimi-cli8
Verification-driven coding with tight feedback loops. Distilled from 21,321 tracked operations across 64+ projects, 612 debugging sessions, and 2,476 conversation histories. These are the patterns that consistently ship working code.
Core insight: 2-3 edits then verify. 73% of fixes go unverified — that's the #1 quality gap. The difference between a clean session and a debugging spiral is verification cadence.
Every implementation follows the same macro-sequence, regardless of scale:
digraph implement {
rankdir=LR;
node [shape=box];
"ORIENT" [style=filled, fillcolor="#e8e8ff"];
"PLAN" [style=filled, fillcolor="#fff8e0"];
"IMPLEMENT" [style=filled, fillcolor="#ffe8e8"];
"VERIFY" [style=filled, fillcolor="#e8ffe8"];
"COMMIT" [style=filled, fillcolor="#e8e8ff"];
"ORIENT" -> "PLAN";
"PLAN" -> "IMPLEMENT";
"IMPLEMENT" -> "VERIFY";
"VERIFY" -> "IMPLEMENT" [label="fix", style=dashed];
"VERIFY" -> "COMMIT" [label="pass"];
}
ORIENT — Read existing code before touching anything. Grep -> Read -> Read is the dominant opening. Sessions that read 10+ files before the first edit require fewer fix iterations. Never start with blind changes.
PLAN — Scale-dependent (see below). Skip for trivial fixes, write a task list for features, run a research swarm for epics.
IMPLEMENT — Work in batches of 2-3 edits, then verify. Follow the dependency chain. Edit existing files 9:1 over creating new ones. Fix errors immediately — don't accumulate them.
VERIFY — Typecheck is the primary gate. Run it after every 2-3 edits. Run tests after feature-complete. Run the full suite before commit.
COMMIT — Tests are the final gate. Stage specific files only, never git add -A. HEREDOC commit messages with conventional commit format.
Strategy changes dramatically based on scope. Pick the right weight class:
| Scale | Edits | Strategy |
|---|---|---|
| Trivial (config, typo) | 1-5 | Read -> Edit -> Verify -> Commit |
| Small fix | 5-20 | Grep error -> Read -> Fix -> Test -> Commit |
| Feature | 50-200 | Plan -> Layer-by-layer impl -> Verify per layer |
| Subsystem | 300-500 | Task planning -> Wave dispatch -> Layer-by-layer |
| Epic | 1000+ | Research swarm -> Spec -> Parallel agents -> Integration |
Skip planning when: Scope is clear, single-file change, fix describable in one sentence.
Plan when: Multiple files, unfamiliar code, uncertain approach.
Build things in this order. Validated across fullstack, Rust, and monorepo projects:
Types/Models -> Backend Logic -> API Routes -> Frontend Types -> Hooks/Client -> UI Components -> Tests
Fullstack (Python + TypeScript):
Rust:
thiserror enum with #[from])impl blocks)mod.rs re-exports)cargo check -> cargo clippy -> cargo testKey finding: Database migrations are written AFTER the code that needs them. Frontend drives backend changes as often as the reverse.
The single most impactful practice. Get this right and everything else follows.
| Gate | When | Speed |
|---|---|---|
| Typecheck | After every 2-3 edits | Fast (primary gate) |
| Lint (autofix) | After implementation batch | Fast |
| Tests (specific) | After feature complete | Medium |
| Tests (full suite) | Before commit | Slow |
| Build | Before PR/deploy only | Slowest |
The sweet spot: 3 changes - > verify -> 1 fix. This is the most common successful pattern.
The expensive pattern: 2 changes - > typecheck -> 15 fixes (type cascade). Prevent by grepping all consumers before modifying shared types.
Combined gates save time: turbo lint:fix typecheck --filter=pkg runs both in one shot. Scope verification to affected packages, never the full monorepo.
Practical tips:
lint:fix BEFORE lint check to reduce iterationscargo check over cargo build (2-3x faster, same error detection)2>&1 | tail -20timeout 120 uv run pytestFamiliar file you edited this session?
Yes -> Edit directly (verify after)
No -> Read it this session?
Yes -> Edit
No -> Read first (79% of quick fixes start with reading)
Self-contained with a clear deliverable?
Yes -> Produces verbose output (tests, logs, research)?
Yes -> Subagent (keeps context clean)
No -> Need frequent back-and-forth?
Yes -> Direct
No -> Subagent
No -> Direct (iterative refinement needs shared context)
Can changes be made incrementally?
Yes -> Move first, THEN consolidate (separate commits)
New code alongside old, remove old only after tests pass
No -> Analysis phase first (parallel review agents)
Gap analysis: old vs new function-by-function
Implement gaps as focused tasks
| Type | Cadence | Typical Cycles |
|---|---|---|
| Bug fix | Grep error -> Read 2-5 files -> Edit 1-3 files -> Test -> Commit | 1-2 |
| Feature | Plan -> Models -> API -> Frontend -> Test -> Commit | 5-15 |
| Refactor | Audit -> Gap analysis -> Incremental migration -> Verify parity | 10-30+ |
| Upgrade | Research changelog -> Identify breaking changes -> Bump -> Fix consumers | Variable |
65% of debugging sessions resolve in 1-2 iterations. The remaining 35% risk spiraling into 6+ iterations.
/clear and start fresh. A clean session with a better prompt beats accumulated corrections every time.If you've corrected the same issue twice, /clear and restart. Accumulated context noise defeats accuracy.
| Anti-Pattern | Fix |
|---|---|
| 20+ edits without verification | Verify every 2-3 edits |
| Fix without verifying the fix (73% of fixes!) | One fix, one verify, repeat |
fix -> fix -> fix chains without checking | Always verify between fixes |
| Editing without reading first | Read the file immediately before editing |
| Writing tests from memory | Read actual function signatures first |
| Changing shared types without grepping consumers | Grep all usages before modifying shared types |
| Mixing move and change in one commit | Move first commit, change second commit |
| Debugging spiral past 3 attempts | Change approach or escalate |
| Premature optimization | Correctness first, optimize after tests pass |
For high-stakes changes, use /hyperskills:codex-review after implementation. A fresh model context eliminates implementation bias and catches real bugs: migration idempotency, PII in debug logging, empty array edge cases, missing batch limits.
For quantitative benchmarks and implementation archetype templates, consult references/benchmarks.md.
/hyperskills:plan for task decomposition.Weekly Installs
129
Repository
GitHub Stars
2
First Seen
Feb 19, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykPass
Installed on
claude-code126
gemini-cli8
github-copilot8
codex8
amp8
kimi-cli8
React 组合模式指南:Vercel 组件架构最佳实践,提升代码可维护性
115,300 周安装
Python类型注解教程:现代类型提示、TypedDict、Protocol与泛型实战指南
11 周安装
数据可视化技能 - 使用Matplotlib、Seaborn、Plotly创建专业图表 | CodeKit
12 周安装
AI团队合影生成器:169种风格定制个性化集体肖像照片
13 周安装
NotebookLM 集成技能:AI 文档查询与内容生成工具,提升研发与知识管理效率
125 周安装
Aster 现货 API WebSocket v3 测试网指南:实时市场数据与用户数据流
13 周安装
Aster Spot API v3 认证指南:测试网EIP-712签名与空操作详解
13 周安装