Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问clear审计未展示

research研究

Agent Skill

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

总安装

353

周安装

15

GitHub Stars

公开资料未说明

下载量

124
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

AgentSkills.tonpx skills
npx skills add benredmond/apex --skill "research"

简介

research 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词快速定位候选结果时使用。

  • 适用于学术研究支持、市场情报收集、行业趋势分析等研究检索场景。
  • 通过 npx skills add benredmond/apex --skill "research" 命令安装,需结合原始 README 核验具体用法。
  • 安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写操作。
  • 可结合来源仓库 https://github.com/benredmond/apex/tree/main/skills/research 继续核验具体用法。

SKILL.md

name
research
description
Intelligence gathering phase - spawns parallel agents to analyze codebase, patterns, git history, and web research. Creates or updates task file with findings.
argument-hint
[task-description|ticket-id|file-path|task-id]

<skill name="apex:research" phase="research">

<overview> Conduct comprehensive research by orchestrating parallel sub-agents. Outputs to ./apex/tasks/[ID].md.

This is the first phase of the APEX workflow. It gathers all intelligence needed for planning and implementation. </overview>

<phase-model> phase_model: frontmatter: [research, plan, implement, rework, complete] rework: enabled db_role: [RESEARCH, ARCHITECT, BUILDER, BUILDER_VALIDATOR, REVIEWER, DOCUMENTER] legacy_db_role: [VALIDATOR] source_of_truth: gating: frontmatter.phase telemetry: db_role </phase-model>

<phase-gate requires="none" sets="research"> <creates-file>./apex/tasks/[ID].md</creates-file> <appends-section>research</appends-section> </phase-gate>

<initial-response> <if-no-arguments> I'll conduct comprehensive research to gather intelligence and explore the codebase.

Please provide:

  • Task description (e.g., "implement dark mode toggle")
  • Linear/JIRA ticket ID (e.g., "APE-59")
  • Path to task file (e.g., "./tickets/feature.md")
  • Existing APEX task ID

I'll analyze patterns, explore the codebase, find similar tasks, and create a detailed research document. </if-no-arguments> <if-arguments>Immediately begin research - skip this message.</if-arguments> </initial-response>

<workflow>

<step id="1" title="Parse input and identify task"> <instructions> Determine input type and create/find task:

Text description: Create a task entry with intent, inferred type, generated identifier, and tags Ticket ID (APE-59): Fetch ticket details (if available), then create a task entry with identifier set to ticket ID File path: Read file fully, parse content, then create a task entry Database ID: Look up existing task by ID to retrieve it

Store taskId and identifier for all subsequent operations. </instructions> </step>

<step id="2" title="Optimize and improve prompt"> <purpose> Vague task briefs lead to wasted research effort. Enhance before proceeding. </purpose>

<optimization-steps>

  1. Clarify Intent: What is the user REALLY trying to accomplish?

- Look for implicit goals behind explicit requests - Identify the "why" behind the "what"

  1. Add Specificity: Transform vague terms into concrete requirements

- "improve performance" → "reduce API response time below 200ms" - "fix the bug" → "prevent null pointer when user has no profile"

  1. Structure Requirements: Break into testable acceptance criteria

- Given [context], When [action], Then [expected result]

  1. Include Testing: How will we verify success?

- Unit test expectations - Integration test scenarios - Manual verification steps

  1. Pattern Enhancement: Check existing patterns or similar past tasks

- What worked before? - What failed and why? </optimization-steps>

<enhanced-prompt-format>

original_prompt: "[User's original request]"
enhanced_prompt:
  intent: "[Clarified goal]"
  scope:
    in: ["[Specific inclusions]"]
    out: ["[Explicit exclusions]"]
  acceptance_criteria:
    - "[Testable criterion 1]"
    - "[Testable criterion 2]"
  success_metrics:
    - "[Measurable outcome]"
  related_patterns: ["[PAT:IDs from quick lookup]"]

</enhanced-prompt-format> </step>

