Token导航 LogoToken导航

Agent Skill · 研究检索

structure-first(结构优先)

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

structure-first 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为只读;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 38,018。

总安装 1,630周安装 70GitHub Stars 27下载 571核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/perhapsspy/structure-first --skill structure-first

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

structure-first 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。它支持基于关键词、任务场景或来源线索进行信息匹配与过滤,适用于研究类任务。

通过 npx skills add 命令从指定 GitHub 仓库安装,具体用法需结合 README 进一步确认。安装前建议核实权限范围、维护状态,并注意是否涉及联网、命令执行或文件读写操作。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/structure-first

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/perhapsspy/structure-first --skill structure-f…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它标注为只读,先用只读任务试一次,确认行为符合预期再扩大使用范围。

常见问题

6 条

structure-first 怎么安装?

在终端执行 npx skills add https://github.com/perhapsspy/structure-first --skill structure-first。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

structure-first 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

structure-first 需要什么权限?

权限级别是只读。该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

structure-first 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

structure-first 用的人多吗?

公开数据是累计安装 1,630 次,近一周安装 70 次,下载 571 次,GitHub 27 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

structure-first 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。
  • 标注为只读权限,试用阶段不容易误改本地文件。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。
  • 只想先试试效果、不希望它改动本地文件的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
structure-first

结构优先 · 本页

1,63027只读未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Skill: Structure First

Purpose

Primary Flow: the top-down readable main path that orchestrates the logic

When generating, refactoring, or reviewing code, prioritize a readable success path (Primary Flow) first. Keep boundaries minimal (only when needed), compose with Atoms (small units with one stable role and clear I/O), and secure stability through contract-driven tests rather than implementation-following tests.

Use / Do Not Use

  • Use this skill when the code shape itself is changing or when you are doing a structure-focused code review.
  • For planning, classification, or scope analysis, keep it as an internal lens rather than a response template.
  • Use it when code does not read naturally from top to bottom.
  • Use it when function/module splitting becomes excessive and utilities start to spread.
  • Use it when tests are drifting toward implementation-following patterns.
  • Do not use it for throwaway experiments or one-off exploratory code.
  • Do not use it for tiny changes where structural intervention would be excessive.

Core Bias

  • Readable flow > structural simplicity > reusability > abstraction
  • Prefer clarity of the current code over speculative future needs.
  • Splitting is not a goal; split only when readability clearly improves.

Operating Model

Pick one current unit and make that unit readable before moving outward. Local changes usually mean function/file. Feature work usually means module/use case. Larger refactors may mean capability/subsystem.

  1. Fix Intent
  • State the intent of the change/code in one sentence.
  • State the current unit before restructuring: function/file, module/use case, or capability/subsystem.
  1. Minimize Boundaries
  • Classify steps as I/O, domain decision, or transform.
  • Do not add more boundaries than necessary.
  1. Primary Flow First
  • Make the success path readable in one top-down pass.
  • Keep branches/exceptions from breaking the main flow (early return or push them downward).
  • A good result often still reads like normalize -> load -> decide -> return.
  • When flattening local branch logic, preserve whether rules are cumulative or precedence-ordered.
  1. Extract Atoms
  • Split when a Primary Flow sentence becomes clearer as a function or child unit.
  • Atoms do one stable job; their I/O should be describable in one line.
  • Prefer pure functions when possible.
  • At function/file scale, stop when splitting no longer clarifies the local flow.
  1. Keep Composition in One Place
  • Keep orchestration in one place at the current unit.
  • Minimize direct dependencies/calls between Atoms.
  1. Push Side Effects to Boundaries
  • Gather side effects (I/O, state mutation) at boundaries.
  • Keep inner logic focused on computation and decisions.
  1. Align Read Order
  • At file level, default to: export/public -> orchestrator -> atoms -> utils for top-down discoverability.
  • If branch narration starts depending on extra intermediate data structures or helper chains, keep more inline or stop descending.

