Agent Skills › boshu2/agentops › research

research

GitHub

用于通过代码追踪或模式验证回答特定技术问题,提供引用证据。适用于需要确凿依据的调研场景,区分观察与推断,支持仓库审计和代码溯源。

images/gemini/skills/research/SKILL.md boshu2/agentops

Trigger Scenarios

需要代码执行路径的证据 验证外部事实或代码行为 进行仓库结构或逻辑审计

Install

npx skills add boshu2/agentops --skill research -g -y
More Options

Non-standard path

npx skills add https://github.com/boshu2/agentops/tree/main/images/gemini/skills/research -g -y

Use without installing

npx skills use boshu2/agentops@research

指定 Agent (Claude Code)

npx skills add boshu2/agentops --skill research -a claude-code -g -y

安装 repo 全部 skill

npx skills add boshu2/agentops --all -g -y

预览 repo 内 skill

npx skills add boshu2/agentops --list

SKILL.md

Frontmatter
{
    "name": "research",
    "context": {
        "intent": {
            "mode": "task"
        },
        "window": "fork",
        "sections": {
            "exclude": [
                "HISTORY"
            ]
        }
    },
    "consumes": [
        "research-question"
    ],
    "metadata": {
        "tier": "execution",
        "effects": [
            "write_research_report",
            "write_recon_pack",
            "write_pattern_evidence"
        ],
        "disposition": "keep_specialist",
        "capabilities": [
            "research",
            "codebase_recon",
            "pattern_mining"
        ],
        "dependencies": [],
        "canonical_status": "canonical"
    },
    "produces": [
        "research-report",
        "codebase-recon.v1",
        "pattern-mining.v1"
    ],
    "practices": [
        "pragmatic-programmer",
        "ddd-bounded-context"
    ],
    "context_rel": [],
    "description": "Trace code or test a recurring pattern to answer one cited question. Use when: uncertainty needs evidence. Not for external feature teardowns; use reverse-engineer.",
    "allowed-tools": "Read, Grep, Glob, Bash, Write",
    "hexagonal_role": "driving-adapter",
    "user-invocable": true,
    "output_contract": "cited answer; findings.json for ordinary durable reports; validated codebase-recon.v1 or pattern-mining.v1 for selected evidence modes",
    "skill_api_version": 1
}

Research

Answer the caller's bounded question with cited evidence. Choose ordinary investigation, repository tracing or pattern evidence according to the question; these are optional modes, not a sequence. A quick answer needs no report file.

Investigation

  1. State the question and the decision it informs. Reuse the accepted scope and identify what evidence would answer it; do not expand the objective mid-search.
  2. Inspect the smallest relevant sources. For changing external facts, use current primary sources. Verify search hits against the actual source.
  3. Distinguish observation, inference, contradiction and unknown. Every material claim cites evidence; source agreement does not erase shared provenance.
  4. Lead with the answer, then show evidence and remaining gaps. Each part of the question is answered or explicitly unknown with the searched scope disclosed.

Code claims cite the observed commit plus file:line. For uncommitted content, state HEAD and the changed-file status; do not claim the working bytes can be replayed from HEAD. Keep source identity and freshness visible. Search output, CASS, MS and prior reports are leads, not authority or required phases. Use the current agent by default; additional readers and runtimes require caller selection or existing authorization.

For several supplied reports, retain each source's identifier, author/runtime when known and revision/date. Compare claims as agreement, contradiction or unknown while preserving their original evidence. Repeated quotations of one upstream source are not independent corroboration. Verify decisive claims at their source and return one synthesis; do not launch recursive synthesis passes.

Repository tracing

For a repository model or audit, start from its declared entry points in docs, build manifests or command help and verify them against executable paths. Follow a relevant flow through entry, domain logic, integration and tests; prefer a completed trace to a shallow directory inventory. Report an interrupted trace at its exact file/line and explain what is missing. Choose a useful lens such as persistence, authorization, CLI, build or test without requiring a sweep of every lens.

An inline investigation may use dirty working-tree evidence with explicit limits. When a durable codebase-recon.v1 pack is selected, its stricter contract applies:

  • Write codebase-recon.json and a cited codebase-recon.md companion at the caller's chosen location, default .agents/scratch/codebase-recon/<run-id>/. Keep mental model, bounded audit, pattern evidence and synthesis distinct.
  • Bind the exact current full commit OID, at least one complete baseline flow, claims with kind, confidence and evidence, and inspected/uninspected scope. Fact and inference citations resolve to repository-relative regular files at that commit; the companion report includes line references. Unknowns remain explicit.
  • The manifest report names the companion and its lowercase SHA-256. The companion has one <!-- codebase-recon-report.v1 --> marker and manifest_commit, manifest_mode, flows_sha256, claims_sha256, and coverage_sha256 markers; section digests hash the jq -cS output for each section, including its trailing newline.
  • Discover validated priors with skills/research/scripts/codebase-recon/validate-output.sh --repo-root <target> --discover-priors. Prefer a verified delta when it answers the request. Delta evidence needs a valid ancestor chain, baseline_verified: true and the exact changed paths between the prior and current commits; do not relabel a directory scan as delta.
  • Run skills/research/scripts/codebase-recon/validate-output.sh --repo-root <target> <recon.json> before handoff. It checks both artifacts and rechecks their identities, HEAD and source state; dirty source outside .agents/ cannot satisfy this commit-bound pack. Return a validation failure without disguising it as a completed recon pack.