<step id="3" title="Read mentioned files FULLY"> <critical> Before ANY analysis or spawning agents:

  • If user mentions specific files, READ THEM FULLY first
  • Use Read tool WITHOUT limit/offset parameters
  • Read in main context BEFORE spawning sub-tasks
  • This ensures full context before decomposing research

</critical> </step>

<step id="4" title="Triage scan + Ambiguity Gate (Pre-Agents)"> <purpose> Run a low-cost scan to reduce ambiguity before spawning deep research agents. </purpose>

<triage-scan>

  • Run cheap rg scans to locate entrypoints, tests, and likely target areas:

- rg -n "main|entry|cli|index\\.(ts|js)|server\\.(ts|js)" src - rg -n "describe\\(|it\\(" tests - rg -n "[task keywords]" src tests docs (derive keywords from enhanced_prompt)

  • Capture candidate files/areas to refine scope.
  • Do NOT open large files unless the user explicitly mentioned them.
  • Use this scan ONLY to detect ambiguity and shape clarifying questions.

</triage-scan>

<critical> Ambiguity is a BLOCKING condition that ONLY users can resolve. DO NOT spawn deep research agents with unclear requirements. </critical>

<ambiguity-checklist> Check for these ambiguity indicators:

Vague Goals:

  • "improve", "enhance", "optimize" without metrics
  • "fix the bug" without reproduction steps
  • "make it better" without criteria