Growth and Ownership

  • Start with the minimum public I/O/signature for the confirmed responsibility; grow it only when responsibility changes (new external input, mixed semantics, or boundary move).
  • One policy, decision, or calculation rule, one owner.
  • One externally visible write path, one owner. If coordinating multiple writers is itself the responsibility, make that coordinator explicit.
  • At larger scales, make the entrypoint, main orchestrator, and decision owners visible.
  • Async boundaries should have one owner for freshness and completion policy.
  • If rule ownership changes or you introduce an equivalent new path, remove/disable the old one in the same change when possible. Otherwise include a staged migration plan (owner, exit condition).
  • Decision rule: repeated predicate, weight, priority, policy, calculation, or key-generation logic that decides behavior.
  • Equivalent path: an alternative execution path that yields the same externally observable result.

Testing

  • Write sufficient tests at the most stable Atom level available whenever possible.
  • Validate contracts (I/O, invariants, edge cases) between the current unit and its Atoms/boundaries, not internals.
  • If orchestration or boundary integration is where the risk lives, test the current unit directly.
  • For async or stateful boundaries, test ownership contracts such as stale-result handling, balanced completion, and equivalent-input no-op at the most stable unit that owns them.
  • If tests cannot be added in the current change, say so explicitly and name the next stable Atom(s) plus the required contract cases.
  • Keep test code readable: use each/table cases to reduce duplication, allow only small helpers that do not blur structure, and keep each test focused on one core assertion.

Anti-Patterns

  • If splitting increases argument/state passing, roll it back.
  • Do not split functions/files for appearance only (avoid utility sprawl).
  • If names start turning into long explanations, re-check boundaries.
  • Avoid adding abstractions/layers for assumed future reuse.
  • Avoid over-abstracted tests and helper sprawl.
  • Do not add parameters "for later."
  • Do not keep the same policy, decision, calculation, or key-generation rule in multiple owner locations.
  • Do not split the same externally observable result across multiple writer locations unless coordinating those writers is itself the explicit responsibility.
  • Do not synchronously mirror upstream boundary state into local mutable state unless ownership and reset semantics are explicit.
  • Do not create self-feedback loops where a unit reads from an input/update path and writes back into that same path.
  • Do not keep new and legacy equivalent paths in parallel without a staged migration plan (owner, exit condition).

Final Gates

  • Can the success path be seen in one top-down read?
  • Is the current unit stated clearly and still the right unit for this change?
  • At function/file scale, is the flow still shallow enough without extra intermediate data structures or helper chains narrating the branches?
  • Does splitting reflect real responsibility/boundary changes?
  • Can each Atom's I/O be explained in one line?
  • Are side effects concentrated at boundaries?
  • Are tests contract-focused and concise?
  • At capability/subsystem scale, can you name the entrypoint, main orchestrator, and decision owners?
  • If more structure work remains across units, is the next re-entry point clear before ending this pass?
  • Are parameter growth and old-path handling (cleanup or staged migration) justified and complete?

Optional Completion Evidence

Use this template only when structure itself is the point; otherwise answer naturally.

When the format is useful, provide these four lines:

  • Current Unit: function/file | module/use case | capability/subsystem
  • Primary Flow: top-down in 3-6 lines
  • Boundaries: list of I/O boundaries
  • Tests: added... or deferred because...; next stable Atom(s):...; required contract cases:... (include freshness/completion contract when relevant)

For refactoring work where rule ownership changed, also provide:

  • Decision Ownership: policy/decision/calculation/key-generation rule -> owner unit; duplicated owner removed? yes/no

For refactoring work where signatures/boundaries grew or an old path was replaced, also provide:

  • Refactor Check: parameter growth reason / legacy path status (removed, disabled, migration plan)

平台分布

Codex

37.15%
按下载量换算212

Claude

31.67%
按下载量换算181

Cursor

19.63%
按下载量换算112

Gemini CLI

9.5%
按下载量换算54

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

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

继续浏览同类 Skills