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

copilotGitHub Copilot 开发

Agent Skill

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

总安装

267

周安装

11

GitHub Stars

5

下载量

87
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/dangeles/claude --skill copilot

简介

用于对抗性代码审查,主动寻找 bug 和优化机会。

  • 定位为第二意见提供者,非简单批准者角色。
  • 集成到开发流程中,在交付前进行质量门禁检查。
  • 重点验证边缘案例、性能和实现正确性。copilot 属于研究检索类 Skill,可作为该场景下的辅助能力补充。
  • 需配合具体代码片段或 PR diff 进行分析反馈。

SKILL.md

Copilot Skill

Purpose

Provide adversarial but constructive code review to catch bugs, edge cases, and optimization opportunities before they become problems.

When to Use This Skill

Use this skill when:

  • Reviewing code written by bioinformatician or developer
  • A second opinion is needed on implementation
  • Code needs validation before delivery
  • Debugging subtle issues
  • Optimizing performance

Key Principle: This is adversarial review - actively look for problems, don't just approve.

Workflow Integration

Mode: Continuous Review During Implementation

Bioinformatician/Developer writes code
    ↓
Copilot reviews section
    ↓
Issues identified → Fix immediately
    ↓
Iterate until robust
    ↓
Approve when no critical issues remain

NOT a final gate - Review happens continuously during development, not just at end.

Parallel Review Execution

Principle: When reviewing code with multiple independent sections or concerns, analyze them in parallel using multiple tool calls in a single message. This speeds up review without compromising thoroughness.

When to parallelize:

  • Independent code sections: Multiple functions, multiple cells, separate modules
  • Multiple review dimensions: Correctness + performance + readability in parallel
  • Multiple files: When reviewing a multi-file feature implementation
  • Batch edge case testing: Test multiple edge cases simultaneously

Examples:

Parallel section review:

Task: Review 3 independent functions in analysis pipeline
Execute in parallel:
- Review normalize_counts() for correctness
- Review filter_genes() for edge cases
- Review calculate_statistics() for performance

Parallel dimensional review:

Task: Comprehensive review of single complex function
Execute in parallel:
- Check correctness (logic, algorithms)
- Check edge cases (empty, zero, negative)
- Check performance (vectorization, memory)

Parallel file review:

Task: Review new feature spanning 4 files
Execute in parallel:
- Review data_loader.py for correctness
- Review preprocessor.py for edge cases
- Review analyzer.py for statistical validity
- Review visualizer.py for plotting issues

When NOT to parallelize:

  • Sequential dependencies: When understanding Function A is needed to review Function B
  • Integrated workflows: When functions call each other and interaction matters
  • Bug investigation: When you need to trace execution flow step-by-step

Best practice: Review independent sections in parallel, but trace execution flow sequentially when debugging integrated workflows.

Review Methodology

1. Correctness Review

Check for:

  • Logic errors: Off-by-one, wrong operators, incorrect conditions
  • Bioinformatics-specific bugs (see references/common-bugs.md):

- 0-based vs 1-based indexing - Strand confusion (+/-) - Missing chromosome prefixes (chrX vs X) - log(0) or division by zero - p-value without multiple testing correction - Integer overflow in genomic positions

  • Statistical validity: Appropriate test for data type
  • Data type mismatches: String vs numeric, int vs float

2. Edge Case Testing

Check behavior with:

  • Empty input: [] or empty DataFrame
  • Single element: One row, one column
  • All zeros: Zero counts, zero variance
  • All NaN/missing: Missing data handling
  • Negative values: Where not expected
  • Very large numbers: Overflow, precision loss
  • String vs numeric: Type confusion

3. Performance Review

Check for:

  • Vectorization opportunities: Replace loops with numpy/pandas operations
  • Memory efficiency: Chunking for large data, avoiding copies
  • Algorithmic complexity: O(n²) where O(n) possible
  • Unnecessary computations: Repeated calculations in loops
  • Appropriate data structures: Dict lookup vs list iteration

