Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问许可证需确认审计通过

implement实现

Agent Skill

implement 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

12,929

周安装

523

GitHub Stars

6

下载量

4,058
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:implement(实现)
来源仓库:https://github.com/hyperb1iss/hyperskills
仓库路径:skills/implement
安装命令:
npx skills add https://github.com/hyperb1iss/hyperskills --skill implement
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/hyperb1iss/hyperskills --skill implement

简介

implement 用于查找、检索和筛选相关信息。

  • 适合在 Codex、Claude、Cursor、Gemini CLI 中根据关键词快速定位候选结果。
  • 通过 npx skills add 命令从 hyperb1iss/hyperskills 仓库安装。
  • 安装前需确认权限范围和维护状态,避免触发联网或文件读写。
  • 建议参考原始 README 了解具体实现逻辑和使用场景。

SKILL.md

Implementation

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.

The Sequence

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"];
    "COMMIT" -> "IMPLEMENT" [label="next chunk", style=dashed];
}

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 — Atomic chunks, committed as you go. Verify, stage specific files, commit, then loop back to the next chunk. Many small commits per session is the norm. See Commit Cadence below for message anatomy.


Code Discipline

Behavioral lens that governs every phase of the loop. Adapted from Karpathy's observations on LLM coding pitfalls — models "make wrong assumptions on your behalf and just run along with them without checking... they really like to overcomplicate code and APIs, bloat abstractions... implement a bloated construction over 1000 lines when 100 would do."

These principles bias toward caution over speed. For trivial fixes, use judgment.

Think before coding

Don't assume. Don't hide confusion. Surface tradeoffs.

SituationAction
Multiple interpretations of the requestPresent them; don't pick silently
A simpler approach is plausibleSay so; push back when warranted
Something is unclearStop; name what's confusing; ask
You hold a load-bearing assumptionState it explicitly
Inconsistency between request and codeSurface it before proceeding

ORIENT (read the code) is the prerequisite. This principle is what to do with what you find: name the gaps, don't paper over them.

Simplicity first

Minimum code that solves the problem. Nothing speculative.

Don'tDo
Add features beyond what was askedSolve exactly the stated problem
Build abstractions for single-use codeInline first; abstract when reused
Add "flexibility" or configurability not askedHardcode now; parameterize on demand
Handle errors for impossible scenariosTrust internal invariants; validate at edges
Write 200 lines when 50 would doRewrite tighter

The test: would a senior engineer call this overcomplicated? If yes, simplify.

Surgical changes

Touch only what you must. Clean up only your own mess.

RuleWhy
Don't "improve" adjacent code, comments, or formattingPollutes the diff; outside your scope
Don't refactor code that isn't brokenScope creep expands blast radius
Match existing style even if you'd do it differentlyLocal consistency beats your preferences
Notice unrelated dead code → mention, don't deleteOther branches/agents may rely on it
Remove imports/vars/funcs *your* changes orphanedClean up after yourself
Leave pre-existing dead code aloneOutside your remit unless explicitly asked
Don't touch comments you don't understandKarpathy: "side effects... orthogonal to task"

The test: every changed line should trace directly to the user's request.

Goal-driven execution

Define verifiable success. Loop until it passes.

Vague taskVerifiable goal
"Add validation"Write tests for invalid inputs, then make them pass
"Fix the bug"Write a test that reproduces it, then make it pass
"Refactor X"Ensure the same tests pass before and after
"Make it work"Reject — name the actual signal that proves it works

For multi-step work, state the plan with verification per step:

1. [Step] → verify: [check]
2. [Step] → verify: [check]
3. [Step] → verify: [check]

Strong success criteria let you loop independently. Weak criteria require constant clarification.


Scale Selection

Strategy changes dramatically based on scope. Pick the right weight class:

ScaleEditsStrategy
Trivial (config, typo)1-5Read -> Edit -> Verify -> Commit
Small fix5-20Grep error -> Read -> Fix -> Test -> Commit
Feature50-200Plan -> Layer-by-layer impl -> Verify per layer
Subsystem300-500Task planning -> Wave dispatch -> Layer-by-layer
Epic1000+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.


Dependency Chain

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):

  1. Database model + migration
  2. Service/business logic layer
  3. API routes (FastAPI or tRPC)
  4. Frontend API client
  5. React hooks wrapping API calls
  6. UI components consuming hooks
  7. Lint -> typecheck -> test -> commit

