CTF Writeup Generator
Paste the following prompt into your AI chat to install this skill:
Install @user_257ad2a8/ctf-writeup by following https://skillhub.cn/install/skillhub.md.
About this skill
Problem
CTF solves often leave evidence scattered across terminal output, draft scripts, screenshots, and chat history. When the result has to be submitted or reviewed, the writeup may end up fragmented: partial snippets, missing imports, unclear flag handling, and accidental sensitive data. ctf writeup targets that gap: after a challenge is solved, it turns the working artifacts into a submission-style writeup rather than a broad technical recap.
How It Works
The skill is organized around submission validation. It first collects three kinds of information from the current session, challenge files, and user input:
- Metadata: title, event, category, difficulty, points, and flag format.
- Solution artifacts: exploit scripts, payloads, screenshots, and command output.
- Timeline: key steps, dead ends, and pivots.
It then generates writeup.md using a submission format. The preferred output is one clean path: start from the challenge data and end by printing the flag. Code blocks should be tagged, scripts should include necessary imports, variable names, and comments, and the writeup should avoid multiple disconnected snippets that force the reader to reconstruct the solve. Before finalizing, it checks metadata, flag retention or redaction, reproducibility, runnable code, sensitive data, tool versions, and attribution.
Boundaries
This skill is best suited for a solved challenge that needs a clean submission, teammate review, or post-event archive. It is not a general security documentation generator and will not invent missing exploit details. The user should provide enough session context, script fragments, and flag format; redaction for private infrastructure or credentials must be handled explicitly. When multiple solves exist, it defaults to one clear path instead of listing every alternative.
Use Cases
- Turn a solved web challenge into a reviewable writeup.md.
- Archive crypto solve with metadata and one reproducible path.
- Merge exploit snippets into one script that prints the flag.
- Check Pwn writeup for runnable code, versions, and attribution.
Best For
- CTF players: generate a submission-ready writeup right after solving a challenge.
- Team leads: normalize teammates' scripts, output, and notes into one archive format.
- Event organizers: review whether submitted solve paths are clear and reproducible.
- Security learners: publish solved-challenge notes while removing credentials and internal details.
Related Skills
Track multiple GitHub projects, check releases and changelogs, and generate structured update summaries with impact analysis.
Upload local files to Qiniu Object Storage with server-side auto-delete days and public or private permanent URLs, ideal for temporary files and replacing Base64 storage.
Creates themed learning sites by generating flashcards, lessons, quizzes, index, and progress pages into a deployable website.
End-to-end mathematical optimization modeling with Gurobi and Python, covering data validation, code generation, solving, result analysis, and iterative revision.