Generates a single standardized submission-style CTF writeup for competition handoff and organizer review. Use after solving a CTF challenge to document the solution steps, tools used, and lessons learned in a structured format.
# Scan for exploit scripts and artifacts
find . -name '*.py' -o -name '*.sh' -o -name 'exploit*' -o -name 'solve*' | head -20
# Check for flags in output files
grep -rniE '(flag|ctf|eno|htb|pico)\{' . 2>/dev/null
Step 2: Generate Write-up
Write the writeup file as writeup.md (or writeup-<challenge-name>.md) using the submission template below.
Templates
Submission Format
---
title: "<Challenge Name>"
ctf: "<CTF Event Name>"
date: YYYY-MM-DD
category: web|pwn|crypto|reverse|forensics|osint|malware|misc
difficulty: easy|medium|hard
points: <number>
flag_format: "flag{...}"
author: "<your name or team>"
---
# <Challenge Name>
## Summary
<1-2 sentences: what the challenge was and the core technique. Keep it direct.>
## Solution
### Step 1: <Action>
<Explain the key observation in 3-8 short lines. Keep it direct.>
\`\`\`python
<one complete solving script from provided challenge data to printing the final flag>
\`\`\`
### Step 2: <Action> (optional)
<Only add this when a second short step genuinely helps readability, such as separating the core observation from final verification.>
### Step 3: <Action> (optional)
<Use only if the challenge really needs it. Keep the total number of steps small.>
## Flag
\`\`\`
flag{example_flag_here}
\`\`\`
Guidance:
Prefer 1-3 short steps total
Keep code to the smallest complete solving script
Do not split "recover secret", "derive key", and "decrypt flag" into separate partial snippets
The script should start from the challenge data and end by printing the flag
Avoid long background sections
Avoid dead ends unless they explain a key pivot
Avoid multiple alternative solves; pick one clean path
Redact the flag only if the user explicitly asks for redaction
Flag handling matches request — keep the real flag unless the user asked for redaction
Reproducible steps — a reader can follow your writeup and reproduce the solution
Code is runnable — exploit scripts include all imports, correct variable names, and comments
No sensitive data — no real credentials, API keys, or private infrastructure details
Length stays concise — the writeup is short enough for fast review
Tools and versions noted — mention specific tool versions if behavior depends on them
Proper attribution — credit teammates, referenced writeups, or tools that were essential
Grammar and formatting — consistent heading levels, code blocks have language tags
Quality Guidelines
DO:
Explain just enough for fast verification
Include one complete solving path, not multiple alternative routes
Include one complete script that goes all the way to the final flag
Show actual output (truncated if very long) to prove the approach worked
Tag code blocks with language (python, bash, sql, etc.)
Keep the main path front-loaded so a reader can validate it quickly
DON'T:
Copy-paste raw terminal dumps without explanation
Paste several partial snippets that force the reader to reconstruct the final solve
Leave placeholder text in the final writeup
Include irrelevant tangents that don't contribute to the solution
Assume the reader knows the specific challenge setup
Challenge
$ARGUMENTS
1---2name: ctf-writeup3description: Generates a single standardized submission-style CTF writeup for competition handoff and organizer review. Use after solving a CTF challenge to document the solution steps, tools used, and lessons learned in a structured format.4license: MIT5compatibility: Requires filesystem-based agent (Claude Code or similar) with bash and Python 3.6allowed-tools: Bash Read Write Edit Glob Grep Task WebFetch WebSearch7metadata:8 source: https://skillmd.com/skills/aibot88/ctf-writeup9 user-invocable: "true"10 argument-hint: "[challenge-name]"11---1213# CTF Write-up Generator1415Generate a standardized submission-style CTF writeup for a solved challenge.1617Default behavior:1819- During an active competition, optimize for speed, clarity, and reproducibility20- Keep writeups short enough that a teammate or organizer can validate the solve quickly21- Always produce a `submission`-style writeup22- Prefer one complete solve script from challenge data to final flag2324## Workflow2526### Step 1: Gather Information2728Collect the following from the current session, challenge files, and user input:29301. **Challenge metadata** — name, CTF event, category, difficulty, points, flag format312. **Solution artifacts** — exploit scripts, payloads, screenshots, command output323. **Timeline** — key steps taken, dead ends, pivots3334```bash35# Scan for exploit scripts and artifacts36find . -name '*.py' -o -name '*.sh' -o -name 'exploit*' -o -name 'solve*' | head -2037# Check for flags in output files38grep -rniE '(flag|ctf|eno|htb|pico)\{' . 2>/dev/null39```4041### Step 2: Generate Write-up4243Write the writeup file as `writeup.md` (or `writeup-<challenge-name>.md`) using the submission template below.4445---4647## Templates4849### Submission Format5051```markdown52---53title: "<Challenge Name>"54ctf: "<CTF Event Name>"55date: YYYY-MM-DD56category: web|pwn|crypto|reverse|forensics|osint|malware|misc57difficulty: easy|medium|hard58points: <number>59flag_format: "flag{...}"60author: "<your name or team>"61---6263# <Challenge Name>6465## Summary6667<1-2 sentences: what the challenge was and the core technique. Keep it direct.>6869## Solution7071### Step 1: <Action>7273<Explain the key observation in 3-8 short lines. Keep it direct.>7475\`\`\`python76<one complete solving script from provided challenge data to printing the final flag>77\`\`\`7879### Step 2: <Action> (optional)8081<Only add this when a second short step genuinely helps readability, such as separating the core observation from final verification.>8283### Step 3: <Action> (optional)8485<Use only if the challenge really needs it. Keep the total number of steps small.>8687## Flag8889\`\`\`90flag{example_flag_here}91\`\`\`92```9394Guidance:9596- Prefer 1-3 short steps total97- Keep code to the smallest complete solving script98- Do not split "recover secret", "derive key", and "decrypt flag" into separate partial snippets99- The script should start from the challenge data and end by printing the flag100- Avoid long background sections101- Avoid dead ends unless they explain a key pivot102- Avoid multiple alternative solves; pick one clean path103- Redact the flag only if the user explicitly asks for redaction104105---106107## Best Practices Checklist108109Before finalizing the writeup, verify:110111- [ ] **Metadata complete** — title, CTF, date, category, difficulty, points, author all filled112- [ ] **Flag handling matches request** — keep the real flag unless the user asked for redaction113- [ ] **Reproducible steps** — a reader can follow your writeup and reproduce the solution114- [ ] **Code is runnable** — exploit scripts include all imports, correct variable names, and comments115- [ ] **No sensitive data** — no real credentials, API keys, or private infrastructure details116- [ ] **Length stays concise** — the writeup is short enough for fast review117- [ ] **Tools and versions noted** — mention specific tool versions if behavior depends on them118- [ ] **Proper attribution** — credit teammates, referenced writeups, or tools that were essential119- [ ] **Grammar and formatting** — consistent heading levels, code blocks have language tags120121## Quality Guidelines122123**DO:**124- Explain just enough for fast verification125- Include one complete solving path, not multiple alternative routes126- Include one complete script that goes all the way to the final flag127- Show actual output (truncated if very long) to prove the approach worked128- Tag code blocks with language (`python`, `bash`, `sql`, etc.)129- Keep the main path front-loaded so a reader can validate it quickly130131**DON'T:**132- Copy-paste raw terminal dumps without explanation133- Paste several partial snippets that force the reader to reconstruct the final solve134- Leave placeholder text in the final writeup135- Include irrelevant tangents that don't contribute to the solution136- Assume the reader knows the specific challenge setup137138## Challenge139140$ARGUMENTS
Run npx get-skill add aibot88/ctf-writeup in your terminal (requires Node.js), paste this page's agent-chat prompt into Claude, Cursor, or any MCP-connected agent, or download the SKILL.md file and copy it into your agent's skills directory.
Generates a single standardized submission-style CTF writeup for competition handoff and organizer review. Use after solving a CTF challenge to document the solution steps, tools used, and lessons learned in a structured format. It is listed under Coding & Dev Tools on SkillMD.
This skill has not completed SkillMD's automated safety review yet. Independent scanners report: SkillSpector: PASS, Skill Scanner: PASS. Capability flags: reads secrets. SkillMD never runs a skill's scripts for you; review the SKILL.md before installing.
This skill is tagged as working with Claude Code, Claude.ai, OpenAI Codex. SKILL.md is an open format, so most agents that read a skills directory can load it too.
Yes. Installing skills from SkillMD is free. This skill is licensed under MIT.
aibot88 (@aibot88) published this skill. Their other Agent Skills are listed on their SkillMD profile.