Rust:

  1. Error types (thiserror enum with #[from])
  2. Type definitions (structs, enums)
  3. Core logic (impl blocks)
  4. Module wiring (mod.rs re-exports)
  5. cargo check -> cargo clippy -> cargo test

Key finding: Database migrations are written AFTER the code that needs them. Frontend drives backend changes as often as the reverse.


Verification Cadence

The single most impactful practice. Get this right and everything else follows.

GateWhenSpeed
TypecheckAfter every 2-3 editsFast (primary gate)
Lint (autofix)After implementation batchFast
Tests (specific)After feature completeMedium
Tests (full suite)Before commitSlow
BuildBefore PR/deploy onlySlowest

The Edit-Verify-Fix Cycle

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:

  • Run lint:fix BEFORE lint check to reduce iterations
  • cargo check over cargo build (2-3x faster, same error detection)
  • Truncate verbose output: 2>&1 | tail -20
  • Wrap tests with timeout: timeout 120 uv run pytest

Decision Trees

Read vs Edit

Familiar 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)

Subagents vs Direct Work

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)

Refactoring Approach

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

Bug Fix vs Feature vs Refactor

TypeCadenceTypical Cycles
Bug fixGrep error -> Read 2-5 files -> Edit 1-3 files -> Test -> Commit1-2
FeaturePlan -> Models -> API -> Frontend -> Test -> Commit5-15
RefactorAudit -> Gap analysis -> Incremental migration -> Verify parity10-30+
UpgradeResearch changelog -> Identify breaking changes -> Bump -> Fix consumersVariable

Error Recovery

65% of debugging sessions resolve in 1-2 iterations. The remaining 35% risk spiraling into 6+ iterations.

Quick Resolution (Do This)

  1. Read relevant code first (79% success correlation)
  2. Form explicit hypothesis: "The issue is X because Y"
  3. Make ONE targeted fix
  4. Verify the fix worked

Spiral Prevention (Avoid This)

  1. Separate error domains — fix ALL type errors first, THEN test failures. Never interleave.
  2. 3-strike rule — after 3 failed attempts on same error: change approach entirely, or escalate.
  3. Cascade depth > 3 — pause, enumerate ALL remaining issues, fix in dependency order.
  4. Context rot — after ~15-20 iterations, /clear and start fresh. A clean session with a better prompt beats accumulated corrections every time.

The Two-Correction Rule

If you've corrected the same issue twice, /clear and restart. Accumulated context noise defeats accuracy.


Commit Cadence

Commit as you go. Each commit captures one logical chunk that has been built, verified, and tested. Many small commits per session is the norm — never accumulate hours of unrelated work into a single mega-commit. The COMMIT step in the macro-sequence loops back to IMPLEMENT for the next chunk; that loop is the rhythm.

When to commit

TriggerAction
Logical chunk done and verification passesCommit now
Move/rename complete (before behavioral changes)Commit (move)
Behavioral change works (after the move commit)Commit (change)
Refactor extracted, callers still passCommit
Test added that exercises a fixed bugCommit
About to switch to a different concernCommit current
Verification fails mid-chunkDon't commit
Speculative or exploratory editsDon't commit

Rule of thumb: if a reviewer would want to read it as a separate diff, it's a separate commit.

Local style first

Before the first commit in any repo, detect the local style. Repos have personalities — your commits should match.

git log -10 --oneline

Observe the actual patterns and mirror them:

PatternExampleMirror
Conventional Commitsfeat(api): add token refreshtype(scope): msg
Gitmoji✨ Add token refreshLeading emoji + msg
Ticket prefix[ENG-1234] Add token refreshMirror bracket style
Module prefixauth: add token refreshMirror separator
PlainAdd token refreshNo prefix, plain

Mirror format, NOT quality. If existing commits are terse one-liners, you still write a descriptive subject and body — you're elevating the standard, not lowering yours to match. If no clear pattern exists, default to Conventional Commits.

Conventional Commits (default)

Format: type(scope): subject. Scope is optional but encouraged when the change is localized.

TypeWhen
featNew user-facing capability
fixBug fix
refactorRestructure without behavior change
perfPerformance improvement
testAdd/update tests only
docsDocumentation only
styleFormatting, whitespace (no logic change)
choreTooling, deps, housekeeping
buildBuild system, packaging
ciCI/CD configuration

Message anatomy

Subject line:

RuleWhy
Imperative mood"Add token refresh", not "Added" or "Adds"
≤72 charactersRenders cleanly in git log --oneline and PR lists
No trailing periodIt's a title, not a sentence
No emojis (Conventional)Breaks parser tooling; emoji belongs in body if anywhere
Skip filenamesThe diff already shows them — describe behavior, not paths
Be specific"Fix null deref in token refresh" beats "Fix bug"

Body (always include one):

  • Explain why, not what — the diff shows what
  • Wrap at ~72 chars, separate from subject with one blank line
  • Two sentences is often enough; a few short paragraphs when warranted
  • Mention load-bearing context: hidden constraints, related issues, what a future bisect would want to know
  • No uncertain language. Banish "likely", "probably", "might", "seems", "appears to", "presumably". You wrote the code — state facts. If you don't know what a change does, read more before committing.

Co-Authored-By

When an agent does meaningful work in a commit, add a Co-Authored-By: trailer with a descriptive identity that names the model. This makes attribution legible across multi-agent sessions and git log.

Co-Authored-By: Nova (Claude Opus 4.7) <noreply@anthropic.com>

Use a name that signals which model or persona contributed — not just "Claude".

The HEREDOC pattern

Always pass commit messages via HEREDOC to preserve formatting and avoid shell-quoting bugs:

git commit -m "$(cat <<'EOF'
fix(auth): guard against null session in token refresh

Refresh requests racing with logout were dereferencing a freed session
pointer, surfacing as a 500 with no log trail. Added an early return
that emits a single warn log so the failure mode is visible without
spamming on every refresh attempt.

Co-Authored-By: Nova (Claude Opus 4.7) <noreply@anthropic.com>
EOF
)"

Examples

BadWhy badGood
fix: bugVaguefix(api): resolve null pointer in token refresh
update stuffNo type, no specificitychore(deps): bump axios to 1.7.4
WIPNot a commit messagefeat(auth): scaffold magic-link sign-in flow
Added new file for usersFilename + past tensefeat(users): add bulk import endpoint
feat: it works nowDoesn't say what worksfeat(search): add fuzzy matching to user lookup

Multi-agent hygiene

Other agents may be working in parallel. Stage with care:

git status                # See the full picture first
git diff --staged         # Review what you're about to commit
git add <specific-files>  # Only files you personally touched
git commit -m "..."       # HEREDOC for the message
RuleWhy
Never git add -A or git add.Picks up other agents' WIP and secrets
Never git restore files you didn't modifyMay discard another agent's in-flight work
Never git push unless explicitly askedPush is the human's call
Skip planning docs, scratch files, .local.mdThese don't belong in the repo
Verify before commit, not afterA red commit poisons bisect history

Anti-Patterns

Anti-PatternFix
20+ edits without verificationVerify every 2-3 edits
Fix without verifying the fix (73% of fixes!)One fix, one verify, repeat
fix -> fix -> fix chains without checkingAlways verify between fixes
Editing without reading firstRead the file immediately before editing
Writing tests from memoryRead actual function signatures first
Changing shared types without grepping consumersGrep all usages before modifying shared types
Mixing move and change in one commitMove first commit, change second commit
Debugging spiral past 3 attemptsChange approach or escalate
Premature optimizationCorrectness first, optimize after tests pass
One mega-commit at end of sessionCommit each logical chunk as it lands
Bare titles like fix: bug or update stuffSpecific subject + body explaining why
Skipping the body to "save time"Always include a body — even two sentences
Filenames or paths in the subject lineDescribe the behavior, not the file
Uncertain language ("might fix", "should work")State facts; read more code if you don't know
git add -A / git add.Stage specific files only
git push without explicit requestPush is the human's call; never autonomous
Silently picking one interpretationSurface options; ask before committing to one
"Improving" code adjacent to your changeStay surgical; touch only what's asked
Touching comments you don't understandLeave them; not your scope
Bloated abstraction for single-use codeWrite the function; abstract when reused
Vague "make it work" goalDefine a verifiable check first

Cross-Model Review

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.


References

For quantitative benchmarks and implementation archetype templates, consult references/benchmarks.md.


What This Skill is NOT

  • Not a gate. Don't follow all five phases for a typo fix. Scale selection exists for a reason.
  • Not a replacement for reading code. This skill tells you HOW to implement, not WHAT to implement.
  • Not a planning tool. Use /hyperskills:plan for task decomposition.
  • Not an excuse to skip tests. "Verify" means running actual checks, not eyeballing the diff.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

39.96%
按下载量换算1,622

Claude

30.11%
按下载量换算1,222

Cursor

17.32%
按下载量换算703

Gemini CLI

9.48%
按下载量换算385

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills