generate-ctf-writeups-automatically
Automatically generate professional CTF writeups from solving sessions with flag detection, challenge categorization, and proper markdown formatting
от rondoflow★ 37 звёзд на GitHub
Установить generate-ctf-writeups-automatically в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
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:
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
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
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 usedStep 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]
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
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:
- Asks for additional details (tools used, exact exploit steps)
- 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
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- manifest.json
FAQ
Что делает скилл generate-ctf-writeups-automatically?
Automatically generate professional CTF writeups from solving sessions with flag detection, challenge categorization, and proper markdown formatting
Как установить скилл generate-ctf-writeups-automatically?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл generate-ctf-writeups-automatically запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…