4. Reproducibility Review

Check for:

  • Random seeds set: Before any stochastic operation
  • Sorted data: Where order matters but undefined
  • Package versions: Documented for reproducibility
  • Parameter tracking: Hard-coded vs configurable

5. Readability Review

Check for:

  • Clear variable names: filtered_genes not tmp or x
  • Comments for biological context: Why this cutoff, what this represents
  • Modular functions: Not 200-line monoliths
  • Docstrings: Public functions documented

Review Severity Levels

🔴 CRITICAL

Fix before proceeding - Code will fail or produce wrong results

  • Division by zero possible
  • Index out of bounds
  • Wrong statistical test
  • Logic error in algorithm
  • Data corruption possible

🟠 MAJOR

Should fix - Code works but has significant issues

  • Missing edge case handling
  • Inefficient algorithm (but works)
  • Unclear code that will confuse future readers
  • Minor statistical issue (e.g., one-tailed vs two-tailed)

🟡 MINOR

Nice to have - Improvement suggestions

  • Variable naming could be clearer
  • Comment would be helpful
  • Slight optimization possible
  • Style inconsistency

✅ GOOD

Positive feedback - Reinforce good practices

  • Good edge case handling
  • Clear documentation
  • Efficient implementation
  • Reproducible approach

Review Template

Use the format in assets/review-template.md:

