Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

ctf-writeup-generator

БесплатноБез исполняемых скриптовНе проверен

Automatically generate professional CTF writeups from solving sessions with flag detection, challenge categorization, and proper markdown formatting

lxyeternalот lxyeternal★ 68 звёзд на GitHub

Об этом скилле

CTF Writeup Generator

Description

This skill helps CTF players, security researchers, and cybersecurity educators automatically generate professional writeups from their solving sessions. It intelligently detects flag formats, categorizes challenges, structures the writeup with proper headings, and includes code blocks with syntax highlighting.

Perfect for:

  • Creating platform-specific writeups (HackTheBox, TryHackMe, OffSec, etc.)
  • Documenting Jeopardy-style CTF solutions
  • Generating educational content for training materials
  • Building a portfolio of security research

When to Use

Use this skill when the user:

  • Says "generate a CTF writeup"
  • Mentions "document my CTF solution"
  • Asks to "create a writeup for [challenge name]"
  • References completing a CTF challenge and needs documentation
  • Wants to format their solving process professionally
  • Needs to extract and format flags from their notes

Features

Flag Format Detection

Automatically detects and validates common CTF flag formats:

  • CTF{...}, FLAG{...}, flag{...}
  • Platform-specific: HTB{...}, THM{...}, SHAASTRA{...}, picoCTF{...}
  • Custom regex patterns for competition-specific formats
  • Case-sensitive validation support

Challenge Categories

Automatically categorizes based on keywords and tools used:

  • Web Exploitation: SQL injection, XSS, CSRF, authentication bypass
  • Binary Exploitation: Buffer overflow, ROP, format strings, heap exploitation
  • Reverse Engineering: Binary analysis, decompilation, obfuscation
  • Cryptography: Classical ciphers, modern crypto, hash cracking
  • Forensics: Steganography, memory forensics, network analysis, disk imaging
  • OSINT: Information gathering, social media analysis
  • PWN: Exploitation, shellcode, privilege escalation
  • Miscellaneous: Mixed or unique challenge types

Structured Output

Generates properly formatted markdown writeups with:

  • Challenge metadata (name, category, difficulty, points)
  • Executive summary
  • Reconnaissance findings
  • Step-by-step solution with code blocks
  • Tools used section
  • Flag submission
  • Key learnings and takeaways
  • Optional: Additional resources and references

Code Formatting

Proper syntax highlighting for:

  • Python, Bash, JavaScript, C/C++
  • Assembly (x86, ARM)
  • SQL queries
  • Command-line tools output
  • Network packet analysis

Instructions

When a user requests a CTF writeup, follow this workflow:

  1. Gather Information Ask the user for:

    • Challenge name
    • Platform/CTF name (e.g., "HackTheBox", "Shaastra CTF")
    • Category (or detect from description)
    • Difficulty level (Easy/Medium/Hard or points value)
    • Flag format if non-standard
    • Their solving process/notes
  2. Process the Content

    • Extract technical steps from their description
    • Identify tools and commands used
    • Detect flag format and validate
    • Categorize the challenge
    • Structure the flow logically
  3. Generate the Writeup Create a markdown document with this structure:

    # [Challenge Name] - [Platform] CTF Writeup
    
    **Author**: [Author name or handle]  
    **Date**: [Current date]  
    **Category**: [Category]  
    **Difficulty**: [Difficulty]  
    **Points**: [Points if applicable]
    
    ## Summary
    
    [2-3 sentence overview of the challenge and solution approach]
    
    ## Challenge Description
    
    [Original challenge description if provided]
    
    ## Reconnaissance
    
    [Initial enumeration and information gathering]
    
    ## Solution
    
    ### Step 1: [Phase name]
    
    [Detailed explanation with commands/code]
    
    ```bash
    # Commands used
    

    Step 2: [Next phase]

    [Continue with logical progression]

    Tools Used

    • Tool 1: Purpose
    • Tool 2: Purpose

    Flag

    FLAG{...}
    

    Key Takeaways

    • Learning point 1
    • Learning point 2

    References

    • [Relevant links]
    
    
  4. Validate and Enhance

    • Check flag format matches the platform
    • Ensure code blocks have proper syntax highlighting
    • Add explanatory comments to complex commands
    • Include alternative approaches if mentioned
  5. Save the Writeup Save the generated writeup to a markdown file named: [platform]_[challenge-name]_writeup.md

Example Usage

User: "I just solved the 'Binary Bash' challenge from Shaastra CTF. It was a buffer overflow where I had to overwrite the return address. The flag was Shaastra{buff3r_0v3rfl0w_m4st3r}. Can you generate a writeup?"

Agent Response:

  1. Asks for additional details (tools used, exact exploit steps)
  2. Generates a professional writeup with:
    • Proper challenge metadata
    • Binary exploitation category
    • Step-by-step buffer overflow explanation
    • Code blocks with assembly/C code
    • GDB commands used
    • Flag in correct format
    • Learning points about memory safety

Platform-Specific Templates

HackTheB

Полный SKILL.md на GitHub

Установить ctf-writeup-generator в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

_meta.json

FAQ

Что делает скилл ctf-writeup-generator?

Automatically generate professional CTF writeups from solving sessions with flag detection, challenge categorization, and proper markdown formatting

Как установить скилл ctf-writeup-generator?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл ctf-writeup-generator запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить ctf-writeup-generator с