flag
Skill12 starsChanged 9 months agoMITView on GitHub
Submit and validate CTF flags. Saves the flag to flag.txt, marks the challenge as solved, and validates against expected flag formats. Triggers: "submit flag", "found the flag", "flag is", "capture flag", "got the flag", "flag{", "CTF{", "picoCTF{".
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 3 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 16
Use this command when you:
- Distinctive: line 41
After submitting a flag:
- Distinctive: line 44
If in a competition, suggest moving to the next challenge
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CTF Flag
Submit and validate a CTF flag.
When to Use
Use this command when you:
- Have found or computed a flag for a challenge
- Want to save and validate a flag value
- Need to mark a challenge as solved
Bundled Scripts
- check-tools.sh — Verify ctf-kit is installed
Instructions
- First verify ctf-kit is available:
bash scripts/check-tools.sh Submit the flag:
ctf flag "$ARGUMENTS"- Review the output:
- Flag format validation result
- Confirmation that flag.txt was saved
- Challenge marked as solved in .ctf/challenge.yaml
- After submitting a flag:
- Suggest
/ctf-kit:statusto review progress - Suggest
/ctf-kit:writeupto generate a writeup - If in a competition, suggest moving to the next challenge
- Suggest
Options
--path, -p— Challenge directory (default: current directory)--no-validate— Skip flag format validation
Example Usage
/ctf-kit:flag "flag{s0m3_fl4g_h3r3}"
/ctf-kit:flag "picoCTF{example_flag}" --path ./crypto/rsa-baby
/ctf-kit:flag "non_standard_flag" --no-validateRelated Commands
/ctf-kit:here— Set up challenge context/ctf-kit:status— View challenge progress after submission/ctf-kit:writeup— Generate writeup for solved challenge
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

