Add solution

From juice-shop/juice-shop · View interactive version

Add solution is an AI agent skill from the GitHub repository juice-shop/juice-shop. Instructions for adding new hacking guides, videos, or tools to SOLUTIONS.md

How to use this skill

Skill file

Skill: Adding a new Solution or Tool to SOLUTIONS.md

This skill provides instructions for analyzing a new hacking guide, video, or tool, determining if it belongs in SOLUTIONS.md or REFERENCES.md, collecting necessary metadata, and adding it to the correct section of SOLUTIONS.md following the existing format.

Repository Targets & Scope

Source-of-Truth & Data Handling Rules

Change Boundaries

Ambiguity & Unmappable Source Handling

Distinguishing Between SOLUTIONS.md and REFERENCES.md

Unless the user explicitly specifies the target file, follow these rules:

  1. SOLUTIONS.md: Use this for content that is specifically a "how-to" for hacking Juice Shop or a tool that automates/assists in hacking it.
  1. REFERENCES.md: Use this for general mentions, news, blog posts about the project, conference talks, or appearances.

If in doubt, and the content contains spoilers (indicated by :godmode: or :bulb:), prefer SOLUTIONS.md if it is a guide/video/tool. If it is a blog post or talk, prefer REFERENCES.md with the appropriate icon.

General Workflow

  1. Analyze the Initial Prompt: Identify the URL(s) and any provided metadata (author, title, tool name).
  2. Crawl URL(s): Use the bash tool with curl or fetch_url to fetch the content of the provided link(s).
  1. Determine Category:
  1. Infer Metadata:
  1. Identify Missing Information: If mandatory information (like the Juice Shop version or author) is missing, ask the user.
  2. Find the Correct Section: Locate the target section in SOLUTIONS.md.
  3. Format the Entry: Use the specific formatting rules for the identified type.
  4. Update Table of Contents: If a new top-level section is added (rare), update the TOC.
  5. Skip Validation Commands: Since SOLUTIONS.md is a plain text file, running npm run lint, npm test, or any other validation commands is unnecessary if only this file (and/or REFERENCES.md) was modified.

Verification Expectations

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.