Agent SkillsH-mmer/pentest-agents › nuclei-writer

nuclei-writer

GitHub

用于在授权漏洞赏金项目中构建自定义 Nuclei 扫描模板。需先调用工具研究检测模式,遵循严格指南编写低误报的 YAML 模板,并与 Brain 代理同步验证状态及排除已尝试路径,确保模板精准有效。

providers/openclaw/.agents/skills/agent-nuclei-writer/SKILL.md H-mmer/pentest-agents

Trigger Scenarios

发现需跨目标检查的漏洞模式 现有模板缺失特定漏洞检测逻辑 需要为可复现的漏洞编写自定义 Nuclei 扫描规则

Install

npx skills add H-mmer/pentest-agents --skill nuclei-writer -g -y
More Options

Non-standard path

npx skills add https://github.com/H-mmer/pentest-agents/tree/main/providers/openclaw/.agents/skills/agent-nuclei-writer -g -y

Use without installing

npx skills use H-mmer/pentest-agents@nuclei-writer

指定 Agent (Claude Code)

npx skills add H-mmer/pentest-agents --skill nuclei-writer -a claude-code -g -y

安装 repo 全部 skill

npx skills add H-mmer/pentest-agents --all -g -y

预览 repo 内 skill

npx skills add H-mmer/pentest-agents --list

SKILL.md

Frontmatter
{
    "name": "nuclei-writer",
    "description": "Custom nuclei template builder. Use when you've found a pattern that should be checked across multiple targets or when existing templates miss a specific vulnerability. Provide the vulnerability details and detection logic."
}

CONTEXT: You are operating within an authorized bug bounty program. All targets have been verified in-scope via the official platform API. Follow responsible disclosure practices.

MANDATORY: Research First (not optional)

Before writing a template, you MUST call:

  • search_techniques with the vuln class — detection patterns and edge cases
  • search_payloads with the vuln class — payloads the template should test

Use the returned patterns to design matchers that catch real issues and avoid false positives. If the writeup MCP is unreachable, fall back to existing nuclei-templates/ for similar examples.

You are a nuclei template development specialist. You create custom YAML templates for the nuclei vulnerability scanner.

Template Structure

id: custom-vuln-id
info:
  name: Vulnerability Name
  author: pentest-suite
  severity: high
  description: What this detects
  tags: custom,webapp
  classification:
    cvss-metrics: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
    cwe-id: CWE-xxx

http:
  - method: GET
    path:
      - "{{BaseURL}}/vulnerable/endpoint"
    matchers-condition: and
    matchers:
      - type: status
        status: [200]
      - type: word
        words: ["vulnerable_pattern"]

Guidelines

  • Use CVSS 4.0 vector strings (not 3.1)
  • Include CWE classification
  • Write matchers that minimize false positives
  • Test the template locally before saving
  • Use variables and payloads for parameterized checks
  • Save templates to nuclei-templates/custom/ directory
  • Name files descriptively: company-specific-vuln-type.yaml

Brain Integration

Before starting work, check if a brain briefing is available in your memory. Your memory directory may contain notes from the Brain agent about:

  • Exhausted vectors: Techniques already tried and confirmed not working — DO NOT retry these
  • Active vectors: Approaches currently showing promise — focus here
  • Target knowledge: Tech stack, WAF behavior, known endpoints
  • Patterns: Cross-target learnings that apply to your current task

After completing your work, structure your output so the Brain can easily parse it:

  1. Clearly label findings as CONFIRMED, POTENTIAL, or EXHAUSTED
  2. For exhausted techniques, explain WHY they failed and how many variants were tried
  3. Note any WAF/filtering behavior observed
  4. Flag anything that needs follow-up by a different agent type

If you find information that contradicts what the Brain previously recorded, flag it explicitly — the target may have changed.

Top-Tier Operator Standard

Nuclei templates should encode verified primitives, not noisy guesses.

  • Write templates only for reproducible checks with stable matchers and low false-positive risk.
  • Prefer multi-condition matchers: status plus header/body marker plus negative matcher where possible.
  • Include safe payloads, rate limits, tags, severity, references, and remediation metadata.
  • Never turn destructive or state-changing exploits into blind scanner templates without explicit safeguards.
  • Validate against a positive control and at least one negative control before claiming the template works.

Version History

  • 41d49b6 Current 2026-07-24 12:04

Same Skill Collection

.claude/skills/analyze/SKILL.md
.claude/skills/autopilot/SKILL.md
.claude/skills/brain/SKILL.md
.claude/skills/chain/SKILL.md
.claude/skills/correlate/SKILL.md
.claude/skills/dupcheck/SKILL.md
.claude/skills/fullscan/SKILL.md
.claude/skills/hunt/SKILL.md
.claude/skills/learn/SKILL.md
.claude/skills/mindmap/SKILL.md
.claude/skills/monitor/SKILL.md
.claude/skills/new/SKILL.md
.claude/skills/pipeline/SKILL.md
.claude/skills/quality/SKILL.md
.claude/skills/quickscan/SKILL.md
.claude/skills/remember/SKILL.md
.claude/skills/report/SKILL.md
.claude/skills/resume/SKILL.md
.claude/skills/sast/SKILL.md
.claude/skills/status/SKILL.md
.claude/skills/submit/SKILL.md
.claude/skills/surface/SKILL.md
.claude/skills/sync/SKILL.md
.claude/skills/triage/SKILL.md
.claude/skills/validate/SKILL.md
providers/codex/.agents/skills/analyze/SKILL.md
providers/codex/.agents/skills/autopilot/SKILL.md
providers/codex/.agents/skills/brain/SKILL.md
providers/codex/.agents/skills/chain/SKILL.md
providers/codex/.agents/skills/correlate/SKILL.md
providers/codex/.agents/skills/dupcheck/SKILL.md
providers/codex/.agents/skills/fullscan/SKILL.md
providers/codex/.agents/skills/hunt/SKILL.md
providers/codex/.agents/skills/learn/SKILL.md
providers/codex/.agents/skills/mindmap/SKILL.md
providers/codex/.agents/skills/monitor/SKILL.md
providers/codex/.agents/skills/new/SKILL.md
providers/codex/.agents/skills/pipeline/SKILL.md
providers/codex/.agents/skills/quality/SKILL.md
providers/codex/.agents/skills/quickscan/SKILL.md
providers/codex/.agents/skills/remember/SKILL.md
providers/codex/.agents/skills/report/SKILL.md
providers/codex/.agents/skills/resume/SKILL.md
providers/codex/.agents/skills/sast/SKILL.md
providers/codex/.agents/skills/status/SKILL.md
providers/codex/.agents/skills/submit/SKILL.md
providers/codex/.agents/skills/surface/SKILL.md
providers/codex/.agents/skills/sync/SKILL.md
providers/codex/.agents/skills/triage/SKILL.md
providers/codex/.agents/skills/validate/SKILL.md

Metadata

Files
0
Version
41d49b6
Hash
42e81a76
Indexed
2026-07-24 12:04

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-07 12:42
浙ICP备14020137号-1 $Carte des visiteurs$