Preserve earlier .agents/recon/<run-id>/ packs and their exact cited identities. Prior discovery checks both legacy and current roots; never move or delete old proof to match a new layout. See the recon scenarios.

Pattern evidence

For a recurring implementation shape, test whether the similarity represents a reusable rule. Record replayable searches, examined hits and exclusions. Align independent implementations by their role in the behavior, then separate required invariants, legitimate variation and incidental syntax. Copies of one lineage do not count as independent evidence.

A pattern-mining.v1 promotion needs at least three distinct anchored exemplars, a candidate formed before inspecting a separate holdout, a passing holdout and successful back-application of every refinement to the original exemplars. Every invariant needs supporting alignment. Otherwise preserve the result as outcome: hypothesis with route: no-action; do not package weak evidence as a rule.

For this selected durable mode, write pattern-mining.json to .agents/scratch/pattern-mining/<run-id>/ or an authorized caller location and run skills/research/scripts/pattern-mining/validate-output.sh <pattern.json>. Preserve the schema's outcome, exemplars, invariants, variations, incidental, holdout, back_application and route fields. The compatibility route value operationalize on a valid promotion refers to Skill Builder's distillation mode; it is not a retired skill invocation or automatic dispatch.

Recommend the least committed useful shape: no action, a reference/checklist line, a template, helper or gate. A gate needs demonstrated cost of violation, not merely recurrence. Research returns evidence; adoption remains an explicit caller decision. See pattern scenarios.

Output and boundaries

Return a cited answer directly unless a durable output was requested or the selected evidence contract requires one. Ordinary durable reports follow findings.json: question, scope, answer, evidence, contradictions, unknowns, checked and unchecked areas. Multi-report synthesis also retains source_ledger and comparison. Selected recon and pattern modes retain their own validated formats instead of forcing them into this schema.

Use only authorized sources and destinations. For restricted or mined episode material, follow Memory's access and storage boundary. Research selects no work, owns no merged context store, mutates no lifecycle state and issues no semantic verdict. The native caller owns implementation, judgment and completion of the authorized outcome.

Version History

  • 9f8a711 Current 2026-09-22 11:00

    重构研究流程为调查、追踪和模式证据三种可选模式;新增对codebase-recon.v1打包文件的严格契约支持;移除旧版提示示例和具体工作流限制。

  • 8061085 2026-09-09 05:17

    新增 'It's working if' 验收标准章节;明确 commit 级引用规范以防止浮空引用;细化能力标志报告要求。

  • d9f9c50 2026-08-27 19:42
  • 7b07a7d 2026-08-19 22:00

    细化执行规范:明确仅按需水合源数据,禁止维护合并上下文;新增多调用方报告合成逻辑与源账本构建要求。

  • 3f402e5 2026-07-24 22:07

Same Skill Collection

images/gemini/skills/account-rotation/SKILL.md
images/gemini/skills/agent-mail/SKILL.md
images/gemini/skills/agent-native/SKILL.md
images/gemini/skills/agy-native/SKILL.md
images/gemini/skills/anti-ceremony/SKILL.md
images/gemini/skills/automation-shape-routing/SKILL.md
images/gemini/skills/bootstrap/SKILL.md
images/gemini/skills/cass/SKILL.md
images/gemini/skills/cc-hooks/SKILL.md
images/gemini/skills/codebase-recon/SKILL.md
images/gemini/skills/codex-exec/SKILL.md
images/gemini/skills/converter/SKILL.md
images/gemini/skills/council/SKILL.md
images/gemini/skills/craft-goal/SKILL.md
images/gemini/skills/crank/SKILL.md
images/gemini/skills/dcg/SKILL.md
images/gemini/skills/doc/SKILL.md
images/gemini/skills/domain/SKILL.md
images/gemini/skills/fitness/SKILL.md
images/gemini/skills/goals/SKILL.md
images/gemini/skills/handoff/SKILL.md
images/gemini/skills/human-only-skills/SKILL.md
images/gemini/skills/idea-genie/SKILL.md
images/gemini/skills/implement/SKILL.md
images/gemini/skills/learn/SKILL.md
images/gemini/skills/memory/SKILL.md
images/gemini/skills/ms/SKILL.md
images/gemini/skills/ntm/SKILL.md
images/gemini/skills/one-way-door/SKILL.md
images/gemini/skills/operationalize/SKILL.md
images/gemini/skills/pattern-mining/SKILL.md
images/gemini/skills/plan/SKILL.md
images/gemini/skills/postmortem/SKILL.md
images/gemini/skills/premortem/SKILL.md
images/gemini/skills/product/SKILL.md
images/gemini/skills/rch/SKILL.md
images/gemini/skills/reality-check/SKILL.md
images/gemini/skills/refactor/SKILL.md
images/gemini/skills/reverse-engineer/SKILL.md
images/gemini/skills/route/SKILL.md
images/gemini/skills/rpi/SKILL.md
images/gemini/skills/sbh/SKILL.md
images/gemini/skills/scaffold/SKILL.md
images/gemini/skills/scope/SKILL.md
images/gemini/skills/security/SKILL.md
images/gemini/skills/shared/SKILL.md
images/gemini/skills/skill-builder/SKILL.md
images/gemini/skills/skill-eval/SKILL.md
images/gemini/skills/standards/SKILL.md

Metadata

Files
0
Version
9f8a711
Hash
5be1ebfb
Indexed
2026-07-24 22:07

Home - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-27 05:31
浙ICP备14020137号-1