Unclear Scope:

  • No defined boundaries (what's in/out)
  • Multiple interpretations possible
  • Triage scan surfaces multiple plausible entrypoints/tests

Technical Choices:

  • Triage scan shows multiple candidate libraries/approaches
  • Architecture decisions user should make
  • Technology/library selection needed

Missing Constraints:

  • No performance requirements
  • No security requirements specified
  • No compatibility requirements

</ambiguity-checklist>

<assessment-logic>

def assess_ambiguity(enhanced_prompt, triage_scan):
    ambiguities = []

    # Check each category
    if has_vague_goals(enhanced_prompt):
        ambiguities.append({"type": "vague_goal", "question": "..."})

    if has_unclear_scope(enhanced_prompt, triage_scan):
        ambiguities.append({"type": "unclear_scope", "question": "..."})

    if needs_technical_choice(triage_scan):
        ambiguities.append({"type": "technical_choice", "question": "..."})

    if missing_constraints(enhanced_prompt):
        ambiguities.append({"type": "missing_constraint", "question": "..."})

    return ambiguities

</assessment-logic>

<decision>

  • 0 ambiguities: PROCEED to spawn parallel research agents
  • 1+ ambiguities: ASK USER before spawning deep research agents

Question Format:

Before I spawn deep research agents, I need to clarify:

[For each ambiguity, ONE focused question]

1. **[Category]**: [Specific question]?
   - Option A: [Choice with implication]
   - Option B: [Choice with implication]
   - Option C: [Let me know your preference]

</decision>

<max-rounds> Maximum 1 clarification round. After user responds:

  • Incorporate answers into enhanced_prompt
  • Proceed to spawn parallel research agents (do NOT ask more questions)

</max-rounds> </step>

<step id="5" title="Create task file"> <instructions> Create ./apex/tasks/[identifier].md with frontmatter:

---
id: [database_id]
identifier: [identifier]
title: [Task title]
created: [ISO timestamp]
updated: [ISO timestamp]
phase: research
status: active
---

# [Title]

<research>
<!-- Will be populated by this skill -->
</research>

<plan>
<!-- Populated by /apex:plan -->
</plan>

<implementation>
<!-- Populated by /apex:implement -->
</implementation>

<ship>
<!-- Populated by /apex:ship -->
</ship>

</instructions> </step>

<step id="6" title="Spawn parallel research agents"> <critical> Use the clarified enhanced_prompt (post-ambiguity resolution) as the source of truth for all agent prompts. </critical> <agents parallel="true">

<agent type="intelligence-gatherer" required="true"> Task ID: [taskId] Research Focus: [User's question/area]

Discover relevant patterns, find similar tasks, identify predicted failures, generate execution strategy. Return: Context pack with pattern intelligence. </agent>

<agent type="implementation-pattern-extractor" required="true"> Task Context: [Brief description] Task Type: [bug|feature|refactor|test]

Extract concrete implementation patterns from THIS codebase with file:line references. Return: YAML with primary patterns, conventions, reusable snippets, testing patterns. </agent>

<agent type="web-researcher" required="true"> Research Topic: [Component/Technology/Pattern] Context: [What we're trying to accomplish]

Find official documentation, best practices, security concerns, recent changes. Return: YAML with official_docs, best_practices, security_concerns, recent_changes. </agent>

<agent type="apex:git-historian" required="true"> Scope: [files/directories] Window: 9 months

Analyze git history for similar changes, regressions, ownership. Return: Structured git intelligence. </agent>

<agent type="apex:documentation-researcher" required="true"> Scope: Project markdown documentation Focus: [Task-relevant topics]

Search project docs for:

  • Architecture context and design decisions
  • Past decisions and rationale (ADRs)
  • Historical learnings and gotchas
  • Related documentation that may need updating

Return: YAML with architecture_context, past_decisions, historical_learnings, docs_to_update. </agent>

<agent type="learnings-researcher" required="true"> Task Intent: [Enhanced prompt intent] Keywords: [Extracted keywords from task]

Search past task files (apex/tasks/*.md) for:

  • Problems solved and how they were fixed
  • Decisions made with rationale
  • Gotchas and surprising discoveries
  • Related tasks via related_tasks links

Return: YAML with top 5 relevant learnings ranked by relevance score. </agent>

<agent type="apex:systems-researcher" signal-based="true"> Trigger: Cross-component changes, architectural impacts Focus Area: [Component or subsystem]

Trace execution flow, dependencies, state transitions, integration points. </agent>

<agent type="apex:risk-analyst" signal-based="true"> Trigger: Complexity >= 7, production-critical, security-sensitive

Surface forward-looking risks, edge cases, monitoring gaps, mitigations. </agent>

</agents>

<wait-for-all>CRITICAL: Wait for ALL agents to complete before proceeding.</wait-for-all> </step>

<step id="7" title="Synthesize findings"> <priority-order>

  1. Live codebase = primary truth (what actually exists)
  2. Implementation patterns = concrete project conventions
  3. Official documentation = authoritative reference
  4. Pattern library = proven cross-project solutions
  5. Best practices = industry consensus
  6. Git history = evolution understanding

</priority-order>

<synthesis-tasks>

  • Validate pattern library findings against actual codebase
  • Cross-reference with official docs
  • Identify gaps between current code and recommendations
  • Flag inconsistencies and deprecated patterns
  • Note security concerns
  • Resolve contradictions (codebase > docs > patterns > opinions)

</synthesis-tasks> </step>

<step id="8" title="Display Intelligence Report"> <purpose>Give user visibility into gathered intelligence before the technical adequacy gate.</purpose>

<display-format>

## Intelligence Report

**Task**: [Title]
**Agents Deployed**: [N]
**Files Analyzed**: [X]

### Baseline Metrics
- Complexity estimate: [1-10]
- Risk level: [Low/Medium/High]
- Pattern coverage: [X patterns found, Y% high-trust]

### Pattern Intelligence
- High-trust patterns (★★★★☆+): [N] patterns applicable
- Similar past tasks: [N] found, [X]% success rate
- Predicted failure points: [N] identified

### Historical Intelligence
- Related commits: [N] in last 9 months
- Previous attempts: [List any failed/reverted changes]
- Key maintainers: [Names/areas]

### Execution Strategy
- Recommended approach: [Brief]
- Parallelization opportunities: [Yes/No]
- Estimated scope: [Small/Medium/Large]

### Key Insights
1. [Most important finding]
2. [Second most important]
3. [Third most important]

</display-format> </step>

<step id="9" title="Technical Adequacy Gate (Phase 2)"> <purpose> Verify we have sufficient intelligence to architect a solution. </purpose>

<scoring-dimensions> Technical Context (30% weight):

  • [ ] Primary files identified with line numbers
  • [ ] Dependencies mapped
  • [ ] Integration points documented
  • [ ] Current behavior understood

Risk Assessment (20% weight):

  • [ ] Security concerns identified
  • [ ] Performance implications assessed
  • [ ] Breaking change potential evaluated
  • [ ] Rollback strategy considered

Dependency Mapping (15% weight):

  • [ ] Upstream dependencies known
  • [ ] Downstream consumers identified
  • [ ] External API constraints documented
  • [ ] Version compatibility checked

Pattern Availability (35% weight):

  • [ ] Relevant patterns found (confidence ≥ 0.5)
  • [ ] Similar past tasks reviewed
  • [ ] Implementation patterns from codebase extracted
  • [ ] Anti-patterns identified to avoid

</scoring-dimensions>

<confidence-calculation>

def calculate_adequacy(checklist_results):
    weights = {
        "technical_context": 0.30,
        "risk_assessment": 0.20,
        "dependency_mapping": 0.15,
        "pattern_availability": 0.35
    }

    score = sum(
        weights[dim] * (checked / total)
        for dim, (checked, total) in checklist_results.items()
    )

    return score  # 0.0 to 1.0

</confidence-calculation>

<decision-thresholds>

  • ≥ 0.8: PROCEED to Tree of Thought
  • 0.6-0.8: PROCEED with caution, note gaps
  • < 0.6: INSUFFICIENT - spawn recovery agents or escalate

If INSUFFICIENT:

## Insufficient Context

Adequacy Score: [X]% (threshold: 60%)

**Gaps Identified**:
- [Dimension]: [What's missing]

**Recovery Options**:
1. Spawn additional agents for [specific gap]
2. Ask user for [specific information]
3. Proceed with documented limitations

Which approach should I take?

</decision-thresholds> </step>

<step id="10" title="Generate Tree of Thought recommendations"> <instructions> Produce exactly 3 distinct solution approaches:

Solution A: [Approach name]

  • Philosophy, implementation path, pros, cons, risk level

Solution B: [Different paradigm]

  • Philosophy, implementation path, pros, cons, risk level

Solution C: [Alternative architecture]

  • Philosophy, implementation path, pros, cons, risk level

Comparative Analysis: Winner with reasoning, runner-up with why not </instructions> </step>

<step id="11" title="Write research section to task file"> <output-format> Append to <research> section:

<research>
<metadata>
  <timestamp>[ISO]</timestamp>
  <agents-deployed>[N]</agents-deployed>
  <files-analyzed>[X]</files-analyzed>
  <confidence>[0-10]</confidence>
  <adequacy-score>[0.0-1.0]</adequacy-score>
  <ambiguities-resolved>[N]</ambiguities-resolved>
</metadata>

<context-pack-refs>
  <!-- Shorthand for downstream phases -->
  ctx.patterns = pattern-library section
  ctx.impl = codebase-patterns section
  ctx.web = web-research section
  ctx.history = git-history section
  ctx.docs = documentation section (from documentation-researcher)
  ctx.learnings = past-learnings section (from learnings-researcher)
  ctx.risks = risks section
  ctx.exec = recommendations.winner section
</context-pack-refs>

<executive-summary>
[2-3 paragraphs synthesizing ALL findings]
</executive-summary>

<web-research>
  <official-docs>[Key findings with URLs]</official-docs>
  <best-practices>[Practices with sources]</best-practices>
  <security-concerns>[Issues with severity and mitigation]</security-concerns>
  <gap-analysis>[Codebase vs recommendations]</gap-analysis>
</web-research>

<codebase-patterns>
  <primary-pattern location="file:line">[Description with code snippet]</primary-pattern>
  <conventions>[Naming, structure, types, error handling]</conventions>
  <reusable-snippets>[Copy-pasteable code with sources]</reusable-snippets>
  <testing-patterns>[How similar features are tested]</testing-patterns>
  <inconsistencies>[Multiple approaches found]</inconsistencies>
</codebase-patterns>

<pattern-library>
  <pattern id="PAT:X:Y" confidence="★★★★☆" uses="N" success="X%">[Relevance]</pattern>
  <anti-patterns>[Patterns to avoid with reasons]</anti-patterns>
</pattern-library>

<documentation>
  <architecture-context>[Relevant architecture docs found]</architecture-context>
  <past-decisions>[ADRs and design decisions]</past-decisions>
  <historical-learnings>[Gotchas and lessons from docs]</historical-learnings>
  <docs-to-update>[Files that may need updating after this task]</docs-to-update>
</documentation>

<past-learnings>
  <count>[Number of relevant learnings found]</count>
  <coverage>[EXCELLENT|GOOD|SPARSE|NONE]</coverage>
  <learnings>
    <learning task-id="[ID]" relevance="[0.0-1.0]">
      <title>[Task title]</title>
      <summary>[Why this is relevant and what's useful]</summary>
      <problems>[Problems solved, if any]</problems>
      <decisions>[Decisions made, if any]</decisions>
      <gotchas>[Gotchas discovered, if any]</gotchas>
    </learning>
  </learnings>
  <patterns-across>[Common themes from multiple past tasks]</patterns-across>
</past-learnings>

<git-history>
  <similar-changes>[Commits with lessons]</similar-changes>
  <evolution>[How code got here]</evolution>
</git-history>

<risks>
  <risk probability="H|M|L" impact="H|M|L">[Description with mitigation]</risk>
</risks>

<recommendations>
  <solution id="A" name="[Name]">
    <philosophy>[Core principle]</philosophy>
    <path>[Implementation steps]</path>
    <pros>[Advantages]</pros>
    <cons>[Disadvantages]</cons>
    <risk-level>[Low|Medium|High]</risk-level>
  </solution>
  <solution id="B" name="[Name]">...</solution>
  <solution id="C" name="[Name]">...</solution>
  <winner id="[A|B|C]" reasoning="[Why]"/>
</recommendations>

<task-contract version="1">
  <intent>[Single-sentence intent]</intent>
  <in-scope>[Explicit inclusions]</in-scope>
  <out-of-scope>[Explicit exclusions]</out-of-scope>
  <acceptance-criteria>
    <criterion id="AC-1">Given..., When..., Then...</criterion>
  </acceptance-criteria>
  <non-functional>
    <performance>[Performance constraints]</performance>
    <security>[Security constraints]</security>
    <compatibility>[Compatibility constraints]</compatibility>
  </non-functional>
  <amendments>
    <!-- Append amendments in plan/implement/ship with explicit rationale and version bump -->
  </amendments>
</task-contract>

<next-steps>
Run `/apex:plan [identifier]` to create architecture from these findings.
</next-steps>
</research>

</output-format>

<update-frontmatter> Set updated: [ISO timestamp] and verify phase: research </update-frontmatter> </step>

</workflow>

<success-criteria>

  • Prompt optimized and enhanced with specificity
  • All mentioned files read fully
  • Triage scan completed and ambiguity resolved before spawning agents
  • All parallel agents completed (including documentation-researcher, learnings-researcher)
  • Implementation patterns extracted with file:line refs
  • Web research validated against official docs
  • Patterns analyzed with confidence ratings
  • Documentation context gathered
  • Past learnings searched and top 5 relevant included
  • Git history examined
  • Intelligence report displayed to user
  • Ambiguity detection completed (0 ambiguities OR user clarified)
  • Technical adequacy score ≥ 0.6
  • 3 solution approaches generated (Tree of Thought)
  • Risks identified with mitigations
  • Task contract created with intent, scope, ACs, and NFRs
  • Task file created/updated at ./apex/tasks/[ID].md
  • Context pack refs documented for downstream phases

</success-criteria>

<next-phase> /apex:plan [identifier] - Architecture and design decisions </next-phase>

</skill>

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

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

平台分布

OpenCode

28.07%
按下载量换算35

kilo

24.93%
按下载量换算31

Antigravity

19.78%
按下载量换算25

Claude Code

12.06%
按下载量换算15

crush

8.92%
按下载量换算11

github-copilot

3.83%
按下载量换算5

安全审计

暂无安全审计结果可展示。

权限和风险

执行命令

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

安装前确认

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

来源信息

继续浏览同类 Skills