Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问许可证需确认审计提醒

code-research代码研究

Agent Skill

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

总安装

544

周安装

22

GitHub Stars

2

下载量

171
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/tgautier/dotfiles --skill code-research

简介

code-research 建立权威代码研究方法论,优先采用标准组织、大厂实践与专家著作作为依据。

  • 适用于架构决策、模式选型或实现方案验证场景,确保答案来自最佳实践而非主观猜测。
  • 边界限定于工程领域,不处理非技术问题,需用户提供明确关键词与上下文线索。
  • 使用前应确认是否需要联网获取最新资料,并评估其对模型缓存与 token 消耗的影响。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

Code Research

Methodology for researching code patterns, architecture decisions, and implementation approaches. This skill governs *how to find answers* and *which sources to trust* — ensuring research always prioritizes industry best practice, elegant idiomatic implementations, and authoritative sources.

Based on standards bodies (IETF, W3C, ECMA, ISO, POSIX), Big Tech engineering publications (Google, Stripe, Cloudflare, Meta, AWS, Netflix, Discord), recognized expert writings (Fowler, Beck, Hickey, Kleppmann, Pike, Cantrill), and well-governed OSS reference implementations.

Scope boundary: This skill covers research *methodology* — where to look, what to trust, how to report findings. For domain-specific guidance: - API contract decisions and HTTP semantics → API Design skill (/api-design) - Rust implementation patterns → Rust skill (/rust) - TypeScript/React patterns → TypeScript skill (/typescript) - Security posture and threat models → Web Security skill (/web-security)

1. Source Authority Hierarchy

Rank sources by authority. Higher tiers override lower tiers when they conflict.

Tier 1 — Standards and specifications

The ground truth. Always check here first when a standard exists.

SourceDomain
IETF RFCsHTTP, TLS, DNS, URI, OAuth, JWT, email
W3CHTML, CSS, DOM, Web APIs, accessibility
ECMAJavaScript/TypeScript language semantics
ISOCharacter encoding, date/time, security
POSIX / IEEEShell, filesystem, signals, process model
Language specsRust Reference, Go Spec, Python Language Reference

Tier 2 — Big Tech engineering (on topics where they lead)

Trust a company's engineering publications *only on topics where they are a recognized leader*. A company's blog post outside their domain of expertise is Tier 5.

CompanyTrust onDo not generalize to
GoogleDistributed systems, API design (AIP), SRE, protocol buffers, observabilityFrontend patterns, DX
StripePayments, API developer experience, idempotency, webhook designInfrastructure, systems
CloudflareNetworking, edge computing, DNS, DDoS, HTTP semanticsApplication architecture
MetaReact, UI component design, GraphQL, large-scale frontendBackend API design
AWSCloud infrastructure, serverless, managed servicesApplication-level patterns
NetflixResilience engineering, chaos engineering, streaming at scaleAPI design, frontend
DiscordReal-time communication at scale, WebSocket patterns, Rust at scaleEnterprise patterns

Tier 3 — Recognized expert figures

Individuals with sustained, peer-recognized contributions. Their writings carry authority on their specific domains.

ExpertDomain
Martin FowlerArchitecture, refactoring, enterprise patterns
Kent BeckTDD, XP, software design
Rich HickeySimplicity, data-oriented design, immutability
Martin KleppmannDistributed data, consistency models, stream processing
Rob PikeSystems programming, Go philosophy, simplicity
Bryan CantrillSystems observability, debugging, DTrace
Dan AbramovReact patterns, mental models for UI

Tier 4 — Well-maintained OSS projects

Reference implementations with strong governance. Code as documentation of best practice.

  • Criteria: active maintenance, multiple contributors, clear governance, production use at scale
  • Examples: tokio (async Rust), React (UI), PostgreSQL (relational DB), Linux kernel (OS), Axum (web framework), Go standard library

Tier 5 — Community content

Useful for discovery and initial orientation. Never rely on as sole authority.

  • Conference talks, blog posts, tutorials, Stack Overflow answers, Reddit discussions, dev.to articles, Medium posts
  • Always verify claims from Tier 5 sources against higher-tier sources before adopting

2. Evaluating Sources

Recency

  • Check version alignment: Is the advice for the current major version of the tool/language? Post-React 18 patterns differ significantly from pre-hooks era. Rust 2021 edition changed trait resolution.
  • Check standard status: Is the RFC ratified or still a draft? Draft standards may change. Note the distinction explicitly (e.g., "OAuth 2.1 draft" vs "RFC 9700").
  • Deprecation signals: Archived repos, "this approach is no longer recommended" notices, superseded RFCs.

Context match

  • Production scale vs hobby project: A pattern that works for a personal blog may fail at 10k RPS. Match the source's deployment context to yours.
  • Team size: Patterns designed for 500-engineer organizations may have different trade-offs for a 3-person team — but smaller teams still need correct, robust implementations. Team size affects *what* you build, not *how well* you build it.
  • Language/ecosystem: A pattern idiomatic in Go (explicit error returns) should not be cargo-culted into Rust (Result types) or TypeScript (exceptions).

Conflict resolution

When authoritative sources disagree:

  1. Trace to Tier 1: If a standard exists, it wins
  2. Compare production evidence: Which approach is proven at scale? By how many independent organizations?
  3. Check recency: The more recent source may reflect lessons learned
  4. Note the conflict explicitly in findings — don't silently pick a winner
  5. Present both positions with their trade-offs and let the planner/user decide

3. Research Process

Search strategy