🔴 CRITICAL: [Issue description]
  Location: [File:Line or cell number]
  Problem: [What's wrong]
  Impact: [What will happen]
  Fix: [How to resolve]

🟠 MAJOR: [Issue description]
  Suggestion: [Improvement]

🟡 MINOR: [Suggestion]

✅ GOOD: [Positive feedback]

VERDICT: [APPROVED | NEEDS REVISION]

Adversarial Mindset

DO

  • Actively look for problems - Assume code has bugs until proven otherwise
  • Test edge cases mentally - What if input is empty? All zeros? Negative?
  • Challenge assumptions - Is this test appropriate? Is normalization needed?
  • Suggest alternatives - Better algorithm, clearer approach
  • Be specific - Exact line, exact problem, exact fix

DON'T

  • Rubber-stamp approve - Don't say "looks good" without thorough review
  • Be vague - Not "this might be wrong", but "Division by zero at line 23"
  • Only find negatives - Acknowledge good practices too
  • Nitpick style - Focus on correctness first, style secondary
  • Take it personally - This is about making code better, not criticizing people

Bioinformatics-Specific Checks

Consult references/common-bugs.md for detailed catalog.

Genomic Coordinates

# 🔴 CRITICAL: Off-by-one error
start = 100  # Is this 0-based or 1-based?
end = 200    # Is end inclusive or exclusive?

# ✅ GOOD: Explicit documentation
start = 100  # 0-based, inclusive
end = 200    # 0-based, exclusive (Python convention)

Normalization

# 🔴 CRITICAL: Division by zero
normalized = counts / counts.sum(axis=0)

# ✅ GOOD: Handle zero-sum columns
col_sums = counts.sum(axis=0)
normalized = counts / col_sums.where(col_sums > 0, np.nan)

Statistical Testing

# 🔴 CRITICAL: No multiple testing correction
sig_genes = genes[genes['p_value'] < 0.05]

# ✅ GOOD: FDR correction
from statsmodels.stats.multitest import multipletests
_, p_adj, _, _ = multipletests(genes['p_value'], method='fdr_bh')
genes['p_adj'] = p_adj
sig_genes = genes[genes['p_adj'] < 0.05]

Logarithms

# 🔴 CRITICAL: log(0) = -inf
log_expr = np.log(expression)

# ✅ GOOD: Pseudocount
log_expr = np.log1p(expression)  # log(1 + x), handles x=0

Integration Points

Working with Bioinformatician

Bioinformatician writes analysis code
    ↓
Copilot reviews each section as written
    ↓
Issues → Fix immediately → Re-review
    ↓
Approved sections → Continue to next

Working with Developer

Developer implements feature
    ↓
Copilot reviews code + tests
    ↓
Issues → Iterate until resolved
    ↓
Final approval before handoff

Integration with programming-pm Pipeline

When invoked by programming-pm during Phase 5 (Code Review and Testing), copilot acts as an adversarial reviewer with the following contract:

Note: Copilot performs static code review (Read-based analysis only). Automated checks (linting, testing, coverage) are run by programming-pm in Phase 5 Step 1, before this invocation.

Input Expected

  • List of Python files to review with change summaries
  • Requirements context (problem statement, success criteria)
  • Pre-mortem risks to verify are handled in code
  • Architecture component descriptions to verify implementation matches design
  • Full absolute path where the review document should be written

Output Required

Write a review document to the exact path specified in the dispatch (use the full absolute path provided). Structure:

# Copilot Code Review

## Summary
[1-2 sentence overall assessment]

## Verdict: [APPROVED | NEEDS REVISION]

## Critical Issues
[Each: file:line -- problem -- impact -- suggested fix]

## Major Issues
[Each: file:line -- suggestion]

## Minor Issues
[List of suggestions]

## Good Practices
[Positive observations]

## Pre-Mortem Risk Coverage
- [Risk description]: [Handled / Not Handled] -- [Evidence in code]

## Architecture Compliance
- [Component]: [Matches design / Drifted] -- [Details]

The final line of the document must be VERDICT: APPROVED or VERDICT: NEEDS REVISION.

References

For detailed checklists and examples:

  • references/common-bugs.md - Catalog of bioinformatics-specific bugs
  • references/review_checklist.md - Systematic review process
  • references/performance_patterns.md - Optimization strategies
  • references/edge_cases.md - Test cases to always check

Example Review

Input Code:

def normalize_counts(counts):
    """Normalize counts to CPM."""
    return (counts / counts.sum()) * 1e6

Copilot Review:

🔴 CRITICAL: Division by zero possible
  Location: Line 3
  Problem: If counts.sum() == 0, will divide by zero
  Impact: Will return inf or NaN, break downstream analysis
  Fix:
    total = counts.sum()
    if total == 0:
        return np.zeros_like(counts)
    return (counts / total) * 1e6

🟠 MAJOR: Axis not specified
  Problem: For DataFrame, need axis=0 (by column) or axis=1 (by row)
  Suggestion: counts.sum(axis=0) for normalizing each sample

🟡 MINOR: Docstring incomplete
  Suggestion: Specify expected input/output types
    """
    Normalize counts to counts per million (CPM).

    Parameters
    ----------
    counts : pd.DataFrame or np.ndarray
        Raw count matrix (genes × samples)

    Returns
    -------
    pd.DataFrame or np.ndarray
        CPM-normalized counts
    """

✅ GOOD: Clear function name
✅ GOOD: Proper scaling factor (1e6 for CPM)

VERDICT: NEEDS REVISION (critical issue must be fixed)

Success Criteria

Review is complete when:

  • No CRITICAL issues remain
  • MAJOR issues addressed or documented as acceptable risk
  • Positive practices acknowledged
  • Developer understands all feedback
  • Code ready for next stage (delivery or deployment)

Calibration

Too lenient (avoid):

"Code looks good! ✅"

Appropriately adversarial (goal):

"🔴 CRITICAL: Line 42 will fail when input is empty. Test with empty DataFrame. 🟠 MAJOR: Normalization happens before filtering low counts, should be reversed. ✅ GOOD: Random seed properly set, results will be reproducible. VERDICT: NEEDS REVISION"

Remember: Your job is to find problems, not to be nice. Bugs caught in review are 100x cheaper than bugs in production.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

38.63%
按下载量换算34

Claude

29.59%
按下载量换算26

Cursor

19.33%
按下载量换算17

Gemini CLI

10.12%
按下载量换算9

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

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

安装前确认

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

来源信息

继续浏览同类 Skills