Verify challenge

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

Verify challenge is an AI agent skill from the GitHub repository juice-shop/juice-shop. Instructions for verifying new challenges fulfill all project requirements and metadata.

How to use this skill

Skill file

Skill: Verifying a New Challenge

This skill provides a comprehensive workflow and checklist for verifying that a newly added challenge fulfills all necessary preconditions, metadata requirements, and project conventions in OWASP Juice Shop.

Repository Targets & Scope

Source-of-Truth & Data Handling Rules

Change Boundaries

Ambiguity & Unmappable Source Handling

General Workflow

  1. Analyze the Challenge Definition: Review the new entry in data/static/challenges.yml.
  2. Verify Configuration: Check if the challenge is correctly represented in lib/config.schema.ts and config/fbctf.yml.
  3. Check Translations: Ensure labels and descriptions for any new categories or tags are present in frontend/src/assets/i18n/en.json.
  4. Review Supporting Assets:
  1. Audit Tests: Ensure tests properly handle disabledEnv constraints.
  2. Report Findings: Summarize any missing or incorrect metadata, broken setups, or inconsistencies.

1. Challenges YAML (`data/static/challenges.yml`)

Each entry in challenges.yml must adhere to the following rules:


2. Configuration (`lib/config.schema.ts` & `config/fbctf.yml`)

The challenge must be integrated into the CTF mode configuration:

`lib/config.schema.ts`

`config/fbctf.yml`


3. Translations (`frontend/src/assets/i18n/en.json`)

If the challenge introduces a new category or a new tag:


4. Hacking Instructor Scripts

If tutorial is specified in challenges.yml:


5. Coding Challenges

If the challenge has an associated coding challenge:


6. Testing Requirements

```typescript

if (utils.isChallengeEnabled(challenges.myNewChallenge)) {

it('should solve my new challenge...', () => {

// test logic

})

}

```


Verification Expectations

Inferred Rules & Best Practices

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.