Follow this order. Stop when you have sufficient authoritative coverage.

  1. Official docs and specs — language reference, framework docs, relevant RFCs
  2. Engineering blogs from domain leaders — Tier 2 companies on their specialty topics
  3. Expert writings — Tier 3 figures on their domains
  4. Reference implementations — Tier 4 OSS projects, read the actual code
  5. Community content — Tier 5 for discovery, patterns you haven't considered

Cross-reference requirement

Before adopting a pattern or recommendation:

  • Verify against at least two authoritative sources (Tier 1-3)
  • If only Tier 5 sources exist, flag this explicitly in findings
  • If a single authoritative source exists with no corroboration, note this — it may still be correct, but confidence is lower

Web search guidance

  • Start with specific queries: "RFC 9457" problem details not api error handling
  • Include version numbers: react 19 server components not react server components
  • Prefer primary sources in results: site:datatracker.ietf.org, site:stripe.com/docs
  • When evaluating blog posts, check the author's credentials and the publication date

4. Quality Standards

When researching implementations, evaluate every candidate pattern against these quality dimensions — in priority order:

Standards compliance

The best solution conforms to established standards. A technically elegant approach that violates HTTP semantics, language specifications, or protocol requirements is not a good solution. Standards exist because they encode hard-won consensus about interoperability and correctness.

Reliability and robustness

Prefer patterns that handle failure gracefully, degrade predictably, and have been battle-tested under adversarial conditions. Evaluate:

  • Error handling completeness — does the pattern account for all failure modes, not just the happy path?
  • Edge case behavior — how does it handle empty inputs, concurrent access, network partitions, clock skew?
  • Recovery characteristics — does it fail fast, fail safe, or fail silently? Fail-fast with clear diagnostics is preferred.
  • Observability — can you tell what went wrong from logs and metrics alone, without attaching a debugger?

Elegance and coherence

The best solution is the one that fully and properly solves the problem with nothing extraneous and nothing missing. Evaluate:

  • Idiomatic to the language/framework — not translated from another ecosystem. Go error handling should not look like Java exceptions. Rust should use ? and Result, not boolean flags.
  • No unnecessary moving parts — fewer allocations, fewer indirections, fewer configuration knobs. But "fewer" never means "skip what's needed." Three lines of clear code beats a clever one-liner, but don't remove structure that protects correctness.
  • Conceptual clarity — can a new team member understand the pattern without a 30-minute explanation? If not, the complexity must be justified by the problem's inherent complexity.
  • Composability — does the pattern compose well with the rest of the system, or does it require special plumbing everywhere it's used?

Industrial-grade quality

The pattern should be production-ready — not a prototype that "works on my machine":

  • Proven at scale — used in production by organizations that have validated the approach under load, failure, and maintenance pressure
  • Maintainable — easy to modify, extend, and debug six months from now by someone who didn't write it
  • Testable — can be unit tested, integration tested, and property tested without elaborate mocking
  • Operationally sound — supports deployment, rollback, monitoring, and incident response

Language-specific idiom sources

Defer to the language-specific skill for detailed idiom guidance:

  • Rust idioms → Rust skill (/rust)
  • TypeScript/React idioms → TypeScript skill (/typescript)
  • For languages without a dedicated skill, refer to the language's official style guide and Tier 4 reference implementations

5. Reporting Findings

Attribution format

When writing research.md or reporting findings, attribute sources with:

  • Tier level — so the reader knows the authority weight
  • Author or organization — who said this
  • Date or version — when, to assess recency
  • URL — when available, for verification

Example: (Tier 1, IETF RFC 9457, 2023) or (Tier 2, Stripe engineering blog, 2024) or (Tier 5, Stack Overflow answer, 2022 — verify against primary source)

Confidence signals

  • Flag when only lower-tier sources exist — "No Tier 1-3 sources found; recommendation is based on community consensus only"
  • Flag conflicts explicitly — "Google AIP recommends X; Stripe practice differs with Y. Trade-off:..."
  • Flag draft standards — "Based on OAuth 2.1 draft (not yet ratified); may change"
  • Flag recency concerns — "Source predates React 19; patterns may be outdated"

Structure

Write findings to research.md with sections: Summary, Stack, Existing patterns, Integration points, Gotchas, Testing, Open questions. Add a ## Sources section at the end with tiered attribution for all referenced materials.


6. Anti-patterns

Anti-patternWhy it failsFix
Treating Stack Overflow as authoritativeAnswers are community-voted, not peer-reviewed; many are outdatedVerify against Tier 1-3 sources
Following outdated blog postsPre-major-version advice can be actively harmfulCheck version alignment and deprecation signals
Cargo-culting patterns without contextA pattern from a 10M-user system may be over-engineered for your use caseMatch the source's deployment context to yours
Conflating popularity with correctnessMost-upvoted answer may be most accessible, not most correctTrace to authoritative sources
Citing a company outside their domainGoogle's frontend advice is not as authoritative as their distributed systems guidanceCheck the Tier 2 domain column
Silently picking a winner when sources conflictHides important trade-off information from the decision-makerPresent both positions with trade-offs
Relying on a single sourceEven authoritative sources can be wrong or context-specificCross-reference at least two sources
Translating idioms across ecosystemsJava patterns in Go, Python patterns in Rust — produces non-idiomatic codeResearch the target language's conventions first

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

40.18%
按下载量换算69

Claude

28.42%
按下载量换算49

Cursor

19.38%
按下载量换算33

Gemini CLI

9.49%
按下载量换算16

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/tgautier/dotfiles --skill code-research 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

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

来源信息

继续浏览同